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.
- package/CHANGELOG.md +112 -900
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Invoices.js +0 -17
- package/cjs/resources/PaymentIntents.js +0 -4
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -12
- package/cjs/resources/TestHelpers/Issuing/Cards.js +0 -4
- package/cjs/resources/V2/Core/Events.js +50 -7
- package/cjs/resources.js +10 -42
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Invoices.js +0 -17
- package/esm/resources/PaymentIntents.js +0 -4
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -12
- package/esm/resources/TestHelpers/Issuing/Cards.js +0 -4
- package/esm/resources/V2/Core/Events.js +50 -7
- package/esm/resources.js +0 -29
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +5 -75
- package/types/AccountSessionsResource.d.ts +5 -354
- package/types/Accounts.d.ts +3 -127
- package/types/AccountsResource.d.ts +2 -296
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/Meters.d.ts +0 -2
- package/types/Charges.d.ts +0 -152
- package/types/ChargesResource.d.ts +0 -1294
- package/types/Checkout/Sessions.d.ts +5 -309
- package/types/Checkout/SessionsResource.d.ts +5 -356
- package/types/ConfirmationTokens.d.ts +0 -137
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +0 -21
- package/types/CreditNotesResource.d.ts +0 -51
- package/types/CustomersResource.d.ts +2 -22
- package/types/Disputes.d.ts +0 -152
- package/types/DisputesResource.d.ts +0 -120
- package/types/EventTypes.d.ts +2 -564
- package/types/Events.d.ts +0 -91
- package/types/FinancialConnections/Accounts.d.ts +1 -29
- package/types/FinancialConnections/AccountsResource.d.ts +3 -35
- package/types/FinancialConnections/Sessions.d.ts +1 -49
- package/types/FinancialConnections/SessionsResource.d.ts +1 -38
- package/types/Forwarding/Requests.d.ts +0 -5
- package/types/InvoiceItems.d.ts +0 -5
- package/types/InvoiceItemsResource.d.ts +0 -98
- package/types/InvoiceLineItems.d.ts +1 -31
- package/types/Invoices.d.ts +3 -134
- package/types/InvoicesResource.d.ts +1836 -5515
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -2
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -7
- package/types/Mandates.d.ts +0 -85
- package/types/PaymentIntents.d.ts +1 -643
- package/types/PaymentIntentsResource.d.ts +3463 -7739
- package/types/PaymentLinks.d.ts +0 -3
- package/types/PaymentLinksResource.d.ts +0 -6
- package/types/PaymentMethodConfigurations.d.ts +0 -36
- package/types/PaymentMethodConfigurationsResource.d.ts +2 -52
- package/types/PaymentMethods.d.ts +0 -137
- package/types/PaymentMethodsResource.d.ts +0 -158
- package/types/Persons.d.ts +1 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +0 -36
- package/types/Quotes.d.ts +1 -591
- package/types/QuotesResource.d.ts +199 -2531
- package/types/SetupAttempts.d.ts +0 -19
- package/types/SetupIntents.d.ts +1 -112
- package/types/SetupIntentsResource.d.ts +3 -669
- package/types/Sources.d.ts +0 -23
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -200
- package/types/SubscriptionSchedulesResource.d.ts +13 -1231
- package/types/Subscriptions.d.ts +1 -82
- package/types/SubscriptionsResource.d.ts +3 -348
- package/types/Tax/CalculationLineItems.d.ts +0 -1
- package/types/Tax/Calculations.d.ts +1 -33
- package/types/Tax/CalculationsResource.d.ts +1 -7
- package/types/Tax/Registrations.d.ts +0 -82
- package/types/Tax/RegistrationsResource.d.ts +0 -109
- package/types/Tax/Transactions.d.ts +1 -8
- package/types/TaxIds.d.ts +1 -7
- package/types/TaxIdsResource.d.ts +1 -7
- package/types/TaxRates.d.ts +0 -25
- package/types/TaxRatesResource.d.ts +0 -2
- package/types/Terminal/Readers.d.ts +0 -278
- package/types/Terminal/ReadersResource.d.ts +0 -215
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -112
- package/types/TestHelpers/Issuing/CardsResource.d.ts +0 -22
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/UsageRecordSummaries.d.ts +1 -1
- package/types/V2/EventTypes.d.ts +3 -1
- package/types/WebhookEndpointsResource.d.ts +0 -66
- package/types/index.d.ts +0 -53
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/Tax/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/Tax/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- package/types/InvoicePayments.d.ts +0 -138
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -103
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1154
- package/types/OrdersResource.d.ts +0 -2911
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1596
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
- package/types/Tax/Associations.d.ts +0 -126
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -133
- package/types/Tax/FormsResource.d.ts +0 -90
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
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,7 +522,6 @@ 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';
|
|
526
525
|
const client = new Stripe('sk_test_...');
|
|
527
526
|
|
|
528
527
|
client.rawRequest(
|
|
@@ -544,13 +543,14 @@ const stripe = new Stripe('sk_test_...');
|
|
|
544
543
|
const response = await stripe.rawRequest(
|
|
545
544
|
'POST',
|
|
546
545
|
'/v1/beta_endpoint',
|
|
547
|
-
{param: 123},
|
|
548
|
-
{apiVersion: '2022-11-15; feature_beta=v3'}
|
|
546
|
+
{ param: 123 },
|
|
547
|
+
{ apiVersion: '2022-11-15; feature_beta=v3' }
|
|
549
548
|
);
|
|
550
549
|
|
|
551
550
|
// handle response
|
|
552
551
|
```
|
|
553
552
|
|
|
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.0
|
|
1
|
+
17.2.0
|
|
@@ -18,11 +18,6 @@ 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
|
-
}),
|
|
26
21
|
listOwners: stripeMethod({
|
|
27
22
|
method: 'GET',
|
|
28
23
|
fullPath: '/v1/financial_connections/accounts/{account}/owners',
|
|
@@ -18,14 +18,6 @@ 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
|
-
}),
|
|
29
21
|
createPreview: stripeMethod({
|
|
30
22
|
method: 'POST',
|
|
31
23
|
fullPath: '/v1/invoices/create_preview',
|
|
@@ -39,11 +31,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
|
|
|
39
31
|
fullPath: '/v1/invoices/{invoice}/lines',
|
|
40
32
|
methodType: 'list',
|
|
41
33
|
}),
|
|
42
|
-
listPayments: stripeMethod({
|
|
43
|
-
method: 'GET',
|
|
44
|
-
fullPath: '/v1/invoices/{invoice}/payments',
|
|
45
|
-
methodType: 'list',
|
|
46
|
-
}),
|
|
47
34
|
listUpcomingLines: stripeMethod({
|
|
48
35
|
method: 'GET',
|
|
49
36
|
fullPath: '/v1/invoices/upcoming/lines',
|
|
@@ -58,10 +45,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
|
|
|
58
45
|
method: 'POST',
|
|
59
46
|
fullPath: '/v1/invoices/{invoice}/remove_lines',
|
|
60
47
|
}),
|
|
61
|
-
retrievePayment: stripeMethod({
|
|
62
|
-
method: 'GET',
|
|
63
|
-
fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
|
|
64
|
-
}),
|
|
65
48
|
retrieveUpcoming: stripeMethod({
|
|
66
49
|
method: 'GET',
|
|
67
50
|
fullPath: '/v1/invoices/upcoming',
|
|
@@ -35,10 +35,6 @@ 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
|
-
}),
|
|
42
38
|
incrementAuthorization: stripeMethod({
|
|
43
39
|
method: 'POST',
|
|
44
40
|
fullPath: '/v1/payment_intents/{intent}/increment_authorization',
|
package/cjs/resources/Quotes.js
CHANGED
|
@@ -19,11 +19,6 @@ 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
|
-
}),
|
|
27
22
|
listComputedUpfrontLineItems: stripeMethod({
|
|
28
23
|
method: 'GET',
|
|
29
24
|
fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
|
|
@@ -34,37 +29,10 @@ exports.Quotes = StripeResource_js_1.StripeResource.extend({
|
|
|
34
29
|
fullPath: '/v1/quotes/{quote}/line_items',
|
|
35
30
|
methodType: 'list',
|
|
36
31
|
}),
|
|
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
|
-
}),
|
|
60
32
|
pdf: stripeMethod({
|
|
61
33
|
method: 'GET',
|
|
62
34
|
fullPath: '/v1/quotes/{quote}/pdf',
|
|
63
35
|
host: 'files.stripe.com',
|
|
64
36
|
streaming: true,
|
|
65
37
|
}),
|
|
66
|
-
reestimate: stripeMethod({
|
|
67
|
-
method: 'POST',
|
|
68
|
-
fullPath: '/v1/quotes/{quote}/reestimate',
|
|
69
|
-
}),
|
|
70
38
|
});
|
|
@@ -22,10 +22,6 @@ 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
|
-
}),
|
|
29
25
|
cancel: stripeMethod({
|
|
30
26
|
method: 'POST',
|
|
31
27
|
fullPath: '/v1/subscription_schedules/{schedule}/cancel',
|
|
@@ -27,18 +27,6 @@ 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
|
-
}),
|
|
42
30
|
processPaymentIntent: stripeMethod({
|
|
43
31
|
method: 'POST',
|
|
44
32
|
fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
|
|
@@ -21,8 +21,4 @@ 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
|
-
}),
|
|
28
24
|
});
|
|
@@ -1,14 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// File generated from our OpenAPI spec
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.Events = void 0;
|
|
4
|
+
// This file is manually maintained
|
|
5
5
|
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
6
|
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
7
|
exports.Events = StripeResource_js_1.StripeResource.extend({
|
|
8
|
-
retrieve
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
retrieve(...args) {
|
|
9
|
+
const transformResponseData = (response) => {
|
|
10
|
+
return this.addFetchRelatedObjectIfNeeded(response);
|
|
11
|
+
};
|
|
12
|
+
return stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v2/core/events/{id}',
|
|
15
|
+
transformResponseData,
|
|
16
|
+
}).apply(this, args);
|
|
17
|
+
},
|
|
18
|
+
list(...args) {
|
|
19
|
+
const transformResponseData = (response) => {
|
|
20
|
+
return Object.assign(Object.assign({}, response), { data: response.data.map(this.addFetchRelatedObjectIfNeeded.bind(this)) });
|
|
21
|
+
};
|
|
22
|
+
return stripeMethod({
|
|
23
|
+
method: 'GET',
|
|
24
|
+
fullPath: '/v2/core/events',
|
|
25
|
+
methodType: 'list',
|
|
26
|
+
transformResponseData,
|
|
27
|
+
}).apply(this, args);
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* @private
|
|
31
|
+
*
|
|
32
|
+
* For internal use in stripe-node.
|
|
33
|
+
*
|
|
34
|
+
* @param pulledEvent The retrieved event object
|
|
35
|
+
* @returns The retrieved event object with a fetchRelatedObject method,
|
|
36
|
+
* if pulledEvent.related_object is valid (non-null and has a url)
|
|
37
|
+
*/
|
|
38
|
+
addFetchRelatedObjectIfNeeded(pulledEvent) {
|
|
39
|
+
if (!pulledEvent.related_object || !pulledEvent.related_object.url) {
|
|
40
|
+
return pulledEvent;
|
|
41
|
+
}
|
|
42
|
+
return Object.assign(Object.assign({}, pulledEvent), { fetchRelatedObject: () =>
|
|
43
|
+
// call stripeMethod with 'this' resource to fetch
|
|
44
|
+
// the related object. 'this' is needed to construct
|
|
45
|
+
// and send the request, but the method spec controls
|
|
46
|
+
// the url endpoint and method, so it doesn't matter
|
|
47
|
+
// that 'this' is an Events resource object here
|
|
48
|
+
stripeMethod({
|
|
49
|
+
method: 'GET',
|
|
50
|
+
fullPath: pulledEvent.related_object.url,
|
|
51
|
+
}).apply(this, [
|
|
52
|
+
{
|
|
53
|
+
stripeAccount: pulledEvent.context,
|
|
54
|
+
},
|
|
55
|
+
]) });
|
|
56
|
+
},
|
|
14
57
|
});
|
package/cjs/resources.js
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.
|
|
5
|
-
exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.
|
|
4
|
+
exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.OAuth = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountLinks = exports.Account = void 0;
|
|
5
|
+
exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.V2 = exports.Transfers = exports.Topups = void 0;
|
|
6
6
|
const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
|
|
7
7
|
const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
|
|
8
8
|
const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
|
|
9
9
|
const Alerts_js_1 = require("./resources/Billing/Alerts.js");
|
|
10
|
-
const Associations_js_1 = require("./resources/Tax/Associations.js");
|
|
11
10
|
const Authorizations_js_1 = require("./resources/TestHelpers/Issuing/Authorizations.js");
|
|
12
11
|
const Authorizations_js_2 = require("./resources/Issuing/Authorizations.js");
|
|
13
12
|
const Calculations_js_1 = require("./resources/Tax/Calculations.js");
|
|
14
13
|
const Cardholders_js_1 = require("./resources/Issuing/Cardholders.js");
|
|
15
14
|
const Cards_js_1 = require("./resources/TestHelpers/Issuing/Cards.js");
|
|
16
|
-
const Cards_js_2 = require("./resources/
|
|
17
|
-
const Cards_js_3 = require("./resources/Issuing/Cards.js");
|
|
15
|
+
const Cards_js_2 = require("./resources/Issuing/Cards.js");
|
|
18
16
|
const Configurations_js_1 = require("./resources/BillingPortal/Configurations.js");
|
|
19
17
|
const Configurations_js_2 = require("./resources/Terminal/Configurations.js");
|
|
20
18
|
const ConfirmationTokens_js_1 = require("./resources/TestHelpers/ConfirmationTokens.js");
|
|
@@ -23,21 +21,14 @@ const CreditBalanceSummary_js_1 = require("./resources/Billing/CreditBalanceSumm
|
|
|
23
21
|
const CreditBalanceTransactions_js_1 = require("./resources/Billing/CreditBalanceTransactions.js");
|
|
24
22
|
const CreditGrants_js_1 = require("./resources/Billing/CreditGrants.js");
|
|
25
23
|
const CreditReversals_js_1 = require("./resources/Treasury/CreditReversals.js");
|
|
26
|
-
const CreditUnderwritingRecords_js_1 = require("./resources/Issuing/CreditUnderwritingRecords.js");
|
|
27
24
|
const Customers_js_1 = require("./resources/TestHelpers/Customers.js");
|
|
28
25
|
const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");
|
|
29
|
-
const DisputeSettlementDetails_js_1 = require("./resources/Issuing/DisputeSettlementDetails.js");
|
|
30
26
|
const Disputes_js_1 = require("./resources/Issuing/Disputes.js");
|
|
31
27
|
const EarlyFraudWarnings_js_1 = require("./resources/Radar/EarlyFraudWarnings.js");
|
|
32
28
|
const Features_js_1 = require("./resources/Entitlements/Features.js");
|
|
33
29
|
const FinancialAccounts_js_1 = require("./resources/Treasury/FinancialAccounts.js");
|
|
34
|
-
const FinancingOffers_js_1 = require("./resources/Capital/FinancingOffers.js");
|
|
35
|
-
const FinancingSummary_js_1 = require("./resources/Capital/FinancingSummary.js");
|
|
36
|
-
const FinancingTransactions_js_1 = require("./resources/Capital/FinancingTransactions.js");
|
|
37
|
-
const Forms_js_1 = require("./resources/Tax/Forms.js");
|
|
38
30
|
const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
|
|
39
31
|
const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
|
|
40
|
-
const Institutions_js_1 = require("./resources/FinancialConnections/Institutions.js");
|
|
41
32
|
const Locations_js_1 = require("./resources/Terminal/Locations.js");
|
|
42
33
|
const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");
|
|
43
34
|
const MeterEvents_js_1 = require("./resources/Billing/MeterEvents.js");
|
|
@@ -51,7 +42,6 @@ const PersonalizationDesigns_js_1 = require("./resources/TestHelpers/Issuing/Per
|
|
|
51
42
|
const PersonalizationDesigns_js_2 = require("./resources/Issuing/PersonalizationDesigns.js");
|
|
52
43
|
const PhysicalBundles_js_1 = require("./resources/Issuing/PhysicalBundles.js");
|
|
53
44
|
const Products_js_1 = require("./resources/Climate/Products.js");
|
|
54
|
-
const ReaderCollectedData_js_1 = require("./resources/Terminal/ReaderCollectedData.js");
|
|
55
45
|
const Readers_js_1 = require("./resources/TestHelpers/Terminal/Readers.js");
|
|
56
46
|
const Readers_js_2 = require("./resources/Terminal/Readers.js");
|
|
57
47
|
const ReceivedCredits_js_1 = require("./resources/TestHelpers/Treasury/ReceivedCredits.js");
|
|
@@ -75,10 +65,9 @@ const Tokens_js_1 = require("./resources/Issuing/Tokens.js");
|
|
|
75
65
|
const TransactionEntries_js_1 = require("./resources/Treasury/TransactionEntries.js");
|
|
76
66
|
const Transactions_js_1 = require("./resources/TestHelpers/Issuing/Transactions.js");
|
|
77
67
|
const Transactions_js_2 = require("./resources/FinancialConnections/Transactions.js");
|
|
78
|
-
const Transactions_js_3 = require("./resources/
|
|
79
|
-
const Transactions_js_4 = require("./resources/
|
|
80
|
-
const Transactions_js_5 = require("./resources/
|
|
81
|
-
const Transactions_js_6 = require("./resources/Treasury/Transactions.js");
|
|
68
|
+
const Transactions_js_3 = require("./resources/Issuing/Transactions.js");
|
|
69
|
+
const Transactions_js_4 = require("./resources/Tax/Transactions.js");
|
|
70
|
+
const Transactions_js_5 = require("./resources/Treasury/Transactions.js");
|
|
82
71
|
const ValueListItems_js_1 = require("./resources/Radar/ValueListItems.js");
|
|
83
72
|
const ValueLists_js_1 = require("./resources/Radar/ValueLists.js");
|
|
84
73
|
const VerificationReports_js_1 = require("./resources/Identity/VerificationReports.js");
|
|
@@ -87,8 +76,6 @@ var Accounts_js_2 = require("./resources/Accounts.js");
|
|
|
87
76
|
Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return Accounts_js_2.Accounts; } });
|
|
88
77
|
var AccountLinks_js_1 = require("./resources/AccountLinks.js");
|
|
89
78
|
Object.defineProperty(exports, "AccountLinks", { enumerable: true, get: function () { return AccountLinks_js_1.AccountLinks; } });
|
|
90
|
-
var AccountNotices_js_1 = require("./resources/AccountNotices.js");
|
|
91
|
-
Object.defineProperty(exports, "AccountNotices", { enumerable: true, get: function () { return AccountNotices_js_1.AccountNotices; } });
|
|
92
79
|
var AccountSessions_js_1 = require("./resources/AccountSessions.js");
|
|
93
80
|
Object.defineProperty(exports, "AccountSessions", { enumerable: true, get: function () { return AccountSessions_js_1.AccountSessions; } });
|
|
94
81
|
var Accounts_js_3 = require("./resources/Accounts.js");
|
|
@@ -135,12 +122,8 @@ var Invoices_js_1 = require("./resources/Invoices.js");
|
|
|
135
122
|
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return Invoices_js_1.Invoices; } });
|
|
136
123
|
var Mandates_js_1 = require("./resources/Mandates.js");
|
|
137
124
|
Object.defineProperty(exports, "Mandates", { enumerable: true, get: function () { return Mandates_js_1.Mandates; } });
|
|
138
|
-
var Margins_js_1 = require("./resources/Margins.js");
|
|
139
|
-
Object.defineProperty(exports, "Margins", { enumerable: true, get: function () { return Margins_js_1.Margins; } });
|
|
140
125
|
var OAuth_js_1 = require("./resources/OAuth.js");
|
|
141
126
|
Object.defineProperty(exports, "OAuth", { enumerable: true, get: function () { return OAuth_js_1.OAuth; } });
|
|
142
|
-
var Orders_js_2 = require("./resources/Orders.js");
|
|
143
|
-
Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return Orders_js_2.Orders; } });
|
|
144
127
|
var PaymentIntents_js_1 = require("./resources/PaymentIntents.js");
|
|
145
128
|
Object.defineProperty(exports, "PaymentIntents", { enumerable: true, get: function () { return PaymentIntents_js_1.PaymentIntents; } });
|
|
146
129
|
var PaymentLinks_js_1 = require("./resources/PaymentLinks.js");
|
|
@@ -211,11 +194,6 @@ exports.BillingPortal = (0, ResourceNamespace_js_1.resourceNamespace)('billingPo
|
|
|
211
194
|
Configurations: Configurations_js_1.Configurations,
|
|
212
195
|
Sessions: Sessions_js_1.Sessions,
|
|
213
196
|
});
|
|
214
|
-
exports.Capital = (0, ResourceNamespace_js_1.resourceNamespace)('capital', {
|
|
215
|
-
FinancingOffers: FinancingOffers_js_1.FinancingOffers,
|
|
216
|
-
FinancingSummary: FinancingSummary_js_1.FinancingSummary,
|
|
217
|
-
FinancingTransactions: FinancingTransactions_js_1.FinancingTransactions,
|
|
218
|
-
});
|
|
219
197
|
exports.Checkout = (0, ResourceNamespace_js_1.resourceNamespace)('checkout', {
|
|
220
198
|
Sessions: Sessions_js_2.Sessions,
|
|
221
199
|
});
|
|
@@ -230,17 +208,12 @@ exports.Entitlements = (0, ResourceNamespace_js_1.resourceNamespace)('entitlemen
|
|
|
230
208
|
});
|
|
231
209
|
exports.FinancialConnections = (0, ResourceNamespace_js_1.resourceNamespace)('financialConnections', {
|
|
232
210
|
Accounts: Accounts_js_1.Accounts,
|
|
233
|
-
Institutions: Institutions_js_1.Institutions,
|
|
234
211
|
Sessions: Sessions_js_3.Sessions,
|
|
235
212
|
Transactions: Transactions_js_2.Transactions,
|
|
236
213
|
});
|
|
237
214
|
exports.Forwarding = (0, ResourceNamespace_js_1.resourceNamespace)('forwarding', {
|
|
238
215
|
Requests: Requests_js_1.Requests,
|
|
239
216
|
});
|
|
240
|
-
exports.GiftCards = (0, ResourceNamespace_js_1.resourceNamespace)('giftCards', {
|
|
241
|
-
Cards: Cards_js_2.Cards,
|
|
242
|
-
Transactions: Transactions_js_3.Transactions,
|
|
243
|
-
});
|
|
244
217
|
exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
|
|
245
218
|
VerificationReports: VerificationReports_js_1.VerificationReports,
|
|
246
219
|
VerificationSessions: VerificationSessions_js_1.VerificationSessions,
|
|
@@ -248,14 +221,12 @@ exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
|
|
|
248
221
|
exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
249
222
|
Authorizations: Authorizations_js_2.Authorizations,
|
|
250
223
|
Cardholders: Cardholders_js_1.Cardholders,
|
|
251
|
-
Cards:
|
|
252
|
-
CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
|
|
253
|
-
DisputeSettlementDetails: DisputeSettlementDetails_js_1.DisputeSettlementDetails,
|
|
224
|
+
Cards: Cards_js_2.Cards,
|
|
254
225
|
Disputes: Disputes_js_1.Disputes,
|
|
255
226
|
PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,
|
|
256
227
|
PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
|
|
257
228
|
Tokens: Tokens_js_1.Tokens,
|
|
258
|
-
Transactions:
|
|
229
|
+
Transactions: Transactions_js_3.Transactions,
|
|
259
230
|
});
|
|
260
231
|
exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
|
|
261
232
|
EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
|
|
@@ -270,18 +241,15 @@ exports.Sigma = (0, ResourceNamespace_js_1.resourceNamespace)('sigma', {
|
|
|
270
241
|
ScheduledQueryRuns: ScheduledQueryRuns_js_1.ScheduledQueryRuns,
|
|
271
242
|
});
|
|
272
243
|
exports.Tax = (0, ResourceNamespace_js_1.resourceNamespace)('tax', {
|
|
273
|
-
Associations: Associations_js_1.Associations,
|
|
274
244
|
Calculations: Calculations_js_1.Calculations,
|
|
275
|
-
Forms: Forms_js_1.Forms,
|
|
276
245
|
Registrations: Registrations_js_1.Registrations,
|
|
277
246
|
Settings: Settings_js_1.Settings,
|
|
278
|
-
Transactions:
|
|
247
|
+
Transactions: Transactions_js_4.Transactions,
|
|
279
248
|
});
|
|
280
249
|
exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
|
|
281
250
|
Configurations: Configurations_js_2.Configurations,
|
|
282
251
|
ConnectionTokens: ConnectionTokens_js_1.ConnectionTokens,
|
|
283
252
|
Locations: Locations_js_1.Locations,
|
|
284
|
-
ReaderCollectedData: ReaderCollectedData_js_1.ReaderCollectedData,
|
|
285
253
|
Readers: Readers_js_2.Readers,
|
|
286
254
|
});
|
|
287
255
|
exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers', {
|
|
@@ -316,5 +284,5 @@ exports.Treasury = (0, ResourceNamespace_js_1.resourceNamespace)('treasury', {
|
|
|
316
284
|
ReceivedCredits: ReceivedCredits_js_2.ReceivedCredits,
|
|
317
285
|
ReceivedDebits: ReceivedDebits_js_2.ReceivedDebits,
|
|
318
286
|
TransactionEntries: TransactionEntries_js_1.TransactionEntries,
|
|
319
|
-
Transactions:
|
|
287
|
+
Transactions: Transactions_js_5.Transactions,
|
|
320
288
|
});
|
package/cjs/stripe.core.js
CHANGED
|
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
36
36
|
];
|
|
37
37
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
38
38
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
39
|
-
Stripe.PACKAGE_VERSION = '17.2.0
|
|
39
|
+
Stripe.PACKAGE_VERSION = '17.2.0';
|
|
40
40
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
41
41
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
42
42
|
Stripe.resources = resources;
|
|
@@ -15,11 +15,6 @@ export const Accounts = StripeResource.extend({
|
|
|
15
15
|
method: 'POST',
|
|
16
16
|
fullPath: '/v1/financial_connections/accounts/{account}/disconnect',
|
|
17
17
|
}),
|
|
18
|
-
listInferredBalances: stripeMethod({
|
|
19
|
-
method: 'GET',
|
|
20
|
-
fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
|
|
21
|
-
methodType: 'list',
|
|
22
|
-
}),
|
|
23
18
|
listOwners: stripeMethod({
|
|
24
19
|
method: 'GET',
|
|
25
20
|
fullPath: '/v1/financial_connections/accounts/{account}/owners',
|
|
@@ -15,14 +15,6 @@ export const Invoices = StripeResource.extend({
|
|
|
15
15
|
method: 'POST',
|
|
16
16
|
fullPath: '/v1/invoices/{invoice}/add_lines',
|
|
17
17
|
}),
|
|
18
|
-
attachPayment: stripeMethod({
|
|
19
|
-
method: 'POST',
|
|
20
|
-
fullPath: '/v1/invoices/{invoice}/attach_payment',
|
|
21
|
-
}),
|
|
22
|
-
attachPaymentIntent: stripeMethod({
|
|
23
|
-
method: 'POST',
|
|
24
|
-
fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
|
|
25
|
-
}),
|
|
26
18
|
createPreview: stripeMethod({
|
|
27
19
|
method: 'POST',
|
|
28
20
|
fullPath: '/v1/invoices/create_preview',
|
|
@@ -36,11 +28,6 @@ export const Invoices = StripeResource.extend({
|
|
|
36
28
|
fullPath: '/v1/invoices/{invoice}/lines',
|
|
37
29
|
methodType: 'list',
|
|
38
30
|
}),
|
|
39
|
-
listPayments: stripeMethod({
|
|
40
|
-
method: 'GET',
|
|
41
|
-
fullPath: '/v1/invoices/{invoice}/payments',
|
|
42
|
-
methodType: 'list',
|
|
43
|
-
}),
|
|
44
31
|
listUpcomingLines: stripeMethod({
|
|
45
32
|
method: 'GET',
|
|
46
33
|
fullPath: '/v1/invoices/upcoming/lines',
|
|
@@ -55,10 +42,6 @@ export const Invoices = StripeResource.extend({
|
|
|
55
42
|
method: 'POST',
|
|
56
43
|
fullPath: '/v1/invoices/{invoice}/remove_lines',
|
|
57
44
|
}),
|
|
58
|
-
retrievePayment: stripeMethod({
|
|
59
|
-
method: 'GET',
|
|
60
|
-
fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
|
|
61
|
-
}),
|
|
62
45
|
retrieveUpcoming: stripeMethod({
|
|
63
46
|
method: 'GET',
|
|
64
47
|
fullPath: '/v1/invoices/upcoming',
|
|
@@ -32,10 +32,6 @@ export const PaymentIntents = StripeResource.extend({
|
|
|
32
32
|
method: 'POST',
|
|
33
33
|
fullPath: '/v1/payment_intents/{intent}/confirm',
|
|
34
34
|
}),
|
|
35
|
-
decrementAuthorization: stripeMethod({
|
|
36
|
-
method: 'POST',
|
|
37
|
-
fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
|
|
38
|
-
}),
|
|
39
35
|
incrementAuthorization: stripeMethod({
|
|
40
36
|
method: 'POST',
|
|
41
37
|
fullPath: '/v1/payment_intents/{intent}/increment_authorization',
|
package/esm/resources/Quotes.js
CHANGED
|
@@ -16,11 +16,6 @@ export const Quotes = StripeResource.extend({
|
|
|
16
16
|
method: 'POST',
|
|
17
17
|
fullPath: '/v1/quotes/{quote}/finalize',
|
|
18
18
|
}),
|
|
19
|
-
listPreviewInvoiceLines: stripeMethod({
|
|
20
|
-
method: 'GET',
|
|
21
|
-
fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
|
|
22
|
-
methodType: 'list',
|
|
23
|
-
}),
|
|
24
19
|
listComputedUpfrontLineItems: stripeMethod({
|
|
25
20
|
method: 'GET',
|
|
26
21
|
fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
|
|
@@ -31,37 +26,10 @@ export const Quotes = StripeResource.extend({
|
|
|
31
26
|
fullPath: '/v1/quotes/{quote}/line_items',
|
|
32
27
|
methodType: 'list',
|
|
33
28
|
}),
|
|
34
|
-
listLines: stripeMethod({
|
|
35
|
-
method: 'GET',
|
|
36
|
-
fullPath: '/v1/quotes/{quote}/lines',
|
|
37
|
-
methodType: 'list',
|
|
38
|
-
}),
|
|
39
|
-
listPreviewInvoices: stripeMethod({
|
|
40
|
-
method: 'GET',
|
|
41
|
-
fullPath: '/v1/quotes/{quote}/preview_invoices',
|
|
42
|
-
methodType: 'list',
|
|
43
|
-
}),
|
|
44
|
-
listPreviewSubscriptionSchedules: stripeMethod({
|
|
45
|
-
method: 'GET',
|
|
46
|
-
fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
|
|
47
|
-
methodType: 'list',
|
|
48
|
-
}),
|
|
49
|
-
markDraft: stripeMethod({
|
|
50
|
-
method: 'POST',
|
|
51
|
-
fullPath: '/v1/quotes/{quote}/mark_draft',
|
|
52
|
-
}),
|
|
53
|
-
markStale: stripeMethod({
|
|
54
|
-
method: 'POST',
|
|
55
|
-
fullPath: '/v1/quotes/{quote}/mark_stale',
|
|
56
|
-
}),
|
|
57
29
|
pdf: stripeMethod({
|
|
58
30
|
method: 'GET',
|
|
59
31
|
fullPath: '/v1/quotes/{quote}/pdf',
|
|
60
32
|
host: 'files.stripe.com',
|
|
61
33
|
streaming: true,
|
|
62
34
|
}),
|
|
63
|
-
reestimate: stripeMethod({
|
|
64
|
-
method: 'POST',
|
|
65
|
-
fullPath: '/v1/quotes/{quote}/reestimate',
|
|
66
|
-
}),
|
|
67
35
|
});
|
|
@@ -19,10 +19,6 @@ export const SubscriptionSchedules = StripeResource.extend({
|
|
|
19
19
|
fullPath: '/v1/subscription_schedules',
|
|
20
20
|
methodType: 'list',
|
|
21
21
|
}),
|
|
22
|
-
amend: stripeMethod({
|
|
23
|
-
method: 'POST',
|
|
24
|
-
fullPath: '/v1/subscription_schedules/{schedule}/amend',
|
|
25
|
-
}),
|
|
26
22
|
cancel: stripeMethod({
|
|
27
23
|
method: 'POST',
|
|
28
24
|
fullPath: '/v1/subscription_schedules/{schedule}/cancel',
|
|
@@ -24,18 +24,6 @@ export const Readers = StripeResource.extend({
|
|
|
24
24
|
method: 'POST',
|
|
25
25
|
fullPath: '/v1/terminal/readers/{reader}/cancel_action',
|
|
26
26
|
}),
|
|
27
|
-
collectInputs: stripeMethod({
|
|
28
|
-
method: 'POST',
|
|
29
|
-
fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
|
|
30
|
-
}),
|
|
31
|
-
collectPaymentMethod: stripeMethod({
|
|
32
|
-
method: 'POST',
|
|
33
|
-
fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
|
|
34
|
-
}),
|
|
35
|
-
confirmPaymentIntent: stripeMethod({
|
|
36
|
-
method: 'POST',
|
|
37
|
-
fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
|
|
38
|
-
}),
|
|
39
27
|
processPaymentIntent: stripeMethod({
|
|
40
28
|
method: 'POST',
|
|
41
29
|
fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
|
|
@@ -18,8 +18,4 @@ export const Cards = StripeResource.extend({
|
|
|
18
18
|
method: 'POST',
|
|
19
19
|
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship',
|
|
20
20
|
}),
|
|
21
|
-
submitCard: stripeMethod({
|
|
22
|
-
method: 'POST',
|
|
23
|
-
fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit',
|
|
24
|
-
}),
|
|
25
21
|
});
|