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.



4230
4231
4232
4233
4234
4235
# File 'lib/stripe/services/payment_intent_service.rb', line 4230

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.



4222
4223
4224
# File 'lib/stripe/services/payment_intent_service.rb', line 4222

def address
  @address
end

#emailObject

Email address.



4224
4225
4226
# File 'lib/stripe/services/payment_intent_service.rb', line 4224

def email
  @email
end

#nameObject

Full name.



4226
4227
4228
# File 'lib/stripe/services/payment_intent_service.rb', line 4226

def name
  @name
end

#phoneObject

Billing phone number (including extension).



4228
4229
4230
# File 'lib/stripe/services/payment_intent_service.rb', line 4228

def phone
  @phone
end