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



1023
1024
1025
1026
1027
1028
# File 'lib/stripe/services/payment_intent_service.rb', line 1023

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.



1012
1013
1014
# File 'lib/stripe/services/payment_intent_service.rb', line 1012

def address
  @address
end

#emailObject

Email address.



1015
1016
1017
# File 'lib/stripe/services/payment_intent_service.rb', line 1015

def email
  @email
end

#nameObject

Full name.



1018
1019
1020
# File 'lib/stripe/services/payment_intent_service.rb', line 1018

def name
  @name
end

#phoneObject

Billing phone number (including extension).



1021
1022
1023
# File 'lib/stripe/services/payment_intent_service.rb', line 1021

def phone
  @phone
end