stripe 17.0.0 → 17.2.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.
- package/CHANGELOG.md +895 -148
- package/README.md +6 -7
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources.js +42 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources.js +29 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +309 -0
- package/types/Accounts.d.ts +113 -1
- package/types/AccountsResource.d.ts +270 -0
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +71 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +296 -4
- package/types/Checkout/SessionsResource.d.ts +351 -5
- package/types/ConfirmationTokens.d.ts +67 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +3 -0
- package/types/Disputes.d.ts +152 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +545 -0
- package/types/Events.d.ts +90 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +23 -1
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +118 -2
- package/types/InvoicesResource.d.ts +5454 -1796
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +77 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1084 -0
- package/types/OrdersResource.d.ts +2765 -0
- package/types/PaymentIntents.d.ts +503 -1
- package/types/PaymentIntentsResource.d.ts +7000 -3400
- package/types/PaymentLinks.d.ts +3 -0
- package/types/PaymentLinksResource.d.ts +6 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +67 -0
- package/types/PaymentMethodsResource.d.ts +88 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1586 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/SetupAttempts.d.ts +10 -0
- package/types/SetupIntents.d.ts +111 -1
- package/types/SetupIntentsResource.d.ts +522 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -1
- package/types/SubscriptionsResource.d.ts +347 -2
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/WebhookEndpointsResource.d.ts +64 -0
- package/types/index.d.ts +52 -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.
|
|
@@ -519,12 +519,12 @@ const stripe = new Stripe('sk_test_...', {
|
|
|
519
519
|
|
|
520
520
|
### Custom requests
|
|
521
521
|
|
|
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
|
|
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 Stripe object.
|
|
523
523
|
|
|
524
524
|
```javascript
|
|
525
|
-
const
|
|
525
|
+
const stripe = require('stripe')('sk_test_...');
|
|
526
526
|
|
|
527
|
-
|
|
527
|
+
stripe.rawRequest(
|
|
528
528
|
'POST',
|
|
529
529
|
'/v1/beta_endpoint',
|
|
530
530
|
{ param: 123 },
|
|
@@ -543,14 +543,13 @@ const stripe = new Stripe('sk_test_...');
|
|
|
543
543
|
const response = await stripe.rawRequest(
|
|
544
544
|
'POST',
|
|
545
545
|
'/v1/beta_endpoint',
|
|
546
|
-
{
|
|
547
|
-
{
|
|
546
|
+
{param: 123},
|
|
547
|
+
{apiVersion: '2022-11-15; feature_beta=v3'}
|
|
548
548
|
);
|
|
549
549
|
|
|
550
550
|
// handle response
|
|
551
551
|
```
|
|
552
552
|
|
|
553
|
-
|
|
554
553
|
## Support
|
|
555
554
|
|
|
556
555
|
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.0.
|
|
1
|
+
17.2.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',
|
package/cjs/resources/Quotes.js
CHANGED
|
@@ -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',
|