Debian Codegraph @

stripe/params/_customer_create_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from stripe._request_options import RequestOptions
4 from typing import Dict, List
5 from typing_extensions import Literal, NotRequired, TypedDict
6
7
8 class CustomerCreateParams(RequestOptions):
9 address: NotRequired["Literal['']|CustomerCreateParamsAddress"]
10 """
11 The customer's address. Learn about [country-specific requirements for calculating tax](https://docs.stripe.com/invoicing/taxes?dashboard-or-api=dashboard#set-up-customer).
12 """
13 balance: NotRequired[int]
14 """
15 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.
16 """
17 business_name: NotRequired["Literal['']|str"]
18 """
19 The customer's business name. This may be up to *150 characters*.
20 """
21 cash_balance: NotRequired["CustomerCreateParamsCashBalance"]
22 """
23 Balance information and default balance settings for this customer.
24 """
25 description: NotRequired[str]
26 """
27 An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
28 """
29 email: NotRequired[str]
30 """
31 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*.
32 """
33 expand: NotRequired[List[str]]
34 """
35 Specifies which fields in the response should be expanded.
36 """
37 individual_name: NotRequired["Literal['']|str"]
38 """
39 The customer's full name. This may be up to *150 characters*.
40 """
41 invoice_prefix: NotRequired[str]
42 """
43 The prefix for the customer used to generate unique invoice numbers. Must be 3–12 uppercase letters or numbers.
44 """
45 invoice_settings: NotRequired["CustomerCreateParamsInvoiceSettings"]
46 """
47 Default invoice settings for this customer.
48 """
49 metadata: NotRequired["Literal['']|Dict[str, str]"]
50 """
51 Set of [key-value pairs](https://docs.stripe.com/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`.
52 """
53 name: NotRequired[str]
54 """
55 The customer's full name or business name.
56 """
57 next_invoice_sequence: NotRequired[int]
58 """
59 The sequence to be used on the customer's next invoice. Defaults to 1.
60 """
61 payment_method: NotRequired[str]
62 phone: NotRequired[str]
63 """
64 The customer's phone number.
65 """
66 preferred_locales: NotRequired[List[str]]
67 """
68 Customer's preferred languages, ordered by preference.
69 """
70 shipping: NotRequired["Literal['']|CustomerCreateParamsShipping"]
71 """
72 The customer's shipping information. Appears on invoices emailed to this customer.
73 """
74 source: NotRequired[str]
75 tax: NotRequired["CustomerCreateParamsTax"]
76 """
77 Tax details about the customer.
78 """
79 tax_exempt: NotRequired["Literal['']|Literal['exempt', 'none', 'reverse']"]
80 """
81 The customer's tax exemption. One of `none`, `exempt`, or `reverse`.
82 """
83 tax_id_data: NotRequired[List["CustomerCreateParamsTaxIdDatum"]]
84 """
85 The customer's tax IDs.
86 """
87 test_clock: NotRequired[str]
88 """
89 ID of the test clock to attach to the customer.
90 """
91 validate: NotRequired[bool]
92
93
94 class CustomerCreateParamsAddress(TypedDict):
95 city: NotRequired[str]
96 """
97 City, district, suburb, town, or village.
98 """
99 country: NotRequired[str]
100 """
101 A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
102 """
103 line1: NotRequired[str]
104 """
105 Address line 1, such as the street, PO Box, or company name.
106 """
107 line2: NotRequired[str]
108 """
109 Address line 2, such as the apartment, suite, unit, or building.
110 """
111 postal_code: NotRequired[str]
112 """
113 ZIP or postal code.
114 """
115 state: NotRequired[str]
116 """
117 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
118 """
119
120
121 class CustomerCreateParamsCashBalance(TypedDict):
122 settings: NotRequired["CustomerCreateParamsCashBalanceSettings"]
123 """
124 Settings controlling the behavior of the customer's cash balance,
125 such as reconciliation of funds received.
126 """
127
128
129 class CustomerCreateParamsCashBalanceSettings(TypedDict):
130 reconciliation_mode: NotRequired[
131 Literal["automatic", "manual", "merchant_default"]
132 ]
133 """
134 Controls how funds transferred by the customer are applied to payment intents and invoices. Valid options are `automatic`, `manual`, or `merchant_default`. For more information about these reconciliation modes, see [Reconciliation](https://docs.stripe.com/payments/customer-balance/reconciliation).
135 """
136
137
138 class CustomerCreateParamsInvoiceSettings(TypedDict):
139 custom_fields: NotRequired[
140 "Literal['']|List[CustomerCreateParamsInvoiceSettingsCustomField]"
141 ]
142 """
143 The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields.
144 """
145 default_payment_method: NotRequired[str]
146 """
147 ID of a payment method that's attached to the customer, to be used as the customer's default payment method for subscriptions and invoices.
148 """
149 footer: NotRequired[str]
150 """
151 Default footer to be displayed on invoices for this customer.
152 """
153 rendering_options: NotRequired[
154 "Literal['']|CustomerCreateParamsInvoiceSettingsRenderingOptions"
155 ]
156 """
157 Default options for invoice PDF rendering for this customer.
158 """
159
160
161 class CustomerCreateParamsInvoiceSettingsCustomField(TypedDict):
162 name: str
163 """
164 The name of the custom field. This may be up to 40 characters.
165 """
166 value: str
167 """
168 The value of the custom field. This may be up to 140 characters.
169 """
170
171
172 class CustomerCreateParamsInvoiceSettingsRenderingOptions(TypedDict):
173 amount_tax_display: NotRequired[
174 "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
175 ]
176 """
177 How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts.
178 """
179 template: NotRequired[str]
180 """
181 ID of the invoice rendering template to use for future invoices.
182 """
183
184
185 class CustomerCreateParamsShipping(TypedDict):
186 address: "CustomerCreateParamsShippingAddress"
187 """
188 Customer shipping address.
189 """
190 name: str
191 """
192 Customer name.
193 """
194 phone: NotRequired[str]
195 """
196 Customer phone (including extension).
197 """
198
199
200 class CustomerCreateParamsShippingAddress(TypedDict):
201 city: NotRequired[str]
202 """
203 City, district, suburb, town, or village.
204 """
205 country: NotRequired[str]
206 """
207 A freeform text field for the country. However, in order to activate some tax features, the format should be a two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
208 """
209 line1: NotRequired[str]
210 """
211 Address line 1, such as the street, PO Box, or company name.
212 """
213 line2: NotRequired[str]
214 """
215 Address line 2, such as the apartment, suite, unit, or building.
216 """
217 postal_code: NotRequired[str]
218 """
219 ZIP or postal code.
220 """
221 state: NotRequired[str]
222 """
223 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
224 """
225
226
227 class CustomerCreateParamsTax(TypedDict):
228 ip_address: NotRequired["Literal['']|str"]
229 """
230 A recent IP address of the customer used for tax reporting and tax location inference. Stripe recommends updating the IP address when a new PaymentMethod is attached or the address field on the customer is updated. We recommend against updating this field more frequently since it could result in unexpected tax location/reporting outcomes.
231 """
232 validate_location: NotRequired[Literal["deferred", "immediately"]]
233 """
234 A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`.
235 """
236
237
238 class CustomerCreateParamsTaxIdDatum(TypedDict):
239 type: Literal[
240 "ad_nrt",
241 "ae_trn",
242 "al_tin",
243 "am_tin",
244 "ao_tin",
245 "ar_cuit",
246 "au_abn",
247 "au_arn",
248 "aw_tin",
249 "az_tin",
250 "ba_tin",
251 "bb_tin",
252 "bd_bin",
253 "bf_ifu",
254 "bg_uic",
255 "bh_vat",
256 "bj_ifu",
257 "bo_tin",
258 "br_cnpj",
259 "br_cpf",
260 "bs_tin",
261 "by_tin",
262 "ca_bn",
263 "ca_gst_hst",
264 "ca_pst_bc",
265 "ca_pst_mb",
266 "ca_pst_sk",
267 "ca_qst",
268 "cd_nif",
269 "ch_uid",
270 "ch_vat",
271 "cl_tin",
272 "cm_niu",
273 "cn_tin",
274 "co_nit",
275 "cr_tin",
276 "cv_nif",
277 "de_stn",
278 "do_rcn",
279 "ec_ruc",
280 "eg_tin",
281 "es_cif",
282 "et_tin",
283 "eu_oss_vat",
284 "eu_vat",
285 "gb_vat",
286 "ge_vat",
287 "gn_nif",
288 "hk_br",
289 "hr_oib",
290 "hu_tin",
291 "id_npwp",
292 "il_vat",
293 "in_gst",
294 "is_vat",
295 "jp_cn",
296 "jp_rn",
297 "jp_trn",
298 "ke_pin",
299 "kg_tin",
300 "kh_tin",
301 "kr_brn",
302 "kz_bin",
303 "la_tin",
304 "li_uid",
305 "li_vat",
306 "lk_vat",
307 "ma_vat",
308 "md_vat",
309 "me_pib",
310 "mk_vat",
311 "mr_nif",
312 "mx_rfc",
313 "my_frp",
314 "my_itn",
315 "my_sst",
316 "ng_tin",
317 "no_vat",
318 "no_voec",
319 "np_pan",
320 "nz_gst",
321 "om_vat",
322 "pe_ruc",
323 "ph_tin",
324 "pl_nip",
325 "ro_tin",
326 "rs_pib",
327 "ru_inn",
328 "ru_kpp",
329 "sa_vat",
330 "sg_gst",
331 "sg_uen",
332 "si_tin",
333 "sn_ninea",
334 "sr_fin",
335 "sv_nit",
336 "th_vat",
337 "tj_tin",
338 "tr_tin",
339 "tw_vat",
340 "tz_vat",
341 "ua_vat",
342 "ug_tin",
343 "us_ein",
344 "uy_ruc",
345 "uz_tin",
346 "uz_vat",
347 "ve_rif",
348 "vn_tin",
349 "za_vat",
350 "zm_tin",
351 "zw_tin",
352 ]
353 """
354 Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `aw_tin`, `az_tin`, `ba_tin`, `bb_tin`, `bd_bin`, `bf_ifu`, `bg_uic`, `bh_vat`, `bj_ifu`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cm_niu`, `cn_tin`, `co_nit`, `cr_tin`, `cv_nif`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `et_tin`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kg_tin`, `kh_tin`, `kr_brn`, `kz_bin`, `la_tin`, `li_uid`, `li_vat`, `lk_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `pl_nip`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`
355 """
356 value: str
357 """
358 Value of the tax ID.
359 """