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.



1296
1297
1298
1299
1300
1301
1302
# File 'lib/stripe/resources/payment_method.rb', line 1296

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.



1286
1287
1288
# File 'lib/stripe/resources/payment_method.rb', line 1286

def address
  @address
end

#emailObject

Email address.



1288
1289
1290
# File 'lib/stripe/resources/payment_method.rb', line 1288

def email
  @email
end

#nameObject

Full name.



1290
1291
1292
# File 'lib/stripe/resources/payment_method.rb', line 1290

def name
  @name
end

#phoneObject

Billing phone number (including extension).



1292
1293
1294
# File 'lib/stripe/resources/payment_method.rb', line 1292

def phone
  @phone
end

#tax_idObject

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



1294
1295
1296
# File 'lib/stripe/resources/payment_method.rb', line 1294

def tax_id
  @tax_id
end