Class: Stripe::PaymentIntent::CreateParams::PaymentMethodData::BillingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_intent.rb

Defined Under Namespace

Classes: Address

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from RequestParams

#to_h

Constructor Details

#initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) ⇒ BillingDetails

Returns a new instance of BillingDetails.



4477
4478
4479
4480
4481
4482
4483
# File 'lib/stripe/resources/payment_intent.rb', line 4477

def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
  @address = address
  @email = email
  @name = name
  @phone = phone
  @tax_id = tax_id
end

Instance Attribute Details

#addressObject

Billing address.



4467
4468
4469
# File 'lib/stripe/resources/payment_intent.rb', line 4467

def address
  @address
end

#emailObject

Email address.



4469
4470
4471
# File 'lib/stripe/resources/payment_intent.rb', line 4469

def email
  @email
end

#nameObject

Full name.



4471
4472
4473
# File 'lib/stripe/resources/payment_intent.rb', line 4471

def name
  @name
end

#phoneObject

Billing phone number (including extension).



4473
4474
4475
# File 'lib/stripe/resources/payment_intent.rb', line 4473

def phone
  @phone
end

#tax_idObject

Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.



4475
4476
4477
# File 'lib/stripe/resources/payment_intent.rb', line 4475

def tax_id
  @tax_id
end