Class: Stripe::PaymentMethod::CreateParams::BillingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/resources/payment_method.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.



781
782
783
784
785
786
787
# File 'lib/stripe/resources/payment_method.rb', line 781

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.



771
772
773
# File 'lib/stripe/resources/payment_method.rb', line 771

def address
  @address
end

#emailObject

Email address.



773
774
775
# File 'lib/stripe/resources/payment_method.rb', line 773

def email
  @email
end

#nameObject

Full name.



775
776
777
# File 'lib/stripe/resources/payment_method.rb', line 775

def name
  @name
end

#phoneObject

Billing phone number (including extension).



777
778
779
# File 'lib/stripe/resources/payment_method.rb', line 777

def phone
  @phone
end

#tax_idObject

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



779
780
781
# File 'lib/stripe/resources/payment_method.rb', line 779

def tax_id
  @tax_id
end