Debian Codegraph @

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