Class: Stripe::PaymentIntentService::ConfirmParams::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.



9285
9286
9287
9288
9289
9290
# File 'lib/stripe/services/payment_intent_service.rb', line 9285

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.



9274
9275
9276
# File 'lib/stripe/services/payment_intent_service.rb', line 9274

def address
  @address
end

#emailObject

Email address.



9277
9278
9279
# File 'lib/stripe/services/payment_intent_service.rb', line 9277

def email
  @email
end

#nameObject

Full name.



9280
9281
9282
# File 'lib/stripe/services/payment_intent_service.rb', line 9280

def name
  @name
end

#phoneObject

Billing phone number (including extension).



9283
9284
9285
# File 'lib/stripe/services/payment_intent_service.rb', line 9283

def phone
  @phone
end