Class: Stripe::Tax::Settings

Inherits:
SingletonAPIResource show all
Includes:
APIOperations::SingletonSave
Defined in:
lib/stripe/resources/tax/settings.rb

Overview

You can use Tax ‘Settings` to manage configurations used by Stripe Tax calculations.

Related guide: [Using the Settings API](stripe.com/docs/tax/settings-api)

Defined Under Namespace

Classes: Defaults, HeadOffice, StatusDetails

Constant Summary collapse

OBJECT_NAME =
"tax.settings"

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from APIResource

#save_with_parent

Attributes inherited from StripeObject

#last_response

Class Method Summary collapse

Methods included from APIOperations::SingletonSave

included, #save

Methods inherited from SingletonAPIResource

resource_url, #resource_url, retrieve

Methods inherited from APIResource

class_name, custom_method, #refresh, #request_stripe_object, resource_url, #resource_url, retrieve, save_nested_resource

Methods included from APIOperations::Request

included

Methods inherited from StripeObject

#==, #[], #[]=, #_get_inner_class_type, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#defaultsObject (readonly)

Attribute for field defaults



106
107
108
# File 'lib/stripe/resources/tax/settings.rb', line 106

def defaults
  @defaults
end

#head_officeObject (readonly)

The place where your business is located.



108
109
110
# File 'lib/stripe/resources/tax/settings.rb', line 108

def head_office
  @head_office
end

#livemodeObject (readonly)

Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.



110
111
112
# File 'lib/stripe/resources/tax/settings.rb', line 110

def livemode
  @livemode
end

#objectObject (readonly)

String representing the object’s type. Objects of the same type share the same value.



112
113
114
# File 'lib/stripe/resources/tax/settings.rb', line 112

def object
  @object
end

#statusObject (readonly)

The status of the Tax ‘Settings`.



114
115
116
# File 'lib/stripe/resources/tax/settings.rb', line 114

def status
  @status
end

#status_detailsObject (readonly)

Attribute for field status_details



116
117
118
# File 'lib/stripe/resources/tax/settings.rb', line 116

def status_details
  @status_details
end

Class Method Details

.field_remappingsObject



126
127
128
# File 'lib/stripe/resources/tax/settings.rb', line 126

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



118
119
120
121
122
123
124
# File 'lib/stripe/resources/tax/settings.rb', line 118

def self.inner_class_types
  @inner_class_types = {
    defaults: Defaults,
    head_office: HeadOffice,
    status_details: StatusDetails,
  }
end

.object_nameObject



13
14
15
# File 'lib/stripe/resources/tax/settings.rb', line 13

def self.object_name
  "tax.settings"
end