class

Stripe::CustomerDetails

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]."
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::PostalAddress | Nil = nil, address_source : String | Nil = nil, ip_address : String | Nil = nil, tax_ids : Array(Stripe::DataParams) | 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
address=(new_value : Stripe::PostalAddress | Nil)

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. Stripe Tax might consider a transaction with applicable tax IDs to be B2B, which might affect the tax calculation result. Stripe Tax doesn't validate tax IDs for correctness.

Source
tax_ids=(new_value : Array(Stripe::DataParams) | Nil)

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

Source
taxability_override

Overrides the tax calculation result to allow you to not collect tax from your customer. Use this if you've manually checked your customer's tax exemptions. Prefer providing the customer's tax_ids where possible, which automatically determines whether reverse_charge applies.

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