Class: Stripe::PaymentIntentService::CreateParams::PaymentMethodData::BillingDetails

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



210
211
212
213
214
215
# File 'lib/stripe/services/payment_intent_service.rb', line 210

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.



202
203
204
# File 'lib/stripe/services/payment_intent_service.rb', line 202

def address
  @address
end

#emailObject

Email address.



204
205
206
# File 'lib/stripe/services/payment_intent_service.rb', line 204

def email
  @email
end

#nameObject

Full name.



206
207
208
# File 'lib/stripe/services/payment_intent_service.rb', line 206

def name
  @name
end

#phoneObject

Billing phone number (including extension).



208
209
210
# File 'lib/stripe/services/payment_intent_service.rb', line 208

def phone
  @phone
end