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.



8257
8258
8259
8260
8261
8262
# File 'lib/stripe/services/payment_intent_service.rb', line 8257

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.



8249
8250
8251
# File 'lib/stripe/services/payment_intent_service.rb', line 8249

def address
  @address
end

#emailObject

Email address.



8251
8252
8253
# File 'lib/stripe/services/payment_intent_service.rb', line 8251

def email
  @email
end

#nameObject

Full name.



8253
8254
8255
# File 'lib/stripe/services/payment_intent_service.rb', line 8253

def name
  @name
end

#phoneObject

Billing phone number (including extension).



8255
8256
8257
# File 'lib/stripe/services/payment_intent_service.rb', line 8255

def phone
  @phone
end