Debian Codegraph @

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