stripe 19.2.0-beta.1 → 19.3.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 (82) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/PaymentRecords.js +4 -0
  6. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  7. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  8. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  9. package/cjs/stripe.core.js +1 -1
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/PaymentRecords.js +4 -0
  12. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  13. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  14. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  15. package/esm/stripe.core.js +1 -1
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +24 -0
  18. package/types/AccountsResource.d.ts +44 -0
  19. package/types/BankAccounts.d.ts +2 -0
  20. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  21. package/types/BillingPortal/Configurations.d.ts +1 -1
  22. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  23. package/types/Capabilities.d.ts +2 -0
  24. package/types/Charges.d.ts +7 -2
  25. package/types/ChargesResource.d.ts +16 -4
  26. package/types/Checkout/Sessions.d.ts +15 -0
  27. package/types/Checkout/SessionsResource.d.ts +21 -3
  28. package/types/ConfirmationTokens.d.ts +1 -0
  29. package/types/CreditNotes.d.ts +26 -0
  30. package/types/CreditNotesResource.d.ts +78 -0
  31. package/types/CustomerSessions.d.ts +161 -0
  32. package/types/CustomerSessionsResource.d.ts +161 -0
  33. package/types/Customers.d.ts +7 -0
  34. package/types/CustomersResource.d.ts +1 -0
  35. package/types/Files.d.ts +1 -0
  36. package/types/FilesResource.d.ts +2 -0
  37. package/types/FinancialConnections/AccountsResource.d.ts +1 -1
  38. package/types/Invoices.d.ts +1 -0
  39. package/types/PaymentAttemptRecords.d.ts +7 -2
  40. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  41. package/types/PaymentIntentAmountDetailsLineItems.d.ts +17 -7
  42. package/types/PaymentIntents.d.ts +20 -9
  43. package/types/PaymentIntentsResource.d.ts +170 -65
  44. package/types/PaymentLinks.d.ts +34 -0
  45. package/types/PaymentLinksResource.d.ts +88 -0
  46. package/types/PaymentMethodConfigurations.d.ts +72 -0
  47. package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
  48. package/types/PaymentMethods.d.ts +34 -0
  49. package/types/PaymentMethodsResource.d.ts +15 -1
  50. package/types/PaymentRecords.d.ts +7 -2
  51. package/types/PaymentRecordsResource.d.ts +89 -0
  52. package/types/PayoutsResource.d.ts +1 -1
  53. package/types/Persons.d.ts +2 -0
  54. package/types/QuotePreviewInvoices.d.ts +1 -0
  55. package/types/Refunds.d.ts +9 -0
  56. package/types/SetupAttempts.d.ts +1 -0
  57. package/types/SetupIntents.d.ts +66 -0
  58. package/types/SetupIntentsResource.d.ts +130 -0
  59. package/types/Tax/Registrations.d.ts +9 -0
  60. package/types/Tax/RegistrationsResource.d.ts +12 -0
  61. package/types/Terminal/Configurations.d.ts +19 -0
  62. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  63. package/types/Terminal/Readers.d.ts +14 -9
  64. package/types/Terminal/ReadersResource.d.ts +30 -30
  65. package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
  66. package/types/TokensResource.d.ts +22 -0
  67. package/types/V2/Billing/Cadences.d.ts +2 -2
  68. package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
  69. package/types/V2/Billing/CollectionSettings.d.ts +2 -2
  70. package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
  71. package/types/V2/Core/Accounts.d.ts +93 -2
  72. package/types/V2/Core/AccountsResource.d.ts +110 -5
  73. package/types/V2/Core/EventTypes.d.ts +11 -34
  74. package/types/V2/Core/EventsResource.d.ts +29 -3
  75. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +22 -0
  76. package/types/V2/Core/Vault/UsBankAccounts.d.ts +46 -0
  77. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +75 -0
  78. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +25 -0
  79. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +1 -1
  80. package/types/WebhookEndpointsResource.d.ts +2 -1
  81. package/types/apiVersion.d.ts +1 -1
  82. package/types/crypto/crypto.d.ts +1 -1
@@ -105,6 +105,8 @@ declare module 'stripe' {
105
105
  */
106
106
  metadata: Stripe.Metadata;
107
107
 
108
+ name_collection?: PaymentLink.NameCollection;
109
+
108
110
  /**
109
111
  * The account on behalf of which to charge. See the [Connect documentation](https://support.stripe.com/questions/sending-invoices-on-behalf-of-connected-accounts) for details.
110
112
  */
@@ -518,6 +520,38 @@ declare module 'stripe' {
518
520
  }
519
521
  }
520
522
 
523
+ interface NameCollection {
524
+ business?: NameCollection.Business;
525
+
526
+ individual?: NameCollection.Individual;
527
+ }
528
+
529
+ namespace NameCollection {
530
+ interface Business {
531
+ /**
532
+ * Indicates whether business name collection is enabled for the payment link.
533
+ */
534
+ enabled: boolean;
535
+
536
+ /**
537
+ * Whether the customer is required to complete the field before checking out. Defaults to `false`.
538
+ */
539
+ optional: boolean;
540
+ }
541
+
542
+ interface Individual {
543
+ /**
544
+ * Indicates whether individual name collection is enabled for the payment link.
545
+ */
546
+ enabled: boolean;
547
+
548
+ /**
549
+ * Whether the customer is required to complete the field before checking out. Defaults to `false`.
550
+ */
551
+ optional: boolean;
552
+ }
553
+ }
554
+
521
555
  interface OptionalItem {
522
556
  adjustable_quantity: OptionalItem.AdjustableQuantity | null;
523
557
 
@@ -83,6 +83,11 @@ declare module 'stripe' {
83
83
  */
84
84
  metadata?: Stripe.MetadataParam;
85
85
 
86
+ /**
87
+ * Controls settings applied for collecting the customer's name.
88
+ */
89
+ name_collection?: PaymentLinkCreateParams.NameCollection;
90
+
86
91
  /**
87
92
  * The account on behalf of which to charge.
88
93
  */
@@ -663,6 +668,44 @@ declare module 'stripe' {
663
668
  }
664
669
  }
665
670
 
671
+ interface NameCollection {
672
+ /**
673
+ * Controls settings applied for collecting the customer's business name.
674
+ */
675
+ business?: NameCollection.Business;
676
+
677
+ /**
678
+ * Controls settings applied for collecting the customer's individual name.
679
+ */
680
+ individual?: NameCollection.Individual;
681
+ }
682
+
683
+ namespace NameCollection {
684
+ interface Business {
685
+ /**
686
+ * Enable business name collection on the payment link. Defaults to `false`.
687
+ */
688
+ enabled: boolean;
689
+
690
+ /**
691
+ * Whether the customer is required to provide their business name before checking out. Defaults to `false`.
692
+ */
693
+ optional?: boolean;
694
+ }
695
+
696
+ interface Individual {
697
+ /**
698
+ * Enable individual name collection on the payment link. Defaults to `false`.
699
+ */
700
+ enabled: boolean;
701
+
702
+ /**
703
+ * Whether the customer is required to provide their full name before checking out. Defaults to `false`.
704
+ */
705
+ optional?: boolean;
706
+ }
707
+ }
708
+
666
709
  interface OptionalItem {
667
710
  /**
668
711
  * 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.
@@ -1265,6 +1308,13 @@ declare module 'stripe' {
1265
1308
  */
1266
1309
  metadata?: Stripe.MetadataParam;
1267
1310
 
1311
+ /**
1312
+ * Controls settings applied for collecting the customer's name.
1313
+ */
1314
+ name_collection?: Stripe.Emptyable<
1315
+ PaymentLinkUpdateParams.NameCollection
1316
+ >;
1317
+
1268
1318
  /**
1269
1319
  * A subset of parameters to be passed to PaymentIntent creation for Checkout Sessions in `payment` mode.
1270
1320
  */
@@ -1695,6 +1745,44 @@ declare module 'stripe' {
1695
1745
  }
1696
1746
  }
1697
1747
 
1748
+ interface NameCollection {
1749
+ /**
1750
+ * Controls settings applied for collecting the customer's business name.
1751
+ */
1752
+ business?: NameCollection.Business;
1753
+
1754
+ /**
1755
+ * Controls settings applied for collecting the customer's individual name.
1756
+ */
1757
+ individual?: NameCollection.Individual;
1758
+ }
1759
+
1760
+ namespace NameCollection {
1761
+ interface Business {
1762
+ /**
1763
+ * Enable business name collection on the payment link. Defaults to `false`.
1764
+ */
1765
+ enabled: boolean;
1766
+
1767
+ /**
1768
+ * Whether the customer is required to provide their business name before checking out. Defaults to `false`.
1769
+ */
1770
+ optional?: boolean;
1771
+ }
1772
+
1773
+ interface Individual {
1774
+ /**
1775
+ * Enable individual name collection on the payment link. Defaults to `false`.
1776
+ */
1777
+ enabled: boolean;
1778
+
1779
+ /**
1780
+ * Whether the customer is required to provide their full name before checking out. Defaults to `false`.
1781
+ */
1782
+ optional?: boolean;
1783
+ }
1784
+ }
1785
+
1698
1786
  interface PaymentIntentData {
1699
1787
  /**
1700
1788
  * An arbitrary string attached to the object. Often useful for displaying to users.
@@ -71,6 +71,8 @@ declare module 'stripe' {
71
71
 
72
72
  cashapp?: PaymentMethodConfiguration.Cashapp;
73
73
 
74
+ crypto?: PaymentMethodConfiguration.Crypto;
75
+
74
76
  customer_balance?: PaymentMethodConfiguration.CustomerBalance;
75
77
 
76
78
  eps?: PaymentMethodConfiguration.Eps;
@@ -111,6 +113,8 @@ declare module 'stripe' {
111
113
  */
112
114
  livemode: boolean;
113
115
 
116
+ mb_way?: PaymentMethodConfiguration.MbWay;
117
+
114
118
  mobilepay?: PaymentMethodConfiguration.Mobilepay;
115
119
 
116
120
  multibanco?: PaymentMethodConfiguration.Multibanco;
@@ -719,6 +723,40 @@ declare module 'stripe' {
719
723
  }
720
724
  }
721
725
 
726
+ interface Crypto {
727
+ /**
728
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
729
+ */
730
+ available: boolean;
731
+
732
+ display_preference: Crypto.DisplayPreference;
733
+ }
734
+
735
+ namespace Crypto {
736
+ interface DisplayPreference {
737
+ /**
738
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
739
+ */
740
+ overridable: boolean | null;
741
+
742
+ /**
743
+ * The account's display preference.
744
+ */
745
+ preference: DisplayPreference.Preference;
746
+
747
+ /**
748
+ * The effective display preference value.
749
+ */
750
+ value: DisplayPreference.Value;
751
+ }
752
+
753
+ namespace DisplayPreference {
754
+ type Preference = 'none' | 'off' | 'on';
755
+
756
+ type Value = 'off' | 'on';
757
+ }
758
+ }
759
+
722
760
  interface CustomerBalance {
723
761
  /**
724
762
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1229,6 +1267,40 @@ declare module 'stripe' {
1229
1267
  }
1230
1268
  }
1231
1269
 
1270
+ interface MbWay {
1271
+ /**
1272
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
1273
+ */
1274
+ available: boolean;
1275
+
1276
+ display_preference: MbWay.DisplayPreference;
1277
+ }
1278
+
1279
+ namespace MbWay {
1280
+ interface DisplayPreference {
1281
+ /**
1282
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1283
+ */
1284
+ overridable: boolean | null;
1285
+
1286
+ /**
1287
+ * The account's display preference.
1288
+ */
1289
+ preference: DisplayPreference.Preference;
1290
+
1291
+ /**
1292
+ * The effective display preference value.
1293
+ */
1294
+ value: DisplayPreference.Value;
1295
+ }
1296
+
1297
+ namespace DisplayPreference {
1298
+ type Preference = 'none' | 'off' | 'on';
1299
+
1300
+ type Value = 'off' | 'on';
1301
+ }
1302
+ }
1303
+
1232
1304
  interface Mobilepay {
1233
1305
  /**
1234
1306
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -88,6 +88,11 @@ declare module 'stripe' {
88
88
  */
89
89
  cashapp?: PaymentMethodConfigurationCreateParams.Cashapp;
90
90
 
91
+ /**
92
+ * [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask.
93
+ */
94
+ crypto?: PaymentMethodConfigurationCreateParams.Crypto;
95
+
91
96
  /**
92
97
  * Uses a customer's [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.
93
98
  */
@@ -173,6 +178,11 @@ declare module 'stripe' {
173
178
  */
174
179
  link?: PaymentMethodConfigurationCreateParams.Link;
175
180
 
181
+ /**
182
+ * MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details.
183
+ */
184
+ mb_way?: PaymentMethodConfigurationCreateParams.MbWay;
185
+
176
186
  /**
177
187
  * MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
178
188
  */
@@ -655,6 +665,26 @@ declare module 'stripe' {
655
665
  }
656
666
  }
657
667
 
668
+ interface Crypto {
669
+ /**
670
+ * Whether or not the payment method should be displayed.
671
+ */
672
+ display_preference?: Crypto.DisplayPreference;
673
+ }
674
+
675
+ namespace Crypto {
676
+ interface DisplayPreference {
677
+ /**
678
+ * The account's preference for whether or not to display this payment method.
679
+ */
680
+ preference?: DisplayPreference.Preference;
681
+ }
682
+
683
+ namespace DisplayPreference {
684
+ type Preference = 'none' | 'off' | 'on';
685
+ }
686
+ }
687
+
658
688
  interface CustomerBalance {
659
689
  /**
660
690
  * Whether or not the payment method should be displayed.
@@ -975,6 +1005,26 @@ declare module 'stripe' {
975
1005
  }
976
1006
  }
977
1007
 
1008
+ interface MbWay {
1009
+ /**
1010
+ * Whether or not the payment method should be displayed.
1011
+ */
1012
+ display_preference?: MbWay.DisplayPreference;
1013
+ }
1014
+
1015
+ namespace MbWay {
1016
+ interface DisplayPreference {
1017
+ /**
1018
+ * The account's preference for whether or not to display this payment method.
1019
+ */
1020
+ preference?: DisplayPreference.Preference;
1021
+ }
1022
+
1023
+ namespace DisplayPreference {
1024
+ type Preference = 'none' | 'off' | 'on';
1025
+ }
1026
+ }
1027
+
978
1028
  interface Mobilepay {
979
1029
  /**
980
1030
  * Whether or not the payment method should be displayed.
@@ -1594,6 +1644,11 @@ declare module 'stripe' {
1594
1644
  */
1595
1645
  cashapp?: PaymentMethodConfigurationUpdateParams.Cashapp;
1596
1646
 
1647
+ /**
1648
+ * [Stablecoin payments](https://stripe.com/docs/payments/stablecoin-payments) enable customers to pay in stablecoins like USDC from 100s of wallets including Phantom and Metamask.
1649
+ */
1650
+ crypto?: PaymentMethodConfigurationUpdateParams.Crypto;
1651
+
1597
1652
  /**
1598
1653
  * Uses a customer's [cash balance](https://stripe.com/docs/payments/customer-balance) for the payment. The cash balance can be funded via a bank transfer. Check this [page](https://stripe.com/docs/payments/bank-transfers) for more details.
1599
1654
  */
@@ -1679,6 +1734,11 @@ declare module 'stripe' {
1679
1734
  */
1680
1735
  link?: PaymentMethodConfigurationUpdateParams.Link;
1681
1736
 
1737
+ /**
1738
+ * MB WAY is the most popular wallet in Portugal. After entering their phone number in your checkout, customers approve the payment directly in their MB WAY app. Check this [page](https://stripe.com/docs/payments/mb-way) for more details.
1739
+ */
1740
+ mb_way?: PaymentMethodConfigurationUpdateParams.MbWay;
1741
+
1682
1742
  /**
1683
1743
  * MobilePay is a [single-use](https://stripe.com/docs/payments/payment-methods#usage) card wallet payment method used in Denmark and Finland. It allows customers to [authenticate and approve](https://stripe.com/docs/payments/payment-methods#customer-actions) payments using the MobilePay app. Check this [page](https://stripe.com/docs/payments/mobilepay) for more details.
1684
1744
  */
@@ -2156,6 +2216,26 @@ declare module 'stripe' {
2156
2216
  }
2157
2217
  }
2158
2218
 
2219
+ interface Crypto {
2220
+ /**
2221
+ * Whether or not the payment method should be displayed.
2222
+ */
2223
+ display_preference?: Crypto.DisplayPreference;
2224
+ }
2225
+
2226
+ namespace Crypto {
2227
+ interface DisplayPreference {
2228
+ /**
2229
+ * The account's preference for whether or not to display this payment method.
2230
+ */
2231
+ preference?: DisplayPreference.Preference;
2232
+ }
2233
+
2234
+ namespace DisplayPreference {
2235
+ type Preference = 'none' | 'off' | 'on';
2236
+ }
2237
+ }
2238
+
2159
2239
  interface CustomerBalance {
2160
2240
  /**
2161
2241
  * Whether or not the payment method should be displayed.
@@ -2476,6 +2556,26 @@ declare module 'stripe' {
2476
2556
  }
2477
2557
  }
2478
2558
 
2559
+ interface MbWay {
2560
+ /**
2561
+ * Whether or not the payment method should be displayed.
2562
+ */
2563
+ display_preference?: MbWay.DisplayPreference;
2564
+ }
2565
+
2566
+ namespace MbWay {
2567
+ interface DisplayPreference {
2568
+ /**
2569
+ * The account's preference for whether or not to display this payment method.
2570
+ */
2571
+ preference?: DisplayPreference.Preference;
2572
+ }
2573
+
2574
+ namespace DisplayPreference {
2575
+ type Preference = 'none' | 'off' | 'on';
2576
+ }
2577
+ }
2578
+
2479
2579
  interface Mobilepay {
2480
2580
  /**
2481
2581
  * Whether or not the payment method should be displayed.
@@ -64,6 +64,8 @@ declare module 'stripe' {
64
64
 
65
65
  crypto?: PaymentMethod.Crypto;
66
66
 
67
+ custom?: PaymentMethod.Custom;
68
+
67
69
  /**
68
70
  * The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
69
71
  */
@@ -913,6 +915,37 @@ declare module 'stripe' {
913
915
 
914
916
  interface Crypto {}
915
917
 
918
+ interface Custom {
919
+ /**
920
+ * Display name of the Dashboard-only CustomPaymentMethodType.
921
+ */
922
+ display_name: string | null;
923
+
924
+ /**
925
+ * Contains information about the Dashboard-only CustomPaymentMethodType logo.
926
+ */
927
+ logo: Custom.Logo | null;
928
+
929
+ /**
930
+ * ID of the Dashboard-only CustomPaymentMethodType. Not expandable.
931
+ */
932
+ type: string;
933
+ }
934
+
935
+ namespace Custom {
936
+ interface Logo {
937
+ /**
938
+ * Content type of the Dashboard-only CustomPaymentMethodType logo.
939
+ */
940
+ content_type: string | null;
941
+
942
+ /**
943
+ * URL of the Dashboard-only CustomPaymentMethodType logo.
944
+ */
945
+ url: string;
946
+ }
947
+ }
948
+
916
949
  interface CustomerBalance {}
917
950
 
918
951
  interface Eps {
@@ -1524,6 +1557,7 @@ declare module 'stripe' {
1524
1557
  | 'card_present'
1525
1558
  | 'cashapp'
1526
1559
  | 'crypto'
1560
+ | 'custom'
1527
1561
  | 'customer_balance'
1528
1562
  | 'eps'
1529
1563
  | 'fpx'
@@ -88,6 +88,11 @@ declare module 'stripe' {
88
88
  */
89
89
  crypto?: PaymentMethodCreateParams.Crypto;
90
90
 
91
+ /**
92
+ * If this is a `custom` PaymentMethod, this hash contains details about the Custom payment method.
93
+ */
94
+ custom?: PaymentMethodCreateParams.Custom;
95
+
91
96
  /**
92
97
  * The `Customer` to whom the original PaymentMethod is attached.
93
98
  */
@@ -477,6 +482,13 @@ declare module 'stripe' {
477
482
 
478
483
  interface Crypto {}
479
484
 
485
+ interface Custom {
486
+ /**
487
+ * ID of the Dashboard-only CustomPaymentMethodType. This field is used by Stripe products' internal code to support CPMs.
488
+ */
489
+ type: string;
490
+ }
491
+
480
492
  interface CustomerBalance {}
481
493
 
482
494
  interface Eps {
@@ -852,6 +864,7 @@ declare module 'stripe' {
852
864
  | 'card'
853
865
  | 'cashapp'
854
866
  | 'crypto'
867
+ | 'custom'
855
868
  | 'customer_balance'
856
869
  | 'eps'
857
870
  | 'fpx'
@@ -1085,7 +1098,7 @@ declare module 'stripe' {
1085
1098
  expand?: Array<string>;
1086
1099
 
1087
1100
  /**
1088
- * An optional filter on the list, based on the object `type` field. Without the filter, the list includes all current and future payment method types. If your integration expects only one type of payment method in the response, make sure to provide a type value in the request.
1101
+ * Filters the list by the object `type` field. Unfiltered, the list returns all payment method types except `custom`. If your integration expects only one type of payment method in the response, specify that type value in the request to reduce your payload.
1089
1102
  */
1090
1103
  type?: PaymentMethodListParams.Type;
1091
1104
  }
@@ -1107,6 +1120,7 @@ declare module 'stripe' {
1107
1120
  | 'card'
1108
1121
  | 'cashapp'
1109
1122
  | 'crypto'
1123
+ | 'custom'
1110
1124
  | 'customer_balance'
1111
1125
  | 'eps'
1112
1126
  | 'fpx'
@@ -1179,7 +1179,7 @@ declare module 'stripe' {
1179
1179
  }
1180
1180
 
1181
1181
  namespace Crypto {
1182
- type Network = 'base' | 'ethereum' | 'polygon';
1182
+ type Network = 'base' | 'ethereum' | 'polygon' | 'solana';
1183
1183
 
1184
1184
  type TokenCurrency = 'usdc' | 'usdg' | 'usdp';
1185
1185
  }
@@ -2012,7 +2012,12 @@ declare module 'stripe' {
2012
2012
 
2013
2013
  interface Qris {}
2014
2014
 
2015
- interface Rechnung {}
2015
+ interface Rechnung {
2016
+ /**
2017
+ * Payment portal URL.
2018
+ */
2019
+ payment_portal_url: string | null;
2020
+ }
2016
2021
 
2017
2022
  interface RevolutPay {
2018
2023
  funding?: RevolutPay.Funding;
@@ -478,6 +478,85 @@ declare module 'stripe' {
478
478
  }
479
479
  }
480
480
 
481
+ interface PaymentRecordReportRefundParams {
482
+ /**
483
+ * The outcome of the reported refund.
484
+ */
485
+ outcome: 'refunded';
486
+
487
+ /**
488
+ * Processor information for this refund.
489
+ */
490
+ processor_details: PaymentRecordReportRefundParams.ProcessorDetails;
491
+
492
+ /**
493
+ * Information about the payment attempt refund.
494
+ */
495
+ refunded: PaymentRecordReportRefundParams.Refunded;
496
+
497
+ /**
498
+ * A positive integer in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) representing how much of this payment to refund. Can refund only up to the remaining, unrefunded amount of the payment.
499
+ */
500
+ amount?: PaymentRecordReportRefundParams.Amount;
501
+
502
+ /**
503
+ * Specifies which fields in the response should be expanded.
504
+ */
505
+ expand?: Array<string>;
506
+
507
+ /**
508
+ * When the reported refund was initiated. Measured in seconds since the Unix epoch.
509
+ */
510
+ initiated_at?: number;
511
+
512
+ /**
513
+ * Set of [key-value pairs](https://stripe.com/docs/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`.
514
+ */
515
+ metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
516
+ }
517
+
518
+ namespace PaymentRecordReportRefundParams {
519
+ interface Amount {
520
+ /**
521
+ * 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).
522
+ */
523
+ currency: string;
524
+
525
+ /**
526
+ * A positive integer representing the amount in the currency's [minor unit](https://stripe.com/docs/currencies#zero-decimal). For example, `100` can represent 1 USD or 100 JPY.
527
+ */
528
+ value: number;
529
+ }
530
+
531
+ interface ProcessorDetails {
532
+ /**
533
+ * Information about the custom processor used to make this refund.
534
+ */
535
+ custom?: ProcessorDetails.Custom;
536
+
537
+ /**
538
+ * The type of the processor details. An additional hash is included on processor_details with a name matching this value. It contains additional information specific to the processor.
539
+ */
540
+ type: 'custom';
541
+ }
542
+
543
+ namespace ProcessorDetails {
544
+ interface Custom {
545
+ /**
546
+ * A reference to the external refund. This field must be unique across all refunds.
547
+ */
548
+ refund_reference: string;
549
+ }
550
+ }
551
+
552
+ interface Refunded {
553
+ /**
554
+ * When the reported refund completed. Measured in seconds since the Unix epoch.
555
+ */
556
+ refunded_at: number;
557
+ }
558
+ }
559
+
481
560
  class PaymentRecordsResource {
482
561
  /**
483
562
  * Retrieves a Payment Record with the given ID
@@ -554,6 +633,16 @@ declare module 'stripe' {
554
633
  id: string,
555
634
  options?: RequestOptions
556
635
  ): Promise<Stripe.Response<Stripe.PaymentRecord>>;
636
+
637
+ /**
638
+ * Report that the most recent payment attempt on the specified Payment Record
639
+ * was refunded.
640
+ */
641
+ reportRefund(
642
+ id: string,
643
+ params: PaymentRecordReportRefundParams,
644
+ options?: RequestOptions
645
+ ): Promise<Stripe.Response<Stripe.PaymentRecord>>;
557
646
  }
558
647
  }
559
648
  }
@@ -183,7 +183,7 @@ declare module 'stripe' {
183
183
  ): Promise<Stripe.Response<Stripe.Payout>>;
184
184
 
185
185
  /**
186
- * Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
186
+ * Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US and Canadian bank accounts. If the payout is manual and in the pending status, use /v1/payouts/:id/cancel instead.
187
187
  *
188
188
  * By requesting a reversal through /v1/payouts/:id/reverse, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.
189
189
  */
@@ -404,6 +404,7 @@ declare module 'stripe' {
404
404
  | 'invalid_url_website_other'
405
405
  | 'invalid_value_other'
406
406
  | 'unsupported_business_type'
407
+ | 'verification_data_not_found'
407
408
  | 'verification_directors_mismatch'
408
409
  | 'verification_document_address_mismatch'
409
410
  | 'verification_document_address_missing'
@@ -612,6 +613,7 @@ declare module 'stripe' {
612
613
  | 'invalid_url_website_other'
613
614
  | 'invalid_value_other'
614
615
  | 'unsupported_business_type'
616
+ | 'verification_data_not_found'
615
617
  | 'verification_directors_mismatch'
616
618
  | 'verification_document_address_mismatch'
617
619
  | 'verification_document_address_missing'
@@ -990,6 +990,7 @@ declare module 'stripe' {
990
990
  | 'payment_intent_mandate_invalid'
991
991
  | 'payment_intent_payment_attempt_expired'
992
992
  | 'payment_intent_payment_attempt_failed'
993
+ | 'payment_intent_rate_limit_exceeded'
993
994
  | 'payment_intent_unexpected_state'
994
995
  | 'payment_method_bank_account_already_verified'
995
996
  | 'payment_method_bank_account_blocked'