stripe 18.5.0-beta.2 → 18.6.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +55 -55
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/Mandates.js +5 -0
  7. package/cjs/resources.js +24 -24
  8. package/cjs/stripe.core.js +1 -1
  9. package/esm/Error.js +44 -44
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/Mandates.js +5 -0
  12. package/esm/resources.js +5 -5
  13. package/esm/stripe.core.js +1 -1
  14. package/package.json +1 -1
  15. package/types/AccountSessions.d.ts +45 -0
  16. package/types/AccountSessionsResource.d.ts +76 -13
  17. package/types/Accounts.d.ts +2 -2
  18. package/types/Balance.d.ts +2 -7
  19. package/types/BalanceSettings.d.ts +52 -46
  20. package/types/BalanceSettingsResource.d.ts +55 -46
  21. package/types/Billing/AlertTriggereds.d.ts +1 -1
  22. package/types/Billing/MeterUsageRows.d.ts +1 -1
  23. package/types/Billing/Meters.d.ts +1 -1
  24. package/types/Billing/MetersResource.d.ts +1 -1
  25. package/types/BillingPortal/Configurations.d.ts +5 -0
  26. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  27. package/types/Charges.d.ts +81 -5
  28. package/types/Checkout/Sessions.d.ts +70 -2
  29. package/types/Checkout/SessionsResource.d.ts +117 -3
  30. package/types/CreditNotesResource.d.ts +3 -3
  31. package/types/Disputes.d.ts +7 -2
  32. package/types/Errors.d.ts +45 -45
  33. package/types/FileLinksResource.d.ts +1 -1
  34. package/types/Files.d.ts +1 -0
  35. package/types/FilesResource.d.ts +3 -1
  36. package/types/InvoicePaymentsResource.d.ts +3 -0
  37. package/types/Invoices.d.ts +3 -1
  38. package/types/InvoicesResource.d.ts +59 -0
  39. package/types/Issuing/CardsResource.d.ts +10 -0
  40. package/types/Mandates.d.ts +58 -1
  41. package/types/MandatesResource.d.ts +31 -0
  42. package/types/PaymentAttemptRecords.d.ts +164 -9
  43. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  44. package/types/PaymentIntents.d.ts +136 -2
  45. package/types/PaymentIntentsResource.d.ts +280 -3
  46. package/types/PaymentLinksResource.d.ts +1 -1
  47. package/types/PaymentMethods.d.ts +5 -0
  48. package/types/PaymentRecords.d.ts +164 -9
  49. package/types/PaymentRecordsResource.d.ts +24 -3
  50. package/types/Payouts.d.ts +1 -1
  51. package/types/PromotionCodes.d.ts +5 -2
  52. package/types/QuotePreviewInvoices.d.ts +3 -1
  53. package/types/QuotePreviewSubscriptionSchedules.d.ts +47 -0
  54. package/types/SetupAttempts.d.ts +7 -1
  55. package/types/SetupIntents.d.ts +95 -1
  56. package/types/SetupIntentsResource.d.ts +207 -0
  57. package/types/SubscriptionSchedules.d.ts +47 -0
  58. package/types/SubscriptionSchedulesResource.d.ts +112 -0
  59. package/types/SubscriptionsResource.d.ts +119 -7
  60. package/types/Terminal/Configurations.d.ts +28 -0
  61. package/types/Terminal/ConfigurationsResource.d.ts +72 -0
  62. package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
  63. package/types/V2/Core/Accounts/PersonsResource.d.ts +32 -0
  64. package/types/V2/Core/Accounts.d.ts +49 -0
  65. package/types/V2/Core/AccountsResource.d.ts +78 -0
  66. package/types/V2/Core/Persons.d.ts +16 -0
  67. package/types/V2/EventTypes.d.ts +377 -377
  68. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +5 -0
  69. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +5 -0
  70. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +1 -1
  71. package/types/V2/MoneyManagement/TransactionEntries.d.ts +7 -0
  72. package/types/V2/MoneyManagement/Transactions.d.ts +7 -0
  73. package/types/WebhookEndpointsResource.d.ts +2 -1
  74. package/types/index.d.ts +5 -5
  75. package/types/lib.d.ts +1 -1
  76. package/types/test/typescriptTest.ts +3 -3
@@ -120,6 +120,13 @@ declare module 'stripe' {
120
120
  */
121
121
  description: string | null;
122
122
 
123
+ /**
124
+ * The list of payment method types to exclude from use with this payment.
125
+ */
126
+ excluded_payment_method_types: Array<
127
+ PaymentIntent.ExcludedPaymentMethodType
128
+ > | null;
129
+
123
130
  /**
124
131
  * The FX Quote used for the PaymentIntent.
125
132
  */
@@ -338,6 +345,63 @@ declare module 'stripe' {
338
345
 
339
346
  type ConfirmationMethod = 'automatic' | 'manual';
340
347
 
348
+ type ExcludedPaymentMethodType =
349
+ | 'acss_debit'
350
+ | 'affirm'
351
+ | 'afterpay_clearpay'
352
+ | 'alipay'
353
+ | 'alma'
354
+ | 'amazon_pay'
355
+ | 'au_becs_debit'
356
+ | 'bacs_debit'
357
+ | 'bancontact'
358
+ | 'billie'
359
+ | 'blik'
360
+ | 'boleto'
361
+ | 'card'
362
+ | 'cashapp'
363
+ | 'crypto'
364
+ | 'customer_balance'
365
+ | 'eps'
366
+ | 'fpx'
367
+ | 'giropay'
368
+ | 'gopay'
369
+ | 'grabpay'
370
+ | 'id_bank_transfer'
371
+ | 'ideal'
372
+ | 'kakao_pay'
373
+ | 'klarna'
374
+ | 'konbini'
375
+ | 'kr_card'
376
+ | 'mb_way'
377
+ | 'mobilepay'
378
+ | 'multibanco'
379
+ | 'naver_pay'
380
+ | 'nz_bank_account'
381
+ | 'oxxo'
382
+ | 'p24'
383
+ | 'pay_by_bank'
384
+ | 'payco'
385
+ | 'paynow'
386
+ | 'paypal'
387
+ | 'payto'
388
+ | 'pix'
389
+ | 'promptpay'
390
+ | 'qris'
391
+ | 'rechnung'
392
+ | 'revolut_pay'
393
+ | 'samsung_pay'
394
+ | 'satispay'
395
+ | 'sepa_debit'
396
+ | 'shopeepay'
397
+ | 'sofort'
398
+ | 'stripe_balance'
399
+ | 'swish'
400
+ | 'twint'
401
+ | 'us_bank_account'
402
+ | 'wechat_pay'
403
+ | 'zip';
404
+
341
405
  interface Hooks {
342
406
  inputs?: Hooks.Inputs;
343
407
  }
@@ -394,7 +458,7 @@ declare module 'stripe' {
394
458
  network_advice_code?: string;
395
459
 
396
460
  /**
397
- * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed.
461
+ * For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
398
462
  */
399
463
  network_decline_code?: string;
400
464
 
@@ -515,6 +579,7 @@ declare module 'stripe' {
515
579
  | 'coupon_expired'
516
580
  | 'customer_max_payment_methods'
517
581
  | 'customer_max_subscriptions'
582
+ | 'customer_session_expired'
518
583
  | 'customer_tax_location_invalid'
519
584
  | 'debit_not_authorized'
520
585
  | 'email_invalid'
@@ -533,6 +598,7 @@ declare module 'stripe' {
533
598
  | 'incorrect_cvc'
534
599
  | 'incorrect_number'
535
600
  | 'incorrect_zip'
601
+ | 'india_recurring_payment_mandate_canceled'
536
602
  | 'instant_payouts_config_disabled'
537
603
  | 'instant_payouts_currency_disabled'
538
604
  | 'instant_payouts_limit_exceeded'
@@ -3127,6 +3193,11 @@ declare module 'stripe' {
3127
3193
  }
3128
3194
 
3129
3195
  interface Pix {
3196
+ /**
3197
+ * Determines if the amount includes the IOF tax.
3198
+ */
3199
+ amount_includes_iof?: Pix.AmountIncludesIof;
3200
+
3130
3201
  /**
3131
3202
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire.
3132
3203
  */
@@ -3137,6 +3208,8 @@ declare module 'stripe' {
3137
3208
  */
3138
3209
  expires_at: number | null;
3139
3210
 
3211
+ mandate_options?: Pix.MandateOptions;
3212
+
3140
3213
  /**
3141
3214
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3142
3215
  *
@@ -3146,7 +3219,68 @@ declare module 'stripe' {
3146
3219
  *
3147
3220
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
3148
3221
  */
3149
- setup_future_usage?: 'none';
3222
+ setup_future_usage?: Pix.SetupFutureUsage;
3223
+ }
3224
+
3225
+ namespace Pix {
3226
+ type AmountIncludesIof = 'always' | 'never';
3227
+
3228
+ interface MandateOptions {
3229
+ /**
3230
+ * Amount to be charged for future payments.
3231
+ */
3232
+ amount?: number;
3233
+
3234
+ /**
3235
+ * Determines if the amount includes the IOF tax.
3236
+ */
3237
+ amount_includes_iof?: MandateOptions.AmountIncludesIof;
3238
+
3239
+ /**
3240
+ * Type of amount.
3241
+ */
3242
+ amount_type?: MandateOptions.AmountType;
3243
+
3244
+ /**
3245
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase.
3246
+ */
3247
+ currency?: string;
3248
+
3249
+ /**
3250
+ * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`.
3251
+ */
3252
+ end_date?: string;
3253
+
3254
+ /**
3255
+ * Schedule at which the future payments will be charged.
3256
+ */
3257
+ payment_schedule?: MandateOptions.PaymentSchedule;
3258
+
3259
+ /**
3260
+ * Subscription name displayed to buyers in their bank app.
3261
+ */
3262
+ reference?: string;
3263
+
3264
+ /**
3265
+ * Start date of the mandate, in `YYYY-MM-DD`.
3266
+ */
3267
+ start_date?: string;
3268
+ }
3269
+
3270
+ namespace MandateOptions {
3271
+ type AmountIncludesIof = 'always' | 'never';
3272
+
3273
+ type AmountType = 'fixed' | 'maximum';
3274
+
3275
+ type PaymentSchedule =
3276
+ | 'halfyearly'
3277
+ | 'monthly'
3278
+ | 'quarterly'
3279
+ | 'weekly'
3280
+ | 'yearly';
3281
+ }
3282
+
3283
+ type SetupFutureUsage = 'none' | 'off_session';
3150
3284
  }
3151
3285
 
3152
3286
  interface Promptpay {
@@ -78,6 +78,13 @@ declare module 'stripe' {
78
78
  */
79
79
  error_on_requires_action?: boolean;
80
80
 
81
+ /**
82
+ * The list of payment method types to exclude from use with this payment.
83
+ */
84
+ excluded_payment_method_types?: Array<
85
+ PaymentIntentCreateParams.ExcludedPaymentMethodType
86
+ >;
87
+
81
88
  /**
82
89
  * Specifies which fields in the response should be expanded.
83
90
  */
@@ -417,6 +424,63 @@ declare module 'stripe' {
417
424
 
418
425
  type ConfirmationMethod = 'automatic' | 'manual';
419
426
 
427
+ type ExcludedPaymentMethodType =
428
+ | 'acss_debit'
429
+ | 'affirm'
430
+ | 'afterpay_clearpay'
431
+ | 'alipay'
432
+ | 'alma'
433
+ | 'amazon_pay'
434
+ | 'au_becs_debit'
435
+ | 'bacs_debit'
436
+ | 'bancontact'
437
+ | 'billie'
438
+ | 'blik'
439
+ | 'boleto'
440
+ | 'card'
441
+ | 'cashapp'
442
+ | 'crypto'
443
+ | 'customer_balance'
444
+ | 'eps'
445
+ | 'fpx'
446
+ | 'giropay'
447
+ | 'gopay'
448
+ | 'grabpay'
449
+ | 'id_bank_transfer'
450
+ | 'ideal'
451
+ | 'kakao_pay'
452
+ | 'klarna'
453
+ | 'konbini'
454
+ | 'kr_card'
455
+ | 'mb_way'
456
+ | 'mobilepay'
457
+ | 'multibanco'
458
+ | 'naver_pay'
459
+ | 'nz_bank_account'
460
+ | 'oxxo'
461
+ | 'p24'
462
+ | 'pay_by_bank'
463
+ | 'payco'
464
+ | 'paynow'
465
+ | 'paypal'
466
+ | 'payto'
467
+ | 'pix'
468
+ | 'promptpay'
469
+ | 'qris'
470
+ | 'rechnung'
471
+ | 'revolut_pay'
472
+ | 'samsung_pay'
473
+ | 'satispay'
474
+ | 'sepa_debit'
475
+ | 'shopeepay'
476
+ | 'sofort'
477
+ | 'stripe_balance'
478
+ | 'swish'
479
+ | 'twint'
480
+ | 'us_bank_account'
481
+ | 'wechat_pay'
482
+ | 'zip';
483
+
420
484
  interface Hooks {
421
485
  /**
422
486
  * Arguments passed in automations
@@ -3966,6 +4030,11 @@ declare module 'stripe' {
3966
4030
  }
3967
4031
 
3968
4032
  interface Pix {
4033
+ /**
4034
+ * Determines if the amount includes the IOF tax. Defaults to `never`.
4035
+ */
4036
+ amount_includes_iof?: Pix.AmountIncludesIof;
4037
+
3969
4038
  /**
3970
4039
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
3971
4040
  */
@@ -3976,6 +4045,11 @@ declare module 'stripe' {
3976
4045
  */
3977
4046
  expires_at?: number;
3978
4047
 
4048
+ /**
4049
+ * Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
4050
+ */
4051
+ mandate_options?: Pix.MandateOptions;
4052
+
3979
4053
  /**
3980
4054
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3981
4055
  *
@@ -3987,7 +4061,68 @@ declare module 'stripe' {
3987
4061
  *
3988
4062
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
3989
4063
  */
3990
- setup_future_usage?: 'none';
4064
+ setup_future_usage?: Pix.SetupFutureUsage;
4065
+ }
4066
+
4067
+ namespace Pix {
4068
+ type AmountIncludesIof = 'always' | 'never';
4069
+
4070
+ interface MandateOptions {
4071
+ /**
4072
+ * Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
4073
+ */
4074
+ amount?: number;
4075
+
4076
+ /**
4077
+ * Determines if the amount includes the IOF tax. Defaults to `never`.
4078
+ */
4079
+ amount_includes_iof?: MandateOptions.AmountIncludesIof;
4080
+
4081
+ /**
4082
+ * Type of amount. Defaults to `maximum`.
4083
+ */
4084
+ amount_type?: MandateOptions.AmountType;
4085
+
4086
+ /**
4087
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
4088
+ */
4089
+ currency?: string;
4090
+
4091
+ /**
4092
+ * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
4093
+ */
4094
+ end_date?: string;
4095
+
4096
+ /**
4097
+ * Schedule at which the future payments will be charged. Defaults to `weekly`.
4098
+ */
4099
+ payment_schedule?: MandateOptions.PaymentSchedule;
4100
+
4101
+ /**
4102
+ * Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
4103
+ */
4104
+ reference?: string;
4105
+
4106
+ /**
4107
+ * Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
4108
+ */
4109
+ start_date?: string;
4110
+ }
4111
+
4112
+ namespace MandateOptions {
4113
+ type AmountIncludesIof = 'always' | 'never';
4114
+
4115
+ type AmountType = 'fixed' | 'maximum';
4116
+
4117
+ type PaymentSchedule =
4118
+ | 'halfyearly'
4119
+ | 'monthly'
4120
+ | 'quarterly'
4121
+ | 'weekly'
4122
+ | 'yearly';
4123
+ }
4124
+
4125
+ type SetupFutureUsage = 'none' | 'off_session';
3991
4126
  }
3992
4127
 
3993
4128
  interface Promptpay {
@@ -8332,6 +8467,11 @@ declare module 'stripe' {
8332
8467
  }
8333
8468
 
8334
8469
  interface Pix {
8470
+ /**
8471
+ * Determines if the amount includes the IOF tax. Defaults to `never`.
8472
+ */
8473
+ amount_includes_iof?: Pix.AmountIncludesIof;
8474
+
8335
8475
  /**
8336
8476
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
8337
8477
  */
@@ -8342,6 +8482,11 @@ declare module 'stripe' {
8342
8482
  */
8343
8483
  expires_at?: number;
8344
8484
 
8485
+ /**
8486
+ * Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
8487
+ */
8488
+ mandate_options?: Pix.MandateOptions;
8489
+
8345
8490
  /**
8346
8491
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
8347
8492
  *
@@ -8353,7 +8498,68 @@ declare module 'stripe' {
8353
8498
  *
8354
8499
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
8355
8500
  */
8356
- setup_future_usage?: 'none';
8501
+ setup_future_usage?: Pix.SetupFutureUsage;
8502
+ }
8503
+
8504
+ namespace Pix {
8505
+ type AmountIncludesIof = 'always' | 'never';
8506
+
8507
+ interface MandateOptions {
8508
+ /**
8509
+ * Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
8510
+ */
8511
+ amount?: number;
8512
+
8513
+ /**
8514
+ * Determines if the amount includes the IOF tax. Defaults to `never`.
8515
+ */
8516
+ amount_includes_iof?: MandateOptions.AmountIncludesIof;
8517
+
8518
+ /**
8519
+ * Type of amount. Defaults to `maximum`.
8520
+ */
8521
+ amount_type?: MandateOptions.AmountType;
8522
+
8523
+ /**
8524
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
8525
+ */
8526
+ currency?: string;
8527
+
8528
+ /**
8529
+ * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
8530
+ */
8531
+ end_date?: string;
8532
+
8533
+ /**
8534
+ * Schedule at which the future payments will be charged. Defaults to `weekly`.
8535
+ */
8536
+ payment_schedule?: MandateOptions.PaymentSchedule;
8537
+
8538
+ /**
8539
+ * Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
8540
+ */
8541
+ reference?: string;
8542
+
8543
+ /**
8544
+ * Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
8545
+ */
8546
+ start_date?: string;
8547
+ }
8548
+
8549
+ namespace MandateOptions {
8550
+ type AmountIncludesIof = 'always' | 'never';
8551
+
8552
+ type AmountType = 'fixed' | 'maximum';
8553
+
8554
+ type PaymentSchedule =
8555
+ | 'halfyearly'
8556
+ | 'monthly'
8557
+ | 'quarterly'
8558
+ | 'weekly'
8559
+ | 'yearly';
8560
+ }
8561
+
8562
+ type SetupFutureUsage = 'none' | 'off_session';
8357
8563
  }
8358
8564
 
8359
8565
  interface Promptpay {
@@ -13686,6 +13892,11 @@ declare module 'stripe' {
13686
13892
  }
13687
13893
 
13688
13894
  interface Pix {
13895
+ /**
13896
+ * Determines if the amount includes the IOF tax. Defaults to `never`.
13897
+ */
13898
+ amount_includes_iof?: Pix.AmountIncludesIof;
13899
+
13689
13900
  /**
13690
13901
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
13691
13902
  */
@@ -13696,6 +13907,11 @@ declare module 'stripe' {
13696
13907
  */
13697
13908
  expires_at?: number;
13698
13909
 
13910
+ /**
13911
+ * Additional fields for mandate creation. Only applicable when `setup_future_usage=off_session`.
13912
+ */
13913
+ mandate_options?: Pix.MandateOptions;
13914
+
13699
13915
  /**
13700
13916
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
13701
13917
  *
@@ -13707,7 +13923,68 @@ declare module 'stripe' {
13707
13923
  *
13708
13924
  * If you've already set `setup_future_usage` and you're performing a request using a publishable key, you can only update the value from `on_session` to `off_session`.
13709
13925
  */
13710
- setup_future_usage?: 'none';
13926
+ setup_future_usage?: Pix.SetupFutureUsage;
13927
+ }
13928
+
13929
+ namespace Pix {
13930
+ type AmountIncludesIof = 'always' | 'never';
13931
+
13932
+ interface MandateOptions {
13933
+ /**
13934
+ * Amount to be charged for future payments. Required when `amount_type=fixed`. If not provided for `amount_type=maximum`, defaults to 40000.
13935
+ */
13936
+ amount?: number;
13937
+
13938
+ /**
13939
+ * Determines if the amount includes the IOF tax. Defaults to `never`.
13940
+ */
13941
+ amount_includes_iof?: MandateOptions.AmountIncludesIof;
13942
+
13943
+ /**
13944
+ * Type of amount. Defaults to `maximum`.
13945
+ */
13946
+ amount_type?: MandateOptions.AmountType;
13947
+
13948
+ /**
13949
+ * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Only `brl` is supported currently.
13950
+ */
13951
+ currency?: string;
13952
+
13953
+ /**
13954
+ * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. If not provided, the mandate will be active until canceled. If provided, end date should be after start date.
13955
+ */
13956
+ end_date?: string;
13957
+
13958
+ /**
13959
+ * Schedule at which the future payments will be charged. Defaults to `weekly`.
13960
+ */
13961
+ payment_schedule?: MandateOptions.PaymentSchedule;
13962
+
13963
+ /**
13964
+ * Subscription name displayed to buyers in their bank app. Defaults to the displayable business name.
13965
+ */
13966
+ reference?: string;
13967
+
13968
+ /**
13969
+ * Start date of the mandate, in `YYYY-MM-DD`. Start date should be at least 3 days in the future. Defaults to 3 days after the current date.
13970
+ */
13971
+ start_date?: string;
13972
+ }
13973
+
13974
+ namespace MandateOptions {
13975
+ type AmountIncludesIof = 'always' | 'never';
13976
+
13977
+ type AmountType = 'fixed' | 'maximum';
13978
+
13979
+ type PaymentSchedule =
13980
+ | 'halfyearly'
13981
+ | 'monthly'
13982
+ | 'quarterly'
13983
+ | 'weekly'
13984
+ | 'yearly';
13985
+ }
13986
+
13987
+ type SetupFutureUsage = 'none' | 'off_session';
13711
13988
  }
13712
13989
 
13713
13990
  interface Promptpay {
@@ -540,7 +540,7 @@ declare module 'stripe' {
540
540
  adjustable_quantity?: LineItem.AdjustableQuantity;
541
541
 
542
542
  /**
543
- * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object.
543
+ * The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
544
544
  */
545
545
  price?: string;
546
546
 
@@ -97,6 +97,11 @@ declare module 'stripe' {
97
97
 
98
98
  kr_card?: PaymentMethod.KrCard;
99
99
 
100
+ /**
101
+ * The Mandate object of the most recently created Mandate associated with this payment method
102
+ */
103
+ latest_active_mandate?: Stripe.Mandate | null;
104
+
100
105
  link?: PaymentMethod.Link;
101
106
 
102
107
  /**