Debian Codegraph @

stripe/params/_payment_link_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 PaymentLinkUpdateParams(TypedDict):
8 active: NotRequired[bool]
9 """
10 Whether the payment link's `url` is active. If `false`, customers visiting the URL will be shown a page saying that the link has been deactivated.
11 """
12 after_completion: NotRequired["PaymentLinkUpdateParamsAfterCompletion"]
13 """
14 Behavior after the purchase is complete.
15 """
16 allow_promotion_codes: NotRequired[bool]
17 """
18 Enables user redeemable promotion codes.
19 """
20 automatic_tax: NotRequired["PaymentLinkUpdateParamsAutomaticTax"]
21 """
22 Configuration for automatic tax collection.
23 """
24 billing_address_collection: NotRequired[Literal["auto", "required"]]
25 """
26 Configuration for collecting the customer's billing address. Defaults to `auto`.
27 """
28 custom_fields: NotRequired[
29 "Literal['']|List[PaymentLinkUpdateParamsCustomField]"
30 ]
31 """
32 Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`.
33 """
34 custom_text: NotRequired["PaymentLinkUpdateParamsCustomText"]
35 """
36 Display additional text for your customers using custom text. You can't set this parameter if `ui_mode` is `custom`.
37 """
38 customer_creation: NotRequired[Literal["always", "if_required"]]
39 """
40 Configures whether [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link create a [Customer](https://docs.stripe.com/api/customers).
41 """
42 expand: NotRequired[List[str]]
43 """
44 Specifies which fields in the response should be expanded.
45 """
46 inactive_message: NotRequired["Literal['']|str"]
47 """
48 The custom message to be displayed to a customer when a payment link is no longer active.
49 """
50 invoice_creation: NotRequired["PaymentLinkUpdateParamsInvoiceCreation"]
51 """
52 Generate a post-purchase Invoice for one-time payments.
53 """
54 line_items: NotRequired[List["PaymentLinkUpdateParamsLineItem"]]
55 """
56 The line items representing what is being sold. Each line item represents an item being sold. Up to 20 line items are supported.
57 """
58 metadata: NotRequired[Dict[str, str]]
59 """
60 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`. Metadata associated with this Payment Link will automatically be copied to [checkout sessions](https://docs.stripe.com/api/checkout/sessions) created by this payment link.
61 """
62 name_collection: NotRequired[
63 "Literal['']|PaymentLinkUpdateParamsNameCollection"
64 ]
65 """
66 Controls settings applied for collecting the customer's name.
67 """
68 optional_items: NotRequired[
69 "Literal['']|List[PaymentLinkUpdateParamsOptionalItem]"
70 ]
71 """
72 A list of optional items the customer can add to their order at checkout. Use this parameter to pass one-time or recurring [Prices](https://docs.stripe.com/api/prices).
73 There is a maximum of 10 optional items allowed on a payment link, and the existing limits on the number of line items allowed on a payment link apply to the combined number of line items and optional items.
74 There is a maximum of 20 combined line items and optional items.
75 """
76 payment_intent_data: NotRequired[
77 "PaymentLinkUpdateParamsPaymentIntentData"
78 ]
79 """
80 A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
81 """
82 payment_method_collection: NotRequired[Literal["always", "if_required"]]
83 """
84 Specify whether Checkout should collect a payment method. When set to `if_required`, Checkout will not collect a payment method when the total due for the session is 0.This may occur if the Checkout Session includes a free trial or a discount.
85
86 Can only be set in `subscription` mode. Defaults to `always`.
87
88 If you'd like information on how to collect a payment method outside of Checkout, read the guide on [configuring subscriptions with a free trial](https://docs.stripe.com/payments/checkout/free-trials).
89 """
90 payment_method_types: NotRequired[
91 "Literal['']|List[Literal['affirm', 'afterpay_clearpay', 'alipay', 'alma', 'au_becs_debit', 'bacs_debit', 'bancontact', 'billie', 'blik', 'boleto', 'card', 'cashapp', 'eps', 'fpx', 'giropay', 'grabpay', 'ideal', 'klarna', 'konbini', 'link', 'mb_way', 'mobilepay', 'multibanco', 'oxxo', 'p24', 'pay_by_bank', 'paynow', 'paypal', 'payto', 'pix', 'promptpay', 'satispay', 'sepa_debit', 'sofort', 'swish', 'twint', 'us_bank_account', 'wechat_pay', 'zip']]"
92 ]
93 """
94 The list of payment method types that customers can use. Pass an empty string to enable dynamic payment methods that use your [payment method settings](https://dashboard.stripe.com/settings/payment_methods).
95 """
96 phone_number_collection: NotRequired[
97 "PaymentLinkUpdateParamsPhoneNumberCollection"
98 ]
99 """
100 Controls phone number collection settings during checkout.
101
102 We recommend that you review your privacy policy and check with your legal contacts.
103 """
104 restrictions: NotRequired[
105 "Literal['']|PaymentLinkUpdateParamsRestrictions"
106 ]
107 """
108 Settings that restrict the usage of a payment link.
109 """
110 shipping_address_collection: NotRequired[
111 "Literal['']|PaymentLinkUpdateParamsShippingAddressCollection"
112 ]
113 """
114 Configuration for collecting the customer's shipping address.
115 """
116 submit_type: NotRequired[
117 Literal["auto", "book", "donate", "pay", "subscribe"]
118 ]
119 """
120 Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://docs.stripe.com/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`).
121 """
122 subscription_data: NotRequired["PaymentLinkUpdateParamsSubscriptionData"]
123 """
124 When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`.
125 """
126 tax_id_collection: NotRequired["PaymentLinkUpdateParamsTaxIdCollection"]
127 """
128 Controls tax ID collection during checkout.
129 """
130
131
132 class PaymentLinkUpdateParamsAfterCompletion(TypedDict):
133 hosted_confirmation: NotRequired[
134 "PaymentLinkUpdateParamsAfterCompletionHostedConfirmation"
135 ]
136 """
137 Configuration when `type=hosted_confirmation`.
138 """
139 redirect: NotRequired["PaymentLinkUpdateParamsAfterCompletionRedirect"]
140 """
141 Configuration when `type=redirect`.
142 """
143 type: Literal["hosted_confirmation", "redirect"]
144 """
145 The specified behavior after the purchase is complete. Either `redirect` or `hosted_confirmation`.
146 """
147
148
149 class PaymentLinkUpdateParamsAfterCompletionHostedConfirmation(TypedDict):
150 custom_message: NotRequired[str]
151 """
152 A custom message to display to the customer after the purchase is complete.
153 """
154
155
156 class PaymentLinkUpdateParamsAfterCompletionRedirect(TypedDict):
157 url: str
158 """
159 The URL the customer will be redirected to after the purchase is complete. You can embed `{CHECKOUT_SESSION_ID}` into the URL to have the `id` of the completed [checkout session](https://docs.stripe.com/api/checkout/sessions/object#checkout_session_object-id) included.
160 """
161
162
163 class PaymentLinkUpdateParamsAutomaticTax(TypedDict):
164 enabled: bool
165 """
166 Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location.
167
168 Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation.
169 """
170 liability: NotRequired["PaymentLinkUpdateParamsAutomaticTaxLiability"]
171 """
172 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.
173 """
174
175
176 class PaymentLinkUpdateParamsAutomaticTaxLiability(TypedDict):
177 account: NotRequired[str]
178 """
179 The connected account being referenced when `type` is `account`.
180 """
181 type: Literal["account", "self"]
182 """
183 Type of the account referenced in the request.
184 """
185
186
187 class PaymentLinkUpdateParamsCustomField(TypedDict):
188 dropdown: NotRequired["PaymentLinkUpdateParamsCustomFieldDropdown"]
189 """
190 Configuration for `type=dropdown` fields.
191 """
192 key: str
193 """
194 String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters.
195 """
196 label: "PaymentLinkUpdateParamsCustomFieldLabel"
197 """
198 The label for the field, displayed to the customer.
199 """
200 numeric: NotRequired["PaymentLinkUpdateParamsCustomFieldNumeric"]
201 """
202 Configuration for `type=numeric` fields.
203 """
204 optional: NotRequired[bool]
205 """
206 Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`.
207 """
208 text: NotRequired["PaymentLinkUpdateParamsCustomFieldText"]
209 """
210 Configuration for `type=text` fields.
211 """
212 type: Literal["dropdown", "numeric", "text"]
213 """
214 The type of the field.
215 """
216
217
218 class PaymentLinkUpdateParamsCustomFieldDropdown(TypedDict):
219 default_value: NotRequired[str]
220 """
221 The value that pre-fills the field on the payment page.Must match a `value` in the `options` array.
222 """
223 options: List["PaymentLinkUpdateParamsCustomFieldDropdownOption"]
224 """
225 The options available for the customer to select. Up to 200 options allowed.
226 """
227
228
229 class PaymentLinkUpdateParamsCustomFieldDropdownOption(TypedDict):
230 label: str
231 """
232 The label for the option, displayed to the customer. Up to 100 characters.
233 """
234 value: str
235 """
236 The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters.
237 """
238
239
240 class PaymentLinkUpdateParamsCustomFieldLabel(TypedDict):
241 custom: str
242 """
243 Custom text for the label, displayed to the customer. Up to 50 characters.
244 """
245 type: Literal["custom"]
246 """
247 The type of the label.
248 """
249
250
251 class PaymentLinkUpdateParamsCustomFieldNumeric(TypedDict):
252 default_value: NotRequired[str]
253 """
254 The value that pre-fills the field on the payment page.
255 """
256 maximum_length: NotRequired[int]
257 """
258 The maximum character length constraint for the customer's input.
259 """
260 minimum_length: NotRequired[int]
261 """
262 The minimum character length requirement for the customer's input.
263 """
264
265
266 class PaymentLinkUpdateParamsCustomFieldText(TypedDict):
267 default_value: NotRequired[str]
268 """
269 The value that pre-fills the field on the payment page.
270 """
271 maximum_length: NotRequired[int]
272 """
273 The maximum character length constraint for the customer's input.
274 """
275 minimum_length: NotRequired[int]
276 """
277 The minimum character length requirement for the customer's input.
278 """
279
280
281 class PaymentLinkUpdateParamsCustomText(TypedDict):
282 after_submit: NotRequired[
283 "Literal['']|PaymentLinkUpdateParamsCustomTextAfterSubmit"
284 ]
285 """
286 Custom text that should be displayed after the payment confirmation button.
287 """
288 shipping_address: NotRequired[
289 "Literal['']|PaymentLinkUpdateParamsCustomTextShippingAddress"
290 ]
291 """
292 Custom text that should be displayed alongside shipping address collection.
293 """
294 submit: NotRequired["Literal['']|PaymentLinkUpdateParamsCustomTextSubmit"]
295 """
296 Custom text that should be displayed alongside the payment confirmation button.
297 """
298 terms_of_service_acceptance: NotRequired[
299 "Literal['']|PaymentLinkUpdateParamsCustomTextTermsOfServiceAcceptance"
300 ]
301 """
302 Custom text that should be displayed in place of the default terms of service agreement text.
303 """
304
305
306 class PaymentLinkUpdateParamsCustomTextAfterSubmit(TypedDict):
307 message: str
308 """
309 Text can be up to 1200 characters in length.
310 """
311
312
313 class PaymentLinkUpdateParamsCustomTextShippingAddress(TypedDict):
314 message: str
315 """
316 Text can be up to 1200 characters in length.
317 """
318
319
320 class PaymentLinkUpdateParamsCustomTextSubmit(TypedDict):
321 message: str
322 """
323 Text can be up to 1200 characters in length.
324 """
325
326
327 class PaymentLinkUpdateParamsCustomTextTermsOfServiceAcceptance(TypedDict):
328 message: str
329 """
330 Text can be up to 1200 characters in length.
331 """
332
333
334 class PaymentLinkUpdateParamsInvoiceCreation(TypedDict):
335 enabled: bool
336 """
337 Whether the feature is enabled
338 """
339 invoice_data: NotRequired[
340 "PaymentLinkUpdateParamsInvoiceCreationInvoiceData"
341 ]
342 """
343 Invoice PDF configuration.
344 """
345
346
347 class PaymentLinkUpdateParamsInvoiceCreationInvoiceData(TypedDict):
348 account_tax_ids: NotRequired["Literal['']|List[str]"]
349 """
350 The account tax IDs associated with the invoice.
351 """
352 custom_fields: NotRequired[
353 "Literal['']|List[PaymentLinkUpdateParamsInvoiceCreationInvoiceDataCustomField]"
354 ]
355 """
356 Default custom fields to be displayed on invoices for this customer.
357 """
358 description: NotRequired[str]
359 """
360 An arbitrary string attached to the object. Often useful for displaying to users.
361 """
362 footer: NotRequired[str]
363 """
364 Default footer to be displayed on invoices for this customer.
365 """
366 issuer: NotRequired[
367 "PaymentLinkUpdateParamsInvoiceCreationInvoiceDataIssuer"
368 ]
369 """
370 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
371 """
372 metadata: NotRequired["Literal['']|Dict[str, str]"]
373 """
374 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`.
375 """
376 rendering_options: NotRequired[
377 "Literal['']|PaymentLinkUpdateParamsInvoiceCreationInvoiceDataRenderingOptions"
378 ]
379 """
380 Default options for invoice PDF rendering for this customer.
381 """
382
383
384 class PaymentLinkUpdateParamsInvoiceCreationInvoiceDataCustomField(TypedDict):
385 name: str
386 """
387 The name of the custom field. This may be up to 40 characters.
388 """
389 value: str
390 """
391 The value of the custom field. This may be up to 140 characters.
392 """
393
394
395 class PaymentLinkUpdateParamsInvoiceCreationInvoiceDataIssuer(TypedDict):
396 account: NotRequired[str]
397 """
398 The connected account being referenced when `type` is `account`.
399 """
400 type: Literal["account", "self"]
401 """
402 Type of the account referenced in the request.
403 """
404
405
406 class PaymentLinkUpdateParamsInvoiceCreationInvoiceDataRenderingOptions(
407 TypedDict,
408 ):
409 amount_tax_display: NotRequired[
410 "Literal['']|Literal['exclude_tax', 'include_inclusive_tax']"
411 ]
412 """
413 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.
414 """
415 template: NotRequired[str]
416 """
417 ID of the invoice rendering template to use for this invoice.
418 """
419
420
421 class PaymentLinkUpdateParamsLineItem(TypedDict):
422 adjustable_quantity: NotRequired[
423 "PaymentLinkUpdateParamsLineItemAdjustableQuantity"
424 ]
425 """
426 When set, provides configuration for this item's quantity to be adjusted by the customer during checkout.
427 """
428 id: str
429 """
430 The ID of an existing line item on the payment link.
431 """
432 quantity: NotRequired[int]
433 """
434 The quantity of the line item being purchased.
435 """
436
437
438 class PaymentLinkUpdateParamsLineItemAdjustableQuantity(TypedDict):
439 enabled: bool
440 """
441 Set to true if the quantity can be adjusted to any non-negative Integer.
442 """
443 maximum: NotRequired[int]
444 """
445 The maximum quantity the customer can purchase. By default this value is 99. You can specify a value up to 999999.
446 """
447 minimum: NotRequired[int]
448 """
449 The minimum quantity the customer can purchase. By default this value is 0. If there is only one item in the cart then that item's quantity cannot go down to 0.
450 """
451
452
453 class PaymentLinkUpdateParamsNameCollection(TypedDict):
454 business: NotRequired["PaymentLinkUpdateParamsNameCollectionBusiness"]
455 """
456 Controls settings applied for collecting the customer's business name.
457 """
458 individual: NotRequired["PaymentLinkUpdateParamsNameCollectionIndividual"]
459 """
460 Controls settings applied for collecting the customer's individual name.
461 """
462
463
464 class PaymentLinkUpdateParamsNameCollectionBusiness(TypedDict):
465 enabled: bool
466 """
467 Enable business name collection on the payment link. Defaults to `false`.
468 """
469 optional: NotRequired[bool]
470 """
471 Whether the customer is required to provide their business name before checking out. Defaults to `false`.
472 """
473
474
475 class PaymentLinkUpdateParamsNameCollectionIndividual(TypedDict):
476 enabled: bool
477 """
478 Enable individual name collection on the payment link. Defaults to `false`.
479 """
480 optional: NotRequired[bool]
481 """
482 Whether the customer is required to provide their full name before checking out. Defaults to `false`.
483 """
484
485
486 class PaymentLinkUpdateParamsOptionalItem(TypedDict):
487 adjustable_quantity: NotRequired[
488 "PaymentLinkUpdateParamsOptionalItemAdjustableQuantity"
489 ]
490 """
491 When set, provides configuration for the customer to adjust the quantity of the line item created when a customer chooses to add this optional item to their order.
492 """
493 price: str
494 """
495 The ID of the [Price](https://docs.stripe.com/api/prices) or [Plan](https://docs.stripe.com/api/plans) object.
496 """
497 quantity: int
498 """
499 The initial quantity of the line item created when a customer chooses to add this optional item to their order.
500 """
501
502
503 class PaymentLinkUpdateParamsOptionalItemAdjustableQuantity(TypedDict):
504 enabled: bool
505 """
506 Set to true if the quantity can be adjusted to any non-negative integer.
507 """
508 maximum: NotRequired[int]
509 """
510 The maximum quantity of this item the customer can purchase. By default this value is 99.
511 """
512 minimum: NotRequired[int]
513 """
514 The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0.
515 """
516
517
518 class PaymentLinkUpdateParamsPaymentIntentData(TypedDict):
519 description: NotRequired["Literal['']|str"]
520 """
521 An arbitrary string attached to the object. Often useful for displaying to users.
522 """
523 metadata: NotRequired["Literal['']|Dict[str, str]"]
524 """
525 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will declaratively set metadata on [Payment Intents](https://docs.stripe.com/api/payment_intents) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
526 """
527 statement_descriptor: NotRequired["Literal['']|str"]
528 """
529 Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
530
531 Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
532 """
533 statement_descriptor_suffix: NotRequired["Literal['']|str"]
534 """
535 Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
536 """
537 transfer_group: NotRequired["Literal['']|str"]
538 """
539 A string that identifies the resulting payment as part of a group. See the PaymentIntents [use case for connected accounts](https://docs.stripe.com/connect/separate-charges-and-transfers) for details.
540 """
541
542
543 class PaymentLinkUpdateParamsPhoneNumberCollection(TypedDict):
544 enabled: bool
545 """
546 Set to `true` to enable phone number collection.
547 """
548
549
550 class PaymentLinkUpdateParamsRestrictions(TypedDict):
551 completed_sessions: "PaymentLinkUpdateParamsRestrictionsCompletedSessions"
552 """
553 Configuration for the `completed_sessions` restriction type.
554 """
555
556
557 class PaymentLinkUpdateParamsRestrictionsCompletedSessions(TypedDict):
558 limit: int
559 """
560 The maximum number of checkout sessions that can be completed for the `completed_sessions` restriction to be met.
561 """
562
563
564 class PaymentLinkUpdateParamsShippingAddressCollection(TypedDict):
565 allowed_countries: List[
566 Literal[
567 "AC",
568 "AD",
569 "AE",
570 "AF",
571 "AG",
572 "AI",
573 "AL",
574 "AM",
575 "AO",
576 "AQ",
577 "AR",
578 "AT",
579 "AU",
580 "AW",
581 "AX",
582 "AZ",
583 "BA",
584 "BB",
585 "BD",
586 "BE",
587 "BF",
588 "BG",
589 "BH",
590 "BI",
591 "BJ",
592 "BL",
593 "BM",
594 "BN",
595 "BO",
596 "BQ",
597 "BR",
598 "BS",
599 "BT",
600 "BV",
601 "BW",
602 "BY",
603 "BZ",
604 "CA",
605 "CD",
606 "CF",
607 "CG",
608 "CH",
609 "CI",
610 "CK",
611 "CL",
612 "CM",
613 "CN",
614 "CO",
615 "CR",
616 "CV",
617 "CW",
618 "CY",
619 "CZ",
620 "DE",
621 "DJ",
622 "DK",
623 "DM",
624 "DO",
625 "DZ",
626 "EC",
627 "EE",
628 "EG",
629 "EH",
630 "ER",
631 "ES",
632 "ET",
633 "FI",
634 "FJ",
635 "FK",
636 "FO",
637 "FR",
638 "GA",
639 "GB",
640 "GD",
641 "GE",
642 "GF",
643 "GG",
644 "GH",
645 "GI",
646 "GL",
647 "GM",
648 "GN",
649 "GP",
650 "GQ",
651 "GR",
652 "GS",
653 "GT",
654 "GU",
655 "GW",
656 "GY",
657 "HK",
658 "HN",
659 "HR",
660 "HT",
661 "HU",
662 "ID",
663 "IE",
664 "IL",
665 "IM",
666 "IN",
667 "IO",
668 "IQ",
669 "IS",
670 "IT",
671 "JE",
672 "JM",
673 "JO",
674 "JP",
675 "KE",
676 "KG",
677 "KH",
678 "KI",
679 "KM",
680 "KN",
681 "KR",
682 "KW",
683 "KY",
684 "KZ",
685 "LA",
686 "LB",
687 "LC",
688 "LI",
689 "LK",
690 "LR",
691 "LS",
692 "LT",
693 "LU",
694 "LV",
695 "LY",
696 "MA",
697 "MC",
698 "MD",
699 "ME",
700 "MF",
701 "MG",
702 "MK",
703 "ML",
704 "MM",
705 "MN",
706 "MO",
707 "MQ",
708 "MR",
709 "MS",
710 "MT",
711 "MU",
712 "MV",
713 "MW",
714 "MX",
715 "MY",
716 "MZ",
717 "NA",
718 "NC",
719 "NE",
720 "NG",
721 "NI",
722 "NL",
723 "NO",
724 "NP",
725 "NR",
726 "NU",
727 "NZ",
728 "OM",
729 "PA",
730 "PE",
731 "PF",
732 "PG",
733 "PH",
734 "PK",
735 "PL",
736 "PM",
737 "PN",
738 "PR",
739 "PS",
740 "PT",
741 "PY",
742 "QA",
743 "RE",
744 "RO",
745 "RS",
746 "RU",
747 "RW",
748 "SA",
749 "SB",
750 "SC",
751 "SD",
752 "SE",
753 "SG",
754 "SH",
755 "SI",
756 "SJ",
757 "SK",
758 "SL",
759 "SM",
760 "SN",
761 "SO",
762 "SR",
763 "SS",
764 "ST",
765 "SV",
766 "SX",
767 "SZ",
768 "TA",
769 "TC",
770 "TD",
771 "TF",
772 "TG",
773 "TH",
774 "TJ",
775 "TK",
776 "TL",
777 "TM",
778 "TN",
779 "TO",
780 "TR",
781 "TT",
782 "TV",
783 "TW",
784 "TZ",
785 "UA",
786 "UG",
787 "US",
788 "UY",
789 "UZ",
790 "VA",
791 "VC",
792 "VE",
793 "VG",
794 "VN",
795 "VU",
796 "WF",
797 "WS",
798 "XK",
799 "YE",
800 "YT",
801 "ZA",
802 "ZM",
803 "ZW",
804 "ZZ",
805 ]
806 ]
807 """
808 An array of two-letter ISO country codes representing which countries Checkout should provide as options for
809 shipping locations.
810 """
811
812
813 class PaymentLinkUpdateParamsSubscriptionData(TypedDict):
814 invoice_settings: NotRequired[
815 "PaymentLinkUpdateParamsSubscriptionDataInvoiceSettings"
816 ]
817 """
818 All invoices will be billed using the specified settings.
819 """
820 metadata: NotRequired["Literal['']|Dict[str, str]"]
821 """
822 Set of [key-value pairs](https://docs.stripe.com/api/metadata) that will declaratively set metadata on [Subscriptions](https://docs.stripe.com/api/subscriptions) generated from this payment link. Unlike object-level metadata, this field is declarative. Updates will clear prior values.
823 """
824 trial_period_days: NotRequired["Literal['']|int"]
825 """
826 Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
827 """
828 trial_settings: NotRequired[
829 "Literal['']|PaymentLinkUpdateParamsSubscriptionDataTrialSettings"
830 ]
831 """
832 Settings related to subscription trials.
833 """
834
835
836 class PaymentLinkUpdateParamsSubscriptionDataInvoiceSettings(TypedDict):
837 issuer: NotRequired[
838 "PaymentLinkUpdateParamsSubscriptionDataInvoiceSettingsIssuer"
839 ]
840 """
841 The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
842 """
843
844
845 class PaymentLinkUpdateParamsSubscriptionDataInvoiceSettingsIssuer(TypedDict):
846 account: NotRequired[str]
847 """
848 The connected account being referenced when `type` is `account`.
849 """
850 type: Literal["account", "self"]
851 """
852 Type of the account referenced in the request.
853 """
854
855
856 class PaymentLinkUpdateParamsSubscriptionDataTrialSettings(TypedDict):
857 end_behavior: (
858 "PaymentLinkUpdateParamsSubscriptionDataTrialSettingsEndBehavior"
859 )
860 """
861 Defines how the subscription should behave when the user's free trial ends.
862 """
863
864
865 class PaymentLinkUpdateParamsSubscriptionDataTrialSettingsEndBehavior(
866 TypedDict,
867 ):
868 missing_payment_method: Literal["cancel", "create_invoice", "pause"]
869 """
870 Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
871 """
872
873
874 class PaymentLinkUpdateParamsTaxIdCollection(TypedDict):
875 enabled: bool
876 """
877 Enable tax ID collection during checkout. Defaults to `false`.
878 """
879 required: NotRequired[Literal["if_supported", "never"]]
880 """
881 Describes whether a tax ID is required during checkout. Defaults to `never`. You can't set this parameter if `ui_mode` is `custom`.
882 """