Class: Stripe::PaymentMethodService::CreateParams::BillingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_method_service.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.



135
136
137
138
139
140
# File 'lib/stripe/services/payment_method_service.rb', line 135

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.



127
128
129
# File 'lib/stripe/services/payment_method_service.rb', line 127

def address
  @address
end

#emailObject

Email address.



129
130
131
# File 'lib/stripe/services/payment_method_service.rb', line 129

def email
  @email
end

#nameObject

Full name.



131
132
133
# File 'lib/stripe/services/payment_method_service.rb', line 131

def name
  @name
end

#phoneObject

Billing phone number (including extension).



133
134
135
# File 'lib/stripe/services/payment_method_service.rb', line 133

def phone
  @phone
end