Class: Stripe::PaymentMethodService::CreateParams::BillingDetails

Inherits:
RequestParams
  • Object
show all
Defined in:
lib/stripe/services/payment_method_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, tax_id: nil) ⇒ BillingDetails

Returns a new instance of BillingDetails.



128
129
130
131
132
133
134
# File 'lib/stripe/services/payment_method_service.rb', line 128

def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil)
  @address = address
  @email = email
  @name = name
  @phone = phone
  @tax_id = tax_id
end

Instance Attribute Details

#addressObject

Billing address.



118
119
120
# File 'lib/stripe/services/payment_method_service.rb', line 118

def address
  @address
end

#emailObject

Email address.



120
121
122
# File 'lib/stripe/services/payment_method_service.rb', line 120

def email
  @email
end

#nameObject

Full name.



122
123
124
# File 'lib/stripe/services/payment_method_service.rb', line 122

def name
  @name
end

#phoneObject

Billing phone number (including extension).



124
125
126
# File 'lib/stripe/services/payment_method_service.rb', line 124

def phone
  @phone
end

#tax_idObject

Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers.



126
127
128
# File 'lib/stripe/services/payment_method_service.rb', line 126

def tax_id
  @tax_id
end