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



2224
2225
2226
2227
2228
2229
2230
# File 'lib/stripe/resources/payment_method.rb', line 2224

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.



2214
2215
2216
# File 'lib/stripe/resources/payment_method.rb', line 2214

def address
  @address
end

#emailObject

Email address.



2216
2217
2218
# File 'lib/stripe/resources/payment_method.rb', line 2216

def email
  @email
end

#nameObject

Full name.



2218
2219
2220
# File 'lib/stripe/resources/payment_method.rb', line 2218

def name
  @name
end

#phoneObject

Billing phone number (including extension).



2220
2221
2222
# File 'lib/stripe/resources/payment_method.rb', line 2220

def phone
  @phone
end

#tax_idObject

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



2222
2223
2224
# File 'lib/stripe/resources/payment_method.rb', line 2222

def tax_id
  @tax_id
end