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.



8327
8328
8329
8330
8331
8332
# File 'lib/stripe/services/payment_intent_service.rb', line 8327

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.



8319
8320
8321
# File 'lib/stripe/services/payment_intent_service.rb', line 8319

def address
  @address
end

#emailObject

Email address.



8321
8322
8323
# File 'lib/stripe/services/payment_intent_service.rb', line 8321

def email
  @email
end

#nameObject

Full name.



8323
8324
8325
# File 'lib/stripe/services/payment_intent_service.rb', line 8323

def name
  @name
end

#phoneObject

Billing phone number (including extension).



8325
8326
8327
# File 'lib/stripe/services/payment_intent_service.rb', line 8325

def phone
  @phone
end