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



2522
2523
2524
2525
2526
2527
# File 'lib/stripe/services/payment_intent_service.rb', line 2522

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.



2514
2515
2516
# File 'lib/stripe/services/payment_intent_service.rb', line 2514

def address
  @address
end

#emailObject

Email address.



2516
2517
2518
# File 'lib/stripe/services/payment_intent_service.rb', line 2516

def email
  @email
end

#nameObject

Full name.



2518
2519
2520
# File 'lib/stripe/services/payment_intent_service.rb', line 2518

def name
  @name
end

#phoneObject

Billing phone number (including extension).



2520
2521
2522
# File 'lib/stripe/services/payment_intent_service.rb', line 2520

def phone
  @phone
end