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.



1447
1448
1449
1450
1451
1452
1453
# File 'lib/stripe/resources/payment_method.rb', line 1447

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.



1437
1438
1439
# File 'lib/stripe/resources/payment_method.rb', line 1437

def address
  @address
end

#emailObject

Email address.



1439
1440
1441
# File 'lib/stripe/resources/payment_method.rb', line 1439

def email
  @email
end

#nameObject

Full name.



1441
1442
1443
# File 'lib/stripe/resources/payment_method.rb', line 1441

def name
  @name
end

#phoneObject

Billing phone number (including extension).



1443
1444
1445
# File 'lib/stripe/resources/payment_method.rb', line 1443

def phone
  @phone
end

#tax_idObject

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



1445
1446
1447
# File 'lib/stripe/resources/payment_method.rb', line 1445

def tax_id
  @tax_id
end