stripe 17.2.0-beta.2 → 17.2.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 (183) hide show
  1. package/CHANGELOG.md +117 -899
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/Webhooks.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -4
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
  12. package/cjs/resources/V2/Core/Events.js +50 -7
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/Webhooks.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
  23. package/esm/resources/V2/Core/Events.js +50 -7
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +5 -75
  29. package/types/AccountSessionsResource.d.ts +5 -354
  30. package/types/Accounts.d.ts +3 -127
  31. package/types/AccountsResource.d.ts +2 -296
  32. package/types/Billing/CreditGrants.d.ts +2 -2
  33. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  34. package/types/Billing/Meters.d.ts +0 -2
  35. package/types/Charges.d.ts +0 -152
  36. package/types/ChargesResource.d.ts +0 -1294
  37. package/types/Checkout/Sessions.d.ts +5 -309
  38. package/types/Checkout/SessionsResource.d.ts +5 -356
  39. package/types/ConfirmationTokens.d.ts +0 -137
  40. package/types/Coupons.d.ts +1 -1
  41. package/types/CouponsResource.d.ts +1 -1
  42. package/types/CreditNotes.d.ts +0 -21
  43. package/types/CreditNotesResource.d.ts +0 -51
  44. package/types/CustomersResource.d.ts +2 -22
  45. package/types/Disputes.d.ts +0 -152
  46. package/types/DisputesResource.d.ts +0 -120
  47. package/types/EventTypes.d.ts +2 -564
  48. package/types/Events.d.ts +0 -91
  49. package/types/FinancialConnections/Accounts.d.ts +1 -29
  50. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  51. package/types/FinancialConnections/Sessions.d.ts +1 -49
  52. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  53. package/types/Forwarding/Requests.d.ts +0 -5
  54. package/types/InvoiceItems.d.ts +0 -5
  55. package/types/InvoiceItemsResource.d.ts +0 -98
  56. package/types/InvoiceLineItems.d.ts +1 -31
  57. package/types/Invoices.d.ts +3 -134
  58. package/types/InvoicesResource.d.ts +1836 -5515
  59. package/types/Issuing/Authorizations.d.ts +1 -1
  60. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  61. package/types/Issuing/CardholdersResource.d.ts +1 -2
  62. package/types/Issuing/Transactions.d.ts +0 -2
  63. package/types/Issuing/TransactionsResource.d.ts +0 -5
  64. package/types/LineItems.d.ts +0 -7
  65. package/types/Mandates.d.ts +0 -85
  66. package/types/PaymentIntents.d.ts +1 -643
  67. package/types/PaymentIntentsResource.d.ts +3463 -7739
  68. package/types/PaymentLinks.d.ts +0 -3
  69. package/types/PaymentLinksResource.d.ts +0 -6
  70. package/types/PaymentMethodConfigurations.d.ts +0 -36
  71. package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
  72. package/types/PaymentMethods.d.ts +0 -137
  73. package/types/PaymentMethodsResource.d.ts +0 -158
  74. package/types/Persons.d.ts +1 -1
  75. package/types/Prices.d.ts +0 -22
  76. package/types/PricesResource.d.ts +0 -22
  77. package/types/Products.d.ts +0 -39
  78. package/types/ProductsResource.d.ts +0 -36
  79. package/types/Quotes.d.ts +1 -591
  80. package/types/QuotesResource.d.ts +199 -2531
  81. package/types/SetupAttempts.d.ts +0 -19
  82. package/types/SetupIntents.d.ts +1 -112
  83. package/types/SetupIntentsResource.d.ts +3 -669
  84. package/types/Sources.d.ts +0 -23
  85. package/types/SubscriptionItems.d.ts +0 -21
  86. package/types/SubscriptionItemsResource.d.ts +0 -109
  87. package/types/SubscriptionSchedules.d.ts +0 -200
  88. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  89. package/types/Subscriptions.d.ts +1 -82
  90. package/types/SubscriptionsResource.d.ts +3 -348
  91. package/types/Tax/CalculationLineItems.d.ts +0 -1
  92. package/types/Tax/Calculations.d.ts +1 -33
  93. package/types/Tax/CalculationsResource.d.ts +1 -7
  94. package/types/Tax/Registrations.d.ts +0 -82
  95. package/types/Tax/RegistrationsResource.d.ts +0 -109
  96. package/types/Tax/Transactions.d.ts +1 -8
  97. package/types/TaxIds.d.ts +1 -7
  98. package/types/TaxIdsResource.d.ts +1 -7
  99. package/types/TaxRates.d.ts +0 -25
  100. package/types/TaxRatesResource.d.ts +0 -2
  101. package/types/Terminal/Readers.d.ts +0 -278
  102. package/types/Terminal/ReadersResource.d.ts +0 -215
  103. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
  104. package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
  105. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  106. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  107. package/types/TokensResource.d.ts +1 -1
  108. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  109. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  110. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  111. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  112. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  113. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  114. package/types/UsageRecordSummaries.d.ts +1 -1
  115. package/types/V2/Billing/MeterEventAdjustments.d.ts +1 -1
  116. package/types/V2/Billing/MeterEventSessions.d.ts +1 -1
  117. package/types/V2/Billing/MeterEvents.d.ts +1 -1
  118. package/types/V2/EventTypes.d.ts +3 -1
  119. package/types/WebhookEndpointsResource.d.ts +0 -66
  120. package/types/index.d.ts +0 -53
  121. package/cjs/resources/AccountNotices.js +0 -21
  122. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  123. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  124. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  125. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  126. package/cjs/resources/GiftCards/Cards.js +0 -23
  127. package/cjs/resources/GiftCards/Transactions.js +0 -33
  128. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  129. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  130. package/cjs/resources/Margins.js +0 -22
  131. package/cjs/resources/Orders.js +0 -24
  132. package/cjs/resources/Tax/Associations.js +0 -9
  133. package/cjs/resources/Tax/Forms.js +0 -20
  134. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  135. package/esm/resources/AccountNotices.js +0 -18
  136. package/esm/resources/Capital/FinancingOffers.js +0 -18
  137. package/esm/resources/Capital/FinancingSummary.js +0 -9
  138. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  139. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  140. package/esm/resources/GiftCards/Cards.js +0 -20
  141. package/esm/resources/GiftCards/Transactions.js +0 -30
  142. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  143. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  144. package/esm/resources/Margins.js +0 -19
  145. package/esm/resources/Orders.js +0 -21
  146. package/esm/resources/Tax/Associations.js +0 -6
  147. package/esm/resources/Tax/Forms.js +0 -17
  148. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  149. package/types/AccountNotices.d.ts +0 -113
  150. package/types/AccountNoticesResource.d.ts +0 -98
  151. package/types/Billing/MeterErrorReports.d.ts +0 -106
  152. package/types/Capital/FinancingOffers.d.ts +0 -188
  153. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  154. package/types/Capital/FinancingSummary.d.ts +0 -106
  155. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  156. package/types/Capital/FinancingTransactions.d.ts +0 -135
  157. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  158. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  159. package/types/FinancialConnections/Institutions.d.ts +0 -93
  160. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  161. package/types/GiftCards/Cards.d.ts +0 -118
  162. package/types/GiftCards/CardsResource.d.ts +0 -159
  163. package/types/GiftCards/Transactions.d.ts +0 -129
  164. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  165. package/types/InvoicePayments.d.ts +0 -138
  166. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  167. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  168. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  169. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  170. package/types/Issuing/Settlements.d.ts +0 -103
  171. package/types/Margins.d.ts +0 -56
  172. package/types/MarginsResource.d.ts +0 -114
  173. package/types/Orders.d.ts +0 -1154
  174. package/types/OrdersResource.d.ts +0 -2911
  175. package/types/QuoteLines.d.ts +0 -634
  176. package/types/QuotePreviewInvoices.d.ts +0 -1596
  177. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  178. package/types/Tax/Associations.d.ts +0 -126
  179. package/types/Tax/AssociationsResource.d.ts +0 -29
  180. package/types/Tax/Forms.d.ts +0 -133
  181. package/types/Tax/FormsResource.d.ts +0 -90
  182. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  183. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -110,18 +110,12 @@ declare module 'stripe' {
110
110
 
111
111
  ideal?: PaymentMethodDetails.Ideal;
112
112
 
113
- kakao_pay?: PaymentMethodDetails.KakaoPay;
114
-
115
113
  klarna?: PaymentMethodDetails.Klarna;
116
114
 
117
- kr_card?: PaymentMethodDetails.KrCard;
118
-
119
115
  link?: PaymentMethodDetails.Link;
120
116
 
121
117
  paypal?: PaymentMethodDetails.Paypal;
122
118
 
123
- payto?: PaymentMethodDetails.Payto;
124
-
125
119
  revolut_pay?: PaymentMethodDetails.RevolutPay;
126
120
 
127
121
  sepa_debit?: PaymentMethodDetails.SepaDebit;
@@ -468,18 +462,12 @@ declare module 'stripe' {
468
462
  | 'TRIONL2U';
469
463
  }
470
464
 
471
- interface KakaoPay {}
472
-
473
465
  interface Klarna {}
474
466
 
475
- interface KrCard {}
476
-
477
467
  interface Link {}
478
468
 
479
469
  interface Paypal {}
480
470
 
481
- interface Payto {}
482
-
483
471
  interface RevolutPay {}
484
472
 
485
473
  interface SepaDebit {}
@@ -683,15 +671,11 @@ declare module 'stripe' {
683
671
  | 'email_invalid'
684
672
  | 'expired_card'
685
673
  | 'financial_connections_account_inactive'
686
- | 'financial_connections_institution_unavailable'
687
674
  | 'financial_connections_no_successful_transaction_refresh'
688
675
  | 'forwarding_api_inactive'
689
676
  | 'forwarding_api_invalid_parameter'
690
677
  | 'forwarding_api_upstream_connection_error'
691
678
  | 'forwarding_api_upstream_connection_timeout'
692
- | 'gift_card_balance_insufficient'
693
- | 'gift_card_code_exists'
694
- | 'gift_card_inactive'
695
679
  | 'idempotency_key_in_use'
696
680
  | 'incorrect_address'
697
681
  | 'incorrect_cvc'
@@ -765,7 +749,6 @@ declare module 'stripe' {
765
749
  | 'payment_method_unexpected_state'
766
750
  | 'payment_method_unsupported_type'
767
751
  | 'payout_reconciliation_not_ready'
768
- | 'payout_statement_descriptor_profanity'
769
752
  | 'payouts_limit_exceeded'
770
753
  | 'payouts_not_allowed'
771
754
  | 'platform_account_required'
@@ -782,7 +765,6 @@ declare module 'stripe' {
782
765
  | 'return_intent_already_processed'
783
766
  | 'routing_number_invalid'
784
767
  | 'secret_key_required'
785
- | 'sensitive_data_access_expired'
786
768
  | 'sepa_unsupported_account'
787
769
  | 'setup_attempt_failed'
788
770
  | 'setup_intent_authentication_failure'
@@ -800,7 +782,6 @@ declare module 'stripe' {
800
782
  | 'taxes_calculation_failed'
801
783
  | 'terminal_location_country_unsupported'
802
784
  | 'terminal_reader_busy'
803
- | 'terminal_reader_collected_data_invalid'
804
785
  | 'terminal_reader_hardware_fault'
805
786
  | 'terminal_reader_invalid_location_for_activation'
806
787
  | 'terminal_reader_invalid_location_for_payment'
@@ -336,15 +336,11 @@ declare module 'stripe' {
336
336
  | 'email_invalid'
337
337
  | 'expired_card'
338
338
  | 'financial_connections_account_inactive'
339
- | 'financial_connections_institution_unavailable'
340
339
  | 'financial_connections_no_successful_transaction_refresh'
341
340
  | 'forwarding_api_inactive'
342
341
  | 'forwarding_api_invalid_parameter'
343
342
  | 'forwarding_api_upstream_connection_error'
344
343
  | 'forwarding_api_upstream_connection_timeout'
345
- | 'gift_card_balance_insufficient'
346
- | 'gift_card_code_exists'
347
- | 'gift_card_inactive'
348
344
  | 'idempotency_key_in_use'
349
345
  | 'incorrect_address'
350
346
  | 'incorrect_cvc'
@@ -418,7 +414,6 @@ declare module 'stripe' {
418
414
  | 'payment_method_unexpected_state'
419
415
  | 'payment_method_unsupported_type'
420
416
  | 'payout_reconciliation_not_ready'
421
- | 'payout_statement_descriptor_profanity'
422
417
  | 'payouts_limit_exceeded'
423
418
  | 'payouts_not_allowed'
424
419
  | 'platform_account_required'
@@ -435,7 +430,6 @@ declare module 'stripe' {
435
430
  | 'return_intent_already_processed'
436
431
  | 'routing_number_invalid'
437
432
  | 'secret_key_required'
438
- | 'sensitive_data_access_expired'
439
433
  | 'sepa_unsupported_account'
440
434
  | 'setup_attempt_failed'
441
435
  | 'setup_intent_authentication_failure'
@@ -453,7 +447,6 @@ declare module 'stripe' {
453
447
  | 'taxes_calculation_failed'
454
448
  | 'terminal_location_country_unsupported'
455
449
  | 'terminal_reader_busy'
456
- | 'terminal_reader_collected_data_invalid'
457
450
  | 'terminal_reader_hardware_fault'
458
451
  | 'terminal_reader_invalid_location_for_activation'
459
452
  | 'terminal_reader_invalid_location_for_payment'
@@ -590,8 +583,6 @@ declare module 'stripe' {
590
583
 
591
584
  paypal?: PaymentMethodOptions.Paypal;
592
585
 
593
- payto?: PaymentMethodOptions.Payto;
594
-
595
586
  sepa_debit?: PaymentMethodOptions.SepaDebit;
596
587
 
597
588
  us_bank_account?: PaymentMethodOptions.UsBankAccount;
@@ -771,86 +762,6 @@ declare module 'stripe' {
771
762
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
772
763
  */
773
764
  billing_agreement_id: string | null;
774
-
775
- /**
776
- * 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).
777
- */
778
- currency?: string | null;
779
-
780
- /**
781
- * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
782
- */
783
- subsellers?: Array<string>;
784
- }
785
-
786
- interface Payto {
787
- mandate_options?: Payto.MandateOptions;
788
- }
789
-
790
- namespace Payto {
791
- interface MandateOptions {
792
- /**
793
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
794
- */
795
- amount: number | null;
796
-
797
- /**
798
- * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
799
- */
800
- amount_type: MandateOptions.AmountType | null;
801
-
802
- /**
803
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
804
- */
805
- end_date: string | null;
806
-
807
- /**
808
- * The periodicity at which payments will be collected.
809
- */
810
- payment_schedule: MandateOptions.PaymentSchedule | null;
811
-
812
- /**
813
- * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
814
- */
815
- payments_per_period: number | null;
816
-
817
- /**
818
- * The purpose for which payments are made. Defaults to retail.
819
- */
820
- purpose: MandateOptions.Purpose | null;
821
-
822
- /**
823
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
824
- */
825
- start_date: string | null;
826
- }
827
-
828
- namespace MandateOptions {
829
- type AmountType = 'fixed' | 'maximum';
830
-
831
- type PaymentSchedule =
832
- | 'adhoc'
833
- | 'annual'
834
- | 'daily'
835
- | 'fortnightly'
836
- | 'monthly'
837
- | 'quarterly'
838
- | 'semi_annual'
839
- | 'weekly';
840
-
841
- type Purpose =
842
- | 'dependant_support'
843
- | 'government'
844
- | 'loan'
845
- | 'mortgage'
846
- | 'other'
847
- | 'pension'
848
- | 'personal'
849
- | 'retail'
850
- | 'salary'
851
- | 'tax'
852
- | 'utility';
853
- }
854
765
  }
855
766
 
856
767
  interface SepaDebit {
@@ -876,8 +787,6 @@ declare module 'stripe' {
876
787
  interface FinancialConnections {
877
788
  filters?: FinancialConnections.Filters;
878
789
 
879
- manual_entry?: FinancialConnections.ManualEntry;
880
-
881
790
  /**
882
791
  * The list of permissions to request. The `payment_method` permission must be included.
883
792
  */
@@ -900,39 +809,19 @@ declare module 'stripe' {
900
809
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
901
810
  */
902
811
  account_subcategories?: Array<Filters.AccountSubcategory>;
903
-
904
- /**
905
- * The institution to use to filter for possible accounts to link.
906
- */
907
- institution?: string;
908
812
  }
909
813
 
910
814
  namespace Filters {
911
815
  type AccountSubcategory = 'checking' | 'savings';
912
816
  }
913
817
 
914
- interface ManualEntry {
915
- /**
916
- * Settings for configuring manual entry of account details.
917
- */
918
- mode?: ManualEntry.Mode;
919
- }
920
-
921
- namespace ManualEntry {
922
- type Mode = 'automatic' | 'custom';
923
- }
924
-
925
818
  type Permission =
926
819
  | 'balances'
927
820
  | 'ownership'
928
821
  | 'payment_method'
929
822
  | 'transactions';
930
823
 
931
- type Prefetch =
932
- | 'balances'
933
- | 'inferred_balances'
934
- | 'ownership'
935
- | 'transactions';
824
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
936
825
  }
937
826
 
938
827
  interface MandateOptions {