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.



835
836
837
838
839
840
841
# File 'lib/stripe/resources/payment_method.rb', line 835

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.



825
826
827
# File 'lib/stripe/resources/payment_method.rb', line 825

def address
  @address
end

#emailObject

Email address.



827
828
829
# File 'lib/stripe/resources/payment_method.rb', line 827

def email
  @email
end

#nameObject

Full name.



829
830
831
# File 'lib/stripe/resources/payment_method.rb', line 829

def name
  @name
end

#phoneObject

Billing phone number (including extension).



831
832
833
# File 'lib/stripe/resources/payment_method.rb', line 831

def phone
  @phone
end

#tax_idObject

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



833
834
835
# File 'lib/stripe/resources/payment_method.rb', line 833

def tax_id
  @tax_id
end