class

Stripe::TaxProductResourceCustomerDetails

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

ERROR_MESSAGE_FOR_ADDRESS_SOURCE = "invalid value for \"address_source\", must be one of [billing, shipping]."
ERROR_MESSAGE_FOR_TAXABILITY_OVERRIDE = "invalid value for \"taxability_override\", must be one of [customer_exempt, none, reverse_charge]."
MAX_LENGTH_FOR_IP_ADDRESS = 5000
VALID_VALUES_FOR_ADDRESS_SOURCE = String.static_array("billing", "shipping")
VALID_VALUES_FOR_TAXABILITY_OVERRIDE = String.static_array("customer_exempt", "none", "reverse_charge")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, address : Stripe::TaxProductResourceCustomerDetailsAddress | Nil = nil, address_source : String | Nil = nil, ip_address : String | Nil = nil, tax_ids : Array(Stripe::TaxProductResourceCustomerDetailsResourceTaxId) | Nil = nil, taxability_override : String | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

address
Source

Custom attribute writer method checking allowed values (enum). @param [Object] address Object to be assigned

Source
address_source

The type of customer address provided.

Source
address_source=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] address_source Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

ip_address

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

Source
ip_address=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] ip_address Object to be assigned

Source
list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
tax_ids

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

Source

Custom attribute writer method checking allowed values (enum). @param [Object] tax_ids Object to be assigned

Source
taxability_override

The taxability override used for taxation.

Source
taxability_override=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] taxability_override Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source