Socket
Socket
Sign inDemoInstall

stripe

Package Overview
Dependencies
Maintainers
1
Versions
652
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stripe - npm Package Compare versions

Comparing version 16.8.0 to 16.9.0-beta.1

cjs/resources/AccountNotices.js

3

cjs/apiVersion.js
"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.ApiVersion = void 0;
exports.PreviewVersion = exports.ApiVersion = void 0;
exports.ApiVersion = '2024-06-20';
exports.PreviewVersion = '2024-07-16.preview-v2';

@@ -51,3 +51,3 @@ "use strict";

if (method !== 'POST') {
return callback(null, (0, utils_js_1.stringifyRequestData)(data));
return callback(null, (0, utils_js_1.queryStringifyRequestData)(data));
}

@@ -54,0 +54,0 @@ this._stripe._platformFunctions

@@ -7,2 +7,3 @@ "use strict";

const HttpClient_js_1 = require("./net/HttpClient.js");
const apiVersion_js_1 = require("./apiVersion.js");
const MAX_RETRY_AFTER_WAIT = 60;

@@ -205,3 +206,3 @@ class RequestSender {

}
_makeHeaders(auth, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings) {
_makeHeaders(auth, contentType, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings) {
const defaultHeaders = {

@@ -211,3 +212,3 @@ // Use specified auth token or use default from this stripe instance:

Accept: 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Type': contentType,
'User-Agent': this._getUserAgentString(),

@@ -280,2 +281,50 @@ 'X-Stripe-Client-User-Agent': clientUserAgent,

}
_rawRequest(method, path, params, options) {
const requestPromise = new Promise((resolve, reject) => {
let opts;
try {
const requestMethod = method.toUpperCase();
if (requestMethod !== 'POST' &&
params &&
Object.keys(params).length !== 0) {
throw new Error('rawRequest only supports params on POST requests. Please pass null and add your parameters to path.');
}
const args = [].slice.call([params, options]);
// Pull request data and options (headers, auth) from args.
const dataFromArgs = (0, utils_js_1.getDataFromArgs)(args);
const data = Object.assign({}, dataFromArgs);
const calculatedOptions = (0, utils_js_1.getOptionsFromArgs)(args);
const apiMode = calculatedOptions.apiMode || 'standard';
const headers = calculatedOptions.headers;
opts = {
requestMethod,
requestPath: path,
bodyData: data,
queryData: {},
auth: calculatedOptions.auth,
headers,
host: null,
streaming: false,
settings: {},
apiMode: apiMode,
usage: ['raw_request'],
};
}
catch (err) {
reject(err);
return;
}
function requestCallback(err, response) {
if (err) {
reject(err);
}
else {
resolve(response);
}
}
const { headers, settings } = opts;
this._request(opts.requestMethod, opts.host, path, opts.bodyData, opts.auth, { headers, settings, streaming: opts.streaming, apiMode: opts.apiMode }, opts.usage, requestCallback);
});
return requestPromise;
}
_request(method, host, path, data, auth, options = {}, usage = [], callback, requestDataProcessor = null) {

@@ -345,6 +394,11 @@ let requestData;

requestData = data;
let contentType = 'application/x-www-form-urlencoded';
let apiVersion = this._stripe.getApiField('version');
if (options.apiMode === 'preview') {
contentType = 'application/json';
apiVersion = apiVersion_js_1.PreviewVersion;
}
this._stripe.getClientUserAgent((clientUserAgent) => {
var _a, _b;
const apiVersion = this._stripe.getApiField('version');
const headers = this._makeHeaders(auth, requestData.length, apiVersion, clientUserAgent, method, (_a = options.headers) !== null && _a !== void 0 ? _a : null, (_b = options.settings) !== null && _b !== void 0 ? _b : {});
const headers = this._makeHeaders(auth, contentType, requestData.length, apiVersion, clientUserAgent, method, (_a = options.headers) !== null && _a !== void 0 ? _a : null, (_b = options.settings) !== null && _b !== void 0 ? _b : {});
makeRequest(apiVersion, headers, 0);

@@ -357,3 +411,10 @@ });

else {
prepareAndMakeRequest(null, (0, utils_js_1.stringifyRequestData)(data || {}));
let stringifiedData;
if (options.apiMode === 'preview') {
stringifiedData = data ? (0, utils_js_1.jsonStringifyRequestData)(data) : '';
}
else {
stringifiedData = (0, utils_js_1.queryStringifyRequestData)(data || {});
}
prepareAndMakeRequest(null, stringifiedData);
}

@@ -360,0 +421,0 @@ }

"use strict";
// File generated from our OpenAPI spec
Object.defineProperty(exports, "__esModule", { value: true });
exports.Topups = 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.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;
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.Transfers = void 0;
exports.TaxCodes = 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.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;
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;
const ResourceNamespace_js_1 = require("./ResourceNamespace.js");

@@ -10,2 +10,3 @@ const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");

const Alerts_js_1 = require("./resources/Billing/Alerts.js");
const Associations_js_1 = require("./resources/Tax/Associations.js");
const Authorizations_js_1 = require("./resources/TestHelpers/Issuing/Authorizations.js");

@@ -16,3 +17,4 @@ const Authorizations_js_2 = require("./resources/Issuing/Authorizations.js");

const Cards_js_1 = require("./resources/TestHelpers/Issuing/Cards.js");
const Cards_js_2 = require("./resources/Issuing/Cards.js");
const Cards_js_2 = require("./resources/GiftCards/Cards.js");
const Cards_js_3 = require("./resources/Issuing/Cards.js");
const Configurations_js_1 = require("./resources/BillingPortal/Configurations.js");

@@ -23,2 +25,3 @@ const Configurations_js_2 = require("./resources/Terminal/Configurations.js");

const CreditReversals_js_1 = require("./resources/Treasury/CreditReversals.js");
const CreditUnderwritingRecords_js_1 = require("./resources/Issuing/CreditUnderwritingRecords.js");
const Customers_js_1 = require("./resources/TestHelpers/Customers.js");

@@ -30,4 +33,9 @@ const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");

const FinancialAccounts_js_1 = require("./resources/Treasury/FinancialAccounts.js");
const FinancingOffers_js_1 = require("./resources/Capital/FinancingOffers.js");
const FinancingSummary_js_1 = require("./resources/Capital/FinancingSummary.js");
const FinancingTransactions_js_1 = require("./resources/Capital/FinancingTransactions.js");
const Forms_js_1 = require("./resources/Tax/Forms.js");
const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
const Institutions_js_1 = require("./resources/FinancialConnections/Institutions.js");
const Locations_js_1 = require("./resources/Terminal/Locations.js");

@@ -69,5 +77,6 @@ const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");

const Transactions_js_2 = require("./resources/FinancialConnections/Transactions.js");
const Transactions_js_3 = require("./resources/Issuing/Transactions.js");
const Transactions_js_4 = require("./resources/Tax/Transactions.js");
const Transactions_js_5 = require("./resources/Treasury/Transactions.js");
const Transactions_js_3 = require("./resources/GiftCards/Transactions.js");
const Transactions_js_4 = require("./resources/Issuing/Transactions.js");
const Transactions_js_5 = require("./resources/Tax/Transactions.js");
const Transactions_js_6 = require("./resources/Treasury/Transactions.js");
const ValueListItems_js_1 = require("./resources/Radar/ValueListItems.js");

@@ -81,2 +90,4 @@ const ValueLists_js_1 = require("./resources/Radar/ValueLists.js");

Object.defineProperty(exports, "AccountLinks", { enumerable: true, get: function () { return AccountLinks_js_1.AccountLinks; } });
var AccountNotices_js_1 = require("./resources/AccountNotices.js");
Object.defineProperty(exports, "AccountNotices", { enumerable: true, get: function () { return AccountNotices_js_1.AccountNotices; } });
var AccountSessions_js_1 = require("./resources/AccountSessions.js");

@@ -126,4 +137,8 @@ Object.defineProperty(exports, "AccountSessions", { enumerable: true, get: function () { return AccountSessions_js_1.AccountSessions; } });

Object.defineProperty(exports, "Mandates", { enumerable: true, get: function () { return Mandates_js_1.Mandates; } });
var Margins_js_1 = require("./resources/Margins.js");
Object.defineProperty(exports, "Margins", { enumerable: true, get: function () { return Margins_js_1.Margins; } });
var OAuth_js_1 = require("./resources/OAuth.js");
Object.defineProperty(exports, "OAuth", { enumerable: true, get: function () { return OAuth_js_1.OAuth; } });
var Orders_js_2 = require("./resources/Orders.js");
Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return Orders_js_2.Orders; } });
var PaymentIntents_js_1 = require("./resources/PaymentIntents.js");

@@ -149,2 +164,4 @@ Object.defineProperty(exports, "PaymentIntents", { enumerable: true, get: function () { return PaymentIntents_js_1.PaymentIntents; } });

Object.defineProperty(exports, "PromotionCodes", { enumerable: true, get: function () { return PromotionCodes_js_1.PromotionCodes; } });
var QuotePhases_js_1 = require("./resources/QuotePhases.js");
Object.defineProperty(exports, "QuotePhases", { enumerable: true, get: function () { return QuotePhases_js_1.QuotePhases; } });
var Quotes_js_1 = require("./resources/Quotes.js");

@@ -195,2 +212,7 @@ Object.defineProperty(exports, "Quotes", { enumerable: true, get: function () { return Quotes_js_1.Quotes; } });

});
exports.Capital = (0, ResourceNamespace_js_1.resourceNamespace)('capital', {
FinancingOffers: FinancingOffers_js_1.FinancingOffers,
FinancingSummary: FinancingSummary_js_1.FinancingSummary,
FinancingTransactions: FinancingTransactions_js_1.FinancingTransactions,
});
exports.Checkout = (0, ResourceNamespace_js_1.resourceNamespace)('checkout', {

@@ -210,2 +232,3 @@ Sessions: Sessions_js_2.Sessions,

Accounts: Accounts_js_1.Accounts,
Institutions: Institutions_js_1.Institutions,
Sessions: Sessions_js_3.Sessions,

@@ -217,2 +240,6 @@ Transactions: Transactions_js_2.Transactions,

});
exports.GiftCards = (0, ResourceNamespace_js_1.resourceNamespace)('giftCards', {
Cards: Cards_js_2.Cards,
Transactions: Transactions_js_3.Transactions,
});
exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {

@@ -225,3 +252,4 @@ VerificationReports: VerificationReports_js_1.VerificationReports,

Cardholders: Cardholders_js_1.Cardholders,
Cards: Cards_js_2.Cards,
Cards: Cards_js_3.Cards,
CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
Disputes: Disputes_js_1.Disputes,

@@ -231,3 +259,3 @@ PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,

Tokens: Tokens_js_1.Tokens,
Transactions: Transactions_js_3.Transactions,
Transactions: Transactions_js_4.Transactions,
});

@@ -247,6 +275,8 @@ exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {

exports.Tax = (0, ResourceNamespace_js_1.resourceNamespace)('tax', {
Associations: Associations_js_1.Associations,
Calculations: Calculations_js_1.Calculations,
Forms: Forms_js_1.Forms,
Registrations: Registrations_js_1.Registrations,
Settings: Settings_js_1.Settings,
Transactions: Transactions_js_4.Transactions,
Transactions: Transactions_js_5.Transactions,
});

@@ -291,3 +321,3 @@ exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {

TransactionEntries: TransactionEntries_js_1.TransactionEntries,
Transactions: Transactions_js_5.Transactions,
Transactions: Transactions_js_6.Transactions,
});

@@ -21,2 +21,7 @@ "use strict";

}),
listInferredBalances: stripeMethod({
method: 'GET',
fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
methodType: 'list',
}),
listOwners: stripeMethod({

@@ -23,0 +28,0 @@ method: 'GET',

@@ -21,2 +21,10 @@ "use strict";

}),
attachPayment: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/attach_payment',
}),
attachPaymentIntent: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
}),
createPreview: stripeMethod({

@@ -35,2 +43,7 @@ method: 'POST',

}),
listPayments: stripeMethod({
method: 'GET',
fullPath: '/v1/invoices/{invoice}/payments',
methodType: 'list',
}),
listUpcomingLines: stripeMethod({

@@ -50,2 +63,6 @@ method: 'GET',

}),
retrievePayment: stripeMethod({
method: 'GET',
fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
}),
retrieveUpcoming: stripeMethod({

@@ -52,0 +69,0 @@ method: 'GET',

@@ -27,3 +27,3 @@ 'use strict';

}
return `https://${oAuthHost}/${path}?${(0, utils_js_1.stringifyRequestData)(params)}`;
return `https://${oAuthHost}/${path}?${(0, utils_js_1.queryStringifyRequestData)(params)}`;
},

@@ -30,0 +30,0 @@ token: stripeMethod({

@@ -38,2 +38,6 @@ "use strict";

}),
decrementAuthorization: stripeMethod({
method: 'POST',
fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
}),
incrementAuthorization: stripeMethod({

@@ -40,0 +44,0 @@ method: 'POST',

@@ -22,2 +22,7 @@ "use strict";

}),
listPreviewInvoiceLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
methodType: 'list',
}),
listComputedUpfrontLineItems: stripeMethod({

@@ -33,2 +38,25 @@ method: 'GET',

}),
listLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/lines',
methodType: 'list',
}),
listPreviewInvoices: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices',
methodType: 'list',
}),
listPreviewSubscriptionSchedules: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
methodType: 'list',
}),
markDraft: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/mark_draft',
}),
markStale: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/mark_stale',
}),
pdf: stripeMethod({

@@ -40,2 +68,6 @@ method: 'GET',

}),
reestimate: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/reestimate',
}),
});

@@ -25,2 +25,6 @@ "use strict";

}),
amend: stripeMethod({
method: 'POST',
fullPath: '/v1/subscription_schedules/{schedule}/amend',
}),
cancel: stripeMethod({

@@ -27,0 +31,0 @@ method: 'POST',

@@ -30,2 +30,14 @@ "use strict";

}),
collectInputs: stripeMethod({
method: 'POST',
fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
}),
collectPaymentMethod: stripeMethod({
method: 'POST',
fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
}),
confirmPaymentIntent: stripeMethod({
method: 'POST',
fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
}),
processPaymentIntent: stripeMethod({

@@ -32,0 +44,0 @@ method: 'POST',

@@ -8,3 +8,3 @@ "use strict";

const Webhooks_js_1 = require("./Webhooks.js");
const apiVersion = require("./apiVersion.js");
const apiVersion_js_1 = require("./apiVersion.js");
const CryptoProvider_js_1 = require("./crypto/CryptoProvider.js");

@@ -17,3 +17,3 @@ const HttpClient_js_1 = require("./net/HttpClient.js");

const DEFAULT_BASE_PATH = '/v1/';
const DEFAULT_API_VERSION = apiVersion.ApiVersion;
const DEFAULT_API_VERSION = apiVersion_js_1.ApiVersion;
const DEFAULT_TIMEOUT = 80000;

@@ -39,3 +39,3 @@ const MAX_NETWORK_RETRY_DELAY_SEC = 2;

function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
Stripe.PACKAGE_VERSION = '16.8.0';
Stripe.PACKAGE_VERSION = '16.9.0-beta.1';
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());

@@ -156,2 +156,5 @@ Stripe.StripeResource = StripeResource_js_1.StripeResource;

_platformFunctions: null,
rawRequest(method, path, params, options) {
return this._requestSender._rawRequest(method, path, params, options);
},
/**

@@ -158,0 +161,0 @@ * @private

@@ -165,3 +165,3 @@ "use strict";

emptyQuery ? '' : '?',
(0, utils_js_1.stringifyRequestData)(opts.queryData),
(0, utils_js_1.queryStringifyRequestData)(opts.queryData),
].join('');

@@ -168,0 +168,0 @@ const { headers, settings } = opts;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.concat = exports.determineProcessUserAgentProperties = exports.validateInteger = exports.flattenAndStringify = exports.isObject = exports.emitWarning = exports.pascalToCamelCase = exports.callbackifyPromiseWithTimeout = exports.normalizeHeader = exports.normalizeHeaders = exports.removeNullish = exports.protoExtend = exports.getOptionsFromArgs = exports.getDataFromArgs = exports.extractUrlParams = exports.makeURLInterpolator = exports.stringifyRequestData = exports.isOptionsHash = void 0;
exports.jsonStringifyRequestData = exports.concat = exports.determineProcessUserAgentProperties = exports.validateInteger = exports.flattenAndStringify = exports.isObject = exports.emitWarning = exports.pascalToCamelCase = exports.callbackifyPromiseWithTimeout = exports.normalizeHeader = exports.normalizeHeaders = exports.removeNullish = exports.protoExtend = exports.getOptionsFromArgs = exports.getDataFromArgs = exports.extractUrlParams = exports.makeURLInterpolator = exports.queryStringifyRequestData = exports.isOptionsHash = void 0;
const qs = require("qs");

@@ -13,2 +13,4 @@ const OPTIONS_KEYS = [

'host',
'apiMode',
'additionalHeaders',
];

@@ -25,3 +27,3 @@ function isOptionsHash(o) {

*/
function stringifyRequestData(data) {
function queryStringifyRequestData(data) {
return (qs

@@ -37,3 +39,3 @@ .stringify(data, {

}
exports.stringifyRequestData = stringifyRequestData;
exports.queryStringifyRequestData = queryStringifyRequestData;
/**

@@ -137,2 +139,11 @@ * Outputs a new function with interpolated object property values.

}
if (params.apiMode) {
if (params.apiMode !== 'standard' && params.apiMode !== 'preview') {
throw new Error(`Invalid apiMode: ${params.apiMode}. Must be one of 'standard' or 'preview'`);
}
opts.apiMode = params.apiMode;
}
if (params.additionalHeaders) {
opts.headers = params.additionalHeaders;
}
}

@@ -312,1 +323,17 @@ }

exports.concat = concat;
/**
* Replaces Date objects with Unix timestamps
*/
function dateTimeReplacer(key, value) {
if (this[key] instanceof Date) {
return Math.floor(this[key].getTime() / 1000).toString();
}
return value;
}
/**
* JSON stringifies an Object, replacing Date objects with Unix timestamps
*/
function jsonStringifyRequestData(data) {
return JSON.stringify(data, dateTimeReplacer);
}
exports.jsonStringifyRequestData = jsonStringifyRequestData;
// File generated from our OpenAPI spec
export const ApiVersion = '2024-06-20';
export const PreviewVersion = '2024-07-16.preview-v2';

@@ -1,2 +0,2 @@

import { flattenAndStringify, stringifyRequestData } from './utils.js';
import { flattenAndStringify, queryStringifyRequestData } from './utils.js';
// Method for formatting HTTP body for the multipart/form-data specification

@@ -48,3 +48,3 @@ // Mostly taken from Fermata.js

if (method !== 'POST') {
return callback(null, stringifyRequestData(data));
return callback(null, queryStringifyRequestData(data));
}

@@ -51,0 +51,0 @@ this._stripe._platformFunctions

import { StripeAPIError, StripeAuthenticationError, StripeConnectionError, StripeError, StripePermissionError, StripeRateLimitError, } from './Error.js';
import { emitWarning, normalizeHeaders, removeNullish, stringifyRequestData, } from './utils.js';
import { emitWarning, jsonStringifyRequestData, normalizeHeaders, removeNullish, queryStringifyRequestData, getDataFromArgs, getOptionsFromArgs, } from './utils.js';
import { HttpClient } from './net/HttpClient.js';
import { PreviewVersion } from './apiVersion.js';
const MAX_RETRY_AFTER_WAIT = 60;

@@ -201,3 +202,3 @@ export class RequestSender {

}
_makeHeaders(auth, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings) {
_makeHeaders(auth, contentType, contentLength, apiVersion, clientUserAgent, method, userSuppliedHeaders, userSuppliedSettings) {
const defaultHeaders = {

@@ -207,3 +208,3 @@ // Use specified auth token or use default from this stripe instance:

Accept: 'application/json',
'Content-Type': 'application/x-www-form-urlencoded',
'Content-Type': contentType,
'User-Agent': this._getUserAgentString(),

@@ -276,2 +277,50 @@ 'X-Stripe-Client-User-Agent': clientUserAgent,

}
_rawRequest(method, path, params, options) {
const requestPromise = new Promise((resolve, reject) => {
let opts;
try {
const requestMethod = method.toUpperCase();
if (requestMethod !== 'POST' &&
params &&
Object.keys(params).length !== 0) {
throw new Error('rawRequest only supports params on POST requests. Please pass null and add your parameters to path.');
}
const args = [].slice.call([params, options]);
// Pull request data and options (headers, auth) from args.
const dataFromArgs = getDataFromArgs(args);
const data = Object.assign({}, dataFromArgs);
const calculatedOptions = getOptionsFromArgs(args);
const apiMode = calculatedOptions.apiMode || 'standard';
const headers = calculatedOptions.headers;
opts = {
requestMethod,
requestPath: path,
bodyData: data,
queryData: {},
auth: calculatedOptions.auth,
headers,
host: null,
streaming: false,
settings: {},
apiMode: apiMode,
usage: ['raw_request'],
};
}
catch (err) {
reject(err);
return;
}
function requestCallback(err, response) {
if (err) {
reject(err);
}
else {
resolve(response);
}
}
const { headers, settings } = opts;
this._request(opts.requestMethod, opts.host, path, opts.bodyData, opts.auth, { headers, settings, streaming: opts.streaming, apiMode: opts.apiMode }, opts.usage, requestCallback);
});
return requestPromise;
}
_request(method, host, path, data, auth, options = {}, usage = [], callback, requestDataProcessor = null) {

@@ -341,6 +390,11 @@ let requestData;

requestData = data;
let contentType = 'application/x-www-form-urlencoded';
let apiVersion = this._stripe.getApiField('version');
if (options.apiMode === 'preview') {
contentType = 'application/json';
apiVersion = PreviewVersion;
}
this._stripe.getClientUserAgent((clientUserAgent) => {
var _a, _b;
const apiVersion = this._stripe.getApiField('version');
const headers = this._makeHeaders(auth, requestData.length, apiVersion, clientUserAgent, method, (_a = options.headers) !== null && _a !== void 0 ? _a : null, (_b = options.settings) !== null && _b !== void 0 ? _b : {});
const headers = this._makeHeaders(auth, contentType, requestData.length, apiVersion, clientUserAgent, method, (_a = options.headers) !== null && _a !== void 0 ? _a : null, (_b = options.settings) !== null && _b !== void 0 ? _b : {});
makeRequest(apiVersion, headers, 0);

@@ -353,5 +407,12 @@ });

else {
prepareAndMakeRequest(null, stringifyRequestData(data || {}));
let stringifiedData;
if (options.apiMode === 'preview') {
stringifiedData = data ? jsonStringifyRequestData(data) : '';
}
else {
stringifiedData = queryStringifyRequestData(data || {});
}
prepareAndMakeRequest(null, stringifiedData);
}
}
}

@@ -6,2 +6,3 @@ // File generated from our OpenAPI spec

import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
import { Associations as TaxAssociations } from './resources/Tax/Associations.js';
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';

@@ -12,2 +13,3 @@ import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';

import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
import { Cards as GiftCardsCards } from './resources/GiftCards/Cards.js';
import { Cards as IssuingCards } from './resources/Issuing/Cards.js';

@@ -19,2 +21,3 @@ import { Configurations as BillingPortalConfigurations } from './resources/BillingPortal/Configurations.js';

import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';

@@ -26,4 +29,9 @@ import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';

import { FinancialAccounts as TreasuryFinancialAccounts } from './resources/Treasury/FinancialAccounts.js';
import { FinancingOffers as CapitalFinancingOffers } from './resources/Capital/FinancingOffers.js';
import { FinancingSummary as CapitalFinancingSummary } from './resources/Capital/FinancingSummary.js';
import { FinancingTransactions as CapitalFinancingTransactions } from './resources/Capital/FinancingTransactions.js';
import { Forms as TaxForms } from './resources/Tax/Forms.js';
import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';

@@ -65,2 +73,3 @@ import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';

import { Transactions as FinancialConnectionsTransactions } from './resources/FinancialConnections/Transactions.js';
import { Transactions as GiftCardsTransactions } from './resources/GiftCards/Transactions.js';
import { Transactions as IssuingTransactions } from './resources/Issuing/Transactions.js';

@@ -75,2 +84,3 @@ import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js';

export { AccountLinks } from './resources/AccountLinks.js';
export { AccountNotices } from './resources/AccountNotices.js';
export { AccountSessions } from './resources/AccountSessions.js';

@@ -98,3 +108,5 @@ export { Accounts } from './resources/Accounts.js';

export { Mandates } from './resources/Mandates.js';
export { Margins } from './resources/Margins.js';
export { OAuth } from './resources/OAuth.js';
export { Orders } from './resources/Orders.js';
export { PaymentIntents } from './resources/PaymentIntents.js';

@@ -110,2 +122,3 @@ export { PaymentLinks } from './resources/PaymentLinks.js';

export { PromotionCodes } from './resources/PromotionCodes.js';
export { QuotePhases } from './resources/QuotePhases.js';
export { Quotes } from './resources/Quotes.js';

@@ -139,2 +152,7 @@ export { Refunds } from './resources/Refunds.js';

});
export const Capital = resourceNamespace('capital', {
FinancingOffers: CapitalFinancingOffers,
FinancingSummary: CapitalFinancingSummary,
FinancingTransactions: CapitalFinancingTransactions,
});
export const Checkout = resourceNamespace('checkout', {

@@ -154,2 +172,3 @@ Sessions: CheckoutSessions,

Accounts: FinancialConnectionsAccounts,
Institutions: FinancialConnectionsInstitutions,
Sessions: FinancialConnectionsSessions,

@@ -161,2 +180,6 @@ Transactions: FinancialConnectionsTransactions,

});
export const GiftCards = resourceNamespace('giftCards', {
Cards: GiftCardsCards,
Transactions: GiftCardsTransactions,
});
export const Identity = resourceNamespace('identity', {

@@ -170,2 +193,3 @@ VerificationReports: IdentityVerificationReports,

Cards: IssuingCards,
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
Disputes: IssuingDisputes,

@@ -190,3 +214,5 @@ PersonalizationDesigns: IssuingPersonalizationDesigns,

export const Tax = resourceNamespace('tax', {
Associations: TaxAssociations,
Calculations: TaxCalculations,
Forms: TaxForms,
Registrations: TaxRegistrations,

@@ -193,0 +219,0 @@ Settings: TaxSettings,

@@ -18,2 +18,7 @@ // File generated from our OpenAPI spec

}),
listInferredBalances: stripeMethod({
method: 'GET',
fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
methodType: 'list',
}),
listOwners: stripeMethod({

@@ -20,0 +25,0 @@ method: 'GET',

@@ -18,2 +18,10 @@ // File generated from our OpenAPI spec

}),
attachPayment: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/attach_payment',
}),
attachPaymentIntent: stripeMethod({
method: 'POST',
fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
}),
createPreview: stripeMethod({

@@ -32,2 +40,7 @@ method: 'POST',

}),
listPayments: stripeMethod({
method: 'GET',
fullPath: '/v1/invoices/{invoice}/payments',
methodType: 'list',
}),
listUpcomingLines: stripeMethod({

@@ -47,2 +60,6 @@ method: 'GET',

}),
retrievePayment: stripeMethod({
method: 'GET',
fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
}),
retrieveUpcoming: stripeMethod({

@@ -49,0 +66,0 @@ method: 'GET',

'use strict';
import { StripeResource } from '../StripeResource.js';
import { stringifyRequestData } from '../utils.js';
import { queryStringifyRequestData } from '../utils.js';
const stripeMethod = StripeResource.method;

@@ -25,3 +25,3 @@ const oAuthHost = 'connect.stripe.com';

}
return `https://${oAuthHost}/${path}?${stringifyRequestData(params)}`;
return `https://${oAuthHost}/${path}?${queryStringifyRequestData(params)}`;
},

@@ -28,0 +28,0 @@ token: stripeMethod({

@@ -35,2 +35,6 @@ // File generated from our OpenAPI spec

}),
decrementAuthorization: stripeMethod({
method: 'POST',
fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
}),
incrementAuthorization: stripeMethod({

@@ -37,0 +41,0 @@ method: 'POST',

@@ -19,2 +19,7 @@ // File generated from our OpenAPI spec

}),
listPreviewInvoiceLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
methodType: 'list',
}),
listComputedUpfrontLineItems: stripeMethod({

@@ -30,2 +35,25 @@ method: 'GET',

}),
listLines: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/lines',
methodType: 'list',
}),
listPreviewInvoices: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_invoices',
methodType: 'list',
}),
listPreviewSubscriptionSchedules: stripeMethod({
method: 'GET',
fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
methodType: 'list',
}),
markDraft: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/mark_draft',
}),
markStale: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/mark_stale',
}),
pdf: stripeMethod({

@@ -37,2 +65,6 @@ method: 'GET',

}),
reestimate: stripeMethod({
method: 'POST',
fullPath: '/v1/quotes/{quote}/reestimate',
}),
});

@@ -22,2 +22,6 @@ // File generated from our OpenAPI spec

}),
amend: stripeMethod({
method: 'POST',
fullPath: '/v1/subscription_schedules/{schedule}/amend',
}),
cancel: stripeMethod({

@@ -24,0 +28,0 @@ method: 'POST',

@@ -27,2 +27,14 @@ // File generated from our OpenAPI spec

}),
collectInputs: stripeMethod({
method: 'POST',
fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
}),
collectPaymentMethod: stripeMethod({
method: 'POST',
fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
}),
confirmPaymentIntent: stripeMethod({
method: 'POST',
fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
}),
processPaymentIntent: stripeMethod({

@@ -29,0 +41,0 @@ method: 'POST',

@@ -5,3 +5,3 @@ import * as _Error from './Error.js';

import { createWebhooks } from './Webhooks.js';
import * as apiVersion from './apiVersion.js';
import { ApiVersion } from './apiVersion.js';
import { CryptoProvider } from './crypto/CryptoProvider.js';

@@ -14,3 +14,3 @@ import { HttpClient, HttpClientResponse } from './net/HttpClient.js';

const DEFAULT_BASE_PATH = '/v1/';
const DEFAULT_API_VERSION = apiVersion.ApiVersion;
const DEFAULT_API_VERSION = ApiVersion;
const DEFAULT_TIMEOUT = 80000;

@@ -36,3 +36,3 @@ const MAX_NETWORK_RETRY_DELAY_SEC = 2;

export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
Stripe.PACKAGE_VERSION = '16.8.0';
Stripe.PACKAGE_VERSION = '16.9.0-beta.1';
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());

@@ -153,2 +153,5 @@ Stripe.StripeResource = StripeResource;

_platformFunctions: null,
rawRequest(method, path, params, options) {
return this._requestSender._rawRequest(method, path, params, options);
},
/**

@@ -155,0 +158,0 @@ * @private

@@ -1,2 +0,2 @@

import { getDataFromArgs, getOptionsFromArgs, makeURLInterpolator, protoExtend, stringifyRequestData, } from './utils.js';
import { getDataFromArgs, getOptionsFromArgs, makeURLInterpolator, protoExtend, queryStringifyRequestData, } from './utils.js';
import { stripeMethod } from './StripeMethod.js';

@@ -161,3 +161,3 @@ // Provide extension mechanism for Stripe Resource Sub-Classes

emptyQuery ? '' : '?',
stringifyRequestData(opts.queryData),
queryStringifyRequestData(opts.queryData),
].join('');

@@ -164,0 +164,0 @@ const { headers, settings } = opts;

@@ -10,2 +10,4 @@ import * as qs from 'qs';

'host',
'apiMode',
'additionalHeaders',
];

@@ -21,3 +23,3 @@ export function isOptionsHash(o) {

*/
export function stringifyRequestData(data) {
export function queryStringifyRequestData(data) {
return (qs

@@ -129,2 +131,11 @@ .stringify(data, {

}
if (params.apiMode) {
if (params.apiMode !== 'standard' && params.apiMode !== 'preview') {
throw new Error(`Invalid apiMode: ${params.apiMode}. Must be one of 'standard' or 'preview'`);
}
opts.apiMode = params.apiMode;
}
if (params.additionalHeaders) {
opts.headers = params.additionalHeaders;
}
}

@@ -291,1 +302,16 @@ }

}
/**
* Replaces Date objects with Unix timestamps
*/
function dateTimeReplacer(key, value) {
if (this[key] instanceof Date) {
return Math.floor(this[key].getTime() / 1000).toString();
}
return value;
}
/**
* JSON stringifies an Object, replacing Date objects with Unix timestamps
*/
export function jsonStringifyRequestData(data) {
return JSON.stringify(data, dateTimeReplacer);
}
{
"name": "stripe",
"version": "16.8.0",
"version": "16.9.0-beta.1",
"description": "Stripe API wrapper",

@@ -5,0 +5,0 @@ "keywords": [

@@ -520,2 +520,35 @@ # Stripe Node.js Library

### Custom requests
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.
```javascript
const stripe = require('stripe')('sk_test_...');
stripe.rawRequest(
'POST',
'/v1/beta_endpoint',
{ param: 123 },
{ apiVersion: '2022-11-15; feature_beta=v3' }
)
.then((response) => /* handle response */ )
.catch((error) => console.error(error));
```
Or using ES modules and `async`/`await`:
```javascript
import Stripe from 'stripe';
const stripe = new Stripe('sk_test_...');
const response = await stripe.rawRequest(
'POST',
'/v1/beta_endpoint',
{ param: 123 },
{ apiVersion: '2022-11-15; feature_beta=v3' }
);
// handle response
```
## Support

@@ -522,0 +555,0 @@

@@ -63,3 +63,7 @@ // File generated from our OpenAPI spec

type Type = 'account_onboarding' | 'account_update';
type Type =
| 'account_onboarding'
| 'account_update'
| 'capital_financing_offer'
| 'capital_financing_reporting';
}

@@ -66,0 +70,0 @@

@@ -109,2 +109,4 @@ // File generated from our OpenAPI spec

risk_controls?: Account.RiskControls;
/**

@@ -382,2 +384,12 @@ * Options for customizing how the account functions within Stripe.

/**
* The status of the PayPal payments capability of the account, or whether the account can directly process PayPal charges.
*/
paypal_payments?: Capabilities.PaypalPayments;
/**
* The status of the PayTo capability of the account, or whether the account can directly process PayTo charges.
*/
payto_payments?: Capabilities.PaytoPayments;
/**
* The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.

@@ -388,2 +400,7 @@ */

/**
* The status of the Rechnung capability of the account, or whether the account can directly process Rechnung payments.
*/
rechnung_payments?: Capabilities.RechnungPayments;
/**
* The status of the RevolutPay capability of the account, or whether the account can directly process RevolutPay payments.

@@ -521,4 +538,10 @@ */

type PaypalPayments = 'active' | 'inactive' | 'pending';
type PaytoPayments = 'active' | 'inactive' | 'pending';
type PromptpayPayments = 'active' | 'inactive' | 'pending';
type RechnungPayments = 'active' | 'inactive' | 'pending';
type RevolutPayPayments = 'active' | 'inactive' | 'pending';

@@ -787,2 +810,6 @@

interface Controller {
application?: Controller.Application;
dashboard?: Controller.Dashboard;
fees?: Controller.Fees;

@@ -811,2 +838,30 @@

namespace Controller {
interface Application {
/**
* `true` if the Connect application is responsible for negative balances and should manage credit and fraud risk on the account.
*/
loss_liable: boolean;
/**
* `true` if the Connect application is responsible for onboarding the account.
*/
onboarding_owner: boolean;
/**
* `true` if the Connect application is responsible for paying Stripe fees on pricing-control eligible products.
*/
pricing_controls: boolean;
}
interface Dashboard {
/**
* Whether this account has access to the full Stripe dashboard (`full`), to the Express dashboard (`express`), or to no dashboard (`none`).
*/
type: Dashboard.Type;
}
namespace Dashboard {
type Type = 'express' | 'full' | 'none';
}
interface Fees {

@@ -824,3 +879,4 @@ /**

| 'application_custom'
| 'application_express';
| 'application_express'
| 'application_unified_accounts_beta';
}

@@ -1187,2 +1243,24 @@

interface RiskControls {
charges: RiskControls.Charges;
payouts: RiskControls.Payouts;
}
namespace RiskControls {
interface Charges {
/**
* Whether a pause of the risk control has been requested.
*/
pause_requested: boolean;
}
interface Payouts {
/**
* Whether a pause of the risk control has been requested.
*/
pause_requested: boolean;
}
}
interface Settings {

@@ -1193,2 +1271,4 @@ bacs_debit_payments?: Settings.BacsDebitPayments;

capital?: Settings.Capital;
card_issuing?: Settings.CardIssuing;

@@ -1208,2 +1288,4 @@

tax_forms?: Settings.TaxForms;
treasury?: Settings.Treasury;

@@ -1247,2 +1329,18 @@ }

interface Capital {
/**
* Per-currency mapping of user-selected destination accounts used to pay out loans.
*/
payout_destination?: {
[key: string]: string;
};
/**
* Per-currency mapping of all destination accounts eligible to receive loan payouts.
*/
payout_destination_selector?: {
[key: string]: Array<string>;
};
}
interface CardIssuing {

@@ -1395,2 +1493,9 @@ tos_acceptance?: CardIssuing.TosAcceptance;

interface TaxForms {
/**
* Whether the account opted out of receiving their tax forms by postal delivery.
*/
consented_to_paperless_delivery: boolean;
}
interface Treasury {

@@ -1397,0 +1502,0 @@ tos_acceptance?: Treasury.TosAcceptance;

@@ -55,2 +55,8 @@ // File generated from our OpenAPI spec

capital_financing?: Components.CapitalFinancing | null;
capital_financing_application?: Components.CapitalFinancingApplication | null;
capital_financing_promotion?: Components.CapitalFinancingPromotion | null;
documents: Components.Documents;

@@ -143,2 +149,41 @@

interface CapitalFinancing {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
features: CapitalFinancing.Features;
}
namespace CapitalFinancing {
interface Features {}
}
interface CapitalFinancingApplication {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
features: CapitalFinancingApplication.Features;
}
namespace CapitalFinancingApplication {
interface Features {}
}
interface CapitalFinancingPromotion {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
features: CapitalFinancingPromotion.Features;
}
namespace CapitalFinancingPromotion {
interface Features {}
}
interface Documents {

@@ -145,0 +190,0 @@ /**

@@ -35,2 +35,12 @@ // File generated from our OpenAPI spec

/**
* Configuration for the app install component.
*/
app_install?: Components.AppInstall;
/**
* Configuration for the app viewport component.
*/
app_viewport?: Components.AppViewport;
/**
* Configuration for the balances embedded component.

@@ -41,2 +51,22 @@ */

/**
* Configuration for the capital financing embedded component.
*/
capital_financing?: Components.CapitalFinancing;
/**
* Configuration for the capital financing application embedded component.
*/
capital_financing_application?: Components.CapitalFinancingApplication;
/**
* Configuration for the capital financing promotion embedded component.
*/
capital_financing_promotion?: Components.CapitalFinancingPromotion;
/**
* Configuration for the capital overview embedded component.
*/
capital_overview?: Components.CapitalOverview;
/**
* Configuration for the documents embedded component.

@@ -47,2 +77,22 @@ */

/**
* Configuration for the financial account component.
*/
financial_account?: Components.FinancialAccount;
/**
* Configuration for the financial account transactions component.
*/
financial_account_transactions?: Components.FinancialAccountTransactions;
/**
* Configuration for the issuing card component.
*/
issuing_card?: Components.IssuingCard;
/**
* Configuration for the issuing cards list component.
*/
issuing_cards_list?: Components.IssuingCardsList;
/**
* Configuration for the notification banner embedded component.

@@ -58,2 +108,7 @@ */

/**
* Configuration for the payment method settings embedded component.
*/
payment_method_settings?: Components.PaymentMethodSettings;
/**
* Configuration for the payments embedded component.

@@ -127,2 +182,44 @@ */

interface AppInstall {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: AppInstall.Features;
}
namespace AppInstall {
interface Features {
/**
* List of apps allowed to be enabled for this account session.
*/
allowed_apps?: Stripe.Emptyable<Array<string>>;
}
}
interface AppViewport {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: AppViewport.Features;
}
namespace AppViewport {
interface Features {
/**
* List of apps allowed to be enabled for this account session.
*/
allowed_apps?: Stripe.Emptyable<Array<string>>;
}
}
interface Balances {

@@ -164,2 +261,66 @@ /**

interface CapitalFinancing {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: CapitalFinancing.Features;
}
namespace CapitalFinancing {
interface Features {}
}
interface CapitalFinancingApplication {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: CapitalFinancingApplication.Features;
}
namespace CapitalFinancingApplication {
interface Features {}
}
interface CapitalFinancingPromotion {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: CapitalFinancingPromotion.Features;
}
namespace CapitalFinancingPromotion {
interface Features {}
}
interface CapitalOverview {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: CapitalOverview.Features;
}
namespace CapitalOverview {
interface Features {}
}
interface Documents {

@@ -181,2 +342,85 @@ /**

interface FinancialAccount {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
features?: FinancialAccount.Features;
}
namespace FinancialAccount {
interface Features {
/**
* Whether to allow external accounts to be linked for money transfer.
*/
external_account_collection?: boolean;
/**
* Whether to allow money movement features.
*/
money_movement?: boolean;
}
}
interface FinancialAccountTransactions {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
features?: FinancialAccountTransactions.Features;
}
namespace FinancialAccountTransactions {
interface Features {
/**
* Whether to allow card spend dispute features.
*/
card_spend_dispute_management?: boolean;
}
}
interface IssuingCard {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: IssuingCard.Features;
}
namespace IssuingCard {
interface Features {}
}
interface IssuingCardsList {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: IssuingCardsList.Features;
}
namespace IssuingCardsList {
interface Features {
/**
* Whether to allow card management features.
*/
card_management?: boolean;
/**
* Whether to allow cardholder management features.
*/
cardholder_management?: boolean;
}
}
interface NotificationBanner {

@@ -239,2 +483,18 @@ /**

interface PaymentMethodSettings {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;
/**
* The list of features enabled in the embedded component.
*/
features?: PaymentMethodSettings.Features;
}
namespace PaymentMethodSettings {
interface Features {}
}
interface Payments {

@@ -241,0 +501,0 @@ /**

@@ -190,2 +190,7 @@ // File generated from our OpenAPI spec

/**
* Provides industry-specific information about the charge.
*/
payment_details?: ChargeUpdateParams.PaymentDetails;
/**
* This is the email address that the receipt for this charge will be sent to. If this field is updated, then a new email receipt will be sent to the updated address.

@@ -218,2 +223,644 @@ */

interface PaymentDetails {
/**
* Car rental details for this PaymentIntent.
*/
car_rental?: PaymentDetails.CarRental;
/**
* Event details for this PaymentIntent
*/
event_details?: PaymentDetails.EventDetails;
/**
* Flight reservation details for this PaymentIntent
*/
flight?: PaymentDetails.Flight;
/**
* Lodging reservation details for this PaymentIntent
*/
lodging?: PaymentDetails.Lodging;
/**
* Subscription details for this PaymentIntent
*/
subscription?: PaymentDetails.Subscription;
}
namespace PaymentDetails {
interface CarRental {
/**
* Affiliate details for this purchase.
*/
affiliate?: CarRental.Affiliate;
/**
* The booking number associated with the car rental.
*/
booking_number: string;
/**
* Class code of the car.
*/
car_class_code?: string;
/**
* Make of the car.
*/
car_make?: string;
/**
* Model of the car.
*/
car_model?: string;
/**
* The name of the rental car company.
*/
company?: string;
/**
* The customer service phone number of the car rental company.
*/
customer_service_phone_number?: string;
/**
* Number of days the car is being rented.
*/
days_rented: number;
/**
* Delivery details for this purchase.
*/
delivery?: CarRental.Delivery;
/**
* The details of the passengers in the travel reservation
*/
drivers?: Array<CarRental.Driver>;
/**
* List of additional charges being billed.
*/
extra_charges?: Array<CarRental.ExtraCharge>;
/**
* Indicates if the customer did not keep nor cancel their booking.
*/
no_show?: boolean;
/**
* Car pick-up address.
*/
pickup_address?: Stripe.AddressParam;
/**
* Car pick-up time. Measured in seconds since the Unix epoch.
*/
pickup_at: number;
/**
* Rental rate.
*/
rate_amount?: number;
/**
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
*/
rate_interval?: CarRental.RateInterval;
/**
* The name of the person or entity renting the car.
*/
renter_name?: string;
/**
* Car return address.
*/
return_address?: Stripe.AddressParam;
/**
* Car return time. Measured in seconds since the Unix epoch.
*/
return_at: number;
/**
* Indicates whether the goods or services are tax-exempt or tax is not collected.
*/
tax_exempt?: boolean;
}
namespace CarRental {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
interface Driver {
/**
* Full name of the person or entity on the car reservation.
*/
name: string;
}
type ExtraCharge =
| 'extra_mileage'
| 'gas'
| 'late_return'
| 'one_way_service'
| 'parking_violation';
type RateInterval = 'day' | 'month' | 'week';
}
interface EventDetails {
/**
* Indicates if the tickets are digitally checked when entering the venue.
*/
access_controlled_venue?: boolean;
/**
* The event location's address.
*/
address?: Stripe.AddressParam;
/**
* Affiliate details for this purchase.
*/
affiliate?: EventDetails.Affiliate;
/**
* The name of the company
*/
company?: string;
/**
* Delivery details for this purchase.
*/
delivery?: EventDetails.Delivery;
/**
* Event end time. Measured in seconds since the Unix epoch.
*/
ends_at?: number;
/**
* Type of the event entertainment (concert, sports event etc)
*/
genre?: string;
/**
* The name of the event.
*/
name: string;
/**
* Event start time. Measured in seconds since the Unix epoch.
*/
starts_at?: number;
}
namespace EventDetails {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
}
interface Flight {
/**
* Affiliate details for this purchase.
*/
affiliate?: Flight.Affiliate;
/**
* The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
*/
agency_number?: string;
/**
* The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
*/
carrier?: string;
/**
* Delivery details for this purchase.
*/
delivery?: Flight.Delivery;
/**
* The name of the person or entity on the reservation.
*/
passenger_name?: string;
/**
* The details of the passengers in the travel reservation.
*/
passengers?: Array<Flight.Passenger>;
/**
* The individual flight segments associated with the trip.
*/
segments: Array<Flight.Segment>;
/**
* The ticket number associated with the travel reservation.
*/
ticket_number?: string;
}
namespace Flight {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
interface Passenger {
/**
* Full name of the person or entity on the flight reservation.
*/
name: string;
}
interface Segment {
/**
* The flight segment amount.
*/
amount?: number;
/**
* The International Air Transport Association (IATA) airport code for the arrival airport.
*/
arrival_airport?: string;
/**
* The arrival time for the flight segment. Measured in seconds since the Unix epoch.
*/
arrives_at?: number;
/**
* The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
*/
carrier?: string;
/**
* The departure time for the flight segment. Measured in seconds since the Unix epoch.
*/
departs_at: number;
/**
* The International Air Transport Association (IATA) airport code for the departure airport.
*/
departure_airport?: string;
/**
* The flight number associated with the segment
*/
flight_number?: string;
/**
* The fare class for the segment.
*/
service_class?: Segment.ServiceClass;
}
namespace Segment {
type ServiceClass =
| 'business'
| 'economy'
| 'first'
| 'premium_economy';
}
}
interface Lodging {
/**
* The lodging location's address.
*/
address?: Stripe.AddressParam;
/**
* The number of adults on the booking
*/
adults?: number;
/**
* Affiliate details for this purchase.
*/
affiliate?: Lodging.Affiliate;
/**
* The booking number associated with the lodging reservation.
*/
booking_number?: string;
/**
* The lodging category
*/
category?: Lodging.Category;
/**
* Loding check-in time. Measured in seconds since the Unix epoch.
*/
checkin_at: number;
/**
* Lodging check-out time. Measured in seconds since the Unix epoch.
*/
checkout_at: number;
/**
* The customer service phone number of the lodging company.
*/
customer_service_phone_number?: string;
/**
* The daily lodging room rate.
*/
daily_room_rate_amount?: number;
/**
* Delivery details for this purchase.
*/
delivery?: Lodging.Delivery;
/**
* List of additional charges being billed.
*/
extra_charges?: Array<Lodging.ExtraCharge>;
/**
* Indicates whether the lodging location is compliant with the Fire Safety Act.
*/
fire_safety_act_compliance?: boolean;
/**
* The name of the lodging location.
*/
name?: string;
/**
* Indicates if the customer did not keep their booking while failing to cancel the reservation.
*/
no_show?: boolean;
/**
* The number of rooms on the booking
*/
number_of_rooms?: number;
/**
* The details of the passengers in the travel reservation
*/
passengers?: Array<Lodging.Passenger>;
/**
* The phone number of the lodging location.
*/
property_phone_number?: string;
/**
* The room class for this purchase.
*/
room_class?: string;
/**
* The number of room nights
*/
room_nights?: number;
/**
* The total tax amount associating with the room reservation.
*/
total_room_tax_amount?: number;
/**
* The total tax amount
*/
total_tax_amount?: number;
}
namespace Lodging {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
type Category = 'hotel' | 'vacation_rental';
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
type ExtraCharge =
| 'gift_shop'
| 'laundry'
| 'mini_bar'
| 'other'
| 'restaurant'
| 'telephone';
interface Passenger {
/**
* Full name of the person or entity on the lodging reservation.
*/
name: string;
}
}
interface Subscription {
/**
* Affiliate details for this purchase.
*/
affiliate?: Subscription.Affiliate;
/**
* Info whether the subscription will be auto renewed upon expiry.
*/
auto_renewal?: boolean;
/**
* Subscription billing details for this purchase.
*/
billing_interval?: Subscription.BillingInterval;
/**
* Subscription end time. Measured in seconds since the Unix epoch.
*/
ends_at?: number;
/**
* Name of the product on subscription. e.g. Apple Music Subscription
*/
name: string;
/**
* Subscription start time. Measured in seconds since the Unix epoch.
*/
starts_at?: number;
}
namespace Subscription {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface BillingInterval {
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
count: number;
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: BillingInterval.Interval;
}
namespace BillingInterval {
type Interval = 'day' | 'month' | 'week' | 'year';
}
}
}
interface Shipping {

@@ -296,2 +943,7 @@ /**

/**
* Provides industry-specific information about the charge.
*/
payment_details?: ChargeCaptureParams.PaymentDetails;
/**
* The email address to send this charge's receipt to. This will override the previously-specified email address for this charge, if one was set. Receipts will not be sent in test mode.

@@ -323,2 +975,644 @@ */

namespace ChargeCaptureParams {
interface PaymentDetails {
/**
* Car rental details for this PaymentIntent.
*/
car_rental?: PaymentDetails.CarRental;
/**
* Event details for this PaymentIntent
*/
event_details?: PaymentDetails.EventDetails;
/**
* Flight reservation details for this PaymentIntent
*/
flight?: PaymentDetails.Flight;
/**
* Lodging reservation details for this PaymentIntent
*/
lodging?: PaymentDetails.Lodging;
/**
* Subscription details for this PaymentIntent
*/
subscription?: PaymentDetails.Subscription;
}
namespace PaymentDetails {
interface CarRental {
/**
* Affiliate details for this purchase.
*/
affiliate?: CarRental.Affiliate;
/**
* The booking number associated with the car rental.
*/
booking_number: string;
/**
* Class code of the car.
*/
car_class_code?: string;
/**
* Make of the car.
*/
car_make?: string;
/**
* Model of the car.
*/
car_model?: string;
/**
* The name of the rental car company.
*/
company?: string;
/**
* The customer service phone number of the car rental company.
*/
customer_service_phone_number?: string;
/**
* Number of days the car is being rented.
*/
days_rented: number;
/**
* Delivery details for this purchase.
*/
delivery?: CarRental.Delivery;
/**
* The details of the passengers in the travel reservation
*/
drivers?: Array<CarRental.Driver>;
/**
* List of additional charges being billed.
*/
extra_charges?: Array<CarRental.ExtraCharge>;
/**
* Indicates if the customer did not keep nor cancel their booking.
*/
no_show?: boolean;
/**
* Car pick-up address.
*/
pickup_address?: Stripe.AddressParam;
/**
* Car pick-up time. Measured in seconds since the Unix epoch.
*/
pickup_at: number;
/**
* Rental rate.
*/
rate_amount?: number;
/**
* The frequency at which the rate amount is applied. One of `day`, `week` or `month`
*/
rate_interval?: CarRental.RateInterval;
/**
* The name of the person or entity renting the car.
*/
renter_name?: string;
/**
* Car return address.
*/
return_address?: Stripe.AddressParam;
/**
* Car return time. Measured in seconds since the Unix epoch.
*/
return_at: number;
/**
* Indicates whether the goods or services are tax-exempt or tax is not collected.
*/
tax_exempt?: boolean;
}
namespace CarRental {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
interface Driver {
/**
* Full name of the person or entity on the car reservation.
*/
name: string;
}
type ExtraCharge =
| 'extra_mileage'
| 'gas'
| 'late_return'
| 'one_way_service'
| 'parking_violation';
type RateInterval = 'day' | 'month' | 'week';
}
interface EventDetails {
/**
* Indicates if the tickets are digitally checked when entering the venue.
*/
access_controlled_venue?: boolean;
/**
* The event location's address.
*/
address?: Stripe.AddressParam;
/**
* Affiliate details for this purchase.
*/
affiliate?: EventDetails.Affiliate;
/**
* The name of the company
*/
company?: string;
/**
* Delivery details for this purchase.
*/
delivery?: EventDetails.Delivery;
/**
* Event end time. Measured in seconds since the Unix epoch.
*/
ends_at?: number;
/**
* Type of the event entertainment (concert, sports event etc)
*/
genre?: string;
/**
* The name of the event.
*/
name: string;
/**
* Event start time. Measured in seconds since the Unix epoch.
*/
starts_at?: number;
}
namespace EventDetails {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
}
interface Flight {
/**
* Affiliate details for this purchase.
*/
affiliate?: Flight.Affiliate;
/**
* The agency number (i.e. International Air Transport Association (IATA) agency number) of the travel agency that made the booking.
*/
agency_number?: string;
/**
* The International Air Transport Association (IATA) carrier code of the carrier that issued the ticket.
*/
carrier?: string;
/**
* Delivery details for this purchase.
*/
delivery?: Flight.Delivery;
/**
* The name of the person or entity on the reservation.
*/
passenger_name?: string;
/**
* The details of the passengers in the travel reservation.
*/
passengers?: Array<Flight.Passenger>;
/**
* The individual flight segments associated with the trip.
*/
segments: Array<Flight.Segment>;
/**
* The ticket number associated with the travel reservation.
*/
ticket_number?: string;
}
namespace Flight {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
interface Passenger {
/**
* Full name of the person or entity on the flight reservation.
*/
name: string;
}
interface Segment {
/**
* The flight segment amount.
*/
amount?: number;
/**
* The International Air Transport Association (IATA) airport code for the arrival airport.
*/
arrival_airport?: string;
/**
* The arrival time for the flight segment. Measured in seconds since the Unix epoch.
*/
arrives_at?: number;
/**
* The International Air Transport Association (IATA) carrier code of the carrier operating the flight segment.
*/
carrier?: string;
/**
* The departure time for the flight segment. Measured in seconds since the Unix epoch.
*/
departs_at: number;
/**
* The International Air Transport Association (IATA) airport code for the departure airport.
*/
departure_airport?: string;
/**
* The flight number associated with the segment
*/
flight_number?: string;
/**
* The fare class for the segment.
*/
service_class?: Segment.ServiceClass;
}
namespace Segment {
type ServiceClass =
| 'business'
| 'economy'
| 'first'
| 'premium_economy';
}
}
interface Lodging {
/**
* The lodging location's address.
*/
address?: Stripe.AddressParam;
/**
* The number of adults on the booking
*/
adults?: number;
/**
* Affiliate details for this purchase.
*/
affiliate?: Lodging.Affiliate;
/**
* The booking number associated with the lodging reservation.
*/
booking_number?: string;
/**
* The lodging category
*/
category?: Lodging.Category;
/**
* Loding check-in time. Measured in seconds since the Unix epoch.
*/
checkin_at: number;
/**
* Lodging check-out time. Measured in seconds since the Unix epoch.
*/
checkout_at: number;
/**
* The customer service phone number of the lodging company.
*/
customer_service_phone_number?: string;
/**
* The daily lodging room rate.
*/
daily_room_rate_amount?: number;
/**
* Delivery details for this purchase.
*/
delivery?: Lodging.Delivery;
/**
* List of additional charges being billed.
*/
extra_charges?: Array<Lodging.ExtraCharge>;
/**
* Indicates whether the lodging location is compliant with the Fire Safety Act.
*/
fire_safety_act_compliance?: boolean;
/**
* The name of the lodging location.
*/
name?: string;
/**
* Indicates if the customer did not keep their booking while failing to cancel the reservation.
*/
no_show?: boolean;
/**
* The number of rooms on the booking
*/
number_of_rooms?: number;
/**
* The details of the passengers in the travel reservation
*/
passengers?: Array<Lodging.Passenger>;
/**
* The phone number of the lodging location.
*/
property_phone_number?: string;
/**
* The room class for this purchase.
*/
room_class?: string;
/**
* The number of room nights
*/
room_nights?: number;
/**
* The total tax amount associating with the room reservation.
*/
total_room_tax_amount?: number;
/**
* The total tax amount
*/
total_tax_amount?: number;
}
namespace Lodging {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
type Category = 'hotel' | 'vacation_rental';
interface Delivery {
/**
* The delivery method for the payment
*/
mode?: Delivery.Mode;
/**
* Details of the recipient.
*/
recipient?: Delivery.Recipient;
}
namespace Delivery {
type Mode = 'email' | 'phone' | 'pickup' | 'post';
interface Recipient {
/**
* The email of the recipient the ticket is delivered to.
*/
email?: string;
/**
* The name of the recipient the ticket is delivered to.
*/
name?: string;
/**
* The phone number of the recipient the ticket is delivered to.
*/
phone?: string;
}
}
type ExtraCharge =
| 'gift_shop'
| 'laundry'
| 'mini_bar'
| 'other'
| 'restaurant'
| 'telephone';
interface Passenger {
/**
* Full name of the person or entity on the lodging reservation.
*/
name: string;
}
}
interface Subscription {
/**
* Affiliate details for this purchase.
*/
affiliate?: Subscription.Affiliate;
/**
* Info whether the subscription will be auto renewed upon expiry.
*/
auto_renewal?: boolean;
/**
* Subscription billing details for this purchase.
*/
billing_interval?: Subscription.BillingInterval;
/**
* Subscription end time. Measured in seconds since the Unix epoch.
*/
ends_at?: number;
/**
* Name of the product on subscription. e.g. Apple Music Subscription
*/
name: string;
/**
* Subscription start time. Measured in seconds since the Unix epoch.
*/
starts_at?: number;
}
namespace Subscription {
interface Affiliate {
/**
* The name of the affiliate that originated the purchase.
*/
name: string;
}
interface BillingInterval {
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
count: number;
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: BillingInterval.Interval;
}
namespace BillingInterval {
type Interval = 'day' | 'month' | 'week' | 'year';
}
}
}
interface TransferData {

@@ -325,0 +1619,0 @@ /**

@@ -211,2 +211,4 @@ // File generated from our OpenAPI spec

payto?: PaymentMethodPreview.Payto;
pix?: PaymentMethodPreview.Pix;

@@ -216,2 +218,4 @@

rechnung?: PaymentMethodPreview.Rechnung;
revolut_pay?: PaymentMethodPreview.RevolutPay;

@@ -1265,2 +1269,7 @@

/**
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
*/
fingerprint?: string | null;
/**
* Owner's email. Values are provided by PayPal directly

@@ -1275,4 +1284,27 @@ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.

payer_id: string | null;
/**
* Owner's verified email. Values are verified or provided by PayPal directly
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
*/
verified_email?: string | null;
}
interface Payto {
/**
* Bank-State-Branch number of the bank account.
*/
bsb_number: string | null;
/**
* Last four digits of the bank account number.
*/
last4: string | null;
/**
* The PayID alias for the bank account.
*/
pay_id: string | null;
}
interface Pix {}

@@ -1282,2 +1314,25 @@

interface Rechnung {
dob?: Rechnung.Dob;
}
namespace Rechnung {
interface Dob {
/**
* The day of birth, between 1 and 31.
*/
day: number;
/**
* The month of birth, between 1 and 12.
*/
month: number;
/**
* The four-digit year of birth.
*/
year: number;
}
}
interface RevolutPay {}

@@ -1372,4 +1427,6 @@

| 'paypal'
| 'payto'
| 'pix'
| 'promptpay'
| 'rechnung'
| 'revolut_pay'

@@ -1391,2 +1448,7 @@ | 'sepa_debit'

/**
* Account number of the bank account.
*/
account_number?: string | null;
/**
* Account type: checkings or savings. Defaults to checking if omitted.

@@ -1393,0 +1455,0 @@ */

@@ -116,3 +116,3 @@ // File generated from our OpenAPI spec

type Duration = 'forever' | 'once' | 'repeating';
type Duration = 'forever' | 'once' | 'repeating' | 'variable';
}

@@ -119,0 +119,0 @@

@@ -89,3 +89,3 @@ // File generated from our OpenAPI spec

type Duration = 'forever' | 'once' | 'repeating';
type Duration = 'forever' | 'once' | 'repeating' | 'variable';
}

@@ -92,0 +92,0 @@

@@ -109,2 +109,6 @@ // File generated from our OpenAPI spec

post_payment_amount?: number;
pre_payment_amount?: number;
/**

@@ -121,2 +125,7 @@ * Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory`

/**
* Refunds related to this credit note.
*/
refunds?: Array<CreditNote.Refund>;
/**
* The details of the cost of shipping, including the ShippingRate applied to the invoice.

@@ -186,2 +195,14 @@ */

interface Refund {
/**
* Amount of the refund that applies to this credit note, in cents (or local equivalent).
*/
amount_refunded: number;
/**
* ID of the refund.
*/
refund: string | Stripe.Refund;
}
interface ShippingCost {

@@ -188,0 +209,0 @@ /**

@@ -72,2 +72,7 @@ // File generated from our OpenAPI spec

/**
* Refunds to link to this credit note.
*/
refunds?: Array<CreditNoteCreateParams.Refund>;
/**
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.

@@ -155,2 +160,14 @@ */

interface Refund {
/**
* Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
*/
amount_refunded?: number;
/**
* ID of an existing refund to link this credit note to.
*/
refund?: string;
}
interface ShippingCost {

@@ -284,2 +301,7 @@ /**

/**
* Refunds to link to this credit note.
*/
refunds?: Array<CreditNoteListPreviewLineItemsParams.Refund>;
/**
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.

@@ -367,2 +389,14 @@ */

interface Refund {
/**
* Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
*/
amount_refunded?: number;
/**
* ID of an existing refund to link this credit note to.
*/
refund?: string;
}
interface ShippingCost {

@@ -443,2 +477,7 @@ /**

/**
* Refunds to link to this credit note.
*/
refunds?: Array<CreditNotePreviewParams.Refund>;
/**
* When shipping_cost contains the shipping_rate from the invoice, the shipping_cost is included in the credit note.

@@ -526,2 +565,14 @@ */

interface Refund {
/**
* Amount of the refund that applies to this credit note, in cents (or local equivalent). Defaults to the entire refund amount.
*/
amount_refunded?: number;
/**
* ID of an existing refund to link this credit note to.
*/
refund?: string;
}
interface ShippingCost {

@@ -528,0 +579,0 @@ /**

@@ -821,4 +821,6 @@ // File generated from our OpenAPI spec

| 'paypal'
| 'payto'
| 'pix'
| 'promptpay'
| 'rechnung'
| 'revolut_pay'

@@ -825,0 +827,0 @@ | 'sepa_debit'

@@ -48,2 +48,7 @@ // File generated from our OpenAPI spec

/**
* List of eligibility types that are included in `enhanced_evidence`.
*/
enhanced_eligibility_types?: Array<'visa_compelling_evidence_3'>;
evidence: Dispute.Evidence;

@@ -158,2 +163,4 @@

enhanced_evidence?: Evidence.EnhancedEvidence;
/**

@@ -230,2 +237,114 @@ * A description of the product or service that was sold.

namespace Evidence {
interface EnhancedEvidence {
visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
}
namespace EnhancedEvidence {
interface VisaCompellingEvidence3 {
/**
* Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
*/
disputed_transaction: VisaCompellingEvidence3.DisputedTransaction | null;
/**
* List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
*/
prior_undisputed_transactions: Array<
VisaCompellingEvidence3.PriorUndisputedTransaction
>;
}
namespace VisaCompellingEvidence3 {
interface DisputedTransaction {
/**
* User Account ID used to log into business platform. Must be recognizable by the user.
*/
customer_account_id: string | null;
/**
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
*/
customer_device_fingerprint: string | null;
/**
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
*/
customer_device_id: string | null;
/**
* The email address of the customer.
*/
customer_email_address: string | null;
/**
* The IP address that the customer used when making the purchase.
*/
customer_purchase_ip: string | null;
/**
* Categorization of disputed payment.
*/
merchandise_or_services: DisputedTransaction.MerchandiseOrServices | null;
/**
* A description of the product or service that was sold.
*/
product_description: string | null;
/**
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
*/
shipping_address: Stripe.Address | null;
}
namespace DisputedTransaction {
type MerchandiseOrServices = 'merchandise' | 'services';
}
interface PriorUndisputedTransaction {
/**
* Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
*/
charge: string;
/**
* User Account ID used to log into business platform. Must be recognizable by the user.
*/
customer_account_id: string | null;
/**
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
*/
customer_device_fingerprint: string | null;
/**
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
*/
customer_device_id: string | null;
/**
* The email address of the customer.
*/
customer_email_address: string | null;
/**
* The IP address that the customer used when making the purchase.
*/
customer_purchase_ip: string | null;
/**
* A description of the product or service that was sold.
*/
product_description: string | null;
/**
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
*/
shipping_address: Stripe.Address | null;
}
}
}
}
interface EvidenceDetails {

@@ -237,2 +356,4 @@ /**

enhanced_eligibility?: EvidenceDetails.EnhancedEligibility;
/**

@@ -254,2 +375,39 @@ * Whether evidence has been staged for this dispute.

namespace EvidenceDetails {
interface EnhancedEligibility {
visa_compelling_evidence_3?: EnhancedEligibility.VisaCompellingEvidence3;
}
namespace EnhancedEligibility {
interface VisaCompellingEvidence3 {
/**
* List of actions required to qualify dispute for Visa Compelling Evidence 3.0 evidence submission.
*/
required_actions: Array<VisaCompellingEvidence3.RequiredAction>;
/**
* Visa Compelling Evidence 3.0 eligibility status.
*/
status: VisaCompellingEvidence3.Status;
}
namespace VisaCompellingEvidence3 {
type RequiredAction =
| 'missing_customer_identifiers'
| 'missing_disputed_transaction_description'
| 'missing_merchandise_or_services'
| 'missing_prior_undisputed_transaction_description'
| 'missing_prior_undisputed_transactions';
type Status =
| 'accepted'
| 'not_qualified'
| 'partner_rejected'
| 'qualified'
| 'requires_action'
| 'submitted';
}
}
}
interface PaymentMethodDetails {

@@ -256,0 +414,0 @@ card?: PaymentMethodDetails.Card;

@@ -102,2 +102,7 @@ // File generated from our OpenAPI spec

/**
* Additional evidence for qualifying evidence programs.
*/
enhanced_evidence?: Stripe.Emptyable<Evidence.EnhancedEvidence>;
/**
* A description of the product or service that was sold. Has a maximum character count of 20,000.

@@ -172,2 +177,117 @@ */

}
namespace Evidence {
interface EnhancedEvidence {
/**
* Evidence provided for Visa Compelling Evidence 3.0 evidence submission.
*/
visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3;
}
namespace EnhancedEvidence {
interface VisaCompellingEvidence3 {
/**
* Disputed transaction details for Visa Compelling Evidence 3.0 evidence submission.
*/
disputed_transaction?: VisaCompellingEvidence3.DisputedTransaction;
/**
* List of exactly two prior undisputed transaction objects for Visa Compelling Evidence 3.0 evidence submission.
*/
prior_undisputed_transactions?: Array<
VisaCompellingEvidence3.PriorUndisputedTransaction
>;
}
namespace VisaCompellingEvidence3 {
interface DisputedTransaction {
/**
* User Account ID used to log into business platform. Must be recognizable by the user.
*/
customer_account_id?: Stripe.Emptyable<string>;
/**
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
*/
customer_device_fingerprint?: Stripe.Emptyable<string>;
/**
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
*/
customer_device_id?: Stripe.Emptyable<string>;
/**
* The email address of the customer.
*/
customer_email_address?: Stripe.Emptyable<string>;
/**
* The IP address that the customer used when making the purchase.
*/
customer_purchase_ip?: Stripe.Emptyable<string>;
/**
* Categorization of disputed payment.
*/
merchandise_or_services?: DisputedTransaction.MerchandiseOrServices;
/**
* A description of the product or service that was sold.
*/
product_description?: Stripe.Emptyable<string>;
/**
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
*/
shipping_address?: Stripe.AddressParam;
}
namespace DisputedTransaction {
type MerchandiseOrServices = 'merchandise' | 'services';
}
interface PriorUndisputedTransaction {
/**
* Stripe charge ID for the Visa Compelling Evidence 3.0 eligible prior charge.
*/
charge: string;
/**
* User Account ID used to log into business platform. Must be recognizable by the user.
*/
customer_account_id?: Stripe.Emptyable<string>;
/**
* Unique identifier of the cardholder's device derived from a combination of at least two hardware and software attributes. Must be at least 20 characters.
*/
customer_device_fingerprint?: Stripe.Emptyable<string>;
/**
* Unique identifier of the cardholder's device such as a device serial number (e.g., International Mobile Equipment Identity [IMEI]). Must be at least 15 characters.
*/
customer_device_id?: Stripe.Emptyable<string>;
/**
* The email address of the customer.
*/
customer_email_address?: Stripe.Emptyable<string>;
/**
* The IP address that the customer used when making the purchase.
*/
customer_purchase_ip?: Stripe.Emptyable<string>;
/**
* A description of the product or service that was sold.
*/
product_description?: Stripe.Emptyable<string>;
/**
* The address to which a physical product was shipped. All fields are required for Visa Compelling Evidence 3.0 evidence submission.
*/
shipping_address?: Stripe.AddressParam;
}
}
}
}
}

@@ -174,0 +294,0 @@

@@ -24,2 +24,55 @@ // File generated from our OpenAPI spec

interface Reason {
automation_action?: Reason.AutomationAction;
request?: Reason.Request;
/**
* The type of the reason for the event.
*/
type: Reason.Type;
}
namespace Reason {
interface AutomationAction {
stripe_send_webhook_custom_event?: AutomationAction.StripeSendWebhookCustomEvent;
/**
* The trigger name of the automation that triggered this action.
* Please visit [Revenue and retention automations](https://docs.stripe.com/billing/automations#choose-a-trigger) for all possible trigger names.
*/
trigger: string;
/**
* The type of the `automation_action`.
*/
type: 'stripe_send_webhook_custom_event';
}
namespace AutomationAction {
interface StripeSendWebhookCustomEvent {
/**
* Set of key-value pairs attached to the action when creating an Automation.
*/
custom_data: {
[key: string]: string;
} | null;
}
}
interface Request {
/**
* ID of the API request that caused the event. If null, the event was automatic (e.g., Stripe's automatic subscription handling). Request logs are available in the [dashboard](https://dashboard.stripe.com/logs), but currently not in the API.
*/
id: string | null;
/**
* The idempotency key transmitted during the request, if any. *Note: This property is populated only for events on or after May 23, 2017*.
*/
idempotency_key: string | null;
}
type Type = 'automation_action' | 'request';
}
interface Request {

@@ -44,2 +97,4 @@ /**

| 'account.updated'
| 'account_notice.created'
| 'account_notice.updated'
| 'application_fee.created'

@@ -54,2 +109,11 @@ | 'application_fee.refund.updated'

| 'capability.updated'
| 'capital.financing_offer.accepted'
| 'capital.financing_offer.canceled'
| 'capital.financing_offer.created'
| 'capital.financing_offer.expired'
| 'capital.financing_offer.fully_repaid'
| 'capital.financing_offer.paid_out'
| 'capital.financing_offer.rejected'
| 'capital.financing_offer.replacement_created'
| 'capital.financing_transaction.created'
| 'cash_balance.funds_available'

@@ -95,3 +159,6 @@ | 'charge.captured'

| 'customer.source.updated'
| 'customer.subscription.collection_paused'
| 'customer.subscription.collection_resumed'
| 'customer.subscription.created'
| 'customer.subscription.custom_event'
| 'customer.subscription.deleted'

@@ -101,2 +168,3 @@ | 'customer.subscription.paused'

| 'customer.subscription.pending_update_expired'
| 'customer.subscription.price_migration_failed'
| 'customer.subscription.resumed'

@@ -117,4 +185,6 @@ | 'customer.subscription.trial_will_end'

| 'financial_connections.account.refreshed_balance'
| 'financial_connections.account.refreshed_inferred_balances'
| 'financial_connections.account.refreshed_ownership'
| 'financial_connections.account.refreshed_transactions'
| 'financial_connections.session.updated'
| 'identity.verification_session.canceled'

@@ -133,2 +203,3 @@ | 'identity.verification_session.created'

| 'invoice.paid'
| 'invoice.payment.overpaid'
| 'invoice.payment_action_required'

@@ -200,6 +271,12 @@ | 'invoice.payment_failed'

| 'promotion_code.updated'
| 'quote.accept_failed'
| 'quote.accepted'
| 'quote.accepting'
| 'quote.canceled'
| 'quote.created'
| 'quote.draft'
| 'quote.finalized'
| 'quote.reestimate_failed'
| 'quote.reestimated'
| 'quote.stale'
| 'radar.early_fraud_warning.created'

@@ -232,4 +309,6 @@ | 'radar.early_fraud_warning.updated'

| 'subscription_schedule.expiring'
| 'subscription_schedule.price_migration_failed'
| 'subscription_schedule.released'
| 'subscription_schedule.updated'
| 'tax.form.updated'
| 'tax.settings.updated'

@@ -240,2 +319,3 @@ | 'tax_rate.created'

| 'terminal.reader.action_succeeded'
| 'terminal.reader.action_updated'
| 'test_helpers.test_clock.advancing'

@@ -357,2 +437,7 @@ | 'test_helpers.test_clock.created'

/**
* Information about the action that causes the event. Only present when the event is triggered by an API request or an [Automation](https://docs.stripe.com/billing/automations) action.
*/
reason?: Event.Reason | null;
/**
* Information on the API request that triggers the event.

@@ -359,0 +444,0 @@ */

@@ -51,2 +51,7 @@ // File generated from our OpenAPI spec

/**
* The state of the most recent attempt to refresh the account's inferred balance history.
*/
inferred_balances_refresh?: Account.InferredBalancesRefresh | null;
/**
* The name of the institution that holds this account.

@@ -107,3 +112,3 @@ */

*/
subscriptions: Array<'transactions'> | null;
subscriptions: Array<Account.Subscription> | null;

@@ -225,2 +230,23 @@ /**

interface InferredBalancesRefresh {
/**
* The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch.
*/
last_attempted_at: number;
/**
* Time at which the next inferred balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch.
*/
next_refresh_available_at: number | null;
/**
* The status of the last refresh attempt.
*/
status: InferredBalancesRefresh.Status;
}
namespace InferredBalancesRefresh {
type Status = 'failed' | 'pending' | 'succeeded';
}
interface OwnershipRefresh {

@@ -263,2 +289,4 @@ /**

type Subscription = 'balance' | 'inferred_balances' | 'transactions';
type SupportedPaymentMethodType = 'link' | 'us_bank_account';

@@ -265,0 +293,0 @@

@@ -51,2 +51,9 @@ // File generated from our OpenAPI spec

interface AccountListInferredBalancesParams extends PaginationParams {
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
interface AccountListOwnersParams extends PaginationParams {

@@ -77,3 +84,7 @@ /**

namespace AccountRefreshParams {
type Feature = 'balance' | 'ownership' | 'transactions';
type Feature =
| 'balance'
| 'inferred_balances'
| 'ownership'
| 'transactions';
}

@@ -85,3 +96,3 @@

*/
features: Array<'transactions'>;
features: Array<AccountSubscribeParams.Feature>;

@@ -94,2 +105,6 @@ /**

namespace AccountSubscribeParams {
type Feature = 'balance' | 'inferred_balances' | 'transactions';
}
interface AccountUnsubscribeParams {

@@ -99,3 +114,3 @@ /**

*/
features: Array<'transactions'>;
features: Array<AccountUnsubscribeParams.Feature>;

@@ -108,2 +123,6 @@ /**

namespace AccountUnsubscribeParams {
type Feature = 'balance' | 'inferred_balances' | 'transactions';
}
class AccountsResource {

@@ -148,2 +167,15 @@ /**

/**
* Lists the recorded inferred balances for a Financial Connections Account.
*/
listInferredBalances(
id: string,
params?: AccountListInferredBalancesParams,
options?: RequestOptions
): ApiListPromise<Stripe.FinancialConnections.AccountInferredBalance>;
listInferredBalances(
id: string,
options?: RequestOptions
): ApiListPromise<Stripe.FinancialConnections.AccountInferredBalance>;
/**
* Lists all owners for a given Account

@@ -150,0 +182,0 @@ */

@@ -37,2 +37,4 @@ // File generated from our OpenAPI spec

limits?: Session.Limits;
/**

@@ -43,2 +45,4 @@ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.

manual_entry?: Session.ManualEntry;
/**

@@ -58,2 +62,9 @@ * Permissions requested for accounts collected during this session.

return_url?: string;
/**
* The current state of the session.
*/
status?: Session.Status;
status_details?: Session.StatusDetails;
}

@@ -93,2 +104,7 @@

countries: Array<string> | null;
/**
* Stripe ID of the institution with which the customer should be directed to log in.
*/
institution?: string;
}

@@ -105,2 +121,11 @@

interface Limits {
/**
* The number of accounts that can be linked in this Session.
*/
accounts: number;
}
interface ManualEntry {}
type Permission =

@@ -112,3 +137,26 @@ | 'balances'

type Prefetch = 'balances' | 'ownership' | 'transactions';
type Prefetch =
| 'balances'
| 'inferred_balances'
| 'ownership'
| 'transactions';
type Status = 'cancelled' | 'failed' | 'pending' | 'succeeded';
interface StatusDetails {
cancelled?: StatusDetails.Cancelled;
}
namespace StatusDetails {
interface Cancelled {
/**
* The reason for the Session being cancelled.
*/
reason: Cancelled.Reason;
}
namespace Cancelled {
type Reason = 'custom_manual_entry' | 'other';
}
}
}

@@ -115,0 +163,0 @@ }

@@ -30,2 +30,12 @@ // File generated from our OpenAPI spec

/**
* Settings for configuring Session-specific limits.
*/
limits?: SessionCreateParams.Limits;
/**
* Settings for configuring manual entry of account details for this Session.
*/
manual_entry?: SessionCreateParams.ManualEntry;
/**
* List of data features that you would like to retrieve upon account creation.

@@ -73,2 +83,7 @@ */

countries?: Array<string>;
/**
* Stripe ID of the institution with which the customer should be directed to log in.
*/
institution?: string;
}

@@ -85,2 +100,20 @@

interface Limits {
/**
* The number of accounts that can be linked in this Session.
*/
accounts: number;
}
interface ManualEntry {
/**
* Whether manual entry will be handled by Stripe during the Session.
*/
mode?: ManualEntry.Mode;
}
namespace ManualEntry {
type Mode = 'automatic' | 'custom';
}
type Permission =

@@ -92,3 +125,7 @@ | 'balances'

type Prefetch = 'balances' | 'ownership' | 'transactions';
type Prefetch =
| 'balances'
| 'inferred_balances'
| 'ownership'
| 'transactions';
}

@@ -95,0 +132,0 @@

@@ -13,2 +13,3 @@ ///<reference path='./lib.d.ts' />

///<reference path='./AccountLinksResource.d.ts' />
///<reference path='./AccountNoticesResource.d.ts' />
///<reference path='./AccountSessionsResource.d.ts' />

@@ -27,2 +28,5 @@ ///<reference path='./AccountsResource.d.ts' />

///<reference path='./BillingPortal/SessionsResource.d.ts' />
///<reference path='./Capital/FinancingOffersResource.d.ts' />
///<reference path='./Capital/FinancingSummaryResource.d.ts' />
///<reference path='./Capital/FinancingTransactionsResource.d.ts' />
///<reference path='./ChargesResource.d.ts' />

@@ -48,5 +52,8 @@ ///<reference path='./Checkout/SessionsResource.d.ts' />

///<reference path='./FinancialConnections/AccountsResource.d.ts' />
///<reference path='./FinancialConnections/InstitutionsResource.d.ts' />
///<reference path='./FinancialConnections/SessionsResource.d.ts' />
///<reference path='./FinancialConnections/TransactionsResource.d.ts' />
///<reference path='./Forwarding/RequestsResource.d.ts' />
///<reference path='./GiftCards/CardsResource.d.ts' />
///<reference path='./GiftCards/TransactionsResource.d.ts' />
///<reference path='./Identity/VerificationReportsResource.d.ts' />

@@ -59,2 +66,3 @@ ///<reference path='./Identity/VerificationSessionsResource.d.ts' />

///<reference path='./Issuing/CardsResource.d.ts' />
///<reference path='./Issuing/CreditUnderwritingRecordsResource.d.ts' />
///<reference path='./Issuing/DisputesResource.d.ts' />

@@ -66,2 +74,4 @@ ///<reference path='./Issuing/PersonalizationDesignsResource.d.ts' />

///<reference path='./MandatesResource.d.ts' />
///<reference path='./MarginsResource.d.ts' />
///<reference path='./OrdersResource.d.ts' />
///<reference path='./PaymentIntentsResource.d.ts' />

@@ -77,2 +87,3 @@ ///<reference path='./PaymentLinksResource.d.ts' />

///<reference path='./PromotionCodesResource.d.ts' />
///<reference path='./QuotePhasesResource.d.ts' />
///<reference path='./QuotesResource.d.ts' />

@@ -94,3 +105,5 @@ ///<reference path='./Radar/EarlyFraudWarningsResource.d.ts' />

///<reference path='./SubscriptionsResource.d.ts' />
///<reference path='./Tax/AssociationsResource.d.ts' />
///<reference path='./Tax/CalculationsResource.d.ts' />
///<reference path='./Tax/FormsResource.d.ts' />
///<reference path='./Tax/RegistrationsResource.d.ts' />

@@ -135,2 +148,3 @@ ///<reference path='./Tax/SettingsResource.d.ts' />

///<reference path='./AccountLinks.d.ts' />
///<reference path='./AccountNotices.d.ts' />
///<reference path='./AccountSessions.d.ts' />

@@ -155,2 +169,5 @@ ///<reference path='./Accounts.d.ts' />

///<reference path='./Capabilities.d.ts' />
///<reference path='./Capital/FinancingOffers.d.ts' />
///<reference path='./Capital/FinancingSummary.d.ts' />
///<reference path='./Capital/FinancingTransactions.d.ts' />
///<reference path='./Cards.d.ts' />

@@ -186,5 +203,7 @@ ///<reference path='./CashBalances.d.ts' />

///<reference path='./Files.d.ts' />
///<reference path='./FinancialConnections/AccountInferredBalances.d.ts' />
///<reference path='./FinancialConnections/AccountOwners.d.ts' />
///<reference path='./FinancialConnections/AccountOwnerships.d.ts' />
///<reference path='./FinancialConnections/Accounts.d.ts' />
///<reference path='./FinancialConnections/Institutions.d.ts' />
///<reference path='./FinancialConnections/Sessions.d.ts' />

@@ -194,2 +213,4 @@ ///<reference path='./FinancialConnections/Transactions.d.ts' />

///<reference path='./FundingInstructions.d.ts' />
///<reference path='./GiftCards/Cards.d.ts' />
///<reference path='./GiftCards/Transactions.d.ts' />
///<reference path='./Identity/VerificationReports.d.ts' />

@@ -199,2 +220,3 @@ ///<reference path='./Identity/VerificationSessions.d.ts' />

///<reference path='./InvoiceLineItems.d.ts' />
///<reference path='./InvoicePayments.d.ts' />
///<reference path='./Invoices.d.ts' />

@@ -204,2 +226,3 @@ ///<reference path='./Issuing/Authorizations.d.ts' />

///<reference path='./Issuing/Cards.d.ts' />
///<reference path='./Issuing/CreditUnderwritingRecords.d.ts' />
///<reference path='./Issuing/Disputes.d.ts' />

@@ -213,2 +236,4 @@ ///<reference path='./Issuing/PersonalizationDesigns.d.ts' />

///<reference path='./Mandates.d.ts' />
///<reference path='./Margins.d.ts' />
///<reference path='./Orders.d.ts' />
///<reference path='./PaymentIntents.d.ts' />

@@ -226,2 +251,6 @@ ///<reference path='./PaymentLinks.d.ts' />

///<reference path='./PromotionCodes.d.ts' />
///<reference path='./QuoteLines.d.ts' />
///<reference path='./QuotePhases.d.ts' />
///<reference path='./QuotePreviewInvoices.d.ts' />
///<reference path='./QuotePreviewSubscriptionSchedules.d.ts' />
///<reference path='./Quotes.d.ts' />

@@ -246,4 +275,6 @@ ///<reference path='./Radar/EarlyFraudWarnings.d.ts' />

///<reference path='./Subscriptions.d.ts' />
///<reference path='./Tax/Associations.d.ts' />
///<reference path='./Tax/CalculationLineItems.d.ts' />
///<reference path='./Tax/Calculations.d.ts' />
///<reference path='./Tax/Forms.d.ts' />
///<reference path='./Tax/Registrations.d.ts' />

@@ -301,2 +332,3 @@ ///<reference path='./Tax/Settings.d.ts' />

accountLinks: Stripe.AccountLinksResource;
accountNotices: Stripe.AccountNoticesResource;
accountSessions: Stripe.AccountSessionsResource;

@@ -324,2 +356,4 @@ accounts: Stripe.AccountsResource;

mandates: Stripe.MandatesResource;
margins: Stripe.MarginsResource;
orders: Stripe.OrdersResource;
paymentIntents: Stripe.PaymentIntentsResource;

@@ -335,2 +369,3 @@ paymentLinks: Stripe.PaymentLinksResource;

promotionCodes: Stripe.PromotionCodesResource;
quotePhases: Stripe.QuotePhasesResource;
quotes: Stripe.QuotesResource;

@@ -366,2 +401,7 @@ refunds: Stripe.RefundsResource;

};
capital: {
financingOffers: Stripe.Capital.FinancingOffersResource;
financingSummary: Stripe.Capital.FinancingSummaryResource;
financingTransactions: Stripe.Capital.FinancingTransactionsResource;
};
checkout: {

@@ -381,2 +421,3 @@ sessions: Stripe.Checkout.SessionsResource;

accounts: Stripe.FinancialConnections.AccountsResource;
institutions: Stripe.FinancialConnections.InstitutionsResource;
sessions: Stripe.FinancialConnections.SessionsResource;

@@ -388,2 +429,6 @@ transactions: Stripe.FinancialConnections.TransactionsResource;

};
giftCards: {
cards: Stripe.GiftCards.CardsResource;
transactions: Stripe.GiftCards.TransactionsResource;
};
identity: {

@@ -397,2 +442,3 @@ verificationReports: Stripe.Identity.VerificationReportsResource;

cardholders: Stripe.Issuing.CardholdersResource;
creditUnderwritingRecords: Stripe.Issuing.CreditUnderwritingRecordsResource;
disputes: Stripe.Issuing.DisputesResource;

@@ -417,3 +463,5 @@ personalizationDesigns: Stripe.Issuing.PersonalizationDesignsResource;

tax: {
associations: Stripe.Tax.AssociationsResource;
calculations: Stripe.Tax.CalculationsResource;
forms: Stripe.Tax.FormsResource;
registrations: Stripe.Tax.RegistrationsResource;

@@ -483,2 +531,21 @@ settings: Stripe.Tax.SettingsResource;

): void;
/**
* Allows for sending "raw" requests to the Stripe API, which can be used for
* testing new API endpoints or performing requests that the library does
* not support yet.
*
* This is an experimental interface and is not yet stable.
*
* @param method - HTTP request method, 'GET', 'POST', or 'DELETE'
* @param path - The path of the request, e.g. '/v1/beta_endpoint'
* @param params - The parameters to include in the request body.
* @param options - Additional request options.
*/
rawRequest(
method: string,
path: string,
params?: {[key: string]: unknown},
options?: Stripe.RawRequestOptions
): Promise<Stripe.Response<unknown>>;
}

@@ -485,0 +552,0 @@

@@ -100,2 +100,7 @@ // File generated from our OpenAPI spec

/**
* The margins which apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
*/
margins?: Array<string | Stripe.Margin> | null;
/**
* 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.

@@ -102,0 +107,0 @@ */

@@ -47,2 +47,7 @@ // File generated from our OpenAPI spec

/**
* The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
*/
margins?: Array<string>;
/**
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

@@ -116,2 +121,7 @@ */

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
/**
* ID of the promotion code to create a new discount for.

@@ -122,2 +132,41 @@ */

namespace Discount {
interface DiscountEnd {
/**
* Time span for the redeemed discount.
*/
duration?: DiscountEnd.Duration;
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;
/**
* The type of calculation made to determine when the discount ends.
*/
type: DiscountEnd.Type;
}
namespace DiscountEnd {
interface Duration {
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: Duration.Interval;
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
interval_count: number;
}
namespace Duration {
type Interval = 'day' | 'month' | 'week' | 'year';
}
type Type = 'duration' | 'timestamp';
}
}
interface Period {

@@ -203,2 +252,7 @@ /**

/**
* The ids of the margins to apply to the invoice item. When set, the `default_margins` on the invoice do not apply to this invoice item.
*/
margins?: Stripe.Emptyable<Array<string>>;
/**
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.

@@ -267,2 +321,7 @@ */

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
/**
* ID of the promotion code to create a new discount for.

@@ -273,2 +332,41 @@ */

namespace Discount {
interface DiscountEnd {
/**
* Time span for the redeemed discount.
*/
duration?: DiscountEnd.Duration;
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;
/**
* The type of calculation made to determine when the discount ends.
*/
type: DiscountEnd.Type;
}
namespace DiscountEnd {
interface Duration {
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: Duration.Interval;
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
interval_count: number;
}
namespace Duration {
type Interval = 'day' | 'month' | 'week' | 'year';
}
type Type = 'duration' | 'timestamp';
}
}
interface Period {

@@ -275,0 +373,0 @@ /**

@@ -70,2 +70,12 @@ // File generated from our OpenAPI spec

/**
* The amount of margin calculated per margin for this line item.
*/
margin_amounts?: Array<InvoiceLineItem.MarginAmount> | null;
/**
* The margins applied to the line item. When set, the `default_margins` on the invoice do not apply to the line item. Use `expand[]=margins` to expand each margin.
*/
margins?: Array<string | Stripe.Margin> | null;
/**
* 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. Note that for line items with `type=subscription`, `metadata` reflects the current metadata from the subscription associated with the line item, unless the invoice line was directly updated with different metadata after creation.

@@ -146,2 +156,14 @@ */

interface MarginAmount {
/**
* The amount, in cents (or local equivalent), of the reduction in line item amount.
*/
amount: number;
/**
* The margin that was applied to get this margin amount.
*/
margin: string | Stripe.Margin;
}
interface Period {

@@ -148,0 +170,0 @@ /**

@@ -108,2 +108,7 @@ // File generated from our OpenAPI spec

/**
* List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
*/
amounts_due?: Array<Invoice.AmountsDue> | null;
/**
* ID of the Connect Application that created the invoice.

@@ -218,2 +223,7 @@ */

/**
* The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
*/
default_margins?: Array<string | Stripe.Margin> | null;
/**
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.

@@ -348,2 +358,7 @@ */

/**
* Payments for this invoice
*/
payments?: ApiList<Stripe.InvoicePayment>;
/**
* End of the usage period during which invoice items were added to this invoice. This looks back one period for a subscription invoice. Use the [line item period](https://stripe.com/api/invoices/line_item#invoice_line_item_object-period) to get the service period for each price.

@@ -463,2 +478,7 @@ */

/**
* The aggregate amounts calculated per margin across all line items.
*/
total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
/**
* The aggregate amounts calculated per tax rate for all line items.

@@ -480,2 +500,48 @@ */

namespace Invoice {
interface AmountsDue {
/**
* Incremental amount due for this payment in cents (or local equivalent).
*/
amount: number;
/**
* The amount in cents (or local equivalent) that was paid for this payment.
*/
amount_paid: number;
/**
* The difference between the payment's amount and amount_paid, in cents (or local equivalent).
*/
amount_remaining: number;
/**
* Number of days from when invoice is finalized until the payment is due.
*/
days_until_due: number | null;
/**
* An arbitrary string attached to the object. Often useful for displaying to users.
*/
description: string | null;
/**
* Date on which a payment plan's payment is due.
*/
due_date: number | null;
/**
* Timestamp when the payment was paid.
*/
paid_at: number | null;
/**
* The status of the payment, one of `open`, `paid`, or `past_due`
*/
status: AmountsDue.Status;
}
namespace AmountsDue {
type Status = 'open' | 'paid' | 'past_due';
}
interface AutomaticTax {

@@ -835,2 +901,3 @@ /**

| 'financial_connections_account_inactive'
| 'financial_connections_institution_unavailable'
| 'financial_connections_no_successful_transaction_refresh'

@@ -841,2 +908,5 @@ | 'forwarding_api_inactive'

| 'forwarding_api_upstream_connection_timeout'
| 'gift_card_balance_insufficient'
| 'gift_card_code_exists'
| 'gift_card_inactive'
| 'idempotency_key_in_use'

@@ -931,2 +1001,3 @@ | 'incorrect_address'

| 'secret_key_required'
| 'sensitive_data_access_expired'
| 'sepa_unsupported_account'

@@ -1147,2 +1218,7 @@ | 'setup_attempt_failed'

account_subcategories?: Array<Filters.AccountSubcategory>;
/**
* The institution to use to filter for possible accounts to link.
*/
institution?: string;
}

@@ -1160,3 +1236,7 @@

type Prefetch = 'balances' | 'ownership' | 'transactions';
type Prefetch =
| 'balances'
| 'inferred_balances'
| 'ownership'
| 'transactions';
}

@@ -1352,4 +1432,27 @@

metadata: Stripe.Metadata | null;
/**
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
*/
pause_collection?: SubscriptionDetails.PauseCollection | null;
}
namespace SubscriptionDetails {
interface PauseCollection {
/**
* The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
*/
behavior: PauseCollection.Behavior;
/**
* The time after which the subscription will resume collecting payments.
*/
resumes_at: number | null;
}
namespace PauseCollection {
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
}
}
interface ThresholdReason {

@@ -1393,2 +1496,14 @@ /**

interface TotalMarginAmount {
/**
* The amount, in cents (or local equivalent), of the reduction in line item amount.
*/
amount: number;
/**
* The margin that was applied to get this margin amount.
*/
margin: string | Stripe.Margin;
}
interface TotalTaxAmount {

@@ -1395,0 +1510,0 @@ /**

@@ -156,2 +156,14 @@ ///<reference lib="esnext.asynciterable" />

export type RawRequestOptions = RequestOptions & {
/**
* Specify encoding for the request body. This is an experimental interface and is not yet stable.
*/
apiMode?: 'standard' | 'preview';
/**
* Specify additional request headers. This is an experimental interface and is not yet stable.
*/
additionalHeaders?: {[headerName: string]: string};
};
export type Response<T> = T & {

@@ -158,0 +170,0 @@ lastResponse: {

@@ -60,2 +60,9 @@ // File generated from our OpenAPI spec

/**
* The ID of the product for this line item.
*
* This will always be the same as `price.product`.
*/
product?: string | Stripe.Product | Stripe.DeletedProduct;
/**
* The quantity of products being purchased.

@@ -62,0 +69,0 @@ */

@@ -107,2 +107,4 @@ // File generated from our OpenAPI spec

payto?: PaymentMethodDetails.Payto;
revolut_pay?: PaymentMethodDetails.RevolutPay;

@@ -206,7 +208,82 @@

/**
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
*/
fingerprint?: string | null;
/**
* PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
*/
payer_id: string | null;
/**
* Owner's verified email. Values are verified or provided by PayPal directly
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
*/
verified_email?: string | null;
}
interface Payto {
/**
* Amount that will be collected. It is required when `amount_type` is `fixed`.
*/
amount: number | null;
/**
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
*/
amount_type: Payto.AmountType;
/**
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
*/
end_date: string | null;
/**
* The periodicity at which payments will be collected.
*/
payment_schedule: Payto.PaymentSchedule;
/**
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
*/
payments_per_period: number | null;
/**
* The purpose for which payments are made. Defaults to retail.
*/
purpose: Payto.Purpose | null;
/**
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
*/
start_date: string | null;
}
namespace Payto {
type AmountType = 'fixed' | 'maximum';
type PaymentSchedule =
| 'adhoc'
| 'annual'
| 'daily'
| 'fortnightly'
| 'monthly'
| 'quarterly'
| 'semi_annual'
| 'weekly';
type Purpose =
| 'dependant_support'
| 'government'
| 'loan'
| 'mortgage'
| 'other'
| 'pension'
| 'personal'
| 'retail'
| 'salary'
| 'tax'
| 'utility';
}
interface RevolutPay {}

@@ -213,0 +290,0 @@

@@ -566,2 +566,3 @@ // File generated from our OpenAPI spec

| 'paypal'
| 'payto'
| 'pix'

@@ -568,0 +569,0 @@ | 'promptpay'

@@ -623,2 +623,3 @@ // File generated from our OpenAPI spec

| 'paypal'
| 'payto'
| 'pix'

@@ -1537,2 +1538,3 @@ | 'promptpay'

| 'paypal'
| 'payto'
| 'pix'

@@ -1539,0 +1541,0 @@ | 'promptpay'

@@ -124,2 +124,4 @@ // File generated from our OpenAPI spec

payto?: PaymentMethodConfiguration.Payto;
promptpay?: PaymentMethodConfiguration.Promptpay;

@@ -1199,2 +1201,36 @@

interface Payto {
/**
* Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active.
*/
available: boolean;
display_preference: Payto.DisplayPreference;
}
namespace Payto {
interface DisplayPreference {
/**
* For child configs, whether or not the account's preference will be observed. If `false`, the parent configuration's default is used.
*/
overridable: boolean | null;
/**
* The account's display preference.
*/
preference: DisplayPreference.Preference;
/**
* The effective display preference value.
*/
value: DisplayPreference.Value;
}
namespace DisplayPreference {
type Preference = 'none' | 'off' | 'on';
type Value = 'off' | 'on';
}
}
interface Promptpay {

@@ -1201,0 +1237,0 @@ /**

@@ -108,2 +108,4 @@ // File generated from our OpenAPI spec

payto?: PaymentMethod.Payto;
pix?: PaymentMethod.Pix;

@@ -118,2 +120,4 @@

rechnung?: PaymentMethod.Rechnung;
revolut_pay?: PaymentMethod.RevolutPay;

@@ -1167,2 +1171,7 @@

/**
* Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same.
*/
fingerprint?: string | null;
/**
* Owner's email. Values are provided by PayPal directly

@@ -1177,4 +1186,27 @@ * (if supported) at the time of authorization or settlement. They cannot be set or mutated.

payer_id: string | null;
/**
* Owner's verified email. Values are verified or provided by PayPal directly
* (if supported) at the time of authorization or settlement. They cannot be set or mutated.
*/
verified_email?: string | null;
}
interface Payto {
/**
* Bank-State-Branch number of the bank account.
*/
bsb_number: string | null;
/**
* Last four digits of the bank account number.
*/
last4: string | null;
/**
* The PayID alias for the bank account.
*/
pay_id: string | null;
}
interface Pix {}

@@ -1191,2 +1223,25 @@

interface Rechnung {
dob?: Rechnung.Dob;
}
namespace Rechnung {
interface Dob {
/**
* The day of birth, between 1 and 31.
*/
day: number;
/**
* The month of birth, between 1 and 12.
*/
month: number;
/**
* The four-digit year of birth.
*/
year: number;
}
}
interface RevolutPay {}

@@ -1281,4 +1336,6 @@

| 'paypal'
| 'payto'
| 'pix'
| 'promptpay'
| 'rechnung'
| 'revolut_pay'

@@ -1300,2 +1357,7 @@ | 'sepa_debit'

/**
* Account number of the bank account.
*/
account_number?: string | null;
/**
* Account type: checkings or savings. Defaults to checking if omitted.

@@ -1302,0 +1364,0 @@ */

@@ -177,2 +177,7 @@ // File generated from our OpenAPI spec

/**
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
*/
payto?: PaymentMethodCreateParams.Payto;
/**
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.

@@ -193,2 +198,7 @@ */

/**
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
*/
rechnung?: PaymentMethodCreateParams.Rechnung;
/**
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.

@@ -562,2 +572,19 @@ */

interface Payto {
/**
* The account number for the bank account.
*/
account_number?: string;
/**
* Bank-State-Branch number of the bank account.
*/
bsb_number?: string;
/**
* The PayID alias for the bank account.
*/
pay_id?: string;
}
interface Pix {}

@@ -574,2 +601,28 @@

interface Rechnung {
/**
* Customer's date of birth
*/
dob: Rechnung.Dob;
}
namespace Rechnung {
interface Dob {
/**
* The day of birth, between 1 and 31.
*/
day: number;
/**
* The month of birth, between 1 and 12.
*/
month: number;
/**
* The four-digit year of birth.
*/
year: number;
}
}
interface RevolutPay {}

@@ -627,4 +680,6 @@

| 'paypal'
| 'payto'
| 'pix'
| 'promptpay'
| 'rechnung'
| 'revolut_pay'

@@ -716,2 +771,12 @@ | 'sepa_debit'

/**
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
*/
payto?: PaymentMethodUpdateParams.Payto;
/**
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
*/
rechnung?: PaymentMethodUpdateParams.Rechnung;
/**
* If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method.

@@ -779,2 +844,45 @@ */

interface Payto {
/**
* The account number for the bank account.
*/
account_number?: string;
/**
* Bank-State-Branch number of the bank account.
*/
bsb_number?: string;
/**
* The PayID alias for the bank account.
*/
pay_id?: string;
}
interface Rechnung {
/**
* Customer's date of birth
*/
dob: Rechnung.Dob;
}
namespace Rechnung {
interface Dob {
/**
* The day of birth, between 1 and 31.
*/
day: number;
/**
* The month of birth, between 1 and 12.
*/
month: number;
/**
* The four-digit year of birth.
*/
year: number;
}
}
interface UsBankAccount {

@@ -845,4 +953,6 @@ /**

| 'paypal'
| 'payto'
| 'pix'
| 'promptpay'
| 'rechnung'
| 'revolut_pay'

@@ -849,0 +959,0 @@ | 'sepa_debit'

@@ -97,2 +97,7 @@ // File generated from our OpenAPI spec

/**
* Subscriptions using this price will be migrated to use the new referenced price.
*/
migrate_to?: Price.MigrateTo | null;
/**
* A brief description of the price, hidden from customers.

@@ -243,2 +248,19 @@ */

interface MigrateTo {
/**
* The behavior controlling at what point in the subscription lifecycle to migrate the price
*/
behavior: 'at_cycle_end';
/**
* The unix timestamp after at which subscriptions will start to migrate to the new price.
*/
effective_after: number;
/**
* The id of the price being migrated to
*/
price: string;
}
interface Recurring {

@@ -245,0 +267,0 @@ /**

@@ -376,2 +376,7 @@ // File generated from our OpenAPI spec

/**
* If specified, subscriptions using this price will be updated to use the new referenced price.
*/
migrate_to?: Stripe.Emptyable<PriceUpdateParams.MigrateTo>;
/**
* A brief description of the price, hidden from customers.

@@ -473,2 +478,19 @@ */

interface MigrateTo {
/**
* The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
*/
behavior: 'at_cycle_end';
/**
* The time after which subscriptions should start using the new price.
*/
effective_after?: number;
/**
* The ID of the price object.
*/
price: string;
}
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';

@@ -475,0 +497,0 @@ }

@@ -102,2 +102,7 @@ // File generated from our OpenAPI spec

/**
* Provisioning configuration for this product.
*/
provisioning?: Product.Provisioning | null;
/**
* Whether this product is shipped (i.e., physical goods).

@@ -168,2 +173,36 @@ */

interface Provisioning {
gift_card: Provisioning.GiftCard | null;
/**
* The type of provisioning, only `gift_card` currently supported.
*/
type: 'gift_card';
}
namespace Provisioning {
interface GiftCard {
fixed_amount: GiftCard.FixedAmount | null;
/**
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
*/
type: 'fixed_amount';
}
namespace GiftCard {
interface FixedAmount {
/**
* The initial amount with which the provisioned gift card will be created.
*/
amount: number;
/**
* 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).
*/
currency: string;
}
}
}
type Type = 'good' | 'service';

@@ -170,0 +209,0 @@ }

@@ -57,2 +57,7 @@ // File generated from our OpenAPI spec

/**
* Provisioning configuration for this product.
*/
provisioning?: ProductCreateParams.Provisioning;
/**
* Whether this product is shipped (i.e., physical goods).

@@ -255,2 +260,33 @@ */

interface Provisioning {
gift_card?: Provisioning.GiftCard;
/**
* The type of provisioning, only `gift_card` currently supported.
*/
type: 'gift_card';
}
namespace Provisioning {
interface GiftCard {
fixed_amount?: GiftCard.FixedAmount;
/**
* The specific type of gift_card provisioning, only `fixed_amount` currently supported.
*/
type: 'fixed_amount';
}
namespace GiftCard {
interface FixedAmount {
/**
* The initial amount with which the provisioned gift card will be created.
*/
amount: number;
currency: string;
}
}
}
type Type = 'good' | 'service';

@@ -257,0 +293,0 @@ }

@@ -21,2 +21,7 @@ // File generated from our OpenAPI spec

/**
* Allow quote lines to have `starts_at` in the past if collection is paused between `starts_at` and now.
*/
allow_backdated_lines?: boolean | null;
/**
* Total before any discounts or taxes are applied.

@@ -122,2 +127,7 @@ */

/**
* A list of [quote lines](https://docs.stripe.com/api/quote_lines) on the quote. These lines describe changes, in the order provided, that will be used to create new subscription schedules or update existing subscription schedules when the quote is accepted.
*/
lines?: Array<string> | null;
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.

@@ -147,2 +157,7 @@ */

/**
* Details on when and why a quote has been marked as stale or canceled.
*/
status_details?: Quote.StatusDetails | null;
status_transitions: Quote.StatusTransitions;

@@ -158,2 +173,9 @@

/**
* List representing overrides for `subscription_data` configurations for specific subscription schedules.
*/
subscription_data_overrides?: Array<
Quote.SubscriptionDataOverride
> | null;
/**
* The subscription schedule that was created or updated from this quote.

@@ -164,2 +186,7 @@ */

/**
* The subscription schedules that were created or updated from this quote.
*/
subscription_schedules?: Array<Quote.SubscriptionSchedule> | null;
/**
* ID of the test clock this quote belongs to.

@@ -219,2 +246,7 @@ */

/**
* Details of the most recent reestimate of the quote's preview schedules and upcoming invoices, including the status of Stripe's calculation.
*/
last_reestimation_details?: Computed.LastReestimationDetails | null;
/**
* The definitive totals and line items the customer will be charged on a recurring basis. Takes into account the line items with recurring prices and discounts with `duration=forever` coupons only. Defaults to `null` if no inputted line items with recurring prices.

@@ -224,2 +256,7 @@ */

/**
* The time at which the quote's estimated schedules and upcoming invoices were generated.
*/
updated_at?: number | null;
upfront: Computed.Upfront;

@@ -229,2 +266,39 @@ }

namespace Computed {
interface LastReestimationDetails {
/**
* When `status` is `failed`, provides details about the quote reestimation failure.
*/
failed: LastReestimationDetails.Failed | null;
/**
* Latest status of the reestimation.
*/
status: LastReestimationDetails.Status;
}
namespace LastReestimationDetails {
interface Failed {
/**
* The failure `code` is more granular than the `reason` provided and may correspond to a Stripe error code. For automation errors, this field is one of: `reverse_api_failure`, `reverse_api_deadline_exceeeded`, or `reverse_api_response_validation_error`, which are Stripe error codes and map to the error `message` field.
*/
failure_code: string | null;
/**
* Information derived from the `failure_code` or a freeform message that explains the error as a human-readable English string. For example, "margin ID is not a valid ID".
*/
message: string | null;
/**
* The reason the reestimation failed.
*/
reason: Failed.Reason;
}
namespace Failed {
type Reason = 'automation_failure' | 'internal_error';
}
type Status = 'failed' | 'in_progress' | 'succeeded';
}
interface Recurring {

@@ -505,4 +579,150 @@ /**

type Status = 'accepted' | 'canceled' | 'draft' | 'open';
type Status =
| 'accepted'
| 'accepting'
| 'canceled'
| 'draft'
| 'open'
| 'stale';
interface StatusDetails {
canceled?: StatusDetails.Canceled;
stale?: StatusDetails.Stale;
}
namespace StatusDetails {
interface Canceled {
/**
* The reason this quote was marked as canceled.
*/
reason: Canceled.Reason | null;
/**
* Time at which the quote was marked as canceled. Measured in seconds since the Unix epoch.
*/
transitioned_at: number | null;
}
namespace Canceled {
type Reason =
| 'canceled'
| 'quote_accepted'
| 'quote_expired'
| 'quote_superseded'
| 'subscription_canceled';
}
interface Stale {
/**
* Time at which the quote expires. Measured in seconds since the Unix epoch.
*/
expires_at: number | null;
/**
* The most recent reason this quote was marked as stale.
*/
last_reason: Stale.LastReason | null;
/**
* Time at which the stale reason was updated. Measured in seconds since the Unix epoch.
*/
last_updated_at: number | null;
/**
* Time at which the quote was marked as stale. Measured in seconds since the Unix epoch.
*/
transitioned_at: number | null;
}
namespace Stale {
interface LastReason {
/**
* The ID of the line that is invalid if the stale reason type is `line_invalid`.
*/
line_invalid?: string;
/**
* The IDs of the lines that are invalid if the stale reason type is `lines_invalid`.
*/
lines_invalid?: Array<LastReason.LinesInvalid>;
/**
* The user supplied mark stale reason.
*/
marked_stale?: string | null;
/**
* The ID of the subscription that was canceled.
*/
subscription_canceled?: string;
subscription_changed?: LastReason.SubscriptionChanged;
/**
* The ID of the subscription that was expired.
*/
subscription_expired?: string;
/**
* The ID of the subscription schedule that was canceled.
*/
subscription_schedule_canceled?: string;
subscription_schedule_changed?: LastReason.SubscriptionScheduleChanged;
/**
* The ID of the subscription schedule that was released.
*/
subscription_schedule_released?: string;
/**
* The reason the quote was marked as stale.
*/
type: LastReason.Type | null;
}
namespace LastReason {
interface LinesInvalid {
/**
* The timestamp at which the lines were marked as invalid.
*/
invalid_at: number;
/**
* The list of lines that became invalid at the given timestamp.
*/
lines: Array<string>;
}
interface SubscriptionChanged {
/**
* The subscription's state before the quote was marked as stale.
*/
previous_subscription: Stripe.Subscription | null;
}
interface SubscriptionScheduleChanged {
/**
* The subscription schedule's state before the quote was marked as stale.
*/
previous_subscription_schedule: Stripe.SubscriptionSchedule | null;
}
type Type =
| 'accept_failed_validations'
| 'bill_on_acceptance_invalid'
| 'line_invalid'
| 'lines_invalid'
| 'marked_stale'
| 'subscription_canceled'
| 'subscription_changed'
| 'subscription_expired'
| 'subscription_schedule_canceled'
| 'subscription_schedule_changed'
| 'subscription_schedule_released';
}
}
}
interface StatusTransitions {

@@ -527,2 +747,17 @@ /**

/**
* Describes the period to bill for upon accepting the quote.
*/
bill_on_acceptance?: SubscriptionData.BillOnAcceptance | null;
/**
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
*/
billing_behavior?: SubscriptionData.BillingBehavior;
/**
* Whether the subscription will always start a new billing period when the quote is accepted.
*/
billing_cycle_anchor?: 'reset' | null;
/**
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.

@@ -538,2 +773,17 @@ */

/**
* Behavior of the subscription schedule and underlying subscription when it ends.
*/
end_behavior?: SubscriptionData.EndBehavior | null;
/**
* The id of the subscription schedule that will be updated when the quote is accepted.
*/
from_schedule?: string | Stripe.SubscriptionSchedule | null;
/**
* The id of the subscription that will be updated when the quote is accepted.
*/
from_subscription?: string | Stripe.Subscription | null;
/**
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that will set metadata on the subscription or subscription schedule when the quote is accepted. If a recurring price is included in `line_items`, this field will be passed to the resulting subscription's `metadata` field. If `subscription_data.effective_date` is used, this field will be passed to the resulting subscription schedule's `phases.metadata` field. Unlike object-level metadata, this field is declarative. Updates will clear prior values.

@@ -544,2 +794,12 @@ */

/**
* If specified, the invoicing for the given billing cycle iterations will be processed when the quote is accepted. Cannot be used with `effective_date`.
*/
prebilling?: SubscriptionData.Prebilling | null;
/**
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
*/
proration_behavior?: SubscriptionData.ProrationBehavior;
/**
* Integer representing the number of trial period days before the customer is charged for the first time.

@@ -550,2 +810,337 @@ */

namespace SubscriptionData {
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
interface BillOnAcceptance {
/**
* The start of the period to bill from when the Quote is accepted.
*/
bill_from: BillOnAcceptance.BillFrom | null;
/**
* The end of the period to bill until when the Quote is accepted.
*/
bill_until: BillOnAcceptance.BillUntil | null;
}
namespace BillOnAcceptance {
interface BillFrom {
/**
* The materialized time.
*/
computed: number | null;
/**
* The timestamp the given line starts at.
*/
line_starts_at: BillFrom.LineStartsAt | null;
/**
* A precise Unix timestamp.
*/
timestamp: number | null;
/**
* The type of method to specify the `bill_from` time.
*/
type: BillFrom.Type;
}
namespace BillFrom {
interface LineStartsAt {
/**
* Unique identifier for the object.
*/
id: string;
}
type Type =
| 'line_starts_at'
| 'now'
| 'pause_collection_start'
| 'quote_acceptance_date'
| 'timestamp';
}
interface BillUntil {
/**
* The materialized time.
*/
computed: number | null;
/**
* Time span for the quote line starting from the `starts_at` date.
*/
duration: BillUntil.Duration | null;
/**
* The timestamp the given line ends at.
*/
line_ends_at: BillUntil.LineEndsAt | null;
/**
* A precise Unix timestamp.
*/
timestamp: number | null;
/**
* The type of method to specify the `bill_until` time.
*/
type: BillUntil.Type;
}
namespace BillUntil {
interface Duration {
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: Duration.Interval;
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
interval_count: number;
}
namespace Duration {
type Interval = 'day' | 'month' | 'week' | 'year';
}
interface LineEndsAt {
/**
* Unique identifier for the object.
*/
id: string;
}
type Type =
| 'duration'
| 'line_ends_at'
| 'schedule_end'
| 'timestamp'
| 'upcoming_invoice';
}
}
type EndBehavior = 'cancel' | 'release';
interface Prebilling {
iterations: number;
}
type ProrationBehavior =
| 'always_invoice'
| 'create_prorations'
| 'none';
}
interface SubscriptionDataOverride {
applies_to: SubscriptionDataOverride.AppliesTo;
/**
* Describes the period to bill for upon accepting the quote.
*/
bill_on_acceptance?: SubscriptionDataOverride.BillOnAcceptance | null;
/**
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
*/
billing_behavior?: SubscriptionDataOverride.BillingBehavior;
/**
* The customer which this quote belongs to. A customer is required before finalizing the quote. Once specified, it cannot be changed.
*/
customer: string | null;
/**
* The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs.
*/
description: string | null;
/**
* Behavior of the subscription schedule and underlying subscription when it ends.
*/
end_behavior: SubscriptionDataOverride.EndBehavior | null;
/**
* Determines how to handle [prorations](https://stripe.com/docs/subscriptions/billing-cycle#prorations) when the quote is accepted.
*/
proration_behavior?: SubscriptionDataOverride.ProrationBehavior | null;
}
namespace SubscriptionDataOverride {
interface AppliesTo {
/**
* A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
*/
new_reference: string | null;
/**
* The ID of the schedule the line applies to.
*/
subscription_schedule: string | null;
/**
* Describes whether the quote line is affecting a new schedule or an existing schedule.
*/
type: AppliesTo.Type;
}
namespace AppliesTo {
type Type = 'new_reference' | 'subscription_schedule';
}
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
interface BillOnAcceptance {
/**
* The start of the period to bill from when the Quote is accepted.
*/
bill_from: BillOnAcceptance.BillFrom | null;
/**
* The end of the period to bill until when the Quote is accepted.
*/
bill_until: BillOnAcceptance.BillUntil | null;
}
namespace BillOnAcceptance {
interface BillFrom {
/**
* The materialized time.
*/
computed: number | null;
/**
* The timestamp the given line starts at.
*/
line_starts_at: BillFrom.LineStartsAt | null;
/**
* A precise Unix timestamp.
*/
timestamp: number | null;
/**
* The type of method to specify the `bill_from` time.
*/
type: BillFrom.Type;
}
namespace BillFrom {
interface LineStartsAt {
/**
* Unique identifier for the object.
*/
id: string;
}
type Type =
| 'line_starts_at'
| 'now'
| 'pause_collection_start'
| 'quote_acceptance_date'
| 'timestamp';
}
interface BillUntil {
/**
* The materialized time.
*/
computed: number | null;
/**
* Time span for the quote line starting from the `starts_at` date.
*/
duration: BillUntil.Duration | null;
/**
* The timestamp the given line ends at.
*/
line_ends_at: BillUntil.LineEndsAt | null;
/**
* A precise Unix timestamp.
*/
timestamp: number | null;
/**
* The type of method to specify the `bill_until` time.
*/
type: BillUntil.Type;
}
namespace BillUntil {
interface Duration {
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: Duration.Interval;
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
interval_count: number;
}
namespace Duration {
type Interval = 'day' | 'month' | 'week' | 'year';
}
interface LineEndsAt {
/**
* Unique identifier for the object.
*/
id: string;
}
type Type =
| 'duration'
| 'line_ends_at'
| 'schedule_end'
| 'timestamp'
| 'upcoming_invoice';
}
}
type EndBehavior = 'cancel' | 'release';
type ProrationBehavior =
| 'always_invoice'
| 'create_prorations'
| 'none';
}
interface SubscriptionSchedule {
applies_to: SubscriptionSchedule.AppliesTo;
/**
* The subscription schedule that was created or updated from this quote.
*/
subscription_schedule: string;
}
namespace SubscriptionSchedule {
interface AppliesTo {
/**
* A custom string that identifies a new subscription schedule being created upon quote acceptance. All quote lines with the same `new_reference` field will be applied to the creation of a new subscription schedule.
*/
new_reference: string | null;
/**
* The ID of the schedule the line applies to.
*/
subscription_schedule: string | null;
/**
* Describes whether the quote line is affecting a new schedule or an existing schedule.
*/
type: AppliesTo.Type;
}
namespace AppliesTo {
type Type = 'new_reference' | 'subscription_schedule';
}
}
interface TotalDetails {

@@ -552,0 +1147,0 @@ /**

@@ -119,2 +119,4 @@ // File generated from our OpenAPI spec

payto?: PaymentMethodDetails.Payto;
revolut_pay?: PaymentMethodDetails.RevolutPay;

@@ -472,2 +474,4 @@

interface Payto {}
interface RevolutPay {}

@@ -676,2 +680,3 @@

| 'financial_connections_account_inactive'
| 'financial_connections_institution_unavailable'
| 'financial_connections_no_successful_transaction_refresh'

@@ -682,2 +687,5 @@ | 'forwarding_api_inactive'

| 'forwarding_api_upstream_connection_timeout'
| 'gift_card_balance_insufficient'
| 'gift_card_code_exists'
| 'gift_card_inactive'
| 'idempotency_key_in_use'

@@ -772,2 +780,3 @@ | 'incorrect_address'

| 'secret_key_required'
| 'sensitive_data_access_expired'
| 'sepa_unsupported_account'

@@ -774,0 +783,0 @@ | 'setup_attempt_failed'

@@ -339,2 +339,3 @@ // File generated from our OpenAPI spec

| 'financial_connections_account_inactive'
| 'financial_connections_institution_unavailable'
| 'financial_connections_no_successful_transaction_refresh'

@@ -345,2 +346,5 @@ | 'forwarding_api_inactive'

| 'forwarding_api_upstream_connection_timeout'
| 'gift_card_balance_insufficient'
| 'gift_card_code_exists'
| 'gift_card_inactive'
| 'idempotency_key_in_use'

@@ -435,2 +439,3 @@ | 'incorrect_address'

| 'secret_key_required'
| 'sensitive_data_access_expired'
| 'sepa_unsupported_account'

@@ -588,2 +593,4 @@ | 'setup_attempt_failed'

payto?: PaymentMethodOptions.Payto;
sepa_debit?: PaymentMethodOptions.SepaDebit;

@@ -768,4 +775,84 @@

billing_agreement_id: string | null;
/**
* 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).
*/
currency?: string | null;
/**
* The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
*/
subsellers?: Array<string>;
}
interface Payto {
mandate_options?: Payto.MandateOptions;
}
namespace Payto {
interface MandateOptions {
/**
* Amount that will be collected. It is required when `amount_type` is `fixed`.
*/
amount: number | null;
/**
* The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
*/
amount_type: MandateOptions.AmountType | null;
/**
* Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
*/
end_date: string | null;
/**
* The periodicity at which payments will be collected.
*/
payment_schedule: MandateOptions.PaymentSchedule | null;
/**
* The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
*/
payments_per_period: number | null;
/**
* The purpose for which payments are made. Defaults to retail.
*/
purpose: MandateOptions.Purpose | null;
/**
* Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
*/
start_date: string | null;
}
namespace MandateOptions {
type AmountType = 'fixed' | 'maximum';
type PaymentSchedule =
| 'adhoc'
| 'annual'
| 'daily'
| 'fortnightly'
| 'monthly'
| 'quarterly'
| 'semi_annual'
| 'weekly';
type Purpose =
| 'dependant_support'
| 'government'
| 'loan'
| 'mortgage'
| 'other'
| 'pension'
| 'personal'
| 'retail'
| 'salary'
| 'tax'
| 'utility';
}
}
interface SepaDebit {

@@ -794,2 +881,4 @@ mandate_options?: SepaDebit.MandateOptions;

manual_entry?: FinancialConnections.ManualEntry;
/**

@@ -817,2 +906,7 @@ * The list of permissions to request. The `payment_method` permission must be included.

account_subcategories?: Array<Filters.AccountSubcategory>;
/**
* The institution to use to filter for possible accounts to link.
*/
institution?: string;
}

@@ -824,2 +918,13 @@

interface ManualEntry {
/**
* Settings for configuring manual entry of account details.
*/
mode?: ManualEntry.Mode;
}
namespace ManualEntry {
type Mode = 'automatic' | 'custom';
}
type Permission =

@@ -831,3 +936,7 @@ | 'balances'

type Prefetch = 'balances' | 'ownership' | 'transactions';
type Prefetch =
| 'balances'
| 'inferred_balances'
| 'ownership'
| 'transactions';
}

@@ -834,0 +943,0 @@

@@ -103,2 +103,4 @@ // File generated from our OpenAPI spec

paypal?: Source.Paypal;
receiver?: Source.Receiver;

@@ -476,2 +478,22 @@

interface Paypal {
billing_agreement?: string | null;
fingerprint?: string | null;
payer_id?: string | null;
reference_id?: string;
reference_transaction_amount?: string;
reference_transaction_charged?: boolean;
statement_descriptor?: string | null;
transaction_id?: string;
verified_email?: string | null;
}
interface Receiver {

@@ -726,2 +748,3 @@ /**

| 'p24'
| 'paypal'
| 'sepa_credit_transfer'

@@ -728,0 +751,0 @@ | 'sepa_debit'

@@ -101,2 +101,7 @@ // File generated from our OpenAPI spec

tax_rates: Array<Stripe.TaxRate> | null;
/**
* Options that configure the trial on the subscription item.
*/
trial?: SubscriptionItem.Trial | null;
}

@@ -111,4 +116,20 @@

}
interface Trial {
/**
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
*/
converts_to?: Array<string> | null;
/**
* Determines the type of trial for this item.
*/
type: Trial.Type;
}
namespace Trial {
type Type = 'free' | 'paid';
}
}
}
}

@@ -80,2 +80,7 @@ // File generated from our OpenAPI spec

tax_rates?: Stripe.Emptyable<Array<string>>;
/**
* Options that configure the trial on the subscription item.
*/
trial?: SubscriptionItemCreateParams.Trial;
}

@@ -103,2 +108,7 @@

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
/**
* ID of the promotion code to create a new discount for.

@@ -109,2 +119,41 @@ */

namespace Discount {
interface DiscountEnd {
/**
* Time span for the redeemed discount.
*/
duration?: DiscountEnd.Duration;
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;
/**
* The type of calculation made to determine when the discount ends.
*/
type: DiscountEnd.Type;
}
namespace DiscountEnd {
interface Duration {
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: Duration.Interval;
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
interval_count: number;
}
namespace Duration {
type Interval = 'day' | 'month' | 'week' | 'year';
}
type Type = 'duration' | 'timestamp';
}
}
type PaymentBehavior =

@@ -169,2 +218,18 @@ | 'allow_incomplete'

type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
interface Trial {
/**
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
*/
converts_to?: Array<string>;
/**
* Determines the type of trial for this item.
*/
type: Trial.Type;
}
namespace Trial {
type Type = 'free' | 'paid';
}
}

@@ -276,2 +341,7 @@

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd;
/**
* ID of the promotion code to create a new discount for.

@@ -282,2 +352,41 @@ */

namespace Discount {
interface DiscountEnd {
/**
* Time span for the redeemed discount.
*/
duration?: DiscountEnd.Duration;
/**
* A precise Unix timestamp for the discount to end. Must be in the future.
*/
timestamp?: number;
/**
* The type of calculation made to determine when the discount ends.
*/
type: DiscountEnd.Type;
}
namespace DiscountEnd {
interface Duration {
/**
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
*/
interval: Duration.Interval;
/**
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
*/
interval_count: number;
}
namespace Duration {
type Interval = 'day' | 'month' | 'week' | 'year';
}
type Type = 'duration' | 'timestamp';
}
}
type PaymentBehavior =

@@ -284,0 +393,0 @@ | 'allow_incomplete'

@@ -150,2 +150,7 @@ // File generated from our OpenAPI spec

/**
* Details of the most recent price migration that failed for the subscription.
*/
last_price_migration_error?: Subscription.LastPriceMigrationError | null;
/**
* The most recent invoice this subscription has generated.

@@ -201,2 +206,7 @@ */

/**
* Time period and invoice for a Subscription billed in advance.
*/
prebilling?: Subscription.Prebilling | null;
/**
* The schedule attached to the subscription

@@ -387,2 +397,33 @@ */

interface LastPriceMigrationError {
/**
* The time at which the price migration encountered an error.
*/
errored_at: number;
/**
* The involved price pairs in each failed transition.
*/
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
/**
* The type of error encountered by the price migration.
*/
type: 'price_uniqueness_violation';
}
namespace LastPriceMigrationError {
interface FailedTransition {
/**
* The original price to be migrated.
*/
source_price: string;
/**
* The intended resulting price of the migration.
*/
target_price: string;
}
}
interface PauseCollection {

@@ -615,2 +656,7 @@ /**

account_subcategories?: Array<Filters.AccountSubcategory>;
/**
* The institution to use to filter for possible accounts to link.
*/
institution?: string;
}

@@ -628,3 +674,7 @@

type Prefetch = 'balances' | 'ownership' | 'transactions';
type Prefetch =
| 'balances'
| 'inferred_balances'
| 'ownership'
| 'transactions';
}

@@ -699,2 +749,7 @@

/**
* The number of iterations of prebilling to apply.
*/
prebilling_iterations?: number | null;
/**
* List of subscription items, each with an attached plan, that will be set if the update is applied.

@@ -715,2 +770,28 @@ */

interface Prebilling {
/**
* ID of the prebilling invoice.
*/
invoice: string | Stripe.Invoice;
/**
* The end of the last period for which the invoice pre-bills.
*/
period_end: number;
/**
* The start of the first period for which the invoice pre-bills.
*/
period_start: number;
/**
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
*/
update_behavior?: Prebilling.UpdateBehavior;
}
namespace Prebilling {
type UpdateBehavior = 'prebill' | 'reset';
}
type Status =

@@ -717,0 +798,0 @@ | 'active'

@@ -31,2 +31,7 @@ // File generated from our OpenAPI spec

/**
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
*/
billing_behavior?: SubscriptionSchedule.BillingBehavior;
/**
* Time at which the subscription schedule was canceled. Measured in seconds since the Unix epoch.

@@ -64,2 +69,7 @@ */

/**
* Details of the most recent price migration that failed for the subscription schedule.
*/
last_price_migration_error?: SubscriptionSchedule.LastPriceMigrationError | null;
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.

@@ -80,2 +90,7 @@ */

/**
* Time period and invoice for a Subscription billed in advance.
*/
prebilling?: SubscriptionSchedule.Prebilling | null;
/**
* Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.

@@ -107,2 +122,4 @@ */

namespace SubscriptionSchedule {
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
interface CurrentPhase {

@@ -262,2 +279,33 @@ /**

interface LastPriceMigrationError {
/**
* The time at which the price migration encountered an error.
*/
errored_at: number;
/**
* The involved price pairs in each failed transition.
*/
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
/**
* The type of error encountered by the price migration.
*/
type: 'price_uniqueness_violation';
}
namespace LastPriceMigrationError {
interface FailedTransition {
/**
* The original price to be migrated.
*/
source_price: string;
/**
* The intended resulting price of the migration.
*/
target_price: string;
}
}
interface Phase {

@@ -347,2 +395,7 @@ /**

/**
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://stripe.com/billing/subscriptions/pause-payment).
*/
pause_collection?: Phase.PauseCollection | null;
/**
* If the subscription schedule will prorate when transitioning to this phase. Possible values are `create_prorations` and `none`.

@@ -363,5 +416,15 @@ */

/**
* Specify behavior of the trial when crossing schedule phase boundaries
*/
trial_continuation?: Phase.TrialContinuation | null;
/**
* When the trial ends within the phase.
*/
trial_end: number | null;
/**
* Settings related to any trials on the subscription during this phase.
*/
trial_settings?: Phase.TrialSettings | null;
}

@@ -405,2 +468,7 @@

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd | null;
/**
* ID of the promotion code to create a new discount for.

@@ -410,2 +478,16 @@ */

}
namespace Discount {
interface DiscountEnd {
/**
* The discount end timestamp.
*/
timestamp: number | null;
/**
* The discount end type.
*/
type: 'timestamp';
}
}
}

@@ -471,2 +553,7 @@

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd | null;
/**
* ID of the promotion code to create a new discount for.

@@ -477,2 +564,16 @@ */

namespace Discount {
interface DiscountEnd {
/**
* The discount end timestamp.
*/
timestamp: number | null;
/**
* The discount end type.
*/
type: 'timestamp';
}
}
interface InvoiceSettings {

@@ -550,2 +651,7 @@ /**

tax_rates?: Array<Stripe.TaxRate> | null;
/**
* Options that configure the trial on the subscription item.
*/
trial?: Item.Trial | null;
}

@@ -573,2 +679,7 @@

/**
* Details to determine how long the discount should be applied for.
*/
discount_end?: Discount.DiscountEnd | null;
/**
* ID of the promotion code to create a new discount for.

@@ -578,4 +689,45 @@ */

}
namespace Discount {
interface DiscountEnd {
/**
* The discount end timestamp.
*/
timestamp: number | null;
/**
* The discount end type.
*/
type: 'timestamp';
}
}
interface Trial {
/**
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
*/
converts_to?: Array<string> | null;
/**
* Determines the type of trial for this item.
*/
type: Trial.Type;
}
namespace Trial {
type Type = 'free' | 'paid';
}
}
interface PauseCollection {
/**
* The payment collection behavior for this subscription while paused. One of `keep_as_draft`, `mark_uncollectible`, or `void`.
*/
behavior: PauseCollection.Behavior;
}
namespace PauseCollection {
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
}
type ProrationBehavior =

@@ -597,4 +749,52 @@ | 'always_invoice'

}
type TrialContinuation = 'continue' | 'none';
interface TrialSettings {
/**
* Defines how the subscription should behave when a trial ends.
*/
end_behavior: TrialSettings.EndBehavior | null;
}
namespace TrialSettings {
interface EndBehavior {
/**
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
*/
prorate_up_front: EndBehavior.ProrateUpFront | null;
}
namespace EndBehavior {
type ProrateUpFront = 'defer' | 'include';
}
}
}
interface Prebilling {
/**
* ID of the prebilling invoice.
*/
invoice: string | Stripe.Invoice;
/**
* The end of the last period for which the invoice pre-bills.
*/
period_end: number;
/**
* The start of the first period for which the invoice pre-bills.
*/
period_start: number;
/**
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
*/
update_behavior?: Prebilling.UpdateBehavior;
}
namespace Prebilling {
type UpdateBehavior = 'prebill' | 'reset';
}
type Status =

@@ -601,0 +801,0 @@ | 'active'

@@ -101,2 +101,17 @@ // File generated from our OpenAPI spec

/**
* Represents a reader action to collect customer inputs
*/
collect_inputs?: Action.CollectInputs;
/**
* Represents a reader action to collect a payment method
*/
collect_payment_method?: Action.CollectPaymentMethod;
/**
* Represents a reader action to confirm a payment
*/
confirm_payment_intent?: Action.ConfirmPaymentIntent;
/**
* Failure code, only set if status is `failed`.

@@ -143,2 +158,258 @@ */

namespace Action {
interface CollectInputs {
/**
* List of inputs to be collected.
*/
inputs: Array<CollectInputs.Input>;
/**
* 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.
*/
metadata: Stripe.Metadata | null;
}
namespace CollectInputs {
interface Input {
/**
* Default text of input being collected.
*/
custom_text: Input.CustomText | null;
/**
* Information about a email being collected using a reader
*/
email?: Input.Email;
/**
* Information about a number being collected using a reader
*/
numeric?: Input.Numeric;
/**
* Information about a phone number being collected using a reader
*/
phone?: Input.Phone;
/**
* Indicate that this input is required, disabling the skip button.
*/
required: boolean | null;
/**
* Information about a selection being collected using a reader
*/
selection?: Input.Selection;
/**
* Information about a signature being collected using a reader
*/
signature?: Input.Signature;
/**
* Indicate that this input was skipped by the user.
*/
skipped?: boolean;
/**
* Information about text being collected using a reader
*/
text?: Input.Text;
/**
* List of toggles being collected. Values are present if collection is complete.
*/
toggles: Array<Input.Toggle> | null;
/**
* Type of input being collected.
*/
type: Input.Type;
}
namespace Input {
interface CustomText {
/**
* Customize the default description for this input
*/
description: string | null;
/**
* Customize the default label for this input's skip button
*/
skip_button: string | null;
/**
* Customize the default label for this input's submit button
*/
submit_button: string | null;
/**
* Customize the default title for this input
*/
title: string | null;
}
interface Email {
/**
* The collected email address
*/
value: string | null;
}
interface Numeric {
/**
* The collected number
*/
value: string | null;
}
interface Phone {
/**
* The collected phone number
*/
value: string | null;
}
interface Selection {
/**
* List of possible choices to be selected
*/
choices: Array<Selection.Choice>;
/**
* The value of the selected choice
*/
value: string | null;
}
namespace Selection {
interface Choice {
/**
* The button style for the choice
*/
style: Choice.Style | null;
/**
* A value to be selected
*/
value: string;
}
namespace Choice {
type Style = 'primary' | 'secondary';
}
}
interface Signature {
/**
* The File ID of a collected signature image
*/
value: string | null;
}
interface Text {
/**
* The collected text value
*/
value: string | null;
}
interface Toggle {
/**
* The toggle's default value
*/
default_value: Toggle.DefaultValue | null;
/**
* The toggle's description text
*/
description: string | null;
/**
* The toggle's title text
*/
title: string | null;
/**
* The toggle's collected value
*/
value: Toggle.Value | null;
}
namespace Toggle {
type DefaultValue = 'disabled' | 'enabled';
type Value = 'disabled' | 'enabled';
}
type Type =
| 'email'
| 'numeric'
| 'phone'
| 'selection'
| 'signature'
| 'text';
}
}
interface CollectPaymentMethod {
/**
* Represents a per-transaction override of a reader configuration
*/
collect_config?: CollectPaymentMethod.CollectConfig;
/**
* Most recent PaymentIntent processed by the reader.
*/
payment_intent: string | Stripe.PaymentIntent;
/**
* PaymentMethod objects represent your customer's payment instruments.
* You can use them with [PaymentIntents](https://stripe.com/docs/payments/payment-intents) to collect payments or save them to
* Customer objects to store instrument details for future payments.
*
* Related guides: [Payment Methods](https://stripe.com/docs/payments/payment-methods) and [More Payment Scenarios](https://stripe.com/docs/payments/more-payment-scenarios).
*/
payment_method?: Stripe.PaymentMethod;
stripe_account?: string;
}
namespace CollectPaymentMethod {
interface CollectConfig {
/**
* Enable customer initiated cancellation when processing this payment.
*/
enable_customer_cancellation?: boolean;
/**
* Override showing a tipping selection screen on this transaction.
*/
skip_tipping?: boolean;
/**
* Represents a per-transaction tipping configuration
*/
tipping?: CollectConfig.Tipping;
}
namespace CollectConfig {
interface Tipping {
/**
* Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
*/
amount_eligible?: number;
}
}
}
interface ConfirmPaymentIntent {
/**
* Most recent PaymentIntent processed by the reader.
*/
payment_intent: string | Stripe.PaymentIntent;
stripe_account?: string;
}
interface ProcessPaymentIntent {

@@ -154,2 +425,4 @@ /**

process_config?: ProcessPaymentIntent.ProcessConfig;
stripe_account?: string;
}

@@ -256,2 +529,4 @@

reverse_transfer?: boolean;
stripe_account?: string;
}

@@ -328,2 +603,5 @@

type Type =
| 'collect_inputs'
| 'collect_payment_method'
| 'confirm_payment_intent'
| 'process_payment_intent'

@@ -330,0 +608,0 @@ | 'process_setup_intent'

@@ -107,2 +107,183 @@ // File generated from our OpenAPI spec

interface ReaderCollectInputsParams {
/**
* List of inputs to be collected using the Reader
*/
inputs: Array<ReaderCollectInputsParams.Input>;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
/**
* 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
*/
metadata?: Stripe.MetadataParam;
}
namespace ReaderCollectInputsParams {
interface Input {
/**
* Customize the text which will be displayed while collecting this input
*/
custom_text: Input.CustomText;
/**
* Indicate that this input is required, disabling the skip button
*/
required?: boolean;
/**
* Options for the `selection` input
*/
selection?: Input.Selection;
/**
* List of toggles to be displayed and customization for the toggles
*/
toggles?: Array<Input.Toggle>;
/**
* The type of input to collect
*/
type: Input.Type;
}
namespace Input {
interface CustomText {
/**
* The description which will be displayed when collecting this input
*/
description?: string;
/**
* The skip button text
*/
skip_button?: string;
/**
* The submit button text
*/
submit_button?: string;
/**
* The title which will be displayed when collecting this input
*/
title: string;
}
interface Selection {
/**
* List of choices for the `selection` input
*/
choices: Array<Selection.Choice>;
}
namespace Selection {
interface Choice {
/**
* The style of the button which will be shown for this choice
*/
style?: Choice.Style;
/**
* The text which will be shown on the button for this choice
*/
value: string;
}
namespace Choice {
type Style = 'primary' | 'secondary';
}
}
interface Toggle {
/**
* The default value of the toggle
*/
default_value?: Toggle.DefaultValue;
/**
* The description which will be displayed for the toggle
*/
description?: string;
/**
* The title which will be displayed for the toggle
*/
title?: string;
}
namespace Toggle {
type DefaultValue = 'disabled' | 'enabled';
}
type Type =
| 'email'
| 'numeric'
| 'phone'
| 'selection'
| 'signature'
| 'text';
}
}
interface ReaderCollectPaymentMethodParams {
/**
* PaymentIntent ID
*/
payment_intent: string;
/**
* Configuration overrides
*/
collect_config?: ReaderCollectPaymentMethodParams.CollectConfig;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
namespace ReaderCollectPaymentMethodParams {
interface CollectConfig {
/**
* Enables cancel button on transaction screens.
*/
enable_customer_cancellation?: boolean;
/**
* Override showing a tipping selection screen on this transaction.
*/
skip_tipping?: boolean;
/**
* Tipping configuration for this transaction.
*/
tipping?: CollectConfig.Tipping;
}
namespace CollectConfig {
interface Tipping {
/**
* Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency).
*/
amount_eligible?: number;
}
}
}
interface ReaderConfirmPaymentIntentParams {
/**
* PaymentIntent ID
*/
payment_intent: string;
/**
* Specifies which fields in the response should be expanded.
*/
expand?: Array<string>;
}
interface ReaderProcessPaymentIntentParams {

@@ -374,2 +555,29 @@ /**

/**
* Initiates an input collection flow on a Reader.
*/
collectInputs(
id: string,
params: ReaderCollectInputsParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
/**
* Initiates a payment flow on a Reader and updates the PaymentIntent with card details before manual confirmation.
*/
collectPaymentMethod(
id: string,
params: ReaderCollectPaymentMethodParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
/**
* Finalizes a payment on a Reader.
*/
confirmPaymentIntent(
id: string,
params: ReaderConfirmPaymentIntentParams,
options?: RequestOptions
): Promise<Stripe.Response<Stripe.Terminal.Reader>>;
/**
* Initiates a payment flow on a Reader.

@@ -376,0 +584,0 @@ */

@@ -193,2 +193,7 @@ // File generated from our OpenAPI spec

/**
* If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
*/
payto?: PaymentMethodData.Payto;
/**
* If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.

@@ -209,2 +214,7 @@ */

/**
* If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
*/
rechnung?: PaymentMethodData.Rechnung;
/**
* If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.

@@ -533,2 +543,19 @@ */

interface Payto {
/**
* The account number for the bank account.
*/
account_number?: string;
/**
* Bank-State-Branch number of the bank account.
*/
bsb_number?: string;
/**
* The PayID alias for the bank account.
*/
pay_id?: string;
}
interface Pix {}

@@ -545,2 +572,28 @@

interface Rechnung {
/**
* Customer's date of birth
*/
dob: Rechnung.Dob;
}
namespace Rechnung {
interface Dob {
/**
* The day of birth, between 1 and 31.
*/
day: number;
/**
* The month of birth, between 1 and 12.
*/
month: number;
/**
* The four-digit year of birth.
*/
year: number;
}
}
interface RevolutPay {}

@@ -597,4 +650,6 @@

| 'paypal'
| 'payto'
| 'pix'
| 'promptpay'
| 'rechnung'
| 'revolut_pay'

@@ -601,0 +656,0 @@ | 'sepa_debit'

@@ -42,2 +42,7 @@ // File generated from our OpenAPI spec

initiating_payment_method_details?: ReceivedCreditCreateParams.InitiatingPaymentMethodDetails;
/**
* Details about the network used for the ReceivedCredit.
*/
network_details?: ReceivedCreditCreateParams.NetworkDetails;
}

@@ -78,2 +83,23 @@

type Network = 'ach' | 'us_domestic_wire';
interface NetworkDetails {
/**
* Optional fields for `ach`.
*/
ach?: NetworkDetails.Ach;
/**
* The type of flow that originated the ReceivedCredit.
*/
type: 'ach';
}
namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda?: string;
}
}
}

@@ -80,0 +106,0 @@ }

@@ -42,2 +42,7 @@ // File generated from our OpenAPI spec

initiating_payment_method_details?: ReceivedDebitCreateParams.InitiatingPaymentMethodDetails;
/**
* Details about the network used for the ReceivedDebit.
*/
network_details?: ReceivedDebitCreateParams.NetworkDetails;
}

@@ -76,2 +81,23 @@

}
interface NetworkDetails {
/**
* Optional fields for `ach`.
*/
ach?: NetworkDetails.Ach;
/**
* The type of flow that originated the ReceivedDebit.
*/
type: 'ach';
}
namespace NetworkDetails {
interface Ach {
/**
* Addenda record data associated with this ReceivedDebit.
*/
addenda?: string;
}
}
}

@@ -78,0 +104,0 @@ }

@@ -42,2 +42,7 @@ // File generated from our OpenAPI spec

/**
* The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
*/
display_name?: string | null;
/**
* Encodes whether a FinancialAccount has access to a particular Feature, with a `status` enum and associated `status_details`.

@@ -44,0 +49,0 @@ * Stripe or the platform can control Features via the requested field.

@@ -13,2 +13,7 @@ // File generated from our OpenAPI spec

/**
* The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
*/
display_name?: Stripe.Emptyable<string>;
/**
* Specifies which fields in the response should be expanded.

@@ -211,2 +216,7 @@ */

/**
* The display name for the FinancialAccount. Use this field to customize the names of the FinancialAccounts for your connected accounts. Unlike the `nickname` field, `display_name` is not internal metadata and will be exposed to connected accounts.
*/
display_name?: Stripe.Emptyable<string>;
/**
* Specifies which fields in the response should be expanded.

@@ -213,0 +223,0 @@ */

@@ -80,2 +80,7 @@ // File generated from our OpenAPI spec

/**
* Details about the network used for the OutboundTransfer.
*/
network_details?: OutboundTransfer.NetworkDetails | null;
/**
* Details about a returned OutboundTransfer. Only set when the status is `returned`.

@@ -186,2 +191,23 @@ */

interface NetworkDetails {
/**
* Details about an ACH transaction.
*/
ach?: NetworkDetails.Ach | null;
/**
* The type of flow that originated the OutboundTransfer.
*/
type: 'ach';
}
namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda: string | null;
}
}
interface ReturnedDetails {

@@ -188,0 +214,0 @@ /**

@@ -48,2 +48,7 @@ // File generated from our OpenAPI spec

/**
* Details about the network used for the OutboundTransfer.
*/
network_details?: OutboundTransferCreateParams.NetworkDetails;
/**
* Statement descriptor to be shown on the receiving end of an OutboundTransfer. Maximum 10 characters for `ach` transfers or 140 characters for `us_domestic_wire` transfers. The default value is "transfer".

@@ -76,2 +81,23 @@ */

}
interface NetworkDetails {
/**
* Optional fields for `ach`.
*/
ach?: NetworkDetails.Ach;
/**
* The type of flow that originated the OutboundTransfer.
*/
type: 'ach';
}
namespace NetworkDetails {
interface Ach {
/**
* Addenda record data associated with this OutboundTransfer.
*/
addenda?: string;
}
}
}

@@ -78,0 +104,0 @@

@@ -70,2 +70,7 @@ // File generated from our OpenAPI spec

/**
* Details specific to the money movement rails.
*/
network_details?: ReceivedCredit.NetworkDetails | null;
/**
* Details describing when a ReceivedCredit may be reversed.

@@ -239,2 +244,23 @@ */

interface NetworkDetails {
/**
* Details about an ACH transaction.
*/
ach?: NetworkDetails.Ach | null;
/**
* The type of flow that originated the ReceivedCredit.
*/
type: 'ach';
}
namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda: string | null;
}
}
interface ReversalDetails {

@@ -241,0 +267,0 @@ /**

@@ -70,2 +70,7 @@ // File generated from our OpenAPI spec

/**
* Details specific to the money movement rails.
*/
network_details?: ReceivedDebit.NetworkDetails | null;
/**
* Details describing when a ReceivedDebit might be reversed.

@@ -193,2 +198,7 @@ */

payout: string | null;
/**
* The ReceivedCredit that Capital withheld from
*/
received_credit_capital_withholding?: string | null;
}

@@ -198,2 +208,23 @@

interface NetworkDetails {
/**
* Details about an ACH transaction.
*/
ach?: NetworkDetails.Ach | null;
/**
* The type of flow that originated the ReceivedDebit.
*/
type: 'ach';
}
namespace NetworkDetails {
interface Ach {
/**
* ACH Addenda record
*/
addenda: string | null;
}
}
interface ReversalDetails {

@@ -200,0 +231,0 @@ /**

@@ -155,2 +155,4 @@ // File generated from our OpenAPI spec

| 'account.updated'
| 'account_notice.created'
| 'account_notice.updated'
| 'application_fee.created'

@@ -165,2 +167,11 @@ | 'application_fee.refund.updated'

| 'capability.updated'
| 'capital.financing_offer.accepted'
| 'capital.financing_offer.canceled'
| 'capital.financing_offer.created'
| 'capital.financing_offer.expired'
| 'capital.financing_offer.fully_repaid'
| 'capital.financing_offer.paid_out'
| 'capital.financing_offer.rejected'
| 'capital.financing_offer.replacement_created'
| 'capital.financing_transaction.created'
| 'cash_balance.funds_available'

@@ -206,3 +217,6 @@ | 'charge.captured'

| 'customer.source.updated'
| 'customer.subscription.collection_paused'
| 'customer.subscription.collection_resumed'
| 'customer.subscription.created'
| 'customer.subscription.custom_event'
| 'customer.subscription.deleted'

@@ -212,2 +226,3 @@ | 'customer.subscription.paused'

| 'customer.subscription.pending_update_expired'
| 'customer.subscription.price_migration_failed'
| 'customer.subscription.resumed'

@@ -228,4 +243,6 @@ | 'customer.subscription.trial_will_end'

| 'financial_connections.account.refreshed_balance'
| 'financial_connections.account.refreshed_inferred_balances'
| 'financial_connections.account.refreshed_ownership'
| 'financial_connections.account.refreshed_transactions'
| 'financial_connections.session.updated'
| 'identity.verification_session.canceled'

@@ -244,2 +261,3 @@ | 'identity.verification_session.created'

| 'invoice.paid'
| 'invoice.payment.overpaid'
| 'invoice.payment_action_required'

@@ -311,6 +329,12 @@ | 'invoice.payment_failed'

| 'promotion_code.updated'
| 'quote.accept_failed'
| 'quote.accepted'
| 'quote.accepting'
| 'quote.canceled'
| 'quote.created'
| 'quote.draft'
| 'quote.finalized'
| 'quote.reestimate_failed'
| 'quote.reestimated'
| 'quote.stale'
| 'radar.early_fraud_warning.created'

@@ -343,4 +367,6 @@ | 'radar.early_fraud_warning.updated'

| 'subscription_schedule.expiring'
| 'subscription_schedule.price_migration_failed'
| 'subscription_schedule.released'
| 'subscription_schedule.updated'
| 'tax.form.updated'
| 'tax.settings.updated'

@@ -351,2 +377,3 @@ | 'tax_rate.created'

| 'terminal.reader.action_succeeded'
| 'terminal.reader.action_updated'
| 'test_helpers.test_clock.advancing'

@@ -445,2 +472,4 @@ | 'test_helpers.test_clock.created'

| 'account.updated'
| 'account_notice.created'
| 'account_notice.updated'
| 'application_fee.created'

@@ -455,2 +484,11 @@ | 'application_fee.refund.updated'

| 'capability.updated'
| 'capital.financing_offer.accepted'
| 'capital.financing_offer.canceled'
| 'capital.financing_offer.created'
| 'capital.financing_offer.expired'
| 'capital.financing_offer.fully_repaid'
| 'capital.financing_offer.paid_out'
| 'capital.financing_offer.rejected'
| 'capital.financing_offer.replacement_created'
| 'capital.financing_transaction.created'
| 'cash_balance.funds_available'

@@ -496,3 +534,6 @@ | 'charge.captured'

| 'customer.source.updated'
| 'customer.subscription.collection_paused'
| 'customer.subscription.collection_resumed'
| 'customer.subscription.created'
| 'customer.subscription.custom_event'
| 'customer.subscription.deleted'

@@ -502,2 +543,3 @@ | 'customer.subscription.paused'

| 'customer.subscription.pending_update_expired'
| 'customer.subscription.price_migration_failed'
| 'customer.subscription.resumed'

@@ -518,4 +560,6 @@ | 'customer.subscription.trial_will_end'

| 'financial_connections.account.refreshed_balance'
| 'financial_connections.account.refreshed_inferred_balances'
| 'financial_connections.account.refreshed_ownership'
| 'financial_connections.account.refreshed_transactions'
| 'financial_connections.session.updated'
| 'identity.verification_session.canceled'

@@ -534,2 +578,3 @@ | 'identity.verification_session.created'

| 'invoice.paid'
| 'invoice.payment.overpaid'
| 'invoice.payment_action_required'

@@ -601,6 +646,12 @@ | 'invoice.payment_failed'

| 'promotion_code.updated'
| 'quote.accept_failed'
| 'quote.accepted'
| 'quote.accepting'
| 'quote.canceled'
| 'quote.created'
| 'quote.draft'
| 'quote.finalized'
| 'quote.reestimate_failed'
| 'quote.reestimated'
| 'quote.stale'
| 'radar.early_fraud_warning.created'

@@ -633,4 +684,6 @@ | 'radar.early_fraud_warning.updated'

| 'subscription_schedule.expiring'
| 'subscription_schedule.price_migration_failed'
| 'subscription_schedule.released'
| 'subscription_schedule.updated'
| 'tax.form.updated'
| 'tax.settings.updated'

@@ -641,2 +694,3 @@ | 'tax_rate.created'

| 'terminal.reader.action_succeeded'
| 'terminal.reader.action_updated'
| 'test_helpers.test_clock.advancing'

@@ -643,0 +697,0 @@ | 'test_helpers.test_clock.created'

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc