stripe 17.2.0-beta.2 → 17.2.0

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 (178) hide show
  1. package/CHANGELOG.md +112 -900
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  5. package/cjs/resources/Invoices.js +0 -17
  6. package/cjs/resources/PaymentIntents.js +0 -4
  7. package/cjs/resources/Quotes.js +0 -32
  8. package/cjs/resources/SubscriptionSchedules.js +0 -4
  9. package/cjs/resources/Terminal/Readers.js +0 -12
  10. package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
  11. package/cjs/resources/V2/Core/Events.js +50 -7
  12. package/cjs/resources.js +10 -42
  13. package/cjs/stripe.core.js +1 -1
  14. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  15. package/esm/resources/Invoices.js +0 -17
  16. package/esm/resources/PaymentIntents.js +0 -4
  17. package/esm/resources/Quotes.js +0 -32
  18. package/esm/resources/SubscriptionSchedules.js +0 -4
  19. package/esm/resources/Terminal/Readers.js +0 -12
  20. package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
  21. package/esm/resources/V2/Core/Events.js +50 -7
  22. package/esm/resources.js +0 -29
  23. package/esm/stripe.core.js +1 -1
  24. package/package.json +1 -1
  25. package/types/AccountLinksResource.d.ts +1 -5
  26. package/types/AccountSessions.d.ts +5 -75
  27. package/types/AccountSessionsResource.d.ts +5 -354
  28. package/types/Accounts.d.ts +3 -127
  29. package/types/AccountsResource.d.ts +2 -296
  30. package/types/Billing/CreditGrants.d.ts +2 -2
  31. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  32. package/types/Billing/Meters.d.ts +0 -2
  33. package/types/Charges.d.ts +0 -152
  34. package/types/ChargesResource.d.ts +0 -1294
  35. package/types/Checkout/Sessions.d.ts +5 -309
  36. package/types/Checkout/SessionsResource.d.ts +5 -356
  37. package/types/ConfirmationTokens.d.ts +0 -137
  38. package/types/Coupons.d.ts +1 -1
  39. package/types/CouponsResource.d.ts +1 -1
  40. package/types/CreditNotes.d.ts +0 -21
  41. package/types/CreditNotesResource.d.ts +0 -51
  42. package/types/CustomersResource.d.ts +2 -22
  43. package/types/Disputes.d.ts +0 -152
  44. package/types/DisputesResource.d.ts +0 -120
  45. package/types/EventTypes.d.ts +2 -564
  46. package/types/Events.d.ts +0 -91
  47. package/types/FinancialConnections/Accounts.d.ts +1 -29
  48. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  49. package/types/FinancialConnections/Sessions.d.ts +1 -49
  50. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  51. package/types/Forwarding/Requests.d.ts +0 -5
  52. package/types/InvoiceItems.d.ts +0 -5
  53. package/types/InvoiceItemsResource.d.ts +0 -98
  54. package/types/InvoiceLineItems.d.ts +1 -31
  55. package/types/Invoices.d.ts +3 -134
  56. package/types/InvoicesResource.d.ts +1836 -5515
  57. package/types/Issuing/Authorizations.d.ts +1 -1
  58. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  59. package/types/Issuing/CardholdersResource.d.ts +1 -2
  60. package/types/Issuing/Transactions.d.ts +0 -2
  61. package/types/Issuing/TransactionsResource.d.ts +0 -5
  62. package/types/LineItems.d.ts +0 -7
  63. package/types/Mandates.d.ts +0 -85
  64. package/types/PaymentIntents.d.ts +1 -643
  65. package/types/PaymentIntentsResource.d.ts +3463 -7739
  66. package/types/PaymentLinks.d.ts +0 -3
  67. package/types/PaymentLinksResource.d.ts +0 -6
  68. package/types/PaymentMethodConfigurations.d.ts +0 -36
  69. package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
  70. package/types/PaymentMethods.d.ts +0 -137
  71. package/types/PaymentMethodsResource.d.ts +0 -158
  72. package/types/Persons.d.ts +1 -1
  73. package/types/Prices.d.ts +0 -22
  74. package/types/PricesResource.d.ts +0 -22
  75. package/types/Products.d.ts +0 -39
  76. package/types/ProductsResource.d.ts +0 -36
  77. package/types/Quotes.d.ts +1 -591
  78. package/types/QuotesResource.d.ts +199 -2531
  79. package/types/SetupAttempts.d.ts +0 -19
  80. package/types/SetupIntents.d.ts +1 -112
  81. package/types/SetupIntentsResource.d.ts +3 -669
  82. package/types/Sources.d.ts +0 -23
  83. package/types/SubscriptionItems.d.ts +0 -21
  84. package/types/SubscriptionItemsResource.d.ts +0 -109
  85. package/types/SubscriptionSchedules.d.ts +0 -200
  86. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  87. package/types/Subscriptions.d.ts +1 -82
  88. package/types/SubscriptionsResource.d.ts +3 -348
  89. package/types/Tax/CalculationLineItems.d.ts +0 -1
  90. package/types/Tax/Calculations.d.ts +1 -33
  91. package/types/Tax/CalculationsResource.d.ts +1 -7
  92. package/types/Tax/Registrations.d.ts +0 -82
  93. package/types/Tax/RegistrationsResource.d.ts +0 -109
  94. package/types/Tax/Transactions.d.ts +1 -8
  95. package/types/TaxIds.d.ts +1 -7
  96. package/types/TaxIdsResource.d.ts +1 -7
  97. package/types/TaxRates.d.ts +0 -25
  98. package/types/TaxRatesResource.d.ts +0 -2
  99. package/types/Terminal/Readers.d.ts +0 -278
  100. package/types/Terminal/ReadersResource.d.ts +0 -215
  101. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
  102. package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
  103. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  104. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  105. package/types/TokensResource.d.ts +1 -1
  106. package/types/Treasury/FinancialAccounts.d.ts +1 -6
  107. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  108. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  109. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  110. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  111. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  112. package/types/UsageRecordSummaries.d.ts +1 -1
  113. package/types/V2/EventTypes.d.ts +3 -1
  114. package/types/WebhookEndpointsResource.d.ts +0 -66
  115. package/types/index.d.ts +0 -53
  116. package/cjs/resources/AccountNotices.js +0 -21
  117. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  118. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  119. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  120. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  121. package/cjs/resources/GiftCards/Cards.js +0 -23
  122. package/cjs/resources/GiftCards/Transactions.js +0 -33
  123. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  124. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  125. package/cjs/resources/Margins.js +0 -22
  126. package/cjs/resources/Orders.js +0 -24
  127. package/cjs/resources/Tax/Associations.js +0 -9
  128. package/cjs/resources/Tax/Forms.js +0 -20
  129. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  130. package/esm/resources/AccountNotices.js +0 -18
  131. package/esm/resources/Capital/FinancingOffers.js +0 -18
  132. package/esm/resources/Capital/FinancingSummary.js +0 -9
  133. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  134. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  135. package/esm/resources/GiftCards/Cards.js +0 -20
  136. package/esm/resources/GiftCards/Transactions.js +0 -30
  137. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  138. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  139. package/esm/resources/Margins.js +0 -19
  140. package/esm/resources/Orders.js +0 -21
  141. package/esm/resources/Tax/Associations.js +0 -6
  142. package/esm/resources/Tax/Forms.js +0 -17
  143. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  144. package/types/AccountNotices.d.ts +0 -113
  145. package/types/AccountNoticesResource.d.ts +0 -98
  146. package/types/Billing/MeterErrorReports.d.ts +0 -106
  147. package/types/Capital/FinancingOffers.d.ts +0 -188
  148. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  149. package/types/Capital/FinancingSummary.d.ts +0 -106
  150. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  151. package/types/Capital/FinancingTransactions.d.ts +0 -135
  152. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  153. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  154. package/types/FinancialConnections/Institutions.d.ts +0 -93
  155. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  156. package/types/GiftCards/Cards.d.ts +0 -118
  157. package/types/GiftCards/CardsResource.d.ts +0 -159
  158. package/types/GiftCards/Transactions.d.ts +0 -129
  159. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  160. package/types/InvoicePayments.d.ts +0 -138
  161. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  162. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  163. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  164. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  165. package/types/Issuing/Settlements.d.ts +0 -103
  166. package/types/Margins.d.ts +0 -56
  167. package/types/MarginsResource.d.ts +0 -114
  168. package/types/Orders.d.ts +0 -1154
  169. package/types/OrdersResource.d.ts +0 -2911
  170. package/types/QuoteLines.d.ts +0 -634
  171. package/types/QuotePreviewInvoices.d.ts +0 -1596
  172. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  173. package/types/Tax/Associations.d.ts +0 -126
  174. package/types/Tax/AssociationsResource.d.ts +0 -29
  175. package/types/Tax/Forms.d.ts +0 -133
  176. package/types/Tax/FormsResource.d.ts +0 -90
  177. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  178. 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 {