Debian Codegraph @

stripe/params/_invoice_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 InvoiceCreateParams(RequestOptions):
9 account_tax_ids: NotRequired["Literal['']|List[str]"]
10 """
11 The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
12 """
13 application_fee_amount: NotRequired[int]
14 """
15 A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
16 """
17 auto_advance: NotRequired[bool]
18 """
19 Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action. Defaults to false.
20 """
21 automatic_tax: NotRequired["InvoiceCreateParamsAutomaticTax"]
22 """
23 Settings for automatic tax lookup for this invoice.
24 """
25 automatically_finalizes_at: NotRequired[int]
26 """
27 The time when this invoice should be scheduled to finalize (up to 5 years in the future). The invoice is finalized at this time if it's still in draft state.
28 """
29 collection_method: NotRequired[
30 Literal["charge_automatically", "send_invoice"]
31 ]
32 """
33 Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`.
34 """
35 currency: NotRequired[str]
36 """
37 The currency to create this invoice in. Defaults to that of `customer` if not specified.
38 """
39 custom_fields: NotRequired[
40 "Literal['']|List[InvoiceCreateParamsCustomField]"
41 ]
42 """
43 A list of up to 4 custom fields to be displayed on the invoice.
44 """
45 customer: NotRequired[str]
46 """
47 The ID of the customer to bill.
48 """
49 customer_account: NotRequired[str]
50 """
51 The ID of the account to bill.
52 """
53 days_until_due: NotRequired[int]
54 """
55 The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
56 """
57 default_payment_method: NotRequired[str]
58 """
59 ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
60 """
61 default_source: NotRequired[str]
62 """
63 ID of the default payment source for the invoice. It must belong to the customer associated with the invoice and be in a chargeable state. If not set, defaults to the subscription's default source, if any, or to the customer's default source.
64 """
65 default_tax_rates: NotRequired[List[str]]
66 """
67 The tax rates that will apply to any line item that does not have `tax_rates` set.
68 """
69 description: NotRequired[str]
70 """
71 An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
72 """
73 discounts: NotRequired["Literal['']|List[InvoiceCreateParamsDiscount]"]
74 """
75 The coupons and promotion codes to redeem into discounts for the invoice. If not specified, inherits the discount from the invoice's customer. Pass an empty string to avoid inheriting any discounts.
76 """
77 due_date: NotRequired[int]
78 """
79 The date on which payment for this invoice is due. Valid only for invoices where `collection_method=send_invoice`.
80 """
81 effective_at: NotRequired[int]
82 """
83 The date when this invoice is in effect. Same as `finalized_at` unless overwritten. When defined, this value replaces the system-generated 'Date of issue' printed on the invoice PDF and receipt.
84 """
85 expand: NotRequired[List[str]]
86 """
87 Specifies which fields in the response should be expanded.
88 """
89 footer: NotRequired[str]
90 """
91 Footer to be displayed on the invoice.
92 """
93 from_invoice: NotRequired["InvoiceCreateParamsFromInvoice"]
94 """
95 Revise an existing invoice. The new invoice will be created in `status=draft`. See the [revision documentation](https://docs.stripe.com/invoicing/invoice-revisions) for more details.
96 """
97 issuer: NotRequired["InvoiceCreateParamsIssuer"]
98 """
99 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
100 """
101 metadata: NotRequired["Literal['']|Dict[str, str]"]
102 """
103 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`.
104 """
105 number: NotRequired[str]
106 """
107 Set the number for this invoice. If no number is present then a number will be assigned automatically when the invoice is finalized. In many markets, regulations require invoices to be unique, sequential and / or gapless. You are responsible for ensuring this is true across all your different invoicing systems in the event that you edit the invoice number using our API. If you use only Stripe for your invoices and do not change invoice numbers, Stripe handles this aspect of compliance for you automatically.
108 """
109 on_behalf_of: NotRequired[str]
110 """
111 The account (if any) for which the funds of the invoice payment are intended. If set, the invoice will be presented with the branding and support information of the specified account. See the [Invoices with Connect](https://docs.stripe.com/billing/invoices/connect) documentation for details.
112 """
113 payment_settings: NotRequired["InvoiceCreateParamsPaymentSettings"]
114 """
115 Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
116 """
117 pending_invoice_items_behavior: NotRequired[Literal["exclude", "include"]]
118 """
119 How to handle pending invoice items on invoice creation. Defaults to `exclude` if the parameter is omitted.
120 """
121 rendering: NotRequired["InvoiceCreateParamsRendering"]
122 """
123 The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
124 """
125 shipping_cost: NotRequired["InvoiceCreateParamsShippingCost"]
126 """
127 Settings for the cost of shipping for this invoice.
128 """
129 shipping_details: NotRequired["InvoiceCreateParamsShippingDetails"]
130 """
131 Shipping details for the invoice. The Invoice PDF will use the `shipping_details` value if it is set, otherwise the PDF will render the shipping address from the customer.
132 """
133 statement_descriptor: NotRequired[str]
134 """
135 Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default `statement_descriptor` will be set to the first subscription item's product's `statement_descriptor`.
136 """
137 subscription: NotRequired[str]
138 """
139 The ID of the subscription to invoice, if any. If set, the created invoice will only include pending invoice items for that subscription. The subscription's billing cycle and regular subscription events won't be affected.
140 """
141 transfer_data: NotRequired["InvoiceCreateParamsTransferData"]
142 """
143 If specified, the funds from the invoice will be transferred to the destination and the ID of the resulting transfer will be found on the invoice's charge.
144 """
145
146
147 class InvoiceCreateParamsAutomaticTax(TypedDict):
148 enabled: bool
149 """
150 Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
151 """
152 liability: NotRequired["InvoiceCreateParamsAutomaticTaxLiability"]
153 """
154 The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
155 """
156
157
158 class InvoiceCreateParamsAutomaticTaxLiability(TypedDict):
159 account: NotRequired[str]
160 """
161 The connected account being referenced when `type` is `account`.
162 """
163 type: Literal["account", "self"]
164 """
165 Type of the account referenced in the request.
166 """
167
168
169 class InvoiceCreateParamsCustomField(TypedDict):
170 name: str
171 """
172 The name of the custom field. This may be up to 40 characters.
173 """
174 value: str
175 """
176 The value of the custom field. This may be up to 140 characters.
177 """
178
179
180 class InvoiceCreateParamsDiscount(TypedDict):
181 coupon: NotRequired[str]
182 """
183 ID of the coupon to create a new discount for.
184 """
185 discount: NotRequired[str]
186 """
187 ID of an existing discount on the object (or one of its ancestors) to reuse.
188 """
189 promotion_code: NotRequired[str]
190 """
191 ID of the promotion code to create a new discount for.
192 """
193
194
195 class InvoiceCreateParamsFromInvoice(TypedDict):
196 action: Literal["revision"]
197 """
198 The relation between the new invoice and the original invoice. Currently, only 'revision' is permitted
199 """
200 invoice: str
201 """
202 The `id` of the invoice that will be cloned.
203 """
204
205
206 class InvoiceCreateParamsIssuer(TypedDict):
207 account: NotRequired[str]
208 """
209 The connected account being referenced when `type` is `account`.
210 """
211 type: Literal["account", "self"]
212 """
213 Type of the account referenced in the request.
214 """
215
216
217 class InvoiceCreateParamsPaymentSettings(TypedDict):
218 default_mandate: NotRequired["Literal['']|str"]
219 """
220 ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
221 """
222 payment_method_options: NotRequired[
223 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptions"
224 ]
225 """
226 Payment-method-specific configuration to provide to the invoice's PaymentIntent.
227 """
228 payment_method_types: NotRequired[
229 "Literal['']|List[Literal['ach_credit_transfer', 'ach_debit', 'acss_debit', 'affirm', 'amazon_pay', 'au_becs_debit', 'bacs_debit', 'bancontact', 'boleto', 'card', 'cashapp', 'crypto', 'custom', 'customer_balance', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'jp_credit_transfer', 'kakao_pay', 'klarna', 'konbini', 'kr_card', 'link', 'multibanco', 'naver_pay', 'nz_bank_account', 'p24', 'pay_by_bank', 'payco', 'paynow', 'paypal', 'payto', 'promptpay', 'revolut_pay', 'sepa_credit_transfer', 'sepa_debit', 'sofort', 'swish', 'us_bank_account', 'wechat_pay']]"
230 ]
231 """
232 The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice).
233 """
234
235
236 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
237 acss_debit: NotRequired[
238 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit"
239 ]
240 """
241 If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
242 """
243 bancontact: NotRequired[
244 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact"
245 ]
246 """
247 If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
248 """
249 card: NotRequired[
250 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard"
251 ]
252 """
253 If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
254 """
255 customer_balance: NotRequired[
256 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance"
257 ]
258 """
259 If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
260 """
261 konbini: NotRequired[
262 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini"
263 ]
264 """
265 If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
266 """
267 payto: NotRequired[
268 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPayto"
269 ]
270 """
271 If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
272 """
273 sepa_debit: NotRequired[
274 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
275 ]
276 """
277 If paying by `sepa_debit`, this sub-hash contains details about the SEPA Direct Debit payment method options to pass to the invoice's PaymentIntent.
278 """
279 us_bank_account: NotRequired[
280 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
281 ]
282 """
283 If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
284 """
285
286
287 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebit(
288 TypedDict,
289 ):
290 mandate_options: NotRequired[
291 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions"
292 ]
293 """
294 Additional fields for Mandate creation
295 """
296 verification_method: NotRequired[
297 Literal["automatic", "instant", "microdeposits"]
298 ]
299 """
300 Verification method for the intent
301 """
302
303
304 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions(
305 TypedDict,
306 ):
307 transaction_type: NotRequired[Literal["business", "personal"]]
308 """
309 Transaction type of the mandate.
310 """
311
312
313 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsBancontact(
314 TypedDict,
315 ):
316 preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
317 """
318 Preferred language of the Bancontact authorization page that the customer is redirected to.
319 """
320
321
322 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
323 installments: NotRequired[
324 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments"
325 ]
326 """
327 Installment configuration for payments attempted on this invoice.
328
329 For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
330 """
331 request_three_d_secure: NotRequired[
332 Literal["any", "automatic", "challenge"]
333 ]
334 """
335 We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
336 """
337
338
339 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallments(
340 TypedDict,
341 ):
342 enabled: NotRequired[bool]
343 """
344 Setting to true enables installments for this invoice.
345 Setting to false will prevent any selected plan from applying to a payment.
346 """
347 plan: NotRequired[
348 "Literal['']|InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan"
349 ]
350 """
351 The selected installment plan to use for this invoice.
352 """
353
354
355 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan(
356 TypedDict,
357 ):
358 count: NotRequired[int]
359 """
360 For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
361 """
362 interval: NotRequired[Literal["month"]]
363 """
364 For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
365 One of `month`.
366 """
367 type: Literal["bonus", "fixed_count", "revolving"]
368 """
369 Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
370 """
371
372
373 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance(
374 TypedDict,
375 ):
376 bank_transfer: NotRequired[
377 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer"
378 ]
379 """
380 Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
381 """
382 funding_type: NotRequired[str]
383 """
384 The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
385 """
386
387
388 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer(
389 TypedDict,
390 ):
391 eu_bank_transfer: NotRequired[
392 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
393 ]
394 """
395 Configuration for eu_bank_transfer funding type.
396 """
397 type: NotRequired[str]
398 """
399 The bank transfer type that can be used for funding. Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`.
400 """
401
402
403 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
404 TypedDict,
405 ):
406 country: str
407 """
408 The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
409 """
410
411
412 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsKonbini(TypedDict):
413 pass
414
415
416 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPayto(TypedDict):
417 mandate_options: NotRequired[
418 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions"
419 ]
420 """
421 Additional fields for Mandate creation.
422 """
423
424
425 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions(
426 TypedDict,
427 ):
428 amount: NotRequired[int]
429 """
430 The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
431 """
432 purpose: NotRequired[
433 Literal[
434 "dependant_support",
435 "government",
436 "loan",
437 "mortgage",
438 "other",
439 "pension",
440 "personal",
441 "retail",
442 "salary",
443 "tax",
444 "utility",
445 ]
446 ]
447 """
448 The purpose for which payments are made. Has a default value based on your merchant category code.
449 """
450
451
452 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
453 TypedDict,
454 ):
455 pass
456
457
458 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
459 TypedDict,
460 ):
461 financial_connections: NotRequired[
462 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections"
463 ]
464 """
465 Additional fields for Financial Connections Session creation
466 """
467 verification_method: NotRequired[
468 Literal["automatic", "instant", "microdeposits"]
469 ]
470 """
471 Verification method for the intent
472 """
473
474
475 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections(
476 TypedDict,
477 ):
478 filters: NotRequired[
479 "InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
480 ]
481 """
482 Provide filters for the linked accounts that the customer can select for the payment method.
483 """
484 permissions: NotRequired[
485 List[
486 Literal["balances", "ownership", "payment_method", "transactions"]
487 ]
488 ]
489 """
490 The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
491 """
492 prefetch: NotRequired[
493 List[Literal["balances", "ownership", "transactions"]]
494 ]
495 """
496 List of data features that you would like to retrieve upon account creation.
497 """
498
499
500 class InvoiceCreateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
501 TypedDict,
502 ):
503 account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
504 """
505 The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
506 """
507
508
509 class InvoiceCreateParamsRendering(TypedDict):
510 amount_tax_display: NotRequired[
511 "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
512 ]
513 """
514 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.
515 """
516 pdf: NotRequired["InvoiceCreateParamsRenderingPdf"]
517 """
518 Invoice pdf rendering options
519 """
520 template: NotRequired[str]
521 """
522 ID of the invoice rendering template to use for this invoice.
523 """
524 template_version: NotRequired["Literal['']|int"]
525 """
526 The specific version of invoice rendering template to use for this invoice.
527 """
528
529
530 class InvoiceCreateParamsRenderingPdf(TypedDict):
531 page_size: NotRequired[Literal["a4", "auto", "letter"]]
532 """
533 Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`.
534 If set to `auto`, invoice PDF page size defaults to `a4` for customers with
535 Japanese locale and `letter` for customers with other locales.
536 """
537
538
539 class InvoiceCreateParamsShippingCost(TypedDict):
540 shipping_rate: NotRequired[str]
541 """
542 The ID of the shipping rate to use for this order.
543 """
544 shipping_rate_data: NotRequired[
545 "InvoiceCreateParamsShippingCostShippingRateData"
546 ]
547 """
548 Parameters to create a new ad-hoc shipping rate for this order.
549 """
550
551
552 class InvoiceCreateParamsShippingCostShippingRateData(TypedDict):
553 delivery_estimate: NotRequired[
554 "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimate"
555 ]
556 """
557 The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
558 """
559 display_name: str
560 """
561 The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
562 """
563 fixed_amount: NotRequired[
564 "InvoiceCreateParamsShippingCostShippingRateDataFixedAmount"
565 ]
566 """
567 Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
568 """
569 metadata: NotRequired[Dict[str, str]]
570 """
571 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`.
572 """
573 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
574 """
575 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
576 """
577 tax_code: NotRequired[str]
578 """
579 A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
580 """
581 type: NotRequired[Literal["fixed_amount"]]
582 """
583 The type of calculation to use on the shipping rate.
584 """
585
586
587 class InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimate(
588 TypedDict,
589 ):
590 maximum: NotRequired[
591 "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum"
592 ]
593 """
594 The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
595 """
596 minimum: NotRequired[
597 "InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum"
598 ]
599 """
600 The lower bound of the estimated range. If empty, represents no lower bound.
601 """
602
603
604 class InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMaximum(
605 TypedDict,
606 ):
607 unit: Literal["business_day", "day", "hour", "month", "week"]
608 """
609 A unit of time.
610 """
611 value: int
612 """
613 Must be greater than 0.
614 """
615
616
617 class InvoiceCreateParamsShippingCostShippingRateDataDeliveryEstimateMinimum(
618 TypedDict,
619 ):
620 unit: Literal["business_day", "day", "hour", "month", "week"]
621 """
622 A unit of time.
623 """
624 value: int
625 """
626 Must be greater than 0.
627 """
628
629
630 class InvoiceCreateParamsShippingCostShippingRateDataFixedAmount(TypedDict):
631 amount: int
632 """
633 A non-negative integer in cents representing how much to charge.
634 """
635 currency: str
636 """
637 Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
638 """
639 currency_options: NotRequired[
640 Dict[
641 str,
642 "InvoiceCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions",
643 ]
644 ]
645 """
646 Shipping rates defined in each available currency option. Each key must be a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) and a [supported currency](https://stripe.com/docs/currencies).
647 """
648
649
650 class InvoiceCreateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
651 TypedDict,
652 ):
653 amount: int
654 """
655 A non-negative integer in cents representing how much to charge.
656 """
657 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
658 """
659 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
660 """
661
662
663 class InvoiceCreateParamsShippingDetails(TypedDict):
664 address: "InvoiceCreateParamsShippingDetailsAddress"
665 """
666 Shipping address
667 """
668 name: str
669 """
670 Recipient name.
671 """
672 phone: NotRequired["Literal['']|str"]
673 """
674 Recipient phone (including extension)
675 """
676
677
678 class InvoiceCreateParamsShippingDetailsAddress(TypedDict):
679 city: NotRequired[str]
680 """
681 City, district, suburb, town, or village.
682 """
683 country: NotRequired[str]
684 """
685 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
686 """
687 line1: NotRequired[str]
688 """
689 Address line 1, such as the street, PO Box, or company name.
690 """
691 line2: NotRequired[str]
692 """
693 Address line 2, such as the apartment, suite, unit, or building.
694 """
695 postal_code: NotRequired[str]
696 """
697 ZIP or postal code.
698 """
699 state: NotRequired[str]
700 """
701 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
702 """
703
704
705 class InvoiceCreateParamsTransferData(TypedDict):
706 amount: NotRequired[int]
707 """
708 The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred.
709 """
710 destination: str
711 """
712 ID of an existing, connected Stripe account.
713 """