stripe 23.2.0-alpha.2 → 23.2.0-alpha.3

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 (136) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/StripeEventNotificationHandler.js +5 -0
  5. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  6. package/cjs/Webhooks.js +159 -42
  7. package/cjs/Webhooks.js.map +1 -1
  8. package/cjs/crypto/CryptoProvider.d.ts +4 -0
  9. package/cjs/crypto/CryptoProvider.js +6 -0
  10. package/cjs/crypto/CryptoProvider.js.map +1 -1
  11. package/cjs/crypto/NodeCryptoProvider.d.ts +2 -0
  12. package/cjs/crypto/NodeCryptoProvider.js +6 -2
  13. package/cjs/crypto/NodeCryptoProvider.js.map +1 -1
  14. package/cjs/crypto/SubtleCryptoProvider.d.ts +2 -0
  15. package/cjs/crypto/SubtleCryptoProvider.js +4 -0
  16. package/cjs/crypto/SubtleCryptoProvider.js.map +1 -1
  17. package/cjs/resources/BalanceTransactions.d.ts +1 -1
  18. package/cjs/resources/Charges.d.ts +23 -6
  19. package/cjs/resources/Checkout/Sessions.d.ts +6 -0
  20. package/cjs/resources/Checkout/Sessions.js +2 -0
  21. package/cjs/resources/Checkout/Sessions.js.map +1 -1
  22. package/cjs/resources/ConfirmationTokens.d.ts +19 -2
  23. package/cjs/resources/Customers.d.ts +50 -0
  24. package/cjs/resources/FxQuotes.d.ts +2 -2
  25. package/cjs/resources/Identity/VerificationReports.d.ts +32 -0
  26. package/cjs/resources/Mandates.d.ts +7 -0
  27. package/cjs/resources/PaymentAttemptRecords.d.ts +98 -1
  28. package/cjs/resources/PaymentIntents.d.ts +27 -0
  29. package/cjs/resources/PaymentMethodConfigurations.d.ts +70 -0
  30. package/cjs/resources/PaymentMethods.d.ts +19 -2
  31. package/cjs/resources/PaymentRecords.d.ts +132 -1
  32. package/cjs/resources/Radar/PaymentEvaluations.d.ts +24 -0
  33. package/cjs/resources/Reserve/Holds.d.ts +2 -2
  34. package/cjs/resources/Reserve/Holds.js +2 -2
  35. package/cjs/resources/Reserve/Plans.d.ts +2 -2
  36. package/cjs/resources/Reserve/Plans.js +2 -2
  37. package/cjs/resources/Reserve/Releases.d.ts +2 -2
  38. package/cjs/resources/Reserve/Releases.js +2 -2
  39. package/cjs/resources/SetupAttempts.d.ts +9 -2
  40. package/cjs/resources/SetupIntents.d.ts +34 -0
  41. package/cjs/resources/SharedPayment/GrantedTokens.d.ts +21 -2
  42. package/cjs/resources/SharedPayment/IssuedTokens.d.ts +36 -0
  43. package/cjs/resources/Terminal/Readers.d.ts +20 -2
  44. package/cjs/resources/V2/Core/Events.d.ts +81 -5
  45. package/cjs/resources/V2/Core/Events.js +12 -6
  46. package/cjs/resources/V2/Core/Events.js.map +1 -1
  47. package/cjs/resources/V2/Core/Vault/NetworkTokens.d.ts +1 -0
  48. package/cjs/resources/V2/Core/Vault/NetworkTokens.js +1 -0
  49. package/cjs/resources/V2/Core/Vault/NetworkTokens.js.map +1 -1
  50. package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +119 -1
  51. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +44 -2
  52. package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +76 -1
  53. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +43 -1
  54. package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +3 -0
  55. package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js +3 -0
  56. package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -1
  57. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +10 -1
  58. package/cjs/resources/V2/MoneyManagement/SpendingMandates.d.ts +171 -0
  59. package/cjs/resources/V2/MoneyManagement/SpendingMandates.js +29 -0
  60. package/cjs/resources/V2/MoneyManagement/SpendingMandates.js.map +1 -0
  61. package/cjs/resources/V2/MoneyManagement/index.d.ts +15 -8
  62. package/cjs/resources/V2/MoneyManagement/index.js +2 -0
  63. package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
  64. package/cjs/resources.js +2 -0
  65. package/cjs/resources.js.map +1 -1
  66. package/cjs/stripe.cjs.node.d.ts +187 -0
  67. package/cjs/stripe.cjs.node.js.map +1 -1
  68. package/cjs/stripe.core.js +7 -3
  69. package/cjs/stripe.core.js.map +1 -1
  70. package/esm/StripeEventNotificationHandler.js +5 -0
  71. package/esm/StripeEventNotificationHandler.js.map +1 -1
  72. package/esm/Webhooks.js +159 -42
  73. package/esm/Webhooks.js.map +1 -1
  74. package/esm/crypto/CryptoProvider.d.ts +4 -0
  75. package/esm/crypto/CryptoProvider.js +6 -0
  76. package/esm/crypto/CryptoProvider.js.map +1 -1
  77. package/esm/crypto/NodeCryptoProvider.d.ts +2 -0
  78. package/esm/crypto/NodeCryptoProvider.js +6 -2
  79. package/esm/crypto/NodeCryptoProvider.js.map +1 -1
  80. package/esm/crypto/SubtleCryptoProvider.d.ts +2 -0
  81. package/esm/crypto/SubtleCryptoProvider.js +4 -0
  82. package/esm/crypto/SubtleCryptoProvider.js.map +1 -1
  83. package/esm/resources/BalanceTransactions.d.ts +1 -1
  84. package/esm/resources/Charges.d.ts +23 -6
  85. package/esm/resources/Checkout/Sessions.d.ts +6 -0
  86. package/esm/resources/Checkout/Sessions.js +2 -0
  87. package/esm/resources/Checkout/Sessions.js.map +1 -1
  88. package/esm/resources/ConfirmationTokens.d.ts +19 -2
  89. package/esm/resources/Customers.d.ts +50 -0
  90. package/esm/resources/FxQuotes.d.ts +2 -2
  91. package/esm/resources/Identity/VerificationReports.d.ts +32 -0
  92. package/esm/resources/Mandates.d.ts +7 -0
  93. package/esm/resources/PaymentAttemptRecords.d.ts +98 -1
  94. package/esm/resources/PaymentIntents.d.ts +27 -0
  95. package/esm/resources/PaymentMethodConfigurations.d.ts +70 -0
  96. package/esm/resources/PaymentMethods.d.ts +19 -2
  97. package/esm/resources/PaymentRecords.d.ts +132 -1
  98. package/esm/resources/Radar/PaymentEvaluations.d.ts +24 -0
  99. package/esm/resources/Reserve/Holds.d.ts +2 -2
  100. package/esm/resources/Reserve/Holds.js +2 -2
  101. package/esm/resources/Reserve/Plans.d.ts +2 -2
  102. package/esm/resources/Reserve/Plans.js +2 -2
  103. package/esm/resources/Reserve/Releases.d.ts +2 -2
  104. package/esm/resources/Reserve/Releases.js +2 -2
  105. package/esm/resources/SetupAttempts.d.ts +9 -2
  106. package/esm/resources/SetupIntents.d.ts +34 -0
  107. package/esm/resources/SharedPayment/GrantedTokens.d.ts +21 -2
  108. package/esm/resources/SharedPayment/IssuedTokens.d.ts +36 -0
  109. package/esm/resources/Terminal/Readers.d.ts +20 -2
  110. package/esm/resources/V2/Core/Events.d.ts +81 -5
  111. package/esm/resources/V2/Core/Events.js +12 -6
  112. package/esm/resources/V2/Core/Events.js.map +1 -1
  113. package/esm/resources/V2/Core/Vault/NetworkTokens.d.ts +1 -0
  114. package/esm/resources/V2/Core/Vault/NetworkTokens.js +1 -0
  115. package/esm/resources/V2/Core/Vault/NetworkTokens.js.map +1 -1
  116. package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +119 -1
  117. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +44 -2
  118. package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +76 -1
  119. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +43 -1
  120. package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +3 -0
  121. package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js +3 -0
  122. package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -1
  123. package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +10 -1
  124. package/esm/resources/V2/MoneyManagement/SpendingMandates.d.ts +171 -0
  125. package/esm/resources/V2/MoneyManagement/SpendingMandates.js +25 -0
  126. package/esm/resources/V2/MoneyManagement/SpendingMandates.js.map +1 -0
  127. package/esm/resources/V2/MoneyManagement/index.d.ts +15 -8
  128. package/esm/resources/V2/MoneyManagement/index.js +2 -0
  129. package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
  130. package/esm/resources.js +2 -0
  131. package/esm/resources.js.map +1 -1
  132. package/esm/stripe.core.js +7 -3
  133. package/esm/stripe.core.js.map +1 -1
  134. package/esm/stripe.esm.node.js +7 -3
  135. package/esm/stripe.esm.node.js.map +1 -1
  136. package/package.json +1 -1
@@ -112,6 +112,7 @@ export interface PaymentMethodConfiguration {
112
112
  sofort?: PaymentMethodConfiguration.Sofort;
113
113
  sunbit?: PaymentMethodConfiguration.Sunbit;
114
114
  swish?: PaymentMethodConfiguration.Swish;
115
+ toss_pay?: PaymentMethodConfiguration.TossPay;
115
116
  twint?: PaymentMethodConfiguration.Twint;
116
117
  upi?: PaymentMethodConfiguration.Upi;
117
118
  us_bank_account?: PaymentMethodConfiguration.UsBankAccount;
@@ -540,6 +541,13 @@ export declare namespace PaymentMethodConfiguration {
540
541
  available: boolean;
541
542
  display_preference: Swish.DisplayPreference;
542
543
  }
544
+ interface TossPay {
545
+ /**
546
+ * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
547
+ */
548
+ available: boolean;
549
+ display_preference: TossPay.DisplayPreference;
550
+ }
543
551
  interface Twint {
544
552
  /**
545
553
  * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
@@ -1782,6 +1790,26 @@ export declare namespace PaymentMethodConfiguration {
1782
1790
  type Value = 'off' | 'on' | OtherString;
1783
1791
  }
1784
1792
  }
1793
+ namespace TossPay {
1794
+ interface DisplayPreference {
1795
+ /**
1796
+ * For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
1797
+ */
1798
+ overridable: boolean | null;
1799
+ /**
1800
+ * The account's display preference.
1801
+ */
1802
+ preference: DisplayPreference.Preference;
1803
+ /**
1804
+ * The effective display preference value.
1805
+ */
1806
+ value: DisplayPreference.Value;
1807
+ }
1808
+ namespace DisplayPreference {
1809
+ type Preference = 'none' | 'off' | 'on' | OtherString;
1810
+ type Value = 'off' | 'on' | OtherString;
1811
+ }
1812
+ }
1785
1813
  namespace Twint {
1786
1814
  interface DisplayPreference {
1787
1815
  /**
@@ -2164,6 +2192,10 @@ export interface PaymentMethodConfigurationCreateParams {
2164
2192
  * Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.
2165
2193
  */
2166
2194
  swish?: PaymentMethodConfigurationCreateParams.Swish;
2195
+ /**
2196
+ * Customers are redirected to Toss Pay to authenticate their payment, then return to your website or app. You receive immediate notification of whether the payment succeeded or failed. With recurring access, customers can authorize a reusable mandate for future off-session payments.
2197
+ */
2198
+ toss_pay?: PaymentMethodConfigurationCreateParams.TossPay;
2167
2199
  /**
2168
2200
  * Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
2169
2201
  */
@@ -2562,6 +2594,12 @@ export declare namespace PaymentMethodConfigurationCreateParams {
2562
2594
  */
2563
2595
  display_preference?: Swish.DisplayPreference;
2564
2596
  }
2597
+ interface TossPay {
2598
+ /**
2599
+ * Whether or not the payment method should be displayed.
2600
+ */
2601
+ display_preference?: TossPay.DisplayPreference;
2602
+ }
2565
2603
  interface Twint {
2566
2604
  /**
2567
2605
  * Whether or not the payment method should be displayed.
@@ -3280,6 +3318,17 @@ export declare namespace PaymentMethodConfigurationCreateParams {
3280
3318
  type Preference = 'none' | 'off' | 'on' | OtherString;
3281
3319
  }
3282
3320
  }
3321
+ namespace TossPay {
3322
+ interface DisplayPreference {
3323
+ /**
3324
+ * The account's preference for whether or not to display this payment method.
3325
+ */
3326
+ preference?: DisplayPreference.Preference;
3327
+ }
3328
+ namespace DisplayPreference {
3329
+ type Preference = 'none' | 'off' | 'on' | OtherString;
3330
+ }
3331
+ }
3283
3332
  namespace Twint {
3284
3333
  interface DisplayPreference {
3285
3334
  /**
@@ -3614,6 +3663,10 @@ export interface PaymentMethodConfigurationUpdateParams {
3614
3663
  * Swish is a [real-time](https://docs.stripe.com/payments/real-time) payment method popular in Sweden. It allows customers to [authenticate and approve](https://docs.stripe.com/payments/payment-methods#customer-actions) payments using the Swish mobile app and the Swedish BankID mobile app. Check this [page](https://docs.stripe.com/payments/swish) for more details.
3615
3664
  */
3616
3665
  swish?: PaymentMethodConfigurationUpdateParams.Swish;
3666
+ /**
3667
+ * Customers are redirected to Toss Pay to authenticate their payment, then return to your website or app. You receive immediate notification of whether the payment succeeded or failed. With recurring access, customers can authorize a reusable mandate for future off-session payments.
3668
+ */
3669
+ toss_pay?: PaymentMethodConfigurationUpdateParams.TossPay;
3617
3670
  /**
3618
3671
  * Twint is a payment method popular in Switzerland. It allows customers to pay using their mobile phone. Check this [page](https://docs.stripe.com/payments/twint) for more details.
3619
3672
  */
@@ -4012,6 +4065,12 @@ export declare namespace PaymentMethodConfigurationUpdateParams {
4012
4065
  */
4013
4066
  display_preference?: Swish.DisplayPreference;
4014
4067
  }
4068
+ interface TossPay {
4069
+ /**
4070
+ * Whether or not the payment method should be displayed.
4071
+ */
4072
+ display_preference?: TossPay.DisplayPreference;
4073
+ }
4015
4074
  interface Twint {
4016
4075
  /**
4017
4076
  * Whether or not the payment method should be displayed.
@@ -4730,6 +4789,17 @@ export declare namespace PaymentMethodConfigurationUpdateParams {
4730
4789
  type Preference = 'none' | 'off' | 'on' | OtherString;
4731
4790
  }
4732
4791
  }
4792
+ namespace TossPay {
4793
+ interface DisplayPreference {
4794
+ /**
4795
+ * The account's preference for whether or not to display this payment method.
4796
+ */
4797
+ preference?: DisplayPreference.Preference;
4798
+ }
4799
+ namespace DisplayPreference {
4800
+ type Preference = 'none' | 'off' | 'on' | OtherString;
4801
+ }
4802
+ }
4733
4803
  namespace Twint {
4734
4804
  interface DisplayPreference {
4735
4805
  /**
@@ -891,11 +891,11 @@ export declare namespace PaymentMethod {
891
891
  }
892
892
  interface Checks {
893
893
  /**
894
- * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
894
+ * If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
895
895
  */
896
896
  address_line1_check: string | null;
897
897
  /**
898
- * If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
898
+ * If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
899
899
  */
900
900
  address_postal_code_check: string | null;
901
901
  /**
@@ -1134,6 +1134,10 @@ export declare namespace PaymentMethod {
1134
1134
  * EMV tag 8A. A code returned by the card issuer.
1135
1135
  */
1136
1136
  authorization_response_code: string | null;
1137
+ /**
1138
+ * A message from the card issuer to show to the cardholder, and where it must be shown.
1139
+ */
1140
+ cardholder_message?: Receipt.CardholderMessage | null;
1137
1141
  /**
1138
1142
  * Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
1139
1143
  */
@@ -1185,6 +1189,19 @@ export declare namespace PaymentMethod {
1185
1189
  }
1186
1190
  namespace Receipt {
1187
1191
  type AccountType = 'checking' | 'credit' | 'prepaid' | 'unknown' | OtherString;
1192
+ interface CardholderMessage {
1193
+ /**
1194
+ * Where the message must be printed or displayed. An empty list means the message must not be shown.
1195
+ */
1196
+ destinations: Array<CardholderMessage.Destination>;
1197
+ /**
1198
+ * The message from the card issuer, such as the remaining balance.
1199
+ */
1200
+ value: string;
1201
+ }
1202
+ namespace CardholderMessage {
1203
+ type Destination = 'cardholder_receipt' | 'merchant_receipt' | 'point_of_sale' | OtherString;
1204
+ }
1188
1205
  }
1189
1206
  namespace Wallet {
1190
1207
  type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown' | OtherString;
@@ -1776,7 +1776,7 @@ export declare namespace PaymentRecord {
1776
1776
  */
1777
1777
  address_line1_check: Checks.AddressLine1Check | null;
1778
1778
  /**
1779
- * If you provide a address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
1779
+ * If you provide an address postal code, the check result is one of `pass`, `fail`, `unavailable`, or `unchecked`.
1780
1780
  */
1781
1781
  address_postal_code_check: Checks.AddressPostalCodeCheck | null;
1782
1782
  /**
@@ -1938,6 +1938,10 @@ export declare namespace PaymentRecord {
1938
1938
  * EMV tag 8A. A code returned by the card issuer.
1939
1939
  */
1940
1940
  authorization_response_code: string | null;
1941
+ /**
1942
+ * A message from the card issuer to show to the cardholder, and where it must be shown.
1943
+ */
1944
+ cardholder_message?: Receipt.CardholderMessage | null;
1941
1945
  /**
1942
1946
  * Describes the method used by the cardholder to verify ownership of the card. One of the following: `approval`, `failure`, `none`, `offline_pin`, `offline_pin_and_signature`, `online_pin`, or `signature`.
1943
1947
  */
@@ -1989,6 +1993,19 @@ export declare namespace PaymentRecord {
1989
1993
  }
1990
1994
  namespace Receipt {
1991
1995
  type AccountType = 'checking' | 'credit' | 'prepaid' | 'unknown' | OtherString;
1996
+ interface CardholderMessage {
1997
+ /**
1998
+ * Where the message must be printed or displayed. An empty list means the message must not be shown.
1999
+ */
2000
+ destinations: Array<CardholderMessage.Destination>;
2001
+ /**
2002
+ * The message from the card issuer, such as the remaining balance.
2003
+ */
2004
+ value: string;
2005
+ }
2006
+ namespace CardholderMessage {
2007
+ type Destination = 'cardholder_receipt' | 'merchant_receipt' | 'point_of_sale' | OtherString;
2008
+ }
1992
2009
  }
1993
2010
  namespace Wallet {
1994
2011
  type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown' | OtherString;
@@ -2590,6 +2607,10 @@ export declare namespace PaymentRecordReportPaymentParams {
2590
2607
  * Verification checks performed on the card.
2591
2608
  */
2592
2609
  checks?: Card.Checks;
2610
+ /**
2611
+ * Populated if this transaction used 3D Secure authentication.
2612
+ */
2613
+ three_d_secure?: Card.ThreeDSecure;
2593
2614
  }
2594
2615
  interface Custom {
2595
2616
  /**
@@ -2623,11 +2644,45 @@ export declare namespace PaymentRecordReportPaymentParams {
2623
2644
  */
2624
2645
  cvc_check?: Checks.CvcCheck;
2625
2646
  }
2647
+ interface ThreeDSecure {
2648
+ /**
2649
+ * For authenticated transactions: Indicates how the issuing bank authenticated the customer.
2650
+ */
2651
+ authentication_flow?: ThreeDSecure.AuthenticationFlow;
2652
+ /**
2653
+ * The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
2654
+ */
2655
+ electronic_commerce_indicator?: ThreeDSecure.ElectronicCommerceIndicator;
2656
+ /**
2657
+ * The exemption requested via 3DS and accepted by the issuer at authentication time.
2658
+ */
2659
+ exemption_indicator?: ThreeDSecure.ExemptionIndicator;
2660
+ /**
2661
+ * Indicates the outcome of 3D Secure authentication.
2662
+ */
2663
+ result: ThreeDSecure.Result;
2664
+ /**
2665
+ * Additional information about why 3D Secure succeeded or failed, based on the `result`.
2666
+ */
2667
+ result_reason?: ThreeDSecure.ResultReason;
2668
+ /**
2669
+ * The version of 3D Secure that was used.
2670
+ */
2671
+ version: ThreeDSecure.Version;
2672
+ }
2626
2673
  namespace Checks {
2627
2674
  type AddressLine1Check = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
2628
2675
  type AddressPostalCodeCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
2629
2676
  type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
2630
2677
  }
2678
+ namespace ThreeDSecure {
2679
+ type AuthenticationFlow = 'challenge' | 'frictionless' | OtherString;
2680
+ type ElectronicCommerceIndicator = '01' | '02' | '05' | '06' | '07' | OtherString;
2681
+ type ExemptionIndicator = 'low_risk' | 'none' | OtherString;
2682
+ type Result = 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | OtherString;
2683
+ type ResultReason = 'abandoned' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | OtherString;
2684
+ type Version = '1.0.2' | '2.1.0' | '2.2.0' | '2.3.0' | '2.3.1' | OtherString;
2685
+ }
2631
2686
  }
2632
2687
  }
2633
2688
  namespace ProcessorDetails {
@@ -2837,6 +2892,10 @@ export declare namespace PaymentRecordReportPaymentAttemptParams {
2837
2892
  * Verification checks performed on the card.
2838
2893
  */
2839
2894
  checks?: Card.Checks;
2895
+ /**
2896
+ * Populated if this transaction used 3D Secure authentication.
2897
+ */
2898
+ three_d_secure?: Card.ThreeDSecure;
2840
2899
  }
2841
2900
  interface Custom {
2842
2901
  /**
@@ -2870,11 +2929,45 @@ export declare namespace PaymentRecordReportPaymentAttemptParams {
2870
2929
  */
2871
2930
  cvc_check?: Checks.CvcCheck;
2872
2931
  }
2932
+ interface ThreeDSecure {
2933
+ /**
2934
+ * For authenticated transactions: Indicates how the issuing bank authenticated the customer.
2935
+ */
2936
+ authentication_flow?: ThreeDSecure.AuthenticationFlow;
2937
+ /**
2938
+ * The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
2939
+ */
2940
+ electronic_commerce_indicator?: ThreeDSecure.ElectronicCommerceIndicator;
2941
+ /**
2942
+ * The exemption requested via 3DS and accepted by the issuer at authentication time.
2943
+ */
2944
+ exemption_indicator?: ThreeDSecure.ExemptionIndicator;
2945
+ /**
2946
+ * Indicates the outcome of 3D Secure authentication.
2947
+ */
2948
+ result: ThreeDSecure.Result;
2949
+ /**
2950
+ * Additional information about why 3D Secure succeeded or failed, based on the `result`.
2951
+ */
2952
+ result_reason?: ThreeDSecure.ResultReason;
2953
+ /**
2954
+ * The version of 3D Secure that was used.
2955
+ */
2956
+ version: ThreeDSecure.Version;
2957
+ }
2873
2958
  namespace Checks {
2874
2959
  type AddressLine1Check = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
2875
2960
  type AddressPostalCodeCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
2876
2961
  type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
2877
2962
  }
2963
+ namespace ThreeDSecure {
2964
+ type AuthenticationFlow = 'challenge' | 'frictionless' | OtherString;
2965
+ type ElectronicCommerceIndicator = '01' | '02' | '05' | '06' | '07' | OtherString;
2966
+ type ExemptionIndicator = 'low_risk' | 'none' | OtherString;
2967
+ type Result = 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | OtherString;
2968
+ type ResultReason = 'abandoned' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | OtherString;
2969
+ type Version = '1.0.2' | '2.1.0' | '2.2.0' | '2.3.0' | '2.3.1' | OtherString;
2970
+ }
2878
2971
  }
2879
2972
  }
2880
2973
  }
@@ -3061,6 +3154,10 @@ export declare namespace PaymentRecordReportPaymentAttemptGuaranteedParams {
3061
3154
  * Verification checks performed on the card.
3062
3155
  */
3063
3156
  checks?: Card.Checks;
3157
+ /**
3158
+ * Populated if this transaction used 3D Secure authentication.
3159
+ */
3160
+ three_d_secure?: Card.ThreeDSecure;
3064
3161
  }
3065
3162
  type Type = 'card' | 'us_bank_account' | OtherString;
3066
3163
  namespace Card {
@@ -3078,11 +3175,45 @@ export declare namespace PaymentRecordReportPaymentAttemptGuaranteedParams {
3078
3175
  */
3079
3176
  cvc_check?: Checks.CvcCheck;
3080
3177
  }
3178
+ interface ThreeDSecure {
3179
+ /**
3180
+ * For authenticated transactions: Indicates how the issuing bank authenticated the customer.
3181
+ */
3182
+ authentication_flow?: ThreeDSecure.AuthenticationFlow;
3183
+ /**
3184
+ * The Electronic Commerce Indicator (ECI). A protocol-level field indicating what degree of authentication was performed.
3185
+ */
3186
+ electronic_commerce_indicator?: ThreeDSecure.ElectronicCommerceIndicator;
3187
+ /**
3188
+ * The exemption requested via 3DS and accepted by the issuer at authentication time.
3189
+ */
3190
+ exemption_indicator?: ThreeDSecure.ExemptionIndicator;
3191
+ /**
3192
+ * Indicates the outcome of 3D Secure authentication.
3193
+ */
3194
+ result: ThreeDSecure.Result;
3195
+ /**
3196
+ * Additional information about why 3D Secure succeeded or failed, based on the `result`.
3197
+ */
3198
+ result_reason?: ThreeDSecure.ResultReason;
3199
+ /**
3200
+ * The version of 3D Secure that was used.
3201
+ */
3202
+ version: ThreeDSecure.Version;
3203
+ }
3081
3204
  namespace Checks {
3082
3205
  type AddressLine1Check = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
3083
3206
  type AddressPostalCodeCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
3084
3207
  type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked' | OtherString;
3085
3208
  }
3209
+ namespace ThreeDSecure {
3210
+ type AuthenticationFlow = 'challenge' | 'frictionless' | OtherString;
3211
+ type ElectronicCommerceIndicator = '01' | '02' | '05' | '06' | '07' | OtherString;
3212
+ type ExemptionIndicator = 'low_risk' | 'none' | OtherString;
3213
+ type Result = 'attempt_acknowledged' | 'authenticated' | 'exempted' | 'failed' | 'not_supported' | 'processing_error' | OtherString;
3214
+ type ResultReason = 'abandoned' | 'canceled' | 'card_not_enrolled' | 'network_not_supported' | 'protocol_error' | 'rejected' | OtherString;
3215
+ type Version = '1.0.2' | '2.1.0' | '2.2.0' | '2.3.0' | '2.3.1' | OtherString;
3216
+ }
3086
3217
  }
3087
3218
  }
3088
3219
  namespace ProcessorDetails {
@@ -455,6 +455,14 @@ export declare namespace PaymentEvaluation {
455
455
  * Creditor identifier used for the intended debit.
456
456
  */
457
457
  creditor_id: string | null;
458
+ /**
459
+ * Describes the presence of the customer during the payment.
460
+ */
461
+ customer_presence: SepaDebit.CustomerPresence | null;
462
+ /**
463
+ * Describes whether this payment is one-off or recurring.
464
+ */
465
+ payment_type: SepaDebit.PaymentType | null;
458
466
  }
459
467
  interface UsBankAccount {
460
468
  /**
@@ -470,6 +478,10 @@ export declare namespace PaymentEvaluation {
470
478
  type CustomerPresence = 'off_session' | 'on_session' | OtherString;
471
479
  type PaymentType = 'one_off' | 'recurring' | 'setup_one_off' | 'setup_recurring' | OtherString;
472
480
  }
481
+ namespace SepaDebit {
482
+ type CustomerPresence = 'off_session' | 'on_session' | OtherString;
483
+ type PaymentType = 'one_off' | 'recurring';
484
+ }
473
485
  namespace UsBankAccount {
474
486
  type CustomerPresence = 'off_session' | 'on_session' | OtherString;
475
487
  type PaymentType = 'one_off' | 'recurring';
@@ -779,6 +791,14 @@ export declare namespace Radar {
779
791
  * Supply the SEPA Creditor Identifier configured for the intended debit with your selected processor. Obtain it from your processor's SEPA configuration API or onboarding/support information. Do not supply a statement descriptor, IBAN, processor merchant-account ID, or mandate reference. If the creditor identifier is unknown, omit it.
780
792
  */
781
793
  creditor_id?: string;
794
+ /**
795
+ * Describes the presence of the customer during the payment.
796
+ */
797
+ customer_presence?: SepaDebit.CustomerPresence;
798
+ /**
799
+ * Describes whether this payment is one-off or recurring.
800
+ */
801
+ payment_type?: SepaDebit.PaymentType;
782
802
  }
783
803
  interface UsBankAccount {
784
804
  /**
@@ -794,6 +814,10 @@ export declare namespace Radar {
794
814
  type CustomerPresence = 'off_session' | 'on_session' | OtherString;
795
815
  type PaymentType = 'one_off' | 'recurring' | 'setup_one_off' | 'setup_recurring' | OtherString;
796
816
  }
817
+ namespace SepaDebit {
818
+ type CustomerPresence = 'off_session' | 'on_session' | OtherString;
819
+ type PaymentType = 'one_off' | 'recurring';
820
+ }
797
821
  namespace UsBankAccount {
798
822
  type CustomerPresence = 'off_session' | 'on_session' | OtherString;
799
823
  type PaymentType = 'one_off' | 'recurring';
@@ -5,11 +5,11 @@ import { PaginationParams, OtherString, Metadata } from '../../shared.js';
5
5
  import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
6
6
  export declare class HoldResource extends StripeResource {
7
7
  /**
8
- * Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
8
+ * Returns a list of ReserveHolds on your account or on one of your connected accounts. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
9
9
  */
10
10
  list(params?: Reserve.HoldListParams, options?: RequestOptions): ApiListPromise<Hold>;
11
11
  /**
12
- * Retrieve a ReserveHold.
12
+ * Retrieve a ReserveHold on your account or on one of your connected accounts.
13
13
  */
14
14
  retrieve(id: string, params?: Reserve.HoldRetrieveParams, options?: RequestOptions): Promise<Response<Hold>>;
15
15
  }
@@ -2,7 +2,7 @@
2
2
  import { StripeResource } from '../../StripeResource.js';
3
3
  export class HoldResource extends StripeResource {
4
4
  /**
5
- * Returns a list of ReserveHolds previously created. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
5
+ * Returns a list of ReserveHolds on your account or on one of your connected accounts. The ReserveHolds are returned in sorted order, with the most recent ReserveHolds appearing first.
6
6
  */
7
7
  list(params, options) {
8
8
  return this._makeRequest('GET', '/v1/reserve/holds', params, options, {
@@ -10,7 +10,7 @@ export class HoldResource extends StripeResource {
10
10
  });
11
11
  }
12
12
  /**
13
- * Retrieve a ReserveHold.
13
+ * Retrieve a ReserveHold on your account or on one of your connected accounts.
14
14
  */
15
15
  retrieve(id, params, options) {
16
16
  return this._makeRequest('GET', `/v1/reserve/holds/${encodeURIComponent(id)}`, params, options);
@@ -3,11 +3,11 @@ import { PaginationParams, OtherString, Metadata } from '../../shared.js';
3
3
  import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
4
4
  export declare class PlanResource extends StripeResource {
5
5
  /**
6
- * Returns a list of ReservePlans previously created. The ReservePlans are returned in sorted order, with the most recent ReservePlans appearing first.
6
+ * Returns a list of ReservePlans on your account or on one of your connected accounts. The ReservePlans are returned in sorted order, with the most recent ReservePlans appearing first.
7
7
  */
8
8
  list(params?: Reserve.PlanListParams, options?: RequestOptions): ApiListPromise<Plan>;
9
9
  /**
10
- * Retrieve a ReservePlan.
10
+ * Retrieve a ReservePlan on your account or on one of your connected accounts.
11
11
  */
12
12
  retrieve(id: string, params?: Reserve.PlanRetrieveParams, options?: RequestOptions): Promise<Response<Plan>>;
13
13
  }
@@ -2,7 +2,7 @@
2
2
  import { StripeResource } from '../../StripeResource.js';
3
3
  export class PlanResource extends StripeResource {
4
4
  /**
5
- * Returns a list of ReservePlans previously created. The ReservePlans are returned in sorted order, with the most recent ReservePlans appearing first.
5
+ * Returns a list of ReservePlans on your account or on one of your connected accounts. The ReservePlans are returned in sorted order, with the most recent ReservePlans appearing first.
6
6
  */
7
7
  list(params, options) {
8
8
  return this._makeRequest('GET', '/v1/reserve/plans', params, options, {
@@ -10,7 +10,7 @@ export class PlanResource extends StripeResource {
10
10
  });
11
11
  }
12
12
  /**
13
- * Retrieve a ReservePlan.
13
+ * Retrieve a ReservePlan on your account or on one of your connected accounts.
14
14
  */
15
15
  retrieve(id, params, options) {
16
16
  return this._makeRequest('GET', `/v1/reserve/plans/${encodeURIComponent(id)}`, params, options);
@@ -7,11 +7,11 @@ import { PaginationParams, Metadata, OtherString } from '../../shared.js';
7
7
  import { RequestOptions, ApiListPromise, Response } from '../../lib.js';
8
8
  export declare class ReleaseResource extends StripeResource {
9
9
  /**
10
- * Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
10
+ * Returns a list of ReserveReleases on your account or on one of your connected accounts. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
11
11
  */
12
12
  list(params?: Reserve.ReleaseListParams, options?: RequestOptions): ApiListPromise<Release>;
13
13
  /**
14
- * Retrieve a ReserveRelease.
14
+ * Retrieve a ReserveRelease on your account or on one of your connected accounts.
15
15
  */
16
16
  retrieve(id: string, params?: Reserve.ReleaseRetrieveParams, options?: RequestOptions): Promise<Response<Release>>;
17
17
  }
@@ -2,7 +2,7 @@
2
2
  import { StripeResource } from '../../StripeResource.js';
3
3
  export class ReleaseResource extends StripeResource {
4
4
  /**
5
- * Returns a list of ReserveReleases previously created. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
5
+ * Returns a list of ReserveReleases on your account or on one of your connected accounts. The ReserveReleases are returned in sorted order, with the most recent ReserveReleases appearing first.
6
6
  */
7
7
  list(params, options) {
8
8
  return this._makeRequest('GET', '/v1/reserve/releases', params, options, {
@@ -10,7 +10,7 @@ export class ReleaseResource extends StripeResource {
10
10
  });
11
11
  }
12
12
  /**
13
- * Retrieve a ReserveRelease.
13
+ * Retrieve a ReserveRelease on your account or on one of your connected accounts.
14
14
  */
15
15
  retrieve(id, params, options) {
16
16
  return this._makeRequest('GET', `/v1/reserve/releases/${encodeURIComponent(id)}`, params, options);
@@ -113,6 +113,7 @@ export declare namespace SetupAttempt {
113
113
  sepa_debit?: PaymentMethodDetails.SepaDebit;
114
114
  sofort?: PaymentMethodDetails.Sofort;
115
115
  stripe_balance?: PaymentMethodDetails.StripeBalance;
116
+ toss_pay?: PaymentMethodDetails.TossPay;
116
117
  twint?: PaymentMethodDetails.Twint;
117
118
  /**
118
119
  * The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method.
@@ -473,6 +474,12 @@ export declare namespace SetupAttempt {
473
474
  }
474
475
  interface StripeBalance {
475
476
  }
477
+ interface TossPay {
478
+ /**
479
+ * The buyer identifier provided by NICE for this Toss Pay account, when available.
480
+ */
481
+ buyer_id: string | null;
482
+ }
476
483
  interface Twint {
477
484
  }
478
485
  interface Upi {
@@ -485,11 +492,11 @@ export declare namespace SetupAttempt {
485
492
  namespace Card {
486
493
  interface Checks {
487
494
  /**
488
- * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
495
+ * If an address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
489
496
  */
490
497
  address_line1_check: string | null;
491
498
  /**
492
- * If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
499
+ * If an address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`.
493
500
  */
494
501
  address_postal_code_check: string | null;
495
502
  /**