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

Returns a new instance of BillingDetails.



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

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.



821
822
823
# File 'lib/stripe/resources/payment_method.rb', line 821

def address
  @address
end

#emailObject

Email address.



823
824
825
# File 'lib/stripe/resources/payment_method.rb', line 823

def email
  @email
end

#nameObject

Full name.



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

def name
  @name
end

#phoneObject

Billing phone number (including extension).



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

def phone
  @phone
end