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.



11632
11633
11634
11635
11636
11637
11638
# File 'lib/stripe/resources/payment_intent.rb', line 11632

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.



11622
11623
11624
# File 'lib/stripe/resources/payment_intent.rb', line 11622

def address
  @address
end

#emailObject

Email address.



11624
11625
11626
# File 'lib/stripe/resources/payment_intent.rb', line 11624

def email
  @email
end

#nameObject

Full name.



11626
11627
11628
# File 'lib/stripe/resources/payment_intent.rb', line 11626

def name
  @name
end

#phoneObject

Billing phone number (including extension).



11628
11629
11630
# File 'lib/stripe/resources/payment_intent.rb', line 11628

def phone
  @phone
end

#tax_idObject

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



11630
11631
11632
# File 'lib/stripe/resources/payment_intent.rb', line 11630

def tax_id
  @tax_id
end