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.



4216
4217
4218
4219
4220
4221
# File 'lib/stripe/services/payment_intent_service.rb', line 4216

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.



4208
4209
4210
# File 'lib/stripe/services/payment_intent_service.rb', line 4208

def address
  @address
end

#emailObject

Email address.



4210
4211
4212
# File 'lib/stripe/services/payment_intent_service.rb', line 4210

def email
  @email
end

#nameObject

Full name.



4212
4213
4214
# File 'lib/stripe/services/payment_intent_service.rb', line 4212

def name
  @name
end

#phoneObject

Billing phone number (including extension).



4214
4215
4216
# File 'lib/stripe/services/payment_intent_service.rb', line 4214

def phone
  @phone
end