stripe 16.11.0-beta.1 → 16.12.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 +15 -0
- package/VERSION +1 -1
- package/cjs/StripeResource.js +1 -1
- package/cjs/resources/InvoiceRenderingTemplates.js +25 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/QuotePhases.js +0 -5
- package/cjs/resources.js +6 -2
- package/cjs/stripe.core.js +1 -1
- package/esm/StripeResource.js +1 -1
- package/esm/resources/InvoiceRenderingTemplates.js +22 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/QuotePhases.js +0 -5
- package/esm/resources.js +3 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/Checkout/Sessions.d.ts +9 -0
- package/types/Checkout/SessionsResource.d.ts +10 -0
- package/types/Customers.d.ts +5 -0
- package/types/CustomersResource.d.ts +10 -0
- package/types/EventTypes.d.ts +68 -0
- package/types/Events.d.ts +4 -0
- package/types/InvoiceLineItems.d.ts +2 -2
- package/types/InvoiceRenderingTemplates.d.ts +54 -0
- package/types/InvoiceRenderingTemplatesResource.d.ts +93 -0
- package/types/Invoices.d.ts +10 -0
- package/types/InvoicesResource.d.ts +20 -0
- package/types/Issuing/Cards.d.ts +2 -1
- 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/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +18 -0
- package/types/QuotePhasesResource.d.ts +0 -20
- package/types/QuotePreviewInvoices.d.ts +10 -0
- package/types/QuotesResource.d.ts +2 -2
- package/types/SubscriptionsResource.d.ts +6 -0
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/TestHelpers/TestClocks.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +8 -0
- package/types/index.d.ts +7 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 16.12.0-beta.1 - 2024-09-13
|
|
4
|
+
* [#2170](https://github.com/stripe/stripe-node/pull/2170) Update generated code for beta
|
|
5
|
+
* Add support for new resources `Issuing.DisputeSettlementDetail` and `Issuing.Settlement`
|
|
6
|
+
* Add support for `list` and `retrieve` methods on resource `DisputeSettlementDetail`
|
|
7
|
+
* Remove support for `list` method on resource `QuotePhase`
|
|
8
|
+
* Add support for new value `rechnung` on enum `Checkout.SessionCreateParams.payment_method_types[]`
|
|
9
|
+
* Add support for new values `issuing_dispute_settlement_detail.created`, `issuing_dispute_settlement_detail.updated`, `issuing_settlement.created`, and `issuing_settlement.updated` on enum `Event.type`
|
|
10
|
+
* Add support for `settlement` on `Issuing.TransactionListParams` and `Issuing.Transaction`
|
|
11
|
+
* Add support for new values `issuing_dispute_settlement_detail.created`, `issuing_dispute_settlement_detail.updated`, `issuing_settlement.created`, and `issuing_settlement.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
12
|
+
|
|
3
13
|
## 16.11.0-beta.1 - 2024-09-05
|
|
4
14
|
* [#2162](https://github.com/stripe/stripe-node/pull/2162) Update generated code for beta
|
|
5
15
|
* Add support for new resources `Billing.MeterErrorReport` and `Terminal.ReaderCollectedData`
|
|
@@ -14,6 +24,11 @@
|
|
|
14
24
|
* Remove support for `rechnung` on `PaymentMethodUpdateParams`
|
|
15
25
|
* Add support for new value `billing.meter_error_report.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
16
26
|
|
|
27
|
+
## 16.10.0 - 2024-09-05
|
|
28
|
+
* [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code
|
|
29
|
+
* Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter`
|
|
30
|
+
* Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional
|
|
31
|
+
|
|
17
32
|
## 16.9.0 - 2024-08-29
|
|
18
33
|
* [#2163](https://github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230
|
|
19
34
|
* Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
16.
|
|
1
|
+
16.12.0-beta.1
|
package/cjs/StripeResource.js
CHANGED
|
@@ -122,7 +122,7 @@ StripeResource.prototype = {
|
|
|
122
122
|
spec.validator(data, { headers });
|
|
123
123
|
}
|
|
124
124
|
const dataInQuery = spec.method === 'GET' || spec.method === 'DELETE';
|
|
125
|
-
const bodyData = dataInQuery ?
|
|
125
|
+
const bodyData = dataInQuery ? null : data;
|
|
126
126
|
const queryData = dataInQuery ? data : {};
|
|
127
127
|
return {
|
|
128
128
|
requestMethod,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.InvoiceRenderingTemplates = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.InvoiceRenderingTemplates = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
retrieve: stripeMethod({
|
|
9
|
+
method: 'GET',
|
|
10
|
+
fullPath: '/v1/invoice_rendering_templates/{template}',
|
|
11
|
+
}),
|
|
12
|
+
list: stripeMethod({
|
|
13
|
+
method: 'GET',
|
|
14
|
+
fullPath: '/v1/invoice_rendering_templates',
|
|
15
|
+
methodType: 'list',
|
|
16
|
+
}),
|
|
17
|
+
archive: stripeMethod({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/archive',
|
|
20
|
+
}),
|
|
21
|
+
unarchive: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/unarchive',
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
@@ -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
|
+
});
|
|
@@ -9,11 +9,6 @@ exports.QuotePhases = StripeResource_js_1.StripeResource.extend({
|
|
|
9
9
|
method: 'GET',
|
|
10
10
|
fullPath: '/v1/quote_phases/{quote_phase}',
|
|
11
11
|
}),
|
|
12
|
-
list: stripeMethod({
|
|
13
|
-
method: 'GET',
|
|
14
|
-
fullPath: '/v1/quote_phases',
|
|
15
|
-
methodType: 'list',
|
|
16
|
-
}),
|
|
17
12
|
listLineItems: stripeMethod({
|
|
18
13
|
method: 'GET',
|
|
19
14
|
fullPath: '/v1/quote_phases/{quote_phase}/line_items',
|
package/cjs/resources.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = void 0;
|
|
4
|
+
exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.QuotePhases = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.Orders = exports.OAuth = exports.Margins = 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.AccountNotices = 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.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = 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");
|
|
@@ -23,6 +23,7 @@ const CreditReversals_js_1 = require("./resources/Treasury/CreditReversals.js");
|
|
|
23
23
|
const CreditUnderwritingRecords_js_1 = require("./resources/Issuing/CreditUnderwritingRecords.js");
|
|
24
24
|
const Customers_js_1 = require("./resources/TestHelpers/Customers.js");
|
|
25
25
|
const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");
|
|
26
|
+
const DisputeSettlementDetails_js_1 = require("./resources/Issuing/DisputeSettlementDetails.js");
|
|
26
27
|
const Disputes_js_1 = require("./resources/Issuing/Disputes.js");
|
|
27
28
|
const EarlyFraudWarnings_js_1 = require("./resources/Radar/EarlyFraudWarnings.js");
|
|
28
29
|
const Features_js_1 = require("./resources/Entitlements/Features.js");
|
|
@@ -125,6 +126,8 @@ var Files_js_1 = require("./resources/Files.js");
|
|
|
125
126
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return Files_js_1.Files; } });
|
|
126
127
|
var InvoiceItems_js_1 = require("./resources/InvoiceItems.js");
|
|
127
128
|
Object.defineProperty(exports, "InvoiceItems", { enumerable: true, get: function () { return InvoiceItems_js_1.InvoiceItems; } });
|
|
129
|
+
var InvoiceRenderingTemplates_js_1 = require("./resources/InvoiceRenderingTemplates.js");
|
|
130
|
+
Object.defineProperty(exports, "InvoiceRenderingTemplates", { enumerable: true, get: function () { return InvoiceRenderingTemplates_js_1.InvoiceRenderingTemplates; } });
|
|
128
131
|
var Invoices_js_1 = require("./resources/Invoices.js");
|
|
129
132
|
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return Invoices_js_1.Invoices; } });
|
|
130
133
|
var Mandates_js_1 = require("./resources/Mandates.js");
|
|
@@ -241,6 +244,7 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
|
241
244
|
Cardholders: Cardholders_js_1.Cardholders,
|
|
242
245
|
Cards: Cards_js_3.Cards,
|
|
243
246
|
CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
|
|
247
|
+
DisputeSettlementDetails: DisputeSettlementDetails_js_1.DisputeSettlementDetails,
|
|
244
248
|
Disputes: Disputes_js_1.Disputes,
|
|
245
249
|
PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,
|
|
246
250
|
PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
|
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '16.12.0-beta.1';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/StripeResource.js
CHANGED
|
@@ -118,7 +118,7 @@ StripeResource.prototype = {
|
|
|
118
118
|
spec.validator(data, { headers });
|
|
119
119
|
}
|
|
120
120
|
const dataInQuery = spec.method === 'GET' || spec.method === 'DELETE';
|
|
121
|
-
const bodyData = dataInQuery ?
|
|
121
|
+
const bodyData = dataInQuery ? null : data;
|
|
122
122
|
const queryData = dataInQuery ? data : {};
|
|
123
123
|
return {
|
|
124
124
|
requestMethod,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const InvoiceRenderingTemplates = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/invoice_rendering_templates/{template}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/invoice_rendering_templates',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
archive: stripeMethod({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/archive',
|
|
17
|
+
}),
|
|
18
|
+
unarchive: stripeMethod({
|
|
19
|
+
method: 'POST',
|
|
20
|
+
fullPath: '/v1/invoice_rendering_templates/{template}/unarchive',
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const DisputeSettlementDetails = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/issuing/dispute_settlement_details/{dispute_settlement_detail}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/issuing/dispute_settlement_details',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -6,11 +6,6 @@ export const QuotePhases = StripeResource.extend({
|
|
|
6
6
|
method: 'GET',
|
|
7
7
|
fullPath: '/v1/quote_phases/{quote_phase}',
|
|
8
8
|
}),
|
|
9
|
-
list: stripeMethod({
|
|
10
|
-
method: 'GET',
|
|
11
|
-
fullPath: '/v1/quote_phases',
|
|
12
|
-
methodType: 'list',
|
|
13
|
-
}),
|
|
14
9
|
listLineItems: stripeMethod({
|
|
15
10
|
method: 'GET',
|
|
16
11
|
fullPath: '/v1/quote_phases/{quote_phase}/line_items',
|
package/esm/resources.js
CHANGED
|
@@ -19,6 +19,7 @@ import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury
|
|
|
19
19
|
import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
|
|
20
20
|
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
|
|
21
21
|
import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';
|
|
22
|
+
import { DisputeSettlementDetails as IssuingDisputeSettlementDetails } from './resources/Issuing/DisputeSettlementDetails.js';
|
|
22
23
|
import { Disputes as IssuingDisputes } from './resources/Issuing/Disputes.js';
|
|
23
24
|
import { EarlyFraudWarnings as RadarEarlyFraudWarnings } from './resources/Radar/EarlyFraudWarnings.js';
|
|
24
25
|
import { Features as EntitlementsFeatures } from './resources/Entitlements/Features.js';
|
|
@@ -98,6 +99,7 @@ export { ExchangeRates } from './resources/ExchangeRates.js';
|
|
|
98
99
|
export { FileLinks } from './resources/FileLinks.js';
|
|
99
100
|
export { Files } from './resources/Files.js';
|
|
100
101
|
export { InvoiceItems } from './resources/InvoiceItems.js';
|
|
102
|
+
export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
|
|
101
103
|
export { Invoices } from './resources/Invoices.js';
|
|
102
104
|
export { Mandates } from './resources/Mandates.js';
|
|
103
105
|
export { Margins } from './resources/Margins.js';
|
|
@@ -181,6 +183,7 @@ export const Issuing = resourceNamespace('issuing', {
|
|
|
181
183
|
Cardholders: IssuingCardholders,
|
|
182
184
|
Cards: IssuingCards,
|
|
183
185
|
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
|
|
186
|
+
DisputeSettlementDetails: IssuingDisputeSettlementDetails,
|
|
184
187
|
Disputes: IssuingDisputes,
|
|
185
188
|
PersonalizationDesigns: IssuingPersonalizationDesigns,
|
|
186
189
|
PhysicalBundles: IssuingPhysicalBundles,
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '16.
|
|
34
|
+
Stripe.PACKAGE_VERSION = '16.12.0-beta.1';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -2318,6 +2318,15 @@ declare module 'stripe' {
|
|
|
2318
2318
|
* Indicates whether tax ID collection is enabled for the session
|
|
2319
2319
|
*/
|
|
2320
2320
|
enabled: boolean;
|
|
2321
|
+
|
|
2322
|
+
/**
|
|
2323
|
+
* Indicates whether a tax ID is required on the payment page
|
|
2324
|
+
*/
|
|
2325
|
+
required: TaxIdCollection.Required;
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
namespace TaxIdCollection {
|
|
2329
|
+
type Required = 'if_supported' | 'never';
|
|
2321
2330
|
}
|
|
2322
2331
|
|
|
2323
2332
|
interface TotalDetails {
|
|
@@ -2013,6 +2013,7 @@ declare module 'stripe' {
|
|
|
2013
2013
|
| 'payto'
|
|
2014
2014
|
| 'pix'
|
|
2015
2015
|
| 'promptpay'
|
|
2016
|
+
| 'rechnung'
|
|
2016
2017
|
| 'revolut_pay'
|
|
2017
2018
|
| 'sepa_debit'
|
|
2018
2019
|
| 'sofort'
|
|
@@ -2616,6 +2617,15 @@ declare module 'stripe' {
|
|
|
2616
2617
|
* Enable tax ID collection during checkout. Defaults to `false`.
|
|
2617
2618
|
*/
|
|
2618
2619
|
enabled: boolean;
|
|
2620
|
+
|
|
2621
|
+
/**
|
|
2622
|
+
* Describes whether a tax ID is required during checkout. Defaults to `never`.
|
|
2623
|
+
*/
|
|
2624
|
+
required?: TaxIdCollection.Required;
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
namespace TaxIdCollection {
|
|
2628
|
+
type Required = 'if_supported' | 'never';
|
|
2619
2629
|
}
|
|
2620
2630
|
|
|
2621
2631
|
type UiMode = 'custom' | 'embedded' | 'hosted';
|
package/types/Customers.d.ts
CHANGED
|
@@ -197,6 +197,11 @@ declare module 'stripe' {
|
|
|
197
197
|
* How line-item prices and amounts will be displayed with respect to tax on invoice PDFs.
|
|
198
198
|
*/
|
|
199
199
|
amount_tax_display: string | null;
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* ID of the invoice rendering template to be used for this customer's invoices. If set, the template will be used on all invoices for this customer unless a template is set directly on the invoice.
|
|
203
|
+
*/
|
|
204
|
+
template: string | null;
|
|
200
205
|
}
|
|
201
206
|
}
|
|
202
207
|
|
|
@@ -171,6 +171,11 @@ declare module 'stripe' {
|
|
|
171
171
|
amount_tax_display?: Stripe.Emptyable<
|
|
172
172
|
RenderingOptions.AmountTaxDisplay
|
|
173
173
|
>;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* ID of the invoice rendering template to use for future invoices.
|
|
177
|
+
*/
|
|
178
|
+
template?: string;
|
|
174
179
|
}
|
|
175
180
|
|
|
176
181
|
namespace RenderingOptions {
|
|
@@ -477,6 +482,11 @@ declare module 'stripe' {
|
|
|
477
482
|
amount_tax_display?: Stripe.Emptyable<
|
|
478
483
|
RenderingOptions.AmountTaxDisplay
|
|
479
484
|
>;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* ID of the invoice rendering template to use for future invoices.
|
|
488
|
+
*/
|
|
489
|
+
template?: string;
|
|
480
490
|
}
|
|
481
491
|
|
|
482
492
|
namespace RenderingOptions {
|
package/types/EventTypes.d.ts
CHANGED
|
@@ -135,10 +135,14 @@ declare module 'stripe' {
|
|
|
135
135
|
| IssuingDisputeFundsRescindedEvent
|
|
136
136
|
| IssuingDisputeSubmittedEvent
|
|
137
137
|
| IssuingDisputeUpdatedEvent
|
|
138
|
+
| IssuingDisputeSettlementDetailCreatedEvent
|
|
139
|
+
| IssuingDisputeSettlementDetailUpdatedEvent
|
|
138
140
|
| IssuingPersonalizationDesignActivatedEvent
|
|
139
141
|
| IssuingPersonalizationDesignDeactivatedEvent
|
|
140
142
|
| IssuingPersonalizationDesignRejectedEvent
|
|
141
143
|
| IssuingPersonalizationDesignUpdatedEvent
|
|
144
|
+
| IssuingSettlementCreatedEvent
|
|
145
|
+
| IssuingSettlementUpdatedEvent
|
|
142
146
|
| IssuingTokenCreatedEvent
|
|
143
147
|
| IssuingTokenUpdatedEvent
|
|
144
148
|
| IssuingTransactionCreatedEvent
|
|
@@ -2388,6 +2392,38 @@ declare module 'stripe' {
|
|
|
2388
2392
|
}
|
|
2389
2393
|
}
|
|
2390
2394
|
|
|
2395
|
+
/**
|
|
2396
|
+
* Emitted when the DisputeSettlementDetail object is created
|
|
2397
|
+
*/
|
|
2398
|
+
interface IssuingDisputeSettlementDetailCreatedEvent extends EventBase {
|
|
2399
|
+
type: 'issuing_dispute_settlement_detail.created';
|
|
2400
|
+
data: IssuingDisputeSettlementDetailCreatedEvent.Data;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
namespace IssuingDisputeSettlementDetailCreatedEvent {
|
|
2404
|
+
interface Data extends Stripe.Event.Data {
|
|
2405
|
+
object: Stripe.Issuing.DisputeSettlementDetail;
|
|
2406
|
+
|
|
2407
|
+
previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
|
|
2408
|
+
}
|
|
2409
|
+
}
|
|
2410
|
+
|
|
2411
|
+
/**
|
|
2412
|
+
* Emitted when the DisputeSettlementDetail object is updated
|
|
2413
|
+
*/
|
|
2414
|
+
interface IssuingDisputeSettlementDetailUpdatedEvent extends EventBase {
|
|
2415
|
+
type: 'issuing_dispute_settlement_detail.updated';
|
|
2416
|
+
data: IssuingDisputeSettlementDetailUpdatedEvent.Data;
|
|
2417
|
+
}
|
|
2418
|
+
|
|
2419
|
+
namespace IssuingDisputeSettlementDetailUpdatedEvent {
|
|
2420
|
+
interface Data extends Stripe.Event.Data {
|
|
2421
|
+
object: Stripe.Issuing.DisputeSettlementDetail;
|
|
2422
|
+
|
|
2423
|
+
previous_attributes?: Partial<Stripe.Issuing.DisputeSettlementDetail>;
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2391
2427
|
/**
|
|
2392
2428
|
* Occurs whenever a personalization design is activated following the activation of the physical bundle that belongs to it.
|
|
2393
2429
|
*/
|
|
@@ -2452,6 +2488,38 @@ declare module 'stripe' {
|
|
|
2452
2488
|
}
|
|
2453
2489
|
}
|
|
2454
2490
|
|
|
2491
|
+
/**
|
|
2492
|
+
* Occurs whenever an issuing settlement is created.
|
|
2493
|
+
*/
|
|
2494
|
+
interface IssuingSettlementCreatedEvent extends EventBase {
|
|
2495
|
+
type: 'issuing_settlement.created';
|
|
2496
|
+
data: IssuingSettlementCreatedEvent.Data;
|
|
2497
|
+
}
|
|
2498
|
+
|
|
2499
|
+
namespace IssuingSettlementCreatedEvent {
|
|
2500
|
+
interface Data extends Stripe.Event.Data {
|
|
2501
|
+
object: Stripe.Issuing.Settlement;
|
|
2502
|
+
|
|
2503
|
+
previous_attributes?: Partial<Stripe.Issuing.Settlement>;
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* Occurs whenever an issuing settlement is updated.
|
|
2509
|
+
*/
|
|
2510
|
+
interface IssuingSettlementUpdatedEvent extends EventBase {
|
|
2511
|
+
type: 'issuing_settlement.updated';
|
|
2512
|
+
data: IssuingSettlementUpdatedEvent.Data;
|
|
2513
|
+
}
|
|
2514
|
+
|
|
2515
|
+
namespace IssuingSettlementUpdatedEvent {
|
|
2516
|
+
interface Data extends Stripe.Event.Data {
|
|
2517
|
+
object: Stripe.Issuing.Settlement;
|
|
2518
|
+
|
|
2519
|
+
previous_attributes?: Partial<Stripe.Issuing.Settlement>;
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
|
|
2455
2523
|
/**
|
|
2456
2524
|
* Occurs whenever an issuing digital wallet token is created.
|
|
2457
2525
|
*/
|
package/types/Events.d.ts
CHANGED
|
@@ -219,10 +219,14 @@ declare module 'stripe' {
|
|
|
219
219
|
| 'issuing_dispute.funds_rescinded'
|
|
220
220
|
| 'issuing_dispute.submitted'
|
|
221
221
|
| 'issuing_dispute.updated'
|
|
222
|
+
| 'issuing_dispute_settlement_detail.created'
|
|
223
|
+
| 'issuing_dispute_settlement_detail.updated'
|
|
222
224
|
| 'issuing_personalization_design.activated'
|
|
223
225
|
| 'issuing_personalization_design.deactivated'
|
|
224
226
|
| 'issuing_personalization_design.rejected'
|
|
225
227
|
| 'issuing_personalization_design.updated'
|
|
228
|
+
| 'issuing_settlement.created'
|
|
229
|
+
| 'issuing_settlement.updated'
|
|
226
230
|
| 'issuing_token.created'
|
|
227
231
|
| 'issuing_token.updated'
|
|
228
232
|
| 'issuing_transaction.created'
|
|
@@ -123,12 +123,12 @@ declare module 'stripe' {
|
|
|
123
123
|
/**
|
|
124
124
|
* The amount of tax calculated per tax rate for this line item
|
|
125
125
|
*/
|
|
126
|
-
tax_amounts
|
|
126
|
+
tax_amounts: Array<InvoiceLineItem.TaxAmount>;
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
129
|
* The tax rates which apply to the line item.
|
|
130
130
|
*/
|
|
131
|
-
tax_rates
|
|
131
|
+
tax_rates: Array<Stripe.TaxRate>;
|
|
132
132
|
|
|
133
133
|
/**
|
|
134
134
|
* A string identifying the type of the source of this line item, either an `invoiceitem` or a `subscription`.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
/**
|
|
6
|
+
* The InvoiceRenderingTemplate object.
|
|
7
|
+
*/
|
|
8
|
+
interface InvoiceRenderingTemplate {
|
|
9
|
+
/**
|
|
10
|
+
* Unique identifier for the object.
|
|
11
|
+
*/
|
|
12
|
+
id: string;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
16
|
+
*/
|
|
17
|
+
object: 'invoice_rendering_template';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
21
|
+
*/
|
|
22
|
+
created: number;
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
26
|
+
*/
|
|
27
|
+
livemode: boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
31
|
+
*/
|
|
32
|
+
metadata: Stripe.Metadata | null;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* A brief description of the template, hidden from customers
|
|
36
|
+
*/
|
|
37
|
+
nickname: string | null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* The status of the template, one of `active` or `archived`.
|
|
41
|
+
*/
|
|
42
|
+
status: InvoiceRenderingTemplate.Status;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Version of this template; version increases by one when an update on the template changes any field that controls invoice rendering
|
|
46
|
+
*/
|
|
47
|
+
version: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
namespace InvoiceRenderingTemplate {
|
|
51
|
+
type Status = 'active' | 'archived';
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
interface InvoiceRenderingTemplateRetrieveParams {
|
|
6
|
+
/**
|
|
7
|
+
* Specifies which fields in the response should be expanded.
|
|
8
|
+
*/
|
|
9
|
+
expand?: Array<string>;
|
|
10
|
+
|
|
11
|
+
version?: number;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface InvoiceRenderingTemplateListParams extends PaginationParams {
|
|
15
|
+
/**
|
|
16
|
+
* Specifies which fields in the response should be expanded.
|
|
17
|
+
*/
|
|
18
|
+
expand?: Array<string>;
|
|
19
|
+
|
|
20
|
+
status?: InvoiceRenderingTemplateListParams.Status;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
namespace InvoiceRenderingTemplateListParams {
|
|
24
|
+
type Status = 'active' | 'archived';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
interface InvoiceRenderingTemplateArchiveParams {
|
|
28
|
+
/**
|
|
29
|
+
* Specifies which fields in the response should be expanded.
|
|
30
|
+
*/
|
|
31
|
+
expand?: Array<string>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface InvoiceRenderingTemplateUnarchiveParams {
|
|
35
|
+
/**
|
|
36
|
+
* Specifies which fields in the response should be expanded.
|
|
37
|
+
*/
|
|
38
|
+
expand?: Array<string>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
class InvoiceRenderingTemplatesResource {
|
|
42
|
+
/**
|
|
43
|
+
* Retrieves an invoice rendering template with the given ID. It by default returns the latest version of the template. Optionally, specify a version to see previous versions.
|
|
44
|
+
*/
|
|
45
|
+
retrieve(
|
|
46
|
+
id: string,
|
|
47
|
+
params?: InvoiceRenderingTemplateRetrieveParams,
|
|
48
|
+
options?: RequestOptions
|
|
49
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
50
|
+
retrieve(
|
|
51
|
+
id: string,
|
|
52
|
+
options?: RequestOptions
|
|
53
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* List all templates, ordered by creation date, with the most recently created template appearing first.
|
|
57
|
+
*/
|
|
58
|
+
list(
|
|
59
|
+
params?: InvoiceRenderingTemplateListParams,
|
|
60
|
+
options?: RequestOptions
|
|
61
|
+
): ApiListPromise<Stripe.InvoiceRenderingTemplate>;
|
|
62
|
+
list(
|
|
63
|
+
options?: RequestOptions
|
|
64
|
+
): ApiListPromise<Stripe.InvoiceRenderingTemplate>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Updates the status of an invoice rendering template to ‘archived' so no new Stripe objects (customers, invoices, etc.) can reference it. The template can also no longer be updated. However, if the template is already set on a Stripe object, it will continue to be applied on invoices generated by it.
|
|
68
|
+
*/
|
|
69
|
+
archive(
|
|
70
|
+
id: string,
|
|
71
|
+
params?: InvoiceRenderingTemplateArchiveParams,
|
|
72
|
+
options?: RequestOptions
|
|
73
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
74
|
+
archive(
|
|
75
|
+
id: string,
|
|
76
|
+
options?: RequestOptions
|
|
77
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Unarchive an invoice rendering template so it can be used on new Stripe objects again.
|
|
81
|
+
*/
|
|
82
|
+
unarchive(
|
|
83
|
+
id: string,
|
|
84
|
+
params?: InvoiceRenderingTemplateUnarchiveParams,
|
|
85
|
+
options?: RequestOptions
|
|
86
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
87
|
+
unarchive(
|
|
88
|
+
id: string,
|
|
89
|
+
options?: RequestOptions
|
|
90
|
+
): Promise<Stripe.Response<Stripe.InvoiceRenderingTemplate>>;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
package/types/Invoices.d.ts
CHANGED
|
@@ -1280,6 +1280,16 @@ declare module 'stripe' {
|
|
|
1280
1280
|
* Invoice pdf rendering options
|
|
1281
1281
|
*/
|
|
1282
1282
|
pdf: Rendering.Pdf | null;
|
|
1283
|
+
|
|
1284
|
+
/**
|
|
1285
|
+
* ID of the rendering template that the invoice is formatted by.
|
|
1286
|
+
*/
|
|
1287
|
+
template: string | null;
|
|
1288
|
+
|
|
1289
|
+
/**
|
|
1290
|
+
* Version of the rendering template that the invoice is using.
|
|
1291
|
+
*/
|
|
1292
|
+
template_version: number | null;
|
|
1283
1293
|
}
|
|
1284
1294
|
|
|
1285
1295
|
namespace Rendering {
|
|
@@ -624,6 +624,16 @@ declare module 'stripe' {
|
|
|
624
624
|
* Invoice pdf rendering options
|
|
625
625
|
*/
|
|
626
626
|
pdf?: Rendering.Pdf;
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* ID of the invoice rendering template to use for this invoice.
|
|
630
|
+
*/
|
|
631
|
+
template?: string;
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* The specific version of invoice rendering template to use for this invoice.
|
|
635
|
+
*/
|
|
636
|
+
template_version?: Stripe.Emptyable<number>;
|
|
627
637
|
}
|
|
628
638
|
|
|
629
639
|
namespace Rendering {
|
|
@@ -1401,6 +1411,16 @@ declare module 'stripe' {
|
|
|
1401
1411
|
* Invoice pdf rendering options
|
|
1402
1412
|
*/
|
|
1403
1413
|
pdf?: Rendering.Pdf;
|
|
1414
|
+
|
|
1415
|
+
/**
|
|
1416
|
+
* ID of the invoice rendering template to use for this invoice.
|
|
1417
|
+
*/
|
|
1418
|
+
template?: string;
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* The specific version of invoice rendering template to use for this invoice.
|
|
1422
|
+
*/
|
|
1423
|
+
template_version?: Stripe.Emptyable<number>;
|
|
1404
1424
|
}
|
|
1405
1425
|
|
|
1406
1426
|
namespace Rendering {
|
package/types/Issuing/Cards.d.ts
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Issuing {
|
|
6
|
+
/**
|
|
7
|
+
* Represents a record from the card network of a money movement or change in state for an Issuing dispute. These records are included in the settlement reports that we receive from networks and expose to users as Settlement objects.
|
|
8
|
+
*/
|
|
9
|
+
interface DisputeSettlementDetail {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'issuing.dispute_settlement_detail';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Disputed amount in the card's currency and in the smallest currency unit. Usually the amount of the transaction, but can differ (usually because of currency fluctuation).
|
|
22
|
+
*/
|
|
23
|
+
amount: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The card used to make the original transaction.
|
|
27
|
+
*/
|
|
28
|
+
card: string;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
32
|
+
*/
|
|
33
|
+
created: number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The currency the original transaction was made in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
37
|
+
*/
|
|
38
|
+
currency: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The ID of the linked dispute.
|
|
42
|
+
*/
|
|
43
|
+
dispute: string;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* The type of event corresponding to this dispute settlement detail, representing the stage in the dispute network lifecycle.
|
|
47
|
+
*/
|
|
48
|
+
event_type: DisputeSettlementDetail.EventType;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
52
|
+
*/
|
|
53
|
+
livemode: boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The card network for this dispute settlement detail. One of ["visa", "mastercard", "maestro"]
|
|
57
|
+
*/
|
|
58
|
+
network: DisputeSettlementDetail.Network;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The ID of the linked card network settlement.
|
|
62
|
+
*/
|
|
63
|
+
settlement: string | null;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
namespace DisputeSettlementDetail {
|
|
67
|
+
type EventType = 'filing' | 'loss' | 'representment' | 'win';
|
|
68
|
+
|
|
69
|
+
type Network = 'maestro' | 'mastercard' | 'visa';
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Issuing {
|
|
6
|
+
interface DisputeSettlementDetailRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface DisputeSettlementDetailListParams extends PaginationParams {
|
|
14
|
+
/**
|
|
15
|
+
* Specifies which fields in the response should be expanded.
|
|
16
|
+
*/
|
|
17
|
+
expand?: Array<string>;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Select the Issuing dispute settlement details for the given settlement.
|
|
21
|
+
*/
|
|
22
|
+
settlement?: string;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
class DisputeSettlementDetailsResource {
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves an Issuing DisputeSettlementDetail object.
|
|
28
|
+
*/
|
|
29
|
+
retrieve(
|
|
30
|
+
id: string,
|
|
31
|
+
params?: DisputeSettlementDetailRetrieveParams,
|
|
32
|
+
options?: RequestOptions
|
|
33
|
+
): Promise<Stripe.Response<Stripe.Issuing.DisputeSettlementDetail>>;
|
|
34
|
+
retrieve(
|
|
35
|
+
id: string,
|
|
36
|
+
options?: RequestOptions
|
|
37
|
+
): Promise<Stripe.Response<Stripe.Issuing.DisputeSettlementDetail>>;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Returns a list of Issuing DisputeSettlementDetail objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.
|
|
41
|
+
*/
|
|
42
|
+
list(
|
|
43
|
+
params?: DisputeSettlementDetailListParams,
|
|
44
|
+
options?: RequestOptions
|
|
45
|
+
): ApiListPromise<Stripe.Issuing.DisputeSettlementDetail>;
|
|
46
|
+
list(
|
|
47
|
+
options?: RequestOptions
|
|
48
|
+
): ApiListPromise<Stripe.Issuing.DisputeSettlementDetail>;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Issuing {
|
|
6
|
+
/**
|
|
7
|
+
* When a non-stripe BIN is used, any use of an [issued card](https://stripe.com/docs/issuing) must be settled directly with the card network. The net amount owed is represented by an Issuing `Settlement` object.
|
|
8
|
+
*/
|
|
9
|
+
interface Settlement {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'issuing.settlement';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* The Bank Identification Number reflecting this settlement record.
|
|
22
|
+
*/
|
|
23
|
+
bin: string;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* The date that the transactions are cleared and posted to user's accounts.
|
|
27
|
+
*/
|
|
28
|
+
clearing_date: number;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
32
|
+
*/
|
|
33
|
+
created: number;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
37
|
+
*/
|
|
38
|
+
currency: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* The total interchange received as reimbursement for the transactions.
|
|
42
|
+
*/
|
|
43
|
+
interchange_fees: number;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
47
|
+
*/
|
|
48
|
+
livemode: boolean;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
52
|
+
*/
|
|
53
|
+
metadata: Stripe.Metadata;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The total net amount required to settle with the network.
|
|
57
|
+
*/
|
|
58
|
+
net_total: number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* The card network for this settlement report. One of ["visa", "maestro"]
|
|
62
|
+
*/
|
|
63
|
+
network: Settlement.Network;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* The total amount of fees owed to the network.
|
|
67
|
+
*/
|
|
68
|
+
network_fees: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* The Settlement Identification Number assigned by the network.
|
|
72
|
+
*/
|
|
73
|
+
network_settlement_identifier: string;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* One of `international` or `uk_national_net`.
|
|
77
|
+
*/
|
|
78
|
+
settlement_service: string;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The current processing status of this settlement.
|
|
82
|
+
*/
|
|
83
|
+
status: Settlement.Status;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The total number of transactions reflected in this settlement.
|
|
87
|
+
*/
|
|
88
|
+
transaction_count: number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The total transaction amount reflected in this settlement.
|
|
92
|
+
*/
|
|
93
|
+
transaction_volume: number;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
namespace Settlement {
|
|
97
|
+
type Network = 'maestro' | 'visa';
|
|
98
|
+
|
|
99
|
+
type Status = 'complete' | 'pending';
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
@@ -98,6 +98,8 @@ declare module 'stripe' {
|
|
|
98
98
|
*/
|
|
99
99
|
purchase_details?: Transaction.PurchaseDetails | null;
|
|
100
100
|
|
|
101
|
+
settlement?: string | Stripe.Issuing.Settlement | null;
|
|
102
|
+
|
|
101
103
|
/**
|
|
102
104
|
* [Token](https://stripe.com/docs/api/issuing/tokens/object) object used for this transaction. If a network token was not used for this transaction, this field will be null.
|
|
103
105
|
*/
|
|
@@ -43,6 +43,11 @@ declare module 'stripe' {
|
|
|
43
43
|
*/
|
|
44
44
|
expand?: Array<string>;
|
|
45
45
|
|
|
46
|
+
/**
|
|
47
|
+
* Only return transactions that are associated with the given settlement.
|
|
48
|
+
*/
|
|
49
|
+
settlement?: string;
|
|
50
|
+
|
|
46
51
|
/**
|
|
47
52
|
* Only return transactions that have the given type. One of `capture` or `refund`.
|
|
48
53
|
*/
|
package/types/PaymentLinks.d.ts
CHANGED
|
@@ -935,6 +935,12 @@ declare module 'stripe' {
|
|
|
935
935
|
* Indicates whether tax ID collection is enabled for the session.
|
|
936
936
|
*/
|
|
937
937
|
enabled: boolean;
|
|
938
|
+
|
|
939
|
+
required: TaxIdCollection.Required;
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
namespace TaxIdCollection {
|
|
943
|
+
type Required = 'if_supported' | 'never';
|
|
938
944
|
}
|
|
939
945
|
|
|
940
946
|
interface TransferData {
|
|
@@ -994,6 +994,15 @@ declare module 'stripe' {
|
|
|
994
994
|
* Enable tax ID collection during checkout. Defaults to `false`.
|
|
995
995
|
*/
|
|
996
996
|
enabled: boolean;
|
|
997
|
+
|
|
998
|
+
/**
|
|
999
|
+
* Describes whether a tax ID is required during checkout. Defaults to `never`.
|
|
1000
|
+
*/
|
|
1001
|
+
required?: TaxIdCollection.Required;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
namespace TaxIdCollection {
|
|
1005
|
+
type Required = 'if_supported' | 'never';
|
|
997
1006
|
}
|
|
998
1007
|
|
|
999
1008
|
interface TransferData {
|
|
@@ -1885,6 +1894,15 @@ declare module 'stripe' {
|
|
|
1885
1894
|
* Enable tax ID collection during checkout. Defaults to `false`.
|
|
1886
1895
|
*/
|
|
1887
1896
|
enabled: boolean;
|
|
1897
|
+
|
|
1898
|
+
/**
|
|
1899
|
+
* Describes whether a tax ID is required during checkout. Defaults to `never`.
|
|
1900
|
+
*/
|
|
1901
|
+
required?: TaxIdCollection.Required;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
namespace TaxIdCollection {
|
|
1905
|
+
type Required = 'if_supported' | 'never';
|
|
1888
1906
|
}
|
|
1889
1907
|
}
|
|
1890
1908
|
|
|
@@ -9,18 +9,6 @@ declare module 'stripe' {
|
|
|
9
9
|
expand?: Array<string>;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface QuotePhaseListParams extends PaginationParams {
|
|
13
|
-
/**
|
|
14
|
-
* The ID of the quote whose phases will be retrieved.
|
|
15
|
-
*/
|
|
16
|
-
quote: string;
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Specifies which fields in the response should be expanded.
|
|
20
|
-
*/
|
|
21
|
-
expand?: Array<string>;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
12
|
interface QuotePhaseListLineItemsParams extends PaginationParams {
|
|
25
13
|
/**
|
|
26
14
|
* Specifies which fields in the response should be expanded.
|
|
@@ -42,14 +30,6 @@ declare module 'stripe' {
|
|
|
42
30
|
options?: RequestOptions
|
|
43
31
|
): Promise<Stripe.Response<Stripe.QuotePhase>>;
|
|
44
32
|
|
|
45
|
-
/**
|
|
46
|
-
* Returns a list of quote phases.
|
|
47
|
-
*/
|
|
48
|
-
list(
|
|
49
|
-
params: QuotePhaseListParams,
|
|
50
|
-
options?: RequestOptions
|
|
51
|
-
): ApiListPromise<Stripe.QuotePhase>;
|
|
52
|
-
|
|
53
33
|
/**
|
|
54
34
|
* When retrieving a quote phase, there is an includable line_items property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
|
|
55
35
|
*/
|
|
@@ -1254,6 +1254,16 @@ declare module 'stripe' {
|
|
|
1254
1254
|
* Invoice pdf rendering options
|
|
1255
1255
|
*/
|
|
1256
1256
|
pdf: Rendering.Pdf | null;
|
|
1257
|
+
|
|
1258
|
+
/**
|
|
1259
|
+
* ID of the rendering template that the invoice is formatted by.
|
|
1260
|
+
*/
|
|
1261
|
+
template: string | null;
|
|
1262
|
+
|
|
1263
|
+
/**
|
|
1264
|
+
* Version of the rendering template that the invoice is using.
|
|
1265
|
+
*/
|
|
1266
|
+
template_version: number | null;
|
|
1257
1267
|
}
|
|
1258
1268
|
|
|
1259
1269
|
namespace Rendering {
|
|
@@ -44,7 +44,7 @@ declare module 'stripe' {
|
|
|
44
44
|
description?: Stripe.Emptyable<string>;
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
|
-
* The discounts applied to the quote.
|
|
47
|
+
* The discounts applied to the quote.
|
|
48
48
|
*/
|
|
49
49
|
discounts?: Stripe.Emptyable<Array<QuoteCreateParams.Discount>>;
|
|
50
50
|
|
|
@@ -1465,7 +1465,7 @@ declare module 'stripe' {
|
|
|
1465
1465
|
description?: Stripe.Emptyable<string>;
|
|
1466
1466
|
|
|
1467
1467
|
/**
|
|
1468
|
-
* The discounts applied to the quote.
|
|
1468
|
+
* The discounts applied to the quote.
|
|
1469
1469
|
*/
|
|
1470
1470
|
discounts?: Stripe.Emptyable<Array<QuoteUpdateParams.Discount>>;
|
|
1471
1471
|
|
|
@@ -2086,8 +2086,14 @@ declare module 'stripe' {
|
|
|
2086
2086
|
*/
|
|
2087
2087
|
created?: Stripe.RangeQueryParam | number;
|
|
2088
2088
|
|
|
2089
|
+
/**
|
|
2090
|
+
* Only return subscriptions whose current_period_end falls within the given date interval.
|
|
2091
|
+
*/
|
|
2089
2092
|
current_period_end?: Stripe.RangeQueryParam | number;
|
|
2090
2093
|
|
|
2094
|
+
/**
|
|
2095
|
+
* Only return subscriptions whose current_period_start falls within the given date interval.
|
|
2096
|
+
*/
|
|
2091
2097
|
current_period_start?: Stripe.RangeQueryParam | number;
|
|
2092
2098
|
|
|
2093
2099
|
/**
|
|
@@ -278,10 +278,14 @@ declare module 'stripe' {
|
|
|
278
278
|
| 'issuing_dispute.funds_rescinded'
|
|
279
279
|
| 'issuing_dispute.submitted'
|
|
280
280
|
| 'issuing_dispute.updated'
|
|
281
|
+
| 'issuing_dispute_settlement_detail.created'
|
|
282
|
+
| 'issuing_dispute_settlement_detail.updated'
|
|
281
283
|
| 'issuing_personalization_design.activated'
|
|
282
284
|
| 'issuing_personalization_design.deactivated'
|
|
283
285
|
| 'issuing_personalization_design.rejected'
|
|
284
286
|
| 'issuing_personalization_design.updated'
|
|
287
|
+
| 'issuing_settlement.created'
|
|
288
|
+
| 'issuing_settlement.updated'
|
|
285
289
|
| 'issuing_token.created'
|
|
286
290
|
| 'issuing_token.updated'
|
|
287
291
|
| 'issuing_transaction.created'
|
|
@@ -587,10 +591,14 @@ declare module 'stripe' {
|
|
|
587
591
|
| 'issuing_dispute.funds_rescinded'
|
|
588
592
|
| 'issuing_dispute.submitted'
|
|
589
593
|
| 'issuing_dispute.updated'
|
|
594
|
+
| 'issuing_dispute_settlement_detail.created'
|
|
595
|
+
| 'issuing_dispute_settlement_detail.updated'
|
|
590
596
|
| 'issuing_personalization_design.activated'
|
|
591
597
|
| 'issuing_personalization_design.deactivated'
|
|
592
598
|
| 'issuing_personalization_design.rejected'
|
|
593
599
|
| 'issuing_personalization_design.updated'
|
|
600
|
+
| 'issuing_settlement.created'
|
|
601
|
+
| 'issuing_settlement.updated'
|
|
594
602
|
| 'issuing_token.created'
|
|
595
603
|
| 'issuing_token.updated'
|
|
596
604
|
| 'issuing_transaction.created'
|
package/types/index.d.ts
CHANGED
|
@@ -56,11 +56,13 @@
|
|
|
56
56
|
///<reference path='./Identity/VerificationReportsResource.d.ts' />
|
|
57
57
|
///<reference path='./Identity/VerificationSessionsResource.d.ts' />
|
|
58
58
|
///<reference path='./InvoiceItemsResource.d.ts' />
|
|
59
|
+
///<reference path='./InvoiceRenderingTemplatesResource.d.ts' />
|
|
59
60
|
///<reference path='./InvoicesResource.d.ts' />
|
|
60
61
|
///<reference path='./Issuing/AuthorizationsResource.d.ts' />
|
|
61
62
|
///<reference path='./Issuing/CardholdersResource.d.ts' />
|
|
62
63
|
///<reference path='./Issuing/CardsResource.d.ts' />
|
|
63
64
|
///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
|
|
65
|
+
///<reference path='./Issuing/DisputeSettlementDetailsResource.d.ts' />
|
|
64
66
|
///<reference path='./Issuing/DisputesResource.d.ts' />
|
|
65
67
|
///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />
|
|
66
68
|
///<reference path='./Issuing/PhysicalBundlesResource.d.ts' />
|
|
@@ -209,14 +211,17 @@
|
|
|
209
211
|
///<reference path='./InvoiceItems.d.ts' />
|
|
210
212
|
///<reference path='./InvoiceLineItems.d.ts' />
|
|
211
213
|
///<reference path='./InvoicePayments.d.ts' />
|
|
214
|
+
///<reference path='./InvoiceRenderingTemplates.d.ts' />
|
|
212
215
|
///<reference path='./Invoices.d.ts' />
|
|
213
216
|
///<reference path='./Issuing/Authorizations.d.ts' />
|
|
214
217
|
///<reference path='./Issuing/Cardholders.d.ts' />
|
|
215
218
|
///<reference path='./Issuing/Cards.d.ts' />
|
|
216
219
|
///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
|
|
220
|
+
///<reference path='./Issuing/DisputeSettlementDetails.d.ts' />
|
|
217
221
|
///<reference path='./Issuing/Disputes.d.ts' />
|
|
218
222
|
///<reference path='./Issuing/PersonalizationDesigns.d.ts' />
|
|
219
223
|
///<reference path='./Issuing/PhysicalBundles.d.ts' />
|
|
224
|
+
///<reference path='./Issuing/Settlements.d.ts' />
|
|
220
225
|
///<reference path='./Issuing/Tokens.d.ts' />
|
|
221
226
|
///<reference path='./Issuing/Transactions.d.ts' />
|
|
222
227
|
///<reference path='./LineItems.d.ts' />
|
|
@@ -337,6 +342,7 @@ declare module 'stripe' {
|
|
|
337
342
|
fileLinks: Stripe.FileLinksResource;
|
|
338
343
|
files: Stripe.FilesResource;
|
|
339
344
|
invoiceItems: Stripe.InvoiceItemsResource;
|
|
345
|
+
invoiceRenderingTemplates: Stripe.InvoiceRenderingTemplatesResource;
|
|
340
346
|
invoices: Stripe.InvoicesResource;
|
|
341
347
|
mandates: Stripe.MandatesResource;
|
|
342
348
|
margins: Stripe.MarginsResource;
|
|
@@ -422,6 +428,7 @@ declare module 'stripe' {
|
|
|
422
428
|
cardholders: Stripe.Issuing.CardholdersResource;
|
|
423
429
|
creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
|
|
424
430
|
disputes: Stripe.Issuing.DisputesResource;
|
|
431
|
+
disputeSettlementDetails: Stripe.Issuing.DisputeSettlementDetailsResource;
|
|
425
432
|
personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;
|
|
426
433
|
physicalBundles: Stripe.Issuing.PhysicalBundlesResource;
|
|
427
434
|
tokens: Stripe.Issuing.TokensResource;
|