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.



8622
8623
8624
8625
8626
8627
# File 'lib/stripe/services/payment_intent_service.rb', line 8622

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.



8614
8615
8616
# File 'lib/stripe/services/payment_intent_service.rb', line 8614

def address
  @address
end

#emailObject

Email address.



8616
8617
8618
# File 'lib/stripe/services/payment_intent_service.rb', line 8616

def email
  @email
end

#nameObject

Full name.



8618
8619
8620
# File 'lib/stripe/services/payment_intent_service.rb', line 8618

def name
  @name
end

#phoneObject

Billing phone number (including extension).



8620
8621
8622
# File 'lib/stripe/services/payment_intent_service.rb', line 8620

def phone
  @phone
end