Debian Codegraph @

stripe/params/_invoice_update_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import Dict, List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class InvoiceUpdateParams(TypedDict):
8 account_tax_ids: NotRequired["Literal['']|List[str]"]
9 """
10 The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
11 """
12 application_fee_amount: NotRequired[int]
13 """
14 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).
15 """
16 auto_advance: NotRequired[bool]
17 """
18 Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice.
19 """
20 automatic_tax: NotRequired["InvoiceUpdateParamsAutomaticTax"]
21 """
22 Settings for automatic tax lookup for this invoice.
23 """
24 automatically_finalizes_at: NotRequired[int]
25 """
26 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. To turn off automatic finalization, set `auto_advance` to false.
27 """
28 collection_method: NotRequired[
29 Literal["charge_automatically", "send_invoice"]
30 ]
31 """
32 Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices.
33 """
34 custom_fields: NotRequired[
35 "Literal['']|List[InvoiceUpdateParamsCustomField]"
36 ]
37 """
38 A list of up to 4 custom fields to be displayed on the invoice. If a value for `custom_fields` is specified, the list specified will replace the existing custom field list on this invoice. Pass an empty string to remove previously-defined fields.
39 """
40 days_until_due: NotRequired[int]
41 """
42 The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
43 """
44 default_payment_method: NotRequired[str]
45 """
46 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.
47 """
48 default_source: NotRequired["Literal['']|str"]
49 """
50 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.
51 """
52 default_tax_rates: NotRequired["Literal['']|List[str]"]
53 """
54 The tax rates that will apply to any line item that does not have `tax_rates` set. Pass an empty string to remove previously-defined tax rates.
55 """
56 description: NotRequired[str]
57 """
58 An arbitrary string attached to the object. Often useful for displaying to users. Referenced as 'memo' in the Dashboard.
59 """
60 discounts: NotRequired["Literal['']|List[InvoiceUpdateParamsDiscount]"]
61 """
62 The discounts that will apply to the invoice. Pass an empty string to remove previously-defined discounts.
63 """
64 due_date: NotRequired[int]
65 """
66 The date on which payment for this invoice is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
67 """
68 effective_at: NotRequired["Literal['']|int"]
69 """
70 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.
71 """
72 expand: NotRequired[List[str]]
73 """
74 Specifies which fields in the response should be expanded.
75 """
76 footer: NotRequired[str]
77 """
78 Footer to be displayed on the invoice.
79 """
80 issuer: NotRequired["InvoiceUpdateParamsIssuer"]
81 """
82 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
83 """
84 metadata: NotRequired["Literal['']|Dict[str, str]"]
85 """
86 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`.
87 """
88 number: NotRequired["Literal['']|str"]
89 """
90 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.
91 """
92 on_behalf_of: NotRequired["Literal['']|str"]
93 """
94 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.
95 """
96 payment_settings: NotRequired["InvoiceUpdateParamsPaymentSettings"]
97 """
98 Configuration settings for the PaymentIntent that is generated when the invoice is finalized.
99 """
100 rendering: NotRequired["InvoiceUpdateParamsRendering"]
101 """
102 The rendering-related settings that control how the invoice is displayed on customer-facing surfaces such as PDF and Hosted Invoice Page.
103 """
104 shipping_cost: NotRequired["Literal['']|InvoiceUpdateParamsShippingCost"]
105 """
106 Settings for the cost of shipping for this invoice.
107 """
108 shipping_details: NotRequired[
109 "Literal['']|InvoiceUpdateParamsShippingDetails"
110 ]
111 """
112 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.
113 """
114 statement_descriptor: NotRequired[str]
115 """
116 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`.
117 """
118 transfer_data: NotRequired["Literal['']|InvoiceUpdateParamsTransferData"]
119 """
120 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. This will be unset if you POST an empty value.
121 """
122
123
124 class InvoiceUpdateParamsAutomaticTax(TypedDict):
125 enabled: bool
126 """
127 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.
128 """
129 liability: NotRequired["InvoiceUpdateParamsAutomaticTaxLiability"]
130 """
131 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.
132 """
133
134
135 class InvoiceUpdateParamsAutomaticTaxLiability(TypedDict):
136 account: NotRequired[str]
137 """
138 The connected account being referenced when `type` is `account`.
139 """
140 type: Literal["account", "self"]
141 """
142 Type of the account referenced in the request.
143 """
144
145
146 class InvoiceUpdateParamsCustomField(TypedDict):
147 name: str
148 """
149 The name of the custom field. This may be up to 40 characters.
150 """
151 value: str
152 """
153 The value of the custom field. This may be up to 140 characters.
154 """
155
156
157 class InvoiceUpdateParamsDiscount(TypedDict):
158 coupon: NotRequired[str]
159 """
160 ID of the coupon to create a new discount for.
161 """
162 discount: NotRequired[str]
163 """
164 ID of an existing discount on the object (or one of its ancestors) to reuse.
165 """
166 promotion_code: NotRequired[str]
167 """
168 ID of the promotion code to create a new discount for.
169 """
170
171
172 class InvoiceUpdateParamsIssuer(TypedDict):
173 account: NotRequired[str]
174 """
175 The connected account being referenced when `type` is `account`.
176 """
177 type: Literal["account", "self"]
178 """
179 Type of the account referenced in the request.
180 """
181
182
183 class InvoiceUpdateParamsPaymentSettings(TypedDict):
184 default_mandate: NotRequired["Literal['']|str"]
185 """
186 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.
187 """
188 payment_method_options: NotRequired[
189 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions"
190 ]
191 """
192 Payment-method-specific configuration to provide to the invoice's PaymentIntent.
193 """
194 payment_method_types: NotRequired[
195 "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']]"
196 ]
197 """
198 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).
199 """
200
201
202 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptions(TypedDict):
203 acss_debit: NotRequired[
204 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit"
205 ]
206 """
207 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.
208 """
209 bancontact: NotRequired[
210 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact"
211 ]
212 """
213 If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
214 """
215 card: NotRequired[
216 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard"
217 ]
218 """
219 If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
220 """
221 customer_balance: NotRequired[
222 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance"
223 ]
224 """
225 If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
226 """
227 konbini: NotRequired[
228 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini"
229 ]
230 """
231 If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
232 """
233 payto: NotRequired[
234 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPayto"
235 ]
236 """
237 If paying by `payto`, this sub-hash contains details about the PayTo payment method options to pass to the invoice's PaymentIntent.
238 """
239 sepa_debit: NotRequired[
240 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit"
241 ]
242 """
243 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.
244 """
245 us_bank_account: NotRequired[
246 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount"
247 ]
248 """
249 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.
250 """
251
252
253 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebit(
254 TypedDict,
255 ):
256 mandate_options: NotRequired[
257 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions"
258 ]
259 """
260 Additional fields for Mandate creation
261 """
262 verification_method: NotRequired[
263 Literal["automatic", "instant", "microdeposits"]
264 ]
265 """
266 Verification method for the intent
267 """
268
269
270 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsAcssDebitMandateOptions(
271 TypedDict,
272 ):
273 transaction_type: NotRequired[Literal["business", "personal"]]
274 """
275 Transaction type of the mandate.
276 """
277
278
279 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsBancontact(
280 TypedDict,
281 ):
282 preferred_language: NotRequired[Literal["de", "en", "fr", "nl"]]
283 """
284 Preferred language of the Bancontact authorization page that the customer is redirected to.
285 """
286
287
288 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCard(TypedDict):
289 installments: NotRequired[
290 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments"
291 ]
292 """
293 Installment configuration for payments attempted on this invoice.
294
295 For more information, see the [installments integration guide](https://docs.stripe.com/payments/installments).
296 """
297 request_three_d_secure: NotRequired[
298 Literal["any", "automatic", "challenge"]
299 ]
300 """
301 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.
302 """
303
304
305 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallments(
306 TypedDict,
307 ):
308 enabled: NotRequired[bool]
309 """
310 Setting to true enables installments for this invoice.
311 Setting to false will prevent any selected plan from applying to a payment.
312 """
313 plan: NotRequired[
314 "Literal['']|InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan"
315 ]
316 """
317 The selected installment plan to use for this invoice.
318 """
319
320
321 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCardInstallmentsPlan(
322 TypedDict,
323 ):
324 count: NotRequired[int]
325 """
326 For `fixed_count` installment plans, this is required. It represents the number of installment payments your customer will make to their credit card.
327 """
328 interval: NotRequired[Literal["month"]]
329 """
330 For `fixed_count` installment plans, this is required. It represents the interval between installment payments your customer will make to their credit card.
331 One of `month`.
332 """
333 type: Literal["bonus", "fixed_count", "revolving"]
334 """
335 Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
336 """
337
338
339 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalance(
340 TypedDict,
341 ):
342 bank_transfer: NotRequired[
343 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer"
344 ]
345 """
346 Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
347 """
348 funding_type: NotRequired[str]
349 """
350 The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`.
351 """
352
353
354 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransfer(
355 TypedDict,
356 ):
357 eu_bank_transfer: NotRequired[
358 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer"
359 ]
360 """
361 Configuration for eu_bank_transfer funding type.
362 """
363 type: NotRequired[str]
364 """
365 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`.
366 """
367
368
369 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsCustomerBalanceBankTransferEuBankTransfer(
370 TypedDict,
371 ):
372 country: str
373 """
374 The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`.
375 """
376
377
378 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsKonbini(TypedDict):
379 pass
380
381
382 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPayto(TypedDict):
383 mandate_options: NotRequired[
384 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions"
385 ]
386 """
387 Additional fields for Mandate creation.
388 """
389
390
391 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsPaytoMandateOptions(
392 TypedDict,
393 ):
394 amount: NotRequired[int]
395 """
396 The maximum amount that can be collected in a single invoice. If you don't specify a maximum, then there is no limit.
397 """
398 purpose: NotRequired[
399 Literal[
400 "dependant_support",
401 "government",
402 "loan",
403 "mortgage",
404 "other",
405 "pension",
406 "personal",
407 "retail",
408 "salary",
409 "tax",
410 "utility",
411 ]
412 ]
413 """
414 The purpose for which payments are made. Has a default value based on your merchant category code.
415 """
416
417
418 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsSepaDebit(
419 TypedDict,
420 ):
421 pass
422
423
424 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccount(
425 TypedDict,
426 ):
427 financial_connections: NotRequired[
428 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections"
429 ]
430 """
431 Additional fields for Financial Connections Session creation
432 """
433 verification_method: NotRequired[
434 Literal["automatic", "instant", "microdeposits"]
435 ]
436 """
437 Verification method for the intent
438 """
439
440
441 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnections(
442 TypedDict,
443 ):
444 filters: NotRequired[
445 "InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters"
446 ]
447 """
448 Provide filters for the linked accounts that the customer can select for the payment method.
449 """
450 permissions: NotRequired[
451 List[
452 Literal["balances", "ownership", "payment_method", "transactions"]
453 ]
454 ]
455 """
456 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`.
457 """
458 prefetch: NotRequired[
459 List[Literal["balances", "ownership", "transactions"]]
460 ]
461 """
462 List of data features that you would like to retrieve upon account creation.
463 """
464
465
466 class InvoiceUpdateParamsPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsFilters(
467 TypedDict,
468 ):
469 account_subcategories: NotRequired[List[Literal["checking", "savings"]]]
470 """
471 The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
472 """
473
474
475 class InvoiceUpdateParamsRendering(TypedDict):
476 amount_tax_display: NotRequired[
477 "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
478 ]
479 """
480 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.
481 """
482 pdf: NotRequired["InvoiceUpdateParamsRenderingPdf"]
483 """
484 Invoice pdf rendering options
485 """
486 template: NotRequired[str]
487 """
488 ID of the invoice rendering template to use for this invoice.
489 """
490 template_version: NotRequired["Literal['']|int"]
491 """
492 The specific version of invoice rendering template to use for this invoice.
493 """
494
495
496 class InvoiceUpdateParamsRenderingPdf(TypedDict):
497 page_size: NotRequired[Literal["a4", "auto", "letter"]]
498 """
499 Page size for invoice PDF. Can be set to `a4`, `letter`, or `auto`.
500 If set to `auto`, invoice PDF page size defaults to `a4` for customers with
501 Japanese locale and `letter` for customers with other locales.
502 """
503
504
505 class InvoiceUpdateParamsShippingCost(TypedDict):
506 shipping_rate: NotRequired[str]
507 """
508 The ID of the shipping rate to use for this order.
509 """
510 shipping_rate_data: NotRequired[
511 "InvoiceUpdateParamsShippingCostShippingRateData"
512 ]
513 """
514 Parameters to create a new ad-hoc shipping rate for this order.
515 """
516
517
518 class InvoiceUpdateParamsShippingCostShippingRateData(TypedDict):
519 delivery_estimate: NotRequired[
520 "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimate"
521 ]
522 """
523 The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
524 """
525 display_name: str
526 """
527 The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
528 """
529 fixed_amount: NotRequired[
530 "InvoiceUpdateParamsShippingCostShippingRateDataFixedAmount"
531 ]
532 """
533 Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
534 """
535 metadata: NotRequired[Dict[str, str]]
536 """
537 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`.
538 """
539 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
540 """
541 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
542 """
543 tax_code: NotRequired[str]
544 """
545 A [tax code](https://docs.stripe.com/tax/tax-categories) ID. The Shipping tax code is `txcd_92010001`.
546 """
547 type: NotRequired[Literal["fixed_amount"]]
548 """
549 The type of calculation to use on the shipping rate.
550 """
551
552
553 class InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimate(
554 TypedDict,
555 ):
556 maximum: NotRequired[
557 "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum"
558 ]
559 """
560 The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
561 """
562 minimum: NotRequired[
563 "InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum"
564 ]
565 """
566 The lower bound of the estimated range. If empty, represents no lower bound.
567 """
568
569
570 class InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMaximum(
571 TypedDict,
572 ):
573 unit: Literal["business_day", "day", "hour", "month", "week"]
574 """
575 A unit of time.
576 """
577 value: int
578 """
579 Must be greater than 0.
580 """
581
582
583 class InvoiceUpdateParamsShippingCostShippingRateDataDeliveryEstimateMinimum(
584 TypedDict,
585 ):
586 unit: Literal["business_day", "day", "hour", "month", "week"]
587 """
588 A unit of time.
589 """
590 value: int
591 """
592 Must be greater than 0.
593 """
594
595
596 class InvoiceUpdateParamsShippingCostShippingRateDataFixedAmount(TypedDict):
597 amount: int
598 """
599 A non-negative integer in cents representing how much to charge.
600 """
601 currency: str
602 """
603 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).
604 """
605 currency_options: NotRequired[
606 Dict[
607 str,
608 "InvoiceUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions",
609 ]
610 ]
611 """
612 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).
613 """
614
615
616 class InvoiceUpdateParamsShippingCostShippingRateDataFixedAmountCurrencyOptions(
617 TypedDict,
618 ):
619 amount: int
620 """
621 A non-negative integer in cents representing how much to charge.
622 """
623 tax_behavior: NotRequired[Literal["exclusive", "inclusive", "unspecified"]]
624 """
625 Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
626 """
627
628
629 class InvoiceUpdateParamsShippingDetails(TypedDict):
630 address: "InvoiceUpdateParamsShippingDetailsAddress"
631 """
632 Shipping address
633 """
634 name: str
635 """
636 Recipient name.
637 """
638 phone: NotRequired["Literal['']|str"]
639 """
640 Recipient phone (including extension)
641 """
642
643
644 class InvoiceUpdateParamsShippingDetailsAddress(TypedDict):
645 city: NotRequired[str]
646 """
647 City, district, suburb, town, or village.
648 """
649 country: NotRequired[str]
650 """
651 Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
652 """
653 line1: NotRequired[str]
654 """
655 Address line 1, such as the street, PO Box, or company name.
656 """
657 line2: NotRequired[str]
658 """
659 Address line 2, such as the apartment, suite, unit, or building.
660 """
661 postal_code: NotRequired[str]
662 """
663 ZIP or postal code.
664 """
665 state: NotRequired[str]
666 """
667 State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)).
668 """
669
670
671 class InvoiceUpdateParamsTransferData(TypedDict):
672 amount: NotRequired[int]
673 """
674 The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred.
675 """
676 destination: str
677 """
678 ID of an existing, connected Stripe account.
679 """