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



6902
6903
6904
6905
6906
6907
6908
# File 'lib/stripe/resources/payment_intent.rb', line 6902

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.



6892
6893
6894
# File 'lib/stripe/resources/payment_intent.rb', line 6892

def address
  @address
end

#emailObject

Email address.



6894
6895
6896
# File 'lib/stripe/resources/payment_intent.rb', line 6894

def email
  @email
end

#nameObject

Full name.



6896
6897
6898
# File 'lib/stripe/resources/payment_intent.rb', line 6896

def name
  @name
end

#phoneObject

Billing phone number (including extension).



6898
6899
6900
# File 'lib/stripe/resources/payment_intent.rb', line 6898

def phone
  @phone
end

#tax_idObject

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



6900
6901
6902
# File 'lib/stripe/resources/payment_intent.rb', line 6900

def tax_id
  @tax_id
end