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.



777
778
779
780
781
782
# File 'lib/stripe/resources/payment_method.rb', line 777

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.



769
770
771
# File 'lib/stripe/resources/payment_method.rb', line 769

def address
  @address
end

#emailObject

Email address.



771
772
773
# File 'lib/stripe/resources/payment_method.rb', line 771

def email
  @email
end

#nameObject

Full name.



773
774
775
# File 'lib/stripe/resources/payment_method.rb', line 773

def name
  @name
end

#phoneObject

Billing phone number (including extension).



775
776
777
# File 'lib/stripe/resources/payment_method.rb', line 775

def phone
  @phone
end