Class: Stripe::Tax::Settings
- Inherits:
-
SingletonAPIResource
- Object
- StripeObject
- APIResource
- SingletonAPIResource
- Stripe::Tax::Settings
- 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
-
#defaults ⇒ Object
readonly
Attribute for field defaults.
-
#head_office ⇒ Object
readonly
The place where your business is located.
-
#livemode ⇒ Object
readonly
Has the value ‘true` if the object exists in live mode or the value `false` if the object exists in test mode.
-
#object ⇒ Object
readonly
String representing the object’s type.
-
#status ⇒ Object
readonly
The status of the Tax ‘Settings`.
-
#status_details ⇒ Object
readonly
Attribute for field status_details.
Attributes inherited from APIResource
Attributes inherited from StripeObject
Class Method Summary collapse
Methods included from APIOperations::SingletonSave
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
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
#defaults ⇒ Object (readonly)
Attribute for field defaults
106 107 108 |
# File 'lib/stripe/resources/tax/settings.rb', line 106 def defaults @defaults end |
#head_office ⇒ Object (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 |
#livemode ⇒ Object (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 |
#object ⇒ Object (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 |
#status ⇒ Object (readonly)
The status of the Tax ‘Settings`.
114 115 116 |
# File 'lib/stripe/resources/tax/settings.rb', line 114 def status @status end |
#status_details ⇒ Object (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_remappings ⇒ Object
126 127 128 |
# File 'lib/stripe/resources/tax/settings.rb', line 126 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
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_name ⇒ Object
13 14 15 |
# File 'lib/stripe/resources/tax/settings.rb', line 13 def self.object_name "tax.settings" end |