Class: Stripe::CustomerCreateParams
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::CustomerCreateParams
- Defined in:
- lib/stripe/params/customer_create_params.rb
Defined Under Namespace
Classes: Address, CashBalance, InvoiceSettings, Shipping, Tax, TaxIdDatum
Instance Attribute Summary collapse
-
#address ⇒ Object
The customer’s address.
-
#balance ⇒ Object
An integer amount in cents (or local equivalent) that represents the customer’s current balance, which affect the customer’s future invoices.
-
#business_name ⇒ Object
The customer’s business name.
-
#cash_balance ⇒ Object
Balance information and default balance settings for this customer.
-
#description ⇒ Object
An arbitrary string that you can attach to a customer object.
-
#email ⇒ Object
Customer’s email address.
-
#expand ⇒ Object
Specifies which fields in the response should be expanded.
-
#individual_name ⇒ Object
The customer’s full name.
-
#invoice_prefix ⇒ Object
The prefix for the customer used to generate unique invoice numbers.
-
#invoice_settings ⇒ Object
Default invoice settings for this customer.
-
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object.
-
#name ⇒ Object
The customer’s full name or business name.
-
#next_invoice_sequence ⇒ Object
The sequence to be used on the customer’s next invoice.
-
#payment_method ⇒ Object
Attribute for param field payment_method.
-
#phone ⇒ Object
The customer’s phone number.
-
#preferred_locales ⇒ Object
Customer’s preferred languages, ordered by preference.
-
#shipping ⇒ Object
The customer’s shipping information.
-
#source ⇒ Object
Attribute for param field source.
-
#tax ⇒ Object
Tax details about the customer.
-
#tax_exempt ⇒ Object
The customer’s tax exemption.
-
#tax_id_data ⇒ Object
The customer’s tax IDs.
-
#test_clock ⇒ Object
ID of the test clock to attach to the customer.
-
#validate ⇒ Object
Attribute for param field validate.
Instance Method Summary collapse
-
#initialize(address: nil, balance: nil, business_name: nil, cash_balance: nil, description: nil, email: nil, expand: nil, individual_name: nil, invoice_prefix: nil, invoice_settings: nil, metadata: nil, name: nil, next_invoice_sequence: nil, payment_method: nil, phone: nil, preferred_locales: nil, shipping: nil, source: nil, tax: nil, tax_exempt: nil, tax_id_data: nil, test_clock: nil, validate: nil) ⇒ CustomerCreateParams
constructor
A new instance of CustomerCreateParams.
Methods inherited from RequestParams
Constructor Details
#initialize(address: nil, balance: nil, business_name: nil, cash_balance: nil, description: nil, email: nil, expand: nil, individual_name: nil, invoice_prefix: nil, invoice_settings: nil, metadata: nil, name: nil, next_invoice_sequence: nil, payment_method: nil, phone: nil, preferred_locales: nil, shipping: nil, source: nil, tax: nil, tax_exempt: nil, tax_id_data: nil, test_clock: nil, validate: nil) ⇒ CustomerCreateParams
Returns a new instance of CustomerCreateParams.
209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'lib/stripe/params/customer_create_params.rb', line 209 def initialize( address: nil, balance: nil, business_name: nil, cash_balance: nil, description: nil, email: nil, expand: nil, individual_name: nil, invoice_prefix: nil, invoice_settings: nil, metadata: nil, name: nil, next_invoice_sequence: nil, payment_method: nil, phone: nil, preferred_locales: nil, shipping: nil, source: nil, tax: nil, tax_exempt: nil, tax_id_data: nil, test_clock: nil, validate: nil ) @address = address @balance = balance @business_name = business_name @cash_balance = cash_balance @description = description @email = email @expand = @individual_name = individual_name @invoice_prefix = invoice_prefix @invoice_settings = invoice_settings @metadata = @name = name @next_invoice_sequence = next_invoice_sequence @payment_method = payment_method @phone = phone @preferred_locales = preferred_locales @shipping = shipping @source = source @tax = tax @tax_exempt = tax_exempt @tax_id_data = tax_id_data @test_clock = test_clock @validate = validate end |
Instance Attribute Details
#address ⇒ Object
The customer’s address.
163 164 165 |
# File 'lib/stripe/params/customer_create_params.rb', line 163 def address @address end |
#balance ⇒ Object
An integer amount in cents (or local equivalent) that represents the customer’s current balance, which affect the customer’s future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
165 166 167 |
# File 'lib/stripe/params/customer_create_params.rb', line 165 def balance @balance end |
#business_name ⇒ Object
The customer’s business name. This may be up to *150 characters*.
167 168 169 |
# File 'lib/stripe/params/customer_create_params.rb', line 167 def business_name @business_name end |
#cash_balance ⇒ Object
Balance information and default balance settings for this customer.
169 170 171 |
# File 'lib/stripe/params/customer_create_params.rb', line 169 def cash_balance @cash_balance end |
#description ⇒ Object
An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
171 172 173 |
# File 'lib/stripe/params/customer_create_params.rb', line 171 def description @description end |
#email ⇒ Object
Customer’s email address. It’s displayed alongside the customer in your dashboard and can be useful for searching and tracking. This may be up to *512 characters*.
173 174 175 |
# File 'lib/stripe/params/customer_create_params.rb', line 173 def email @email end |
#expand ⇒ Object
Specifies which fields in the response should be expanded.
175 176 177 |
# File 'lib/stripe/params/customer_create_params.rb', line 175 def @expand end |
#individual_name ⇒ Object
The customer’s full name. This may be up to *150 characters*.
177 178 179 |
# File 'lib/stripe/params/customer_create_params.rb', line 177 def individual_name @individual_name end |
#invoice_prefix ⇒ Object
The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
179 180 181 |
# File 'lib/stripe/params/customer_create_params.rb', line 179 def invoice_prefix @invoice_prefix end |
#invoice_settings ⇒ Object
Default invoice settings for this customer.
181 182 183 |
# File 'lib/stripe/params/customer_create_params.rb', line 181 def invoice_settings @invoice_settings end |
#metadata ⇒ Object
Set of [key-value pairs](stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to ‘metadata`.
183 184 185 |
# File 'lib/stripe/params/customer_create_params.rb', line 183 def @metadata end |
#name ⇒ Object
The customer’s full name or business name.
185 186 187 |
# File 'lib/stripe/params/customer_create_params.rb', line 185 def name @name end |
#next_invoice_sequence ⇒ Object
The sequence to be used on the customer’s next invoice. Defaults to 1.
187 188 189 |
# File 'lib/stripe/params/customer_create_params.rb', line 187 def next_invoice_sequence @next_invoice_sequence end |
#payment_method ⇒ Object
Attribute for param field payment_method
189 190 191 |
# File 'lib/stripe/params/customer_create_params.rb', line 189 def payment_method @payment_method end |
#phone ⇒ Object
The customer’s phone number.
191 192 193 |
# File 'lib/stripe/params/customer_create_params.rb', line 191 def phone @phone end |
#preferred_locales ⇒ Object
Customer’s preferred languages, ordered by preference.
193 194 195 |
# File 'lib/stripe/params/customer_create_params.rb', line 193 def preferred_locales @preferred_locales end |
#shipping ⇒ Object
The customer’s shipping information. Appears on invoices emailed to this customer.
195 196 197 |
# File 'lib/stripe/params/customer_create_params.rb', line 195 def shipping @shipping end |
#source ⇒ Object
Attribute for param field source
197 198 199 |
# File 'lib/stripe/params/customer_create_params.rb', line 197 def source @source end |
#tax ⇒ Object
Tax details about the customer.
199 200 201 |
# File 'lib/stripe/params/customer_create_params.rb', line 199 def tax @tax end |
#tax_exempt ⇒ Object
The customer’s tax exemption. One of ‘none`, `exempt`, or `reverse`.
201 202 203 |
# File 'lib/stripe/params/customer_create_params.rb', line 201 def tax_exempt @tax_exempt end |
#tax_id_data ⇒ Object
The customer’s tax IDs.
203 204 205 |
# File 'lib/stripe/params/customer_create_params.rb', line 203 def tax_id_data @tax_id_data end |
#test_clock ⇒ Object
ID of the test clock to attach to the customer.
205 206 207 |
# File 'lib/stripe/params/customer_create_params.rb', line 205 def test_clock @test_clock end |
#validate ⇒ Object
Attribute for param field validate
207 208 209 |
# File 'lib/stripe/params/customer_create_params.rb', line 207 def validate @validate end |