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) ⇒ BillingDetails

Returns a new instance of BillingDetails.



1410
1411
1412
1413
1414
1415
# File 'lib/stripe/resources/payment_method.rb', line 1410

def initialize(address: nil, email: nil, name: nil, phone: nil)
  @address = address
  @email = email
  @name = name
  @phone = phone
end

Instance Attribute Details

#addressObject

Billing address.



1402
1403
1404
# File 'lib/stripe/resources/payment_method.rb', line 1402

def address
  @address
end

#emailObject

Email address.



1404
1405
1406
# File 'lib/stripe/resources/payment_method.rb', line 1404

def email
  @email
end

#nameObject

Full name.



1406
1407
1408
# File 'lib/stripe/resources/payment_method.rb', line 1406

def name
  @name
end

#phoneObject

Billing phone number (including extension).



1408
1409
1410
# File 'lib/stripe/resources/payment_method.rb', line 1408

def phone
  @phone
end