Class: Stripe::PaymentIntent::ConfirmParams::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.



13013
13014
13015
13016
13017
13018
13019
# File 'lib/stripe/resources/payment_intent.rb', line 13013

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.



13003
13004
13005
# File 'lib/stripe/resources/payment_intent.rb', line 13003

def address
  @address
end

#emailObject

Email address.



13005
13006
13007
# File 'lib/stripe/resources/payment_intent.rb', line 13005

def email
  @email
end

#nameObject

Full name.



13007
13008
13009
# File 'lib/stripe/resources/payment_intent.rb', line 13007

def name
  @name
end

#phoneObject

Billing phone number (including extension).



13009
13010
13011
# File 'lib/stripe/resources/payment_intent.rb', line 13009

def phone
  @phone
end

#tax_idObject

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



13011
13012
13013
# File 'lib/stripe/resources/payment_intent.rb', line 13011

def tax_id
  @tax_id
end