Class: Stripe::Tax::Calculation::CustomerDetails

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/tax/calculation.rb

Defined Under Namespace

Classes: Address, TaxId

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

#addressObject (readonly)

The customer’s postal address (for example, home or business location).



56
57
58
# File 'lib/stripe/resources/tax/calculation.rb', line 56

def address
  @address
end

#address_sourceObject (readonly)

The type of customer address provided.



58
59
60
# File 'lib/stripe/resources/tax/calculation.rb', line 58

def address_source
  @address_source
end

#ip_addressObject (readonly)

The customer’s IP address (IPv4 or IPv6).



60
61
62
# File 'lib/stripe/resources/tax/calculation.rb', line 60

def ip_address
  @ip_address
end

#tax_idsObject (readonly)

The customer’s tax IDs (for example, EU VAT numbers).



62
63
64
# File 'lib/stripe/resources/tax/calculation.rb', line 62

def tax_ids
  @tax_ids
end

#taxability_overrideObject (readonly)

The taxability override used for taxation.



64
65
66
# File 'lib/stripe/resources/tax/calculation.rb', line 64

def taxability_override
  @taxability_override
end

Class Method Details

.field_remappingsObject



70
71
72
# File 'lib/stripe/resources/tax/calculation.rb', line 70

def self.field_remappings
  @field_remappings = {}
end

.inner_class_typesObject



66
67
68
# File 'lib/stripe/resources/tax/calculation.rb', line 66

def self.inner_class_types
  @inner_class_types = { address: Address, tax_ids: TaxId }
end