stripe 17.2.1 → 17.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 (186) hide show
  1. package/CHANGELOG.md +925 -114
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +4 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
  25. package/cjs/resources.js +42 -10
  26. package/cjs/stripe.core.js +1 -1
  27. package/esm/resources/AccountNotices.js +18 -0
  28. package/esm/resources/Capital/FinancingOffers.js +18 -0
  29. package/esm/resources/Capital/FinancingSummary.js +9 -0
  30. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  31. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  32. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  33. package/esm/resources/GiftCards/Cards.js +20 -0
  34. package/esm/resources/GiftCards/Transactions.js +30 -0
  35. package/esm/resources/Invoices.js +17 -0
  36. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  37. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  38. package/esm/resources/Margins.js +19 -0
  39. package/esm/resources/Orders.js +21 -0
  40. package/esm/resources/PaymentIntents.js +4 -0
  41. package/esm/resources/Quotes.js +32 -0
  42. package/esm/resources/SubscriptionSchedules.js +4 -0
  43. package/esm/resources/Tax/Associations.js +6 -0
  44. package/esm/resources/Tax/Forms.js +17 -0
  45. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  46. package/esm/resources/Terminal/Readers.js +12 -0
  47. package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
  48. package/esm/resources.js +29 -0
  49. package/esm/stripe.core.js +1 -1
  50. package/package.json +1 -1
  51. package/types/AccountLinksResource.d.ts +5 -1
  52. package/types/AccountNotices.d.ts +113 -0
  53. package/types/AccountNoticesResource.d.ts +98 -0
  54. package/types/AccountSessions.d.ts +75 -5
  55. package/types/AccountSessionsResource.d.ts +354 -5
  56. package/types/Accounts.d.ts +211 -3
  57. package/types/AccountsResource.d.ts +584 -2
  58. package/types/Billing/CreditBalanceSummary.d.ts +4 -4
  59. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  60. package/types/Billing/CreditBalanceTransactions.d.ts +10 -10
  61. package/types/Billing/CreditGrants.d.ts +11 -8
  62. package/types/Billing/CreditGrantsResource.d.ts +6 -6
  63. package/types/Billing/MeterErrorReports.d.ts +106 -0
  64. package/types/Billing/Meters.d.ts +2 -0
  65. package/types/BillingPortal/Configurations.d.ts +22 -0
  66. package/types/BillingPortal/ConfigurationsResource.d.ts +56 -4
  67. package/types/Capital/FinancingOffers.d.ts +188 -0
  68. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  69. package/types/Capital/FinancingSummary.d.ts +106 -0
  70. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  71. package/types/Capital/FinancingTransactions.d.ts +135 -0
  72. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  73. package/types/Charges.d.ts +168 -0
  74. package/types/ChargesResource.d.ts +1294 -0
  75. package/types/Checkout/Sessions.d.ts +309 -5
  76. package/types/Checkout/SessionsResource.d.ts +360 -5
  77. package/types/ConfirmationTokens.d.ts +157 -0
  78. package/types/Coupons.d.ts +1 -1
  79. package/types/CouponsResource.d.ts +1 -1
  80. package/types/CreditNoteLineItems.d.ts +3 -0
  81. package/types/CreditNotes.d.ts +24 -0
  82. package/types/CreditNotesResource.d.ts +54 -3
  83. package/types/CustomersResource.d.ts +27 -3
  84. package/types/Disputes.d.ts +152 -0
  85. package/types/DisputesResource.d.ts +120 -0
  86. package/types/EventTypes.d.ts +564 -2
  87. package/types/Events.d.ts +91 -0
  88. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  89. package/types/FinancialConnections/Accounts.d.ts +29 -1
  90. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  91. package/types/FinancialConnections/Institutions.d.ts +93 -0
  92. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  93. package/types/FinancialConnections/Sessions.d.ts +49 -1
  94. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  95. package/types/Forwarding/Requests.d.ts +5 -0
  96. package/types/Forwarding/RequestsResource.d.ts +5 -0
  97. package/types/GiftCards/Cards.d.ts +118 -0
  98. package/types/GiftCards/CardsResource.d.ts +159 -0
  99. package/types/GiftCards/Transactions.d.ts +129 -0
  100. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  101. package/types/InvoiceItems.d.ts +5 -0
  102. package/types/InvoiceItemsResource.d.ts +98 -0
  103. package/types/InvoiceLineItems.d.ts +31 -1
  104. package/types/InvoicePayments.d.ts +138 -0
  105. package/types/Invoices.d.ts +139 -3
  106. package/types/InvoicesResource.d.ts +5488 -1799
  107. package/types/Issuing/CardholdersResource.d.ts +2 -1
  108. package/types/Issuing/CardsResource.d.ts +1 -1
  109. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  110. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  111. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  112. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  113. package/types/Issuing/Settlements.d.ts +103 -0
  114. package/types/Issuing/Transactions.d.ts +2 -0
  115. package/types/Issuing/TransactionsResource.d.ts +5 -0
  116. package/types/LineItems.d.ts +7 -0
  117. package/types/Mandates.d.ts +85 -0
  118. package/types/Margins.d.ts +56 -0
  119. package/types/MarginsResource.d.ts +114 -0
  120. package/types/Orders.d.ts +1154 -0
  121. package/types/OrdersResource.d.ts +2911 -0
  122. package/types/PaymentIntents.d.ts +697 -1
  123. package/types/PaymentIntentsResource.d.ts +7977 -3377
  124. package/types/PaymentLinks.d.ts +7 -0
  125. package/types/PaymentLinksResource.d.ts +14 -0
  126. package/types/PaymentMethodConfigurations.d.ts +72 -0
  127. package/types/PaymentMethodConfigurationsResource.d.ts +102 -2
  128. package/types/PaymentMethodDomains.d.ts +28 -0
  129. package/types/PaymentMethods.d.ts +157 -0
  130. package/types/PaymentMethodsResource.d.ts +195 -1
  131. package/types/Persons.d.ts +1 -1
  132. package/types/Prices.d.ts +22 -0
  133. package/types/PricesResource.d.ts +22 -0
  134. package/types/Products.d.ts +39 -0
  135. package/types/ProductsResource.d.ts +36 -0
  136. package/types/QuoteLines.d.ts +634 -0
  137. package/types/QuotePreviewInvoices.d.ts +1601 -0
  138. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  139. package/types/Quotes.d.ts +591 -1
  140. package/types/QuotesResource.d.ts +2526 -194
  141. package/types/Refunds.d.ts +4 -0
  142. package/types/SetupAttempts.d.ts +19 -0
  143. package/types/SetupIntents.d.ts +112 -1
  144. package/types/SetupIntentsResource.d.ts +768 -6
  145. package/types/Sources.d.ts +23 -0
  146. package/types/SubscriptionItems.d.ts +21 -0
  147. package/types/SubscriptionItemsResource.d.ts +109 -0
  148. package/types/SubscriptionSchedules.d.ts +200 -0
  149. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  150. package/types/Subscriptions.d.ts +87 -1
  151. package/types/SubscriptionsResource.d.ts +359 -4
  152. package/types/Tax/Associations.d.ts +126 -0
  153. package/types/Tax/AssociationsResource.d.ts +29 -0
  154. package/types/Tax/CalculationLineItems.d.ts +1 -0
  155. package/types/Tax/Calculations.d.ts +33 -1
  156. package/types/Tax/CalculationsResource.d.ts +7 -1
  157. package/types/Tax/Forms.d.ts +220 -0
  158. package/types/Tax/FormsResource.d.ts +107 -0
  159. package/types/Tax/Registrations.d.ts +82 -0
  160. package/types/Tax/RegistrationsResource.d.ts +109 -0
  161. package/types/Tax/Transactions.d.ts +8 -1
  162. package/types/TaxIds.d.ts +7 -1
  163. package/types/TaxIdsResource.d.ts +7 -1
  164. package/types/TaxRates.d.ts +25 -0
  165. package/types/TaxRatesResource.d.ts +2 -0
  166. package/types/Terminal/Configurations.d.ts +19 -0
  167. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  168. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  169. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  170. package/types/Terminal/Readers.d.ts +278 -0
  171. package/types/Terminal/ReadersResource.d.ts +215 -0
  172. package/types/TestHelpers/ConfirmationTokensResource.d.ts +145 -1
  173. package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
  174. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  175. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  176. package/types/TokensResource.d.ts +2 -2
  177. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  178. package/types/Treasury/FinancialAccounts.d.ts +6 -1
  179. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  180. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  181. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  182. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  183. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  184. package/types/UsageRecordSummaries.d.ts +1 -1
  185. package/types/WebhookEndpointsResource.d.ts +66 -0
  186. package/types/index.d.ts +53 -0
package/README.md CHANGED
@@ -197,7 +197,7 @@ const stripe = Stripe('sk_test_...', {
197
197
  | `host` | `'api.stripe.com'` | Host that requests are made to. |
198
198
  | `port` | 443 | Port that requests are made to. |
199
199
  | `protocol` | `'https'` | `'https'` or `'http'`. `http` is never appropriate for sending requests to Stripe servers, and we strongly discourage `http`, even in local testing scenarios, as this can result in your credentials being transmitted over an insecure channel. |
200
- | `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). |
200
+ | `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). |
201
201
 
202
202
  > **Note**
203
203
  > Both `maxNetworkRetries` and `timeout` can be overridden on a per-request basis.
@@ -522,6 +522,7 @@ const stripe = new Stripe('sk_test_...', {
522
522
  If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
523
523
 
524
524
  ```javascript
525
+ import Stripe from 'stripe';
525
526
  const client = new Stripe('sk_test_...');
526
527
 
527
528
  client.rawRequest(
@@ -543,14 +544,13 @@ const stripe = new Stripe('sk_test_...');
543
544
  const response = await stripe.rawRequest(
544
545
  'POST',
545
546
  '/v1/beta_endpoint',
546
- { param: 123 },
547
- { apiVersion: '2022-11-15; feature_beta=v3' }
547
+ {param: 123},
548
+ {apiVersion: '2022-11-15; feature_beta=v3'}
548
549
  );
549
550
 
550
551
  // handle response
551
552
  ```
552
553
 
553
-
554
554
  ## Support
555
555
 
556
556
  New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.2.1
1
+ 17.3.0-beta.1
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AccountNotices = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.AccountNotices = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/account_notices/{account_notice}',
11
+ }),
12
+ update: stripeMethod({
13
+ method: 'POST',
14
+ fullPath: '/v1/account_notices/{account_notice}',
15
+ }),
16
+ list: stripeMethod({
17
+ method: 'GET',
18
+ fullPath: '/v1/account_notices',
19
+ methodType: 'list',
20
+ }),
21
+ });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancingOffers = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FinancingOffers = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/capital/financing_offers/{financing_offer}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/capital/financing_offers',
15
+ methodType: 'list',
16
+ }),
17
+ markDelivered: stripeMethod({
18
+ method: 'POST',
19
+ fullPath: '/v1/capital/financing_offers/{financing_offer}/mark_delivered',
20
+ }),
21
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancingSummary = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FinancingSummary = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/capital/financing_summary',
11
+ }),
12
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancingTransactions = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FinancingTransactions = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/capital/financing_transactions/{financing_transaction}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/capital/financing_transactions',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -18,6 +18,11 @@ exports.Accounts = StripeResource_js_1.StripeResource.extend({
18
18
  method: 'POST',
19
19
  fullPath: '/v1/financial_connections/accounts/{account}/disconnect',
20
20
  }),
21
+ listInferredBalances: stripeMethod({
22
+ method: 'GET',
23
+ fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
24
+ methodType: 'list',
25
+ }),
21
26
  listOwners: stripeMethod({
22
27
  method: 'GET',
23
28
  fullPath: '/v1/financial_connections/accounts/{account}/owners',
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Institutions = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Institutions = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/financial_connections/institutions/{institution}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/financial_connections/institutions',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Cards = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Cards = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/gift_cards/cards' }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/gift_cards/cards/{id}',
12
+ }),
13
+ update: stripeMethod({ method: 'POST', fullPath: '/v1/gift_cards/cards/{id}' }),
14
+ list: stripeMethod({
15
+ method: 'GET',
16
+ fullPath: '/v1/gift_cards/cards',
17
+ methodType: 'list',
18
+ }),
19
+ validate: stripeMethod({
20
+ method: 'POST',
21
+ fullPath: '/v1/gift_cards/cards/validate',
22
+ }),
23
+ });
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Transactions = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Transactions = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v1/gift_cards/transactions',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/gift_cards/transactions/{id}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/gift_cards/transactions/{id}',
19
+ }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v1/gift_cards/transactions',
23
+ methodType: 'list',
24
+ }),
25
+ cancel: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v1/gift_cards/transactions/{id}/cancel',
28
+ }),
29
+ confirm: stripeMethod({
30
+ method: 'POST',
31
+ fullPath: '/v1/gift_cards/transactions/{id}/confirm',
32
+ }),
33
+ });
@@ -18,6 +18,14 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
18
18
  method: 'POST',
19
19
  fullPath: '/v1/invoices/{invoice}/add_lines',
20
20
  }),
21
+ attachPayment: stripeMethod({
22
+ method: 'POST',
23
+ fullPath: '/v1/invoices/{invoice}/attach_payment',
24
+ }),
25
+ attachPaymentIntent: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
28
+ }),
21
29
  createPreview: stripeMethod({
22
30
  method: 'POST',
23
31
  fullPath: '/v1/invoices/create_preview',
@@ -31,6 +39,11 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
31
39
  fullPath: '/v1/invoices/{invoice}/lines',
32
40
  methodType: 'list',
33
41
  }),
42
+ listPayments: stripeMethod({
43
+ method: 'GET',
44
+ fullPath: '/v1/invoices/{invoice}/payments',
45
+ methodType: 'list',
46
+ }),
34
47
  listUpcomingLines: stripeMethod({
35
48
  method: 'GET',
36
49
  fullPath: '/v1/invoices/upcoming/lines',
@@ -45,6 +58,10 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
45
58
  method: 'POST',
46
59
  fullPath: '/v1/invoices/{invoice}/remove_lines',
47
60
  }),
61
+ retrievePayment: stripeMethod({
62
+ method: 'GET',
63
+ fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
64
+ }),
48
65
  retrieveUpcoming: stripeMethod({
49
66
  method: 'GET',
50
67
  fullPath: '/v1/invoices/upcoming',
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.CreditUnderwritingRecords = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.CreditUnderwritingRecords = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/issuing/credit_underwriting_records/{credit_underwriting_record}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/issuing/credit_underwriting_records',
15
+ methodType: 'list',
16
+ }),
17
+ correct: stripeMethod({
18
+ method: 'POST',
19
+ fullPath: '/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/correct',
20
+ }),
21
+ createFromApplication: stripeMethod({
22
+ method: 'POST',
23
+ fullPath: '/v1/issuing/credit_underwriting_records/create_from_application',
24
+ }),
25
+ createFromProactiveReview: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v1/issuing/credit_underwriting_records/create_from_proactive_review',
28
+ }),
29
+ reportDecision: stripeMethod({
30
+ method: 'POST',
31
+ fullPath: '/v1/issuing/credit_underwriting_records/{credit_underwriting_record}/report_decision',
32
+ }),
33
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.DisputeSettlementDetails = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.DisputeSettlementDetails = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/issuing/dispute_settlement_details/{dispute_settlement_detail}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/issuing/dispute_settlement_details',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Margins = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Margins = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/billing/margins' }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/billing/margins/{margin}',
12
+ }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/billing/margins/{margin}',
16
+ }),
17
+ list: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v1/billing/margins',
20
+ methodType: 'list',
21
+ }),
22
+ });
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Orders = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Orders = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/orders' }),
9
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/orders/{id}' }),
10
+ update: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}' }),
11
+ list: stripeMethod({
12
+ method: 'GET',
13
+ fullPath: '/v1/orders',
14
+ methodType: 'list',
15
+ }),
16
+ cancel: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}/cancel' }),
17
+ listLineItems: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v1/orders/{id}/line_items',
20
+ methodType: 'list',
21
+ }),
22
+ reopen: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}/reopen' }),
23
+ submit: stripeMethod({ method: 'POST', fullPath: '/v1/orders/{id}/submit' }),
24
+ });
@@ -35,6 +35,10 @@ exports.PaymentIntents = StripeResource_js_1.StripeResource.extend({
35
35
  method: 'POST',
36
36
  fullPath: '/v1/payment_intents/{intent}/confirm',
37
37
  }),
38
+ decrementAuthorization: stripeMethod({
39
+ method: 'POST',
40
+ fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
41
+ }),
38
42
  incrementAuthorization: stripeMethod({
39
43
  method: 'POST',
40
44
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
@@ -19,6 +19,11 @@ exports.Quotes = StripeResource_js_1.StripeResource.extend({
19
19
  method: 'POST',
20
20
  fullPath: '/v1/quotes/{quote}/finalize',
21
21
  }),
22
+ listPreviewInvoiceLines: stripeMethod({
23
+ method: 'GET',
24
+ fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
25
+ methodType: 'list',
26
+ }),
22
27
  listComputedUpfrontLineItems: stripeMethod({
23
28
  method: 'GET',
24
29
  fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
@@ -29,10 +34,37 @@ exports.Quotes = StripeResource_js_1.StripeResource.extend({
29
34
  fullPath: '/v1/quotes/{quote}/line_items',
30
35
  methodType: 'list',
31
36
  }),
37
+ listLines: stripeMethod({
38
+ method: 'GET',
39
+ fullPath: '/v1/quotes/{quote}/lines',
40
+ methodType: 'list',
41
+ }),
42
+ listPreviewInvoices: stripeMethod({
43
+ method: 'GET',
44
+ fullPath: '/v1/quotes/{quote}/preview_invoices',
45
+ methodType: 'list',
46
+ }),
47
+ listPreviewSubscriptionSchedules: stripeMethod({
48
+ method: 'GET',
49
+ fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
50
+ methodType: 'list',
51
+ }),
52
+ markDraft: stripeMethod({
53
+ method: 'POST',
54
+ fullPath: '/v1/quotes/{quote}/mark_draft',
55
+ }),
56
+ markStale: stripeMethod({
57
+ method: 'POST',
58
+ fullPath: '/v1/quotes/{quote}/mark_stale',
59
+ }),
32
60
  pdf: stripeMethod({
33
61
  method: 'GET',
34
62
  fullPath: '/v1/quotes/{quote}/pdf',
35
63
  host: 'files.stripe.com',
36
64
  streaming: true,
37
65
  }),
66
+ reestimate: stripeMethod({
67
+ method: 'POST',
68
+ fullPath: '/v1/quotes/{quote}/reestimate',
69
+ }),
38
70
  });
@@ -22,6 +22,10 @@ exports.SubscriptionSchedules = StripeResource_js_1.StripeResource.extend({
22
22
  fullPath: '/v1/subscription_schedules',
23
23
  methodType: 'list',
24
24
  }),
25
+ amend: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v1/subscription_schedules/{schedule}/amend',
28
+ }),
25
29
  cancel: stripeMethod({
26
30
  method: 'POST',
27
31
  fullPath: '/v1/subscription_schedules/{schedule}/cancel',
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Associations = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Associations = StripeResource_js_1.StripeResource.extend({
8
+ find: stripeMethod({ method: 'GET', fullPath: '/v1/tax/associations/find' }),
9
+ });
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Forms = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Forms = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/tax/forms/{id}' }),
9
+ list: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/tax/forms',
12
+ methodType: 'list',
13
+ }),
14
+ pdf: stripeMethod({
15
+ method: 'GET',
16
+ fullPath: '/v1/tax/forms/{id}/pdf',
17
+ host: 'files.stripe.com',
18
+ streaming: true,
19
+ }),
20
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ReaderCollectedData = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.ReaderCollectedData = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v1/terminal/reader_collected_data/{reader_collected_data}',
11
+ }),
12
+ });
@@ -27,6 +27,18 @@ exports.Readers = StripeResource_js_1.StripeResource.extend({
27
27
  method: 'POST',
28
28
  fullPath: '/v1/terminal/readers/{reader}/cancel_action',
29
29
  }),
30
+ collectInputs: stripeMethod({
31
+ method: 'POST',
32
+ fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
33
+ }),
34
+ collectPaymentMethod: stripeMethod({
35
+ method: 'POST',
36
+ fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
37
+ }),
38
+ confirmPaymentIntent: stripeMethod({
39
+ method: 'POST',
40
+ fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
41
+ }),
30
42
  processPaymentIntent: stripeMethod({
31
43
  method: 'POST',
32
44
  fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
@@ -21,4 +21,8 @@ exports.Cards = StripeResource_js_1.StripeResource.extend({
21
21
  method: 'POST',
22
22
  fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
23
23
  }),
24
+ submitCard: stripeMethod({
25
+ method: 'POST',
26
+ fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
27
+ }),
24
28
  });