Class: Stripe::Customer::Tax
- Inherits:
-
StripeObject
- Object
- StripeObject
- Stripe::Customer::Tax
- Defined in:
- lib/stripe/resources/customer.rb
Defined Under Namespace
Classes: Location
Constant Summary
Constants inherited from StripeObject
StripeObject::RESERVED_FIELD_NAMES
Instance Attribute Summary collapse
-
#automatic_tax ⇒ Object
readonly
Surfaces if automatic tax computation is possible given the current customer location information.
-
#ip_address ⇒ Object
readonly
A recent IP address of the customer used for tax reporting and tax location inference.
-
#location ⇒ Object
readonly
The identified tax location of the customer.
-
#provider ⇒ Object
readonly
The tax calculation provider used for location resolution.
Attributes inherited from StripeObject
Class Method Summary collapse
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
#automatic_tax ⇒ Object (readonly)
Surfaces if automatic tax computation is possible given the current customer location information.
157 158 159 |
# File 'lib/stripe/resources/customer.rb', line 157 def automatic_tax @automatic_tax end |
#ip_address ⇒ Object (readonly)
A recent IP address of the customer used for tax reporting and tax location inference.
159 160 161 |
# File 'lib/stripe/resources/customer.rb', line 159 def ip_address @ip_address end |
#location ⇒ Object (readonly)
The identified tax location of the customer.
161 162 163 |
# File 'lib/stripe/resources/customer.rb', line 161 def location @location end |
#provider ⇒ Object (readonly)
The tax calculation provider used for location resolution. Defaults to ‘stripe` when not using a [third-party provider](/tax/third-party-apps).
163 164 165 |
# File 'lib/stripe/resources/customer.rb', line 163 def provider @provider end |
Class Method Details
.field_remappings ⇒ Object
169 170 171 |
# File 'lib/stripe/resources/customer.rb', line 169 def self.field_remappings @field_remappings = {} end |
.inner_class_types ⇒ Object
165 166 167 |
# File 'lib/stripe/resources/customer.rb', line 165 def self.inner_class_types @inner_class_types = { location: Location } end |