Class: Stripe::Customer::Tax

Inherits:
StripeObject show all
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

Attributes inherited from StripeObject

#last_response

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_taxObject (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_addressObject (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

#locationObject (readonly)

The identified tax location of the customer.



161
162
163
# File 'lib/stripe/resources/customer.rb', line 161

def location
  @location
end

#providerObject (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_remappingsObject



169
170
171
# File 'lib/stripe/resources/customer.rb', line 169

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



165
166
167
# File 'lib/stripe/resources/customer.rb', line 165

def self.inner_class_types
  @inner_class_types = { location: Location }
end