class

Stripe::PaymentPagesCheckoutSessionCustomerDetails

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

Constants

ERROR_MESSAGE_FOR_TAX_EXEMPT = "invalid value for \"tax_exempt\", must be one of [exempt, none, reverse]."
MAX_LENGTH_FOR_EMAIL = 5000
MAX_LENGTH_FOR_NAME = 5000
MAX_LENGTH_FOR_PHONE = 5000
VALID_VALUES_FOR_TAX_EXEMPT = String.static_array("exempt", "none", "reverse")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, address : Stripe::PaymentPagesCheckoutSessionCustomerDetailsAddress | Nil = nil, email : String | Nil = nil, name : String | Nil = nil, phone : String | Nil = nil, tax_exempt : String | Nil = nil, tax_ids : Array(Stripe::PaymentPagesCheckoutSessionTaxId) | 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
email

The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry. Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form.

Source
email=(new_value : String | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] email 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

list_invalid_properties

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

Source
name

The customer's name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022.

Source
name=(new_value : String | Nil)

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

Source
phone

The customer's phone number after a completed Checkout Session.

Source
phone=(new_value : String | Nil)

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

Source
tax_exempt

The customer’s tax exempt status after a completed Checkout Session.

Source
tax_exempt=(new_value : String | Nil)

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

Source
tax_ids

The customer’s tax IDs after a completed Checkout Session.

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

Custom attribute writer method checking allowed values (enum). @param [Object] tax_ids 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