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.



10882
10883
10884
10885
10886
10887
10888
# File 'lib/stripe/resources/payment_intent.rb', line 10882

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.



10872
10873
10874
# File 'lib/stripe/resources/payment_intent.rb', line 10872

def address
  @address
end

#emailObject

Email address.



10874
10875
10876
# File 'lib/stripe/resources/payment_intent.rb', line 10874

def email
  @email
end

#nameObject

Full name.



10876
10877
10878
# File 'lib/stripe/resources/payment_intent.rb', line 10876

def name
  @name
end

#phoneObject

Billing phone number (including extension).



10878
10879
10880
# File 'lib/stripe/resources/payment_intent.rb', line 10878

def phone
  @phone
end

#tax_idObject

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



10880
10881
10882
# File 'lib/stripe/resources/payment_intent.rb', line 10880

def tax_id
  @tax_id
end