stripe 18.2.0-beta.1 → 18.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 (141) hide show
  1. package/CHANGELOG.md +229 -31
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +11 -11
  4. package/VERSION +1 -1
  5. package/cjs/RequestSender.js +2 -2
  6. package/cjs/StripeResource.js +1 -1
  7. package/cjs/apiVersion.js +1 -1
  8. package/cjs/resources/Subscriptions.js +4 -0
  9. package/cjs/resources/V2/Payments/OffSessionPayments.js +25 -0
  10. package/cjs/resources.js +15 -17
  11. package/cjs/stripe.core.js +1 -1
  12. package/cjs/utils.js +5 -0
  13. package/esm/RequestSender.js +2 -2
  14. package/esm/StripeResource.js +1 -1
  15. package/esm/apiVersion.js +1 -1
  16. package/esm/resources/Subscriptions.js +4 -0
  17. package/esm/resources/V2/Payments/OffSessionPayments.js +22 -0
  18. package/esm/resources.js +4 -6
  19. package/esm/stripe.core.js +1 -1
  20. package/esm/utils.js +5 -0
  21. package/package.json +1 -1
  22. package/types/AccountSessions.d.ts +65 -0
  23. package/types/AccountSessionsResource.d.ts +41 -0
  24. package/types/Accounts.d.ts +22 -15
  25. package/types/AccountsResource.d.ts +81 -57
  26. package/types/Balance.d.ts +83 -1
  27. package/types/BalanceResource.d.ts +1 -1
  28. package/types/BalanceSettings.d.ts +1 -1
  29. package/types/BalanceSettingsResource.d.ts +5 -5
  30. package/types/BalanceTransactions.d.ts +10 -0
  31. package/types/BankAccounts.d.ts +3 -3
  32. package/types/Billing/Alerts.d.ts +1 -1
  33. package/types/Billing/AlertsResource.d.ts +2 -2
  34. package/types/BillingPortal/Sessions.d.ts +1 -1
  35. package/types/Capabilities.d.ts +1 -1
  36. package/types/Cards.d.ts +2 -2
  37. package/types/Charges.d.ts +20 -0
  38. package/types/ChargesResource.d.ts +96 -4
  39. package/types/Checkout/Sessions.d.ts +123 -108
  40. package/types/Checkout/SessionsResource.d.ts +125 -116
  41. package/types/ConfirmationTokens.d.ts +4 -4
  42. package/types/CountrySpecs.d.ts +1 -1
  43. package/types/CreditNotes.d.ts +11 -5
  44. package/types/CreditNotesResource.d.ts +7 -8
  45. package/types/CustomerSessions.d.ts +3 -3
  46. package/types/CustomersResource.d.ts +7 -7
  47. package/types/Disputes.d.ts +1 -1
  48. package/types/DisputesResource.d.ts +1 -1
  49. package/types/EventTypes.d.ts +17 -17
  50. package/types/Events.d.ts +4 -1
  51. package/types/ExternalAccountsResource.d.ts +1 -1
  52. package/types/Files.d.ts +1 -1
  53. package/types/FilesResource.d.ts +1 -1
  54. package/types/FinancialConnections/Accounts.d.ts +5 -0
  55. package/types/FinancialConnections/Institutions.d.ts +5 -0
  56. package/types/Identity/VerificationReports.d.ts +17 -0
  57. package/types/Identity/VerificationSessions.d.ts +19 -2
  58. package/types/Identity/VerificationSessionsResource.d.ts +5 -5
  59. package/types/InvoiceItems.d.ts +1 -1
  60. package/types/InvoiceLineItems.d.ts +1 -1
  61. package/types/InvoicePayments.d.ts +9 -2
  62. package/types/Invoices.d.ts +7 -9
  63. package/types/InvoicesResource.d.ts +60 -18
  64. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  65. package/types/Issuing/CardsResource.d.ts +3 -0
  66. package/types/Issuing/DisputesResource.d.ts +2 -2
  67. package/types/LineItems.d.ts +2 -2
  68. package/types/Orders.d.ts +43 -83
  69. package/types/OrdersResource.d.ts +85 -119
  70. package/types/PaymentAttemptRecords.d.ts +21 -1
  71. package/types/PaymentIntentAmountDetailsLineItems.d.ts +6 -0
  72. package/types/PaymentIntents.d.ts +224 -173
  73. package/types/PaymentIntentsResource.d.ts +819 -584
  74. package/types/PaymentMethodConfigurations.d.ts +180 -0
  75. package/types/PaymentMethodConfigurationsResource.d.ts +254 -4
  76. package/types/PaymentMethodDomainsResource.d.ts +1 -1
  77. package/types/PaymentMethods.d.ts +4 -4
  78. package/types/PaymentMethodsResource.d.ts +8 -8
  79. package/types/PaymentRecords.d.ts +21 -1
  80. package/types/PaymentRecordsResource.d.ts +5 -5
  81. package/types/Payouts.d.ts +2 -2
  82. package/types/PayoutsResource.d.ts +2 -2
  83. package/types/Persons.d.ts +10 -10
  84. package/types/PlansResource.d.ts +1 -1
  85. package/types/PricesResource.d.ts +2 -2
  86. package/types/Privacy/RedactionJobValidationErrors.d.ts +35 -5
  87. package/types/Privacy/RedactionJobs.d.ts +53 -7
  88. package/types/Privacy/RedactionJobsResource.d.ts +25 -13
  89. package/types/Products.d.ts +0 -39
  90. package/types/ProductsResource.d.ts +1 -37
  91. package/types/PromotionCodesResource.d.ts +1 -1
  92. package/types/QuotePreviewInvoices.d.ts +7 -9
  93. package/types/QuotePreviewSubscriptionSchedules.d.ts +48 -2
  94. package/types/Quotes.d.ts +7 -7
  95. package/types/QuotesResource.d.ts +1 -1
  96. package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
  97. package/types/Refunds.d.ts +6 -1
  98. package/types/Reviews.d.ts +1 -1
  99. package/types/SetupAttempts.d.ts +1 -3
  100. package/types/SetupIntents.d.ts +2 -4
  101. package/types/SetupIntentsResource.d.ts +3 -3
  102. package/types/SourcesResource.d.ts +1 -1
  103. package/types/SubscriptionItems.d.ts +21 -0
  104. package/types/SubscriptionItemsResource.d.ts +28 -0
  105. package/types/SubscriptionSchedules.d.ts +48 -2
  106. package/types/SubscriptionSchedulesResource.d.ts +100 -4
  107. package/types/Subscriptions.d.ts +32 -3
  108. package/types/SubscriptionsResource.d.ts +104 -17
  109. package/types/Tax/Associations.d.ts +19 -63
  110. package/types/Tax/CalculationLineItems.d.ts +5 -0
  111. package/types/Tax/CalculationsResource.d.ts +5 -0
  112. package/types/Tax/RegistrationsResource.d.ts +1 -1
  113. package/types/TaxRates.d.ts +2 -2
  114. package/types/Terminal/LocationsResource.d.ts +1 -1
  115. package/types/Terminal/Readers.d.ts +21 -1
  116. package/types/Terminal/ReadersResource.d.ts +20 -0
  117. package/types/Tokens.d.ts +3 -3
  118. package/types/TokensResource.d.ts +8 -8
  119. package/types/TransferReversals.d.ts +1 -1
  120. package/types/TransfersResource.d.ts +2 -2
  121. package/types/Treasury/ReceivedCredits.d.ts +2 -2
  122. package/types/V2/Core/Accounts.d.ts +5 -5
  123. package/types/V2/EventTypes.d.ts +102 -11
  124. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -1
  125. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +1 -43
  126. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -49
  127. package/types/V2/Payments/OffSessionPayments.d.ts +167 -0
  128. package/types/V2/Payments/OffSessionPaymentsResource.d.ts +159 -0
  129. package/types/WebhookEndpointsResource.d.ts +4 -3
  130. package/types/index.d.ts +5 -9
  131. package/types/lib.d.ts +1 -1
  132. package/types/test/typescriptTest.ts +3 -3
  133. package/cjs/resources/GiftCards/Cards.js +0 -23
  134. package/cjs/resources/GiftCards/Transactions.js +0 -33
  135. package/esm/resources/GiftCards/Cards.js +0 -20
  136. package/esm/resources/GiftCards/Transactions.js +0 -30
  137. package/types/Billing/MeterErrorReports.d.ts +0 -106
  138. package/types/GiftCards/Cards.d.ts +0 -118
  139. package/types/GiftCards/CardsResource.d.ts +0 -159
  140. package/types/GiftCards/Transactions.d.ts +0 -129
  141. package/types/GiftCards/TransactionsResource.d.ts +0 -201
@@ -67,7 +67,7 @@ declare module 'stripe' {
67
67
  /**
68
68
  * 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.
69
69
  */
70
- metadata: Stripe.Metadata | null;
70
+ metadata: Stripe.Metadata;
71
71
 
72
72
  /**
73
73
  * Information about the Payment Method debited for this payment.
@@ -413,6 +413,16 @@ declare module 'stripe' {
413
413
  }
414
414
 
415
415
  interface Affirm {
416
+ /**
417
+ * ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
418
+ */
419
+ location?: string;
420
+
421
+ /**
422
+ * ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
423
+ */
424
+ reader?: string;
425
+
416
426
  /**
417
427
  * The Affirm transaction ID associated with this payment.
418
428
  */
@@ -2080,6 +2090,16 @@ declare module 'stripe' {
2080
2090
  */
2081
2091
  fingerprint: string | null;
2082
2092
 
2093
+ /**
2094
+ * ID of the [location](https://stripe.com/docs/api/terminal/locations) that this transaction's reader is assigned to.
2095
+ */
2096
+ location?: string;
2097
+
2098
+ /**
2099
+ * ID of the [reader](https://stripe.com/docs/api/terminal/readers) this transaction was made on.
2100
+ */
2101
+ reader?: string;
2102
+
2083
2103
  /**
2084
2104
  * Transaction ID of this particular WeChat Pay transaction.
2085
2105
  */
@@ -61,6 +61,8 @@ declare module 'stripe' {
61
61
  interface PaymentMethodOptions {
62
62
  card?: PaymentMethodOptions.Card;
63
63
 
64
+ card_present?: PaymentMethodOptions.CardPresent;
65
+
64
66
  klarna?: PaymentMethodOptions.Klarna;
65
67
 
66
68
  paypal?: PaymentMethodOptions.Paypal;
@@ -71,6 +73,10 @@ declare module 'stripe' {
71
73
  commodity_code: string | null;
72
74
  }
73
75
 
76
+ interface CardPresent {
77
+ commodity_code: string | null;
78
+ }
79
+
74
80
  interface Klarna {
75
81
  image_url: string | null;
76
82