From 6d3cef22578ebbd814eacf3be62f3fb3b26dc874 Mon Sep 17 00:00:00 2001 From: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> Date: Wed, 25 Sep 2024 10:15:17 -0400 Subject: [PATCH 01/27] Add raw_request (#2185) --- README.md | 34 +++++++ src/RequestSender.ts | 79 +++++++++++++++- src/Types.d.ts | 14 ++- src/stripe.core.ts | 17 +++- src/utils.ts | 14 ++- test/stripe.spec.ts | 210 +++++++++++++++++++++++++++++++++++++++++++ types/index.d.ts | 19 ++++ types/lib.d.ts | 7 ++ 8 files changed, 387 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 5adfcd7f5a..2300d84ba8 100644 --- a/README.md +++ b/README.md @@ -517,6 +517,40 @@ const stripe = new Stripe('sk_test_...', { }); ``` +### 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 StripeClient object. + +```javascript +const client = new Stripe('sk_test_...'); + +client.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 New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates. diff --git a/src/RequestSender.ts b/src/RequestSender.ts index d69c3c0b87..b79a5ae1cf 100644 --- a/src/RequestSender.ts +++ b/src/RequestSender.ts @@ -11,6 +11,8 @@ import { normalizeHeaders, removeNullish, stringifyRequestData, + getDataFromArgs, + getOptionsFromArgs, } from './utils.js'; import {HttpClient, HttpClientResponseInterface} from './net/HttpClient.js'; import { @@ -24,6 +26,8 @@ import { RequestData, RequestOptions, RequestDataProcessor, + RequestOpts, + RequestArgs, } from './Types.js'; export type HttpClientResponseError = {code: string}; @@ -422,11 +426,84 @@ export class RequestSender { } } + _rawRequest( + method: string, + path: string, + params?: RequestData, + options?: RequestOptions + ): Promise { + const requestPromise = new Promise((resolve, reject) => { + let opts: RequestOpts; + 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: RequestArgs = [].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 headers = calculatedOptions.headers; + + opts = { + requestMethod, + requestPath: path, + bodyData: data, + queryData: {}, + auth: calculatedOptions.auth, + headers, + host: null, + streaming: false, + settings: {}, + usage: ['raw_request'], + }; + } catch (err) { + reject(err); + return; + } + + function requestCallback( + err: any, + response: HttpClientResponseInterface + ): void { + 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}, + opts.usage, + requestCallback + ); + }); + + return requestPromise; + } + _request( method: string, host: string | null, path: string, - data: RequestData, + data: RequestData | null, auth: string | null, options: RequestOptions = {}, usage: Array = [], diff --git a/src/Types.d.ts b/src/Types.d.ts index 6bb97a4ff1..7f276a7747 100644 --- a/src/Types.d.ts +++ b/src/Types.d.ts @@ -149,8 +149,20 @@ export type StripeObject = { _getPropsFromConfig: (config: Record) => UserProvidedConfig; _clientId?: string; _platformFunctions: PlatformFunctions; + rawRequest: ( + method: string, + path: string, + data: RequestData, + options: RequestOptions + ) => Promise; }; export type RequestSender = { + _rawRequest( + method: string, + path: string, + params?: RequestData, + options?: RequestOptions + ): Promise; _request( method: string, host: string | null, @@ -211,7 +223,7 @@ export type StripeResourceObject = { }; export type RequestDataProcessor = ( method: string, - data: RequestData, + data: RequestData | null, headers: RequestHeaders | undefined, prepareAndMakeRequest: (error: Error | null, data: string) => void ) => void; diff --git a/src/stripe.core.ts b/src/stripe.core.ts index b777ce7cdb..3bce9f4549 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -1,7 +1,13 @@ import * as _Error from './Error.js'; import {RequestSender} from './RequestSender.js'; import {StripeResource} from './StripeResource.js'; -import {AppInfo, StripeObject, UserProvidedConfig} from './Types.js'; +import { + AppInfo, + StripeObject, + RequestData, + RequestOptions, + UserProvidedConfig, +} from './Types.js'; import {WebhookObject, createWebhooks} from './Webhooks.js'; import * as apiVersion from './apiVersion.js'; import {CryptoProvider} from './crypto/CryptoProvider.js'; @@ -208,6 +214,15 @@ export function createStripe( _requestSender: null!, _platformFunctions: null!, + rawRequest( + method: string, + path: string, + params?: RequestData, + options?: RequestOptions + ): Promise { + return this._requestSender._rawRequest(method, path, params, options); + }, + /** * @private */ diff --git a/src/utils.ts b/src/utils.ts index 005256d56e..25b7fc6db8 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -16,6 +16,7 @@ const OPTIONS_KEYS = [ 'maxNetworkRetries', 'timeout', 'host', + 'additionalHeaders', ]; type Settings = { @@ -28,7 +29,7 @@ type Options = { host: string | null; settings: Settings; streaming?: boolean; - headers: Record; + headers: RequestHeaders; }; export function isOptionsHash(o: unknown): boolean | unknown { @@ -158,13 +159,13 @@ export function getOptionsFromArgs(args: RequestArgs): Options { opts.auth = params.apiKey as string; } if (params.idempotencyKey) { - opts.headers['Idempotency-Key'] = params.idempotencyKey; + opts.headers['Idempotency-Key'] = params.idempotencyKey as string; } if (params.stripeAccount) { - opts.headers['Stripe-Account'] = params.stripeAccount; + opts.headers['Stripe-Account'] = params.stripeAccount as string; } if (params.apiVersion) { - opts.headers['Stripe-Version'] = params.apiVersion; + opts.headers['Stripe-Version'] = params.apiVersion as string; } if (Number.isInteger(params.maxNetworkRetries)) { opts.settings.maxNetworkRetries = params.maxNetworkRetries as number; @@ -175,6 +176,11 @@ export function getOptionsFromArgs(args: RequestArgs): Options { if (params.host) { opts.host = params.host as string; } + if (params.additionalHeaders) { + opts.headers = params.additionalHeaders as { + [headerName: string]: string; + }; + } } } return opts; diff --git a/test/stripe.spec.ts b/test/stripe.spec.ts index 79d702bf92..5c12f64a8c 100644 --- a/test/stripe.spec.ts +++ b/test/stripe.spec.ts @@ -584,4 +584,214 @@ describe('Stripe Module', function() { expect(newStripe.VERSION).to.equal(Stripe.PACKAGE_VERSION); }); }); + + describe('rawRequest', () => { + const returnedCustomer = { + id: 'cus_123', + }; + + it('should make request with specified encoding FORM', (done) => { + return getTestServerStripe( + {}, + (req, res) => { + expect(req.headers['content-type']).to.equal( + 'application/x-www-form-urlencoded' + ); + expect(req.headers['stripe-version']).to.equal(ApiVersion); + const requestBody = []; + req.on('data', (chunks) => { + requestBody.push(chunks); + }); + req.on('end', () => { + const body = Buffer.concat(requestBody).toString(); + expect(body).to.equal('description=test%20customer'); + }); + res.write(JSON.stringify(returnedCustomer)); + res.end(); + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + const result = await stripe.rawRequest( + 'POST', + '/v1/customers', + {description: 'test customer'}, + {} + ); + expect(result).to.deep.equal(returnedCustomer); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + // Uncomment this after merging v2 infra changes + // it('should make request with specified encoding JSON', (done) => { + // return getTestServerStripe( + // {}, + // (req, res) => { + // expect(req.headers['content-type']).to.equal('application/json'); + // expect(req.headers['stripe-version']).to.equal(PreviewVersion); + // expect(req.headers.foo).to.equal('bar'); + // const requestBody = []; + // req.on('data', (chunks) => { + // requestBody.push(chunks); + // }); + // req.on('end', () => { + // const body = Buffer.concat(requestBody).toString(); + // expect(body).to.equal( + // '{"description":"test customer","created":"1234567890"}' + // ); + // }); + // res.write(JSON.stringify(returnedCustomer)); + // res.end(); + // }, + // async (err, stripe, closeServer) => { + // if (err) return done(err); + // try { + // const result = await stripe.rawRequest( + // 'POST', + // '/v1/customers', + // { + // description: 'test customer', + // created: new Date('2009-02-13T23:31:30Z'), + // }, + // {additionalHeaders: {foo: 'bar'}} + // ); + // expect(result).to.deep.equal(returnedCustomer); + // closeServer(); + // done(); + // } catch (err) { + // return done(err); + // } + // } + // ); + // }); + + it('defaults to form encoding request if not specified', (done) => { + return getTestServerStripe( + {}, + (req, res) => { + expect(req.headers['content-type']).to.equal( + 'application/x-www-form-urlencoded' + ); + const requestBody = []; + req.on('data', (chunks) => { + requestBody.push(chunks); + }); + req.on('end', () => { + const body = Buffer.concat(requestBody).toString(); + expect(body).to.equal( + 'description=test%20customer&created=1234567890' + ); + }); + res.write(JSON.stringify(returnedCustomer)); + res.end(); + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + const result = await stripe.rawRequest('POST', '/v1/customers', { + description: 'test customer', + created: new Date('2009-02-13T23:31:30Z'), + }); + expect(result).to.deep.equal(returnedCustomer); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('should make request with specified additional headers', (done) => { + return getTestServerStripe( + {}, + (req, res) => { + console.log(req.headers); + expect(req.headers.foo).to.equal('bar'); + res.write(JSON.stringify(returnedCustomer)); + res.end(); + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + const result = await stripe.rawRequest( + 'GET', + '/v1/customers/cus_123', + {}, + {additionalHeaders: {foo: 'bar'}} + ); + expect(result).to.deep.equal(returnedCustomer); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('should make request successfully', async () => { + const response = await stripe.rawRequest('GET', '/v1/customers', {}); + + expect(response).to.have.property('object', 'list'); + }); + + it("should include 'raw_request' in usage telemetry", (done) => { + let telemetryHeader; + let shouldStayOpen = true; + return getTestServerStripe( + {}, + (req, res) => { + telemetryHeader = req.headers['x-stripe-client-telemetry']; + res.setHeader('Request-Id', `req_1`); + res.writeHeader(200); + res.write('{}'); + res.end(); + const ret = {shouldStayOpen}; + shouldStayOpen = false; + return ret; + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + await stripe.rawRequest( + 'POST', + '/v1/customers', + {description: 'test customer'}, + {} + ); + expect(telemetryHeader).to.equal(undefined); + await stripe.rawRequest( + 'POST', + '/v1/customers', + {description: 'test customer'}, + {} + ); + expect( + JSON.parse(telemetryHeader).last_request_metrics.usage + ).to.deep.equal(['raw_request']); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('should throw error when passing in params to non-POST request', async () => { + await expect( + stripe.rawRequest('GET', '/v1/customers/cus_123', {foo: 'bar'}) + ).to.be.rejectedWith( + Error, + /rawRequest only supports params on POST requests. Please pass null and add your parameters to path./ + ); + }); + }); }); diff --git a/types/index.d.ts b/types/index.d.ts index dea69dcf12..fe4eceae6d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -459,6 +459,25 @@ declare module 'stripe' { event: 'response', handler: (event: Stripe.ResponseEvent) => void ): 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>; } export default Stripe; diff --git a/types/lib.d.ts b/types/lib.d.ts index d82037bbf7..7b14993146 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -153,6 +153,13 @@ declare module 'stripe' { host?: string; } + export type RawRequestOptions = RequestOptions & { + /** + * Specify additional request headers. This is an experimental interface and is not yet stable. + */ + additionalHeaders?: {[headerName: string]: string}; + }; + export type Response = T & { lastResponse: { headers: {[key: string]: string}; From 1b5ff059cacd582386dc27012dc0aa8e3657d355 Mon Sep 17 00:00:00 2001 From: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:52:04 -0400 Subject: [PATCH 02/27] Revert "Add raw_request (#2185)" (#2188) This reverts commit 6d3cef22578ebbd814eacf3be62f3fb3b26dc874. --- README.md | 34 ------- src/RequestSender.ts | 79 +--------------- src/Types.d.ts | 14 +-- src/stripe.core.ts | 17 +--- src/utils.ts | 14 +-- test/stripe.spec.ts | 210 ------------------------------------------- types/index.d.ts | 19 ---- types/lib.d.ts | 7 -- 8 files changed, 7 insertions(+), 387 deletions(-) diff --git a/README.md b/README.md index 2300d84ba8..5adfcd7f5a 100644 --- a/README.md +++ b/README.md @@ -517,40 +517,6 @@ const stripe = new Stripe('sk_test_...', { }); ``` -### 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 StripeClient object. - -```javascript -const client = new Stripe('sk_test_...'); - -client.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 New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates. diff --git a/src/RequestSender.ts b/src/RequestSender.ts index b79a5ae1cf..d69c3c0b87 100644 --- a/src/RequestSender.ts +++ b/src/RequestSender.ts @@ -11,8 +11,6 @@ import { normalizeHeaders, removeNullish, stringifyRequestData, - getDataFromArgs, - getOptionsFromArgs, } from './utils.js'; import {HttpClient, HttpClientResponseInterface} from './net/HttpClient.js'; import { @@ -26,8 +24,6 @@ import { RequestData, RequestOptions, RequestDataProcessor, - RequestOpts, - RequestArgs, } from './Types.js'; export type HttpClientResponseError = {code: string}; @@ -426,84 +422,11 @@ export class RequestSender { } } - _rawRequest( - method: string, - path: string, - params?: RequestData, - options?: RequestOptions - ): Promise { - const requestPromise = new Promise((resolve, reject) => { - let opts: RequestOpts; - 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: RequestArgs = [].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 headers = calculatedOptions.headers; - - opts = { - requestMethod, - requestPath: path, - bodyData: data, - queryData: {}, - auth: calculatedOptions.auth, - headers, - host: null, - streaming: false, - settings: {}, - usage: ['raw_request'], - }; - } catch (err) { - reject(err); - return; - } - - function requestCallback( - err: any, - response: HttpClientResponseInterface - ): void { - 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}, - opts.usage, - requestCallback - ); - }); - - return requestPromise; - } - _request( method: string, host: string | null, path: string, - data: RequestData | null, + data: RequestData, auth: string | null, options: RequestOptions = {}, usage: Array = [], diff --git a/src/Types.d.ts b/src/Types.d.ts index 7f276a7747..6bb97a4ff1 100644 --- a/src/Types.d.ts +++ b/src/Types.d.ts @@ -149,20 +149,8 @@ export type StripeObject = { _getPropsFromConfig: (config: Record) => UserProvidedConfig; _clientId?: string; _platformFunctions: PlatformFunctions; - rawRequest: ( - method: string, - path: string, - data: RequestData, - options: RequestOptions - ) => Promise; }; export type RequestSender = { - _rawRequest( - method: string, - path: string, - params?: RequestData, - options?: RequestOptions - ): Promise; _request( method: string, host: string | null, @@ -223,7 +211,7 @@ export type StripeResourceObject = { }; export type RequestDataProcessor = ( method: string, - data: RequestData | null, + data: RequestData, headers: RequestHeaders | undefined, prepareAndMakeRequest: (error: Error | null, data: string) => void ) => void; diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 3bce9f4549..b777ce7cdb 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -1,13 +1,7 @@ import * as _Error from './Error.js'; import {RequestSender} from './RequestSender.js'; import {StripeResource} from './StripeResource.js'; -import { - AppInfo, - StripeObject, - RequestData, - RequestOptions, - UserProvidedConfig, -} from './Types.js'; +import {AppInfo, StripeObject, UserProvidedConfig} from './Types.js'; import {WebhookObject, createWebhooks} from './Webhooks.js'; import * as apiVersion from './apiVersion.js'; import {CryptoProvider} from './crypto/CryptoProvider.js'; @@ -214,15 +208,6 @@ export function createStripe( _requestSender: null!, _platformFunctions: null!, - rawRequest( - method: string, - path: string, - params?: RequestData, - options?: RequestOptions - ): Promise { - return this._requestSender._rawRequest(method, path, params, options); - }, - /** * @private */ diff --git a/src/utils.ts b/src/utils.ts index 25b7fc6db8..005256d56e 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -16,7 +16,6 @@ const OPTIONS_KEYS = [ 'maxNetworkRetries', 'timeout', 'host', - 'additionalHeaders', ]; type Settings = { @@ -29,7 +28,7 @@ type Options = { host: string | null; settings: Settings; streaming?: boolean; - headers: RequestHeaders; + headers: Record; }; export function isOptionsHash(o: unknown): boolean | unknown { @@ -159,13 +158,13 @@ export function getOptionsFromArgs(args: RequestArgs): Options { opts.auth = params.apiKey as string; } if (params.idempotencyKey) { - opts.headers['Idempotency-Key'] = params.idempotencyKey as string; + opts.headers['Idempotency-Key'] = params.idempotencyKey; } if (params.stripeAccount) { - opts.headers['Stripe-Account'] = params.stripeAccount as string; + opts.headers['Stripe-Account'] = params.stripeAccount; } if (params.apiVersion) { - opts.headers['Stripe-Version'] = params.apiVersion as string; + opts.headers['Stripe-Version'] = params.apiVersion; } if (Number.isInteger(params.maxNetworkRetries)) { opts.settings.maxNetworkRetries = params.maxNetworkRetries as number; @@ -176,11 +175,6 @@ export function getOptionsFromArgs(args: RequestArgs): Options { if (params.host) { opts.host = params.host as string; } - if (params.additionalHeaders) { - opts.headers = params.additionalHeaders as { - [headerName: string]: string; - }; - } } } return opts; diff --git a/test/stripe.spec.ts b/test/stripe.spec.ts index 5c12f64a8c..79d702bf92 100644 --- a/test/stripe.spec.ts +++ b/test/stripe.spec.ts @@ -584,214 +584,4 @@ describe('Stripe Module', function() { expect(newStripe.VERSION).to.equal(Stripe.PACKAGE_VERSION); }); }); - - describe('rawRequest', () => { - const returnedCustomer = { - id: 'cus_123', - }; - - it('should make request with specified encoding FORM', (done) => { - return getTestServerStripe( - {}, - (req, res) => { - expect(req.headers['content-type']).to.equal( - 'application/x-www-form-urlencoded' - ); - expect(req.headers['stripe-version']).to.equal(ApiVersion); - const requestBody = []; - req.on('data', (chunks) => { - requestBody.push(chunks); - }); - req.on('end', () => { - const body = Buffer.concat(requestBody).toString(); - expect(body).to.equal('description=test%20customer'); - }); - res.write(JSON.stringify(returnedCustomer)); - res.end(); - }, - async (err, stripe, closeServer) => { - if (err) return done(err); - try { - const result = await stripe.rawRequest( - 'POST', - '/v1/customers', - {description: 'test customer'}, - {} - ); - expect(result).to.deep.equal(returnedCustomer); - closeServer(); - done(); - } catch (err) { - return done(err); - } - } - ); - }); - - // Uncomment this after merging v2 infra changes - // it('should make request with specified encoding JSON', (done) => { - // return getTestServerStripe( - // {}, - // (req, res) => { - // expect(req.headers['content-type']).to.equal('application/json'); - // expect(req.headers['stripe-version']).to.equal(PreviewVersion); - // expect(req.headers.foo).to.equal('bar'); - // const requestBody = []; - // req.on('data', (chunks) => { - // requestBody.push(chunks); - // }); - // req.on('end', () => { - // const body = Buffer.concat(requestBody).toString(); - // expect(body).to.equal( - // '{"description":"test customer","created":"1234567890"}' - // ); - // }); - // res.write(JSON.stringify(returnedCustomer)); - // res.end(); - // }, - // async (err, stripe, closeServer) => { - // if (err) return done(err); - // try { - // const result = await stripe.rawRequest( - // 'POST', - // '/v1/customers', - // { - // description: 'test customer', - // created: new Date('2009-02-13T23:31:30Z'), - // }, - // {additionalHeaders: {foo: 'bar'}} - // ); - // expect(result).to.deep.equal(returnedCustomer); - // closeServer(); - // done(); - // } catch (err) { - // return done(err); - // } - // } - // ); - // }); - - it('defaults to form encoding request if not specified', (done) => { - return getTestServerStripe( - {}, - (req, res) => { - expect(req.headers['content-type']).to.equal( - 'application/x-www-form-urlencoded' - ); - const requestBody = []; - req.on('data', (chunks) => { - requestBody.push(chunks); - }); - req.on('end', () => { - const body = Buffer.concat(requestBody).toString(); - expect(body).to.equal( - 'description=test%20customer&created=1234567890' - ); - }); - res.write(JSON.stringify(returnedCustomer)); - res.end(); - }, - async (err, stripe, closeServer) => { - if (err) return done(err); - try { - const result = await stripe.rawRequest('POST', '/v1/customers', { - description: 'test customer', - created: new Date('2009-02-13T23:31:30Z'), - }); - expect(result).to.deep.equal(returnedCustomer); - closeServer(); - done(); - } catch (err) { - return done(err); - } - } - ); - }); - - it('should make request with specified additional headers', (done) => { - return getTestServerStripe( - {}, - (req, res) => { - console.log(req.headers); - expect(req.headers.foo).to.equal('bar'); - res.write(JSON.stringify(returnedCustomer)); - res.end(); - }, - async (err, stripe, closeServer) => { - if (err) return done(err); - try { - const result = await stripe.rawRequest( - 'GET', - '/v1/customers/cus_123', - {}, - {additionalHeaders: {foo: 'bar'}} - ); - expect(result).to.deep.equal(returnedCustomer); - closeServer(); - done(); - } catch (err) { - return done(err); - } - } - ); - }); - - it('should make request successfully', async () => { - const response = await stripe.rawRequest('GET', '/v1/customers', {}); - - expect(response).to.have.property('object', 'list'); - }); - - it("should include 'raw_request' in usage telemetry", (done) => { - let telemetryHeader; - let shouldStayOpen = true; - return getTestServerStripe( - {}, - (req, res) => { - telemetryHeader = req.headers['x-stripe-client-telemetry']; - res.setHeader('Request-Id', `req_1`); - res.writeHeader(200); - res.write('{}'); - res.end(); - const ret = {shouldStayOpen}; - shouldStayOpen = false; - return ret; - }, - async (err, stripe, closeServer) => { - if (err) return done(err); - try { - await stripe.rawRequest( - 'POST', - '/v1/customers', - {description: 'test customer'}, - {} - ); - expect(telemetryHeader).to.equal(undefined); - await stripe.rawRequest( - 'POST', - '/v1/customers', - {description: 'test customer'}, - {} - ); - expect( - JSON.parse(telemetryHeader).last_request_metrics.usage - ).to.deep.equal(['raw_request']); - closeServer(); - done(); - } catch (err) { - return done(err); - } - } - ); - }); - - it('should throw error when passing in params to non-POST request', async () => { - await expect( - stripe.rawRequest('GET', '/v1/customers/cus_123', {foo: 'bar'}) - ).to.be.rejectedWith( - Error, - /rawRequest only supports params on POST requests. Please pass null and add your parameters to path./ - ); - }); - }); }); diff --git a/types/index.d.ts b/types/index.d.ts index fe4eceae6d..dea69dcf12 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -459,25 +459,6 @@ declare module 'stripe' { event: 'response', handler: (event: Stripe.ResponseEvent) => void ): 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>; } export default Stripe; diff --git a/types/lib.d.ts b/types/lib.d.ts index 7b14993146..d82037bbf7 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -153,13 +153,6 @@ declare module 'stripe' { host?: string; } - export type RawRequestOptions = RequestOptions & { - /** - * Specify additional request headers. This is an experimental interface and is not yet stable. - */ - additionalHeaders?: {[headerName: string]: string}; - }; - export type Response = T & { lastResponse: { headers: {[key: string]: string}; From ed3d49a4dee4966759d5d7f801a349c8a9fae1d2 Mon Sep 17 00:00:00 2001 From: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:33:19 -0700 Subject: [PATCH 03/27] Support for APIs in the new API version 2024-09-30.acacia (#2192) --- OPENAPI_VERSION | 2 +- README.md | 34 + examples/snippets/README.md | 27 + examples/snippets/meter_event_stream.ts | 39 ++ examples/snippets/new_example.ts | 7 + examples/snippets/package.json | 13 + examples/snippets/stripe_webhook_handler.js | 39 ++ examples/snippets/yarn.lock | 597 ++++++++++++++++++ src/Error.ts | 39 +- src/RequestSender.ts | 402 ++++++++---- src/StripeResource.ts | 15 +- src/Types.d.ts | 53 +- src/Webhooks.ts | 2 +- src/apiVersion.ts | 2 +- src/autoPagination.ts | 79 ++- src/crypto/CryptoProvider.ts | 7 + src/crypto/NodeCryptoProvider.ts | 10 + src/crypto/SubtleCryptoProvider.ts | 5 + src/multipart.ts | 4 +- src/net/FetchHttpClient.ts | 2 +- src/net/HttpClient.ts | 4 +- src/net/NodeHttpClient.ts | 2 +- src/resources.ts | 7 + src/resources/Billing/CreditBalanceSummary.ts | 10 + .../Billing/CreditBalanceTransactions.ts | 15 + src/resources/Billing/CreditGrants.ts | 28 + src/resources/OAuth.ts | 4 +- src/resources/V2.ts | 12 + src/resources/V2/Billing.ts | 16 + .../V2/Billing/MeterEventAdjustments.ts | 10 + src/resources/V2/Billing/MeterEventSession.ts | 10 + src/resources/V2/Billing/MeterEventStream.ts | 11 + src/resources/V2/Billing/MeterEvents.ts | 7 + src/resources/V2/Core.ts | 10 + src/resources/V2/Core/Events.ts | 12 + src/stripe.core.ts | 89 ++- src/utils.ts | 94 ++- test/Error.spec.ts | 23 + test/RequestSender.spec.ts | 231 ++++++- test/autoPagination.spec.ts | 102 ++- test/crypto/helpers.ts | 11 + test/net/helpers.ts | 2 +- .../resources/generated_examples_test.spec.js | 24 +- test/stripe.spec.ts | 391 +++++++++++- test/testUtils.ts | 25 +- test/utils.spec.ts | 57 +- testProjects/mjs/index.js | 3 +- types/Billing/Alerts.d.ts | 30 +- types/Billing/AlertsResource.d.ts | 39 +- types/Billing/CreditBalanceSummary.d.ts | 94 +++ .../Billing/CreditBalanceSummaryResource.d.ts | 64 ++ types/Billing/CreditBalanceTransactions.d.ts | 159 +++++ .../CreditBalanceTransactionsResource.d.ts | 54 ++ types/Billing/CreditGrants.d.ts | 124 ++++ types/Billing/CreditGrantsResource.d.ts | 219 +++++++ .../BillingPortal/ConfigurationsResource.d.ts | 4 +- types/Capabilities.d.ts | 2 +- types/Checkout/SessionsResource.d.ts | 2 +- types/CreditNoteLineItems.d.ts | 30 + types/CreditNotes.d.ts | 30 + types/Customers.d.ts | 5 +- types/Errors.d.ts | 34 +- types/EventTypes.d.ts | 2 + types/InvoiceLineItems.d.ts | 36 ++ types/Invoices.d.ts | 38 ++ types/Margins.d.ts | 56 ++ types/ProductsResource.d.ts | 29 +- types/PromotionCodes.d.ts | 2 +- types/PromotionCodesResource.d.ts | 4 +- types/SubscriptionsResource.d.ts | 6 +- types/Tax/Settings.d.ts | 2 +- types/Terminal/ReadersResource.d.ts | 17 +- types/ThinEvent.d.ts | 36 ++ types/Treasury/ReceivedCredits.d.ts | 6 +- types/V2/Billing/MeterEventAdjustments.d.ts | 65 ++ .../MeterEventAdjustmentsResource.d.ts | 47 ++ .../V2/Billing/MeterEventSessionResource.d.ts | 26 + types/V2/Billing/MeterEventSessions.d.ts | 45 ++ .../V2/Billing/MeterEventStreamResource.d.ts | 62 ++ types/V2/Billing/MeterEvents.d.ts | 54 ++ types/V2/Billing/MeterEventsResource.d.ts | 52 ++ types/V2/BillingResource.d.ts | 14 + types/V2/Core/EventsResource.d.ts | 57 ++ types/V2/CoreResource.d.ts | 11 + types/V2/EventTypes.d.ts | 214 +++++++ types/V2/Events.d.ts | 75 +++ types/V2Resource.d.ts | 10 + types/WebhookEndpointsResource.d.ts | 3 +- types/index.d.ts | 128 ++++ types/lib.d.ts | 9 +- types/test/typescriptTest.ts | 6 +- 91 files changed, 4282 insertions(+), 308 deletions(-) create mode 100644 examples/snippets/README.md create mode 100644 examples/snippets/meter_event_stream.ts create mode 100644 examples/snippets/new_example.ts create mode 100644 examples/snippets/package.json create mode 100644 examples/snippets/stripe_webhook_handler.js create mode 100644 examples/snippets/yarn.lock create mode 100644 src/resources/Billing/CreditBalanceSummary.ts create mode 100644 src/resources/Billing/CreditBalanceTransactions.ts create mode 100644 src/resources/Billing/CreditGrants.ts create mode 100644 src/resources/V2.ts create mode 100644 src/resources/V2/Billing.ts create mode 100644 src/resources/V2/Billing/MeterEventAdjustments.ts create mode 100644 src/resources/V2/Billing/MeterEventSession.ts create mode 100644 src/resources/V2/Billing/MeterEventStream.ts create mode 100644 src/resources/V2/Billing/MeterEvents.ts create mode 100644 src/resources/V2/Core.ts create mode 100644 src/resources/V2/Core/Events.ts create mode 100644 types/Billing/CreditBalanceSummary.d.ts create mode 100644 types/Billing/CreditBalanceSummaryResource.d.ts create mode 100644 types/Billing/CreditBalanceTransactions.d.ts create mode 100644 types/Billing/CreditBalanceTransactionsResource.d.ts create mode 100644 types/Billing/CreditGrants.d.ts create mode 100644 types/Billing/CreditGrantsResource.d.ts create mode 100644 types/Margins.d.ts create mode 100644 types/ThinEvent.d.ts create mode 100644 types/V2/Billing/MeterEventAdjustments.d.ts create mode 100644 types/V2/Billing/MeterEventAdjustmentsResource.d.ts create mode 100644 types/V2/Billing/MeterEventSessionResource.d.ts create mode 100644 types/V2/Billing/MeterEventSessions.d.ts create mode 100644 types/V2/Billing/MeterEventStreamResource.d.ts create mode 100644 types/V2/Billing/MeterEvents.d.ts create mode 100644 types/V2/Billing/MeterEventsResource.d.ts create mode 100644 types/V2/BillingResource.d.ts create mode 100644 types/V2/Core/EventsResource.d.ts create mode 100644 types/V2/CoreResource.d.ts create mode 100644 types/V2/EventTypes.d.ts create mode 100644 types/V2/Events.d.ts create mode 100644 types/V2Resource.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5f5b311191..8f166ae2e0 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1267 \ No newline at end of file +v1268 \ No newline at end of file diff --git a/README.md b/README.md index 5adfcd7f5a..2300d84ba8 100644 --- a/README.md +++ b/README.md @@ -517,6 +517,40 @@ const stripe = new Stripe('sk_test_...', { }); ``` +### 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 StripeClient object. + +```javascript +const client = new Stripe('sk_test_...'); + +client.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 New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates. diff --git a/examples/snippets/README.md b/examples/snippets/README.md new file mode 100644 index 0000000000..05216ba79f --- /dev/null +++ b/examples/snippets/README.md @@ -0,0 +1,27 @@ +## Setup + +1. From the stripe-node root folder, run `yarn build` to build the modules. +2. Then, from this snippets folder, run `yarn` to install node dependencies for the example snippets. This will reference the local Stripe SDK modules created in step 1. + +If on step 2 you see an error `Error: unsure how to copy this: /Users/jar/stripe/sdks/node/.git/fsmonitor--daemon.ipc`: +run `rm /path/to/node/sdk/.git/fsmonitor--daemon.ipc && yarn` +This file is used by a file monitor built into git. Removing it temporarily does not seem to affect its operation, and this one liner will let `yarn` succeed. + +Note that if you modify the stripe-node code, you must delete your snippets `node_modules` folder and rerun these steps. + +## Running an example + +If your example is in typescript, run: +`yarn run ts-node your_example.ts` + +If your example is in javascript, run: +`node your_example.js` +or +`node your_example.mjs` + +## Adding a new example + +1. Clone new_example.ts +2. Implement your example +3. Run it (as per above) +4. šŸ‘ diff --git a/examples/snippets/meter_event_stream.ts b/examples/snippets/meter_event_stream.ts new file mode 100644 index 0000000000..6039ede351 --- /dev/null +++ b/examples/snippets/meter_event_stream.ts @@ -0,0 +1,39 @@ +import {Stripe} from 'stripe'; + +const apiKey = '{{API_KEY}}'; +const customerId = '{{CUSTOMER_ID}}'; + +let meterEventSession: null | any = null; + +async function refreshMeterEventSession() { + if ( + meterEventSession === null || + new Date(meterEventSession.expires_at * 1000) <= new Date() + ) { + // Create a new meter event session in case the existing session expired + const client = new Stripe(apiKey); + meterEventSession = await client.v2.billing.meterEventSession.create(); + } +} + +async function sendMeterEvent(meterEvent: any) { + // Refresh the meter event session, if necessary + await refreshMeterEventSession(); + + // Create a meter event + const client = new Stripe(meterEventSession.authentication_token); + await client.v2.billing.meterEventStream.create({ + events: [meterEvent], + }); +} + +// Send meter events +sendMeterEvent({ + event_name: 'alpaca_ai_tokens', + payload: { + stripe_customer_id: customerId, // Replace with actual customer ID + value: '27', + }, +}).catch((error) => { + console.error('Error sending meter event:', error); +}); diff --git a/examples/snippets/new_example.ts b/examples/snippets/new_example.ts new file mode 100644 index 0000000000..e521280c83 --- /dev/null +++ b/examples/snippets/new_example.ts @@ -0,0 +1,7 @@ +import {Stripe} from 'stripe'; + +const apiKey = '{{API_KEY}}'; + +console.log('Hello World'); +// const client = new Stripe(apiKey); +// client.v2.... diff --git a/examples/snippets/package.json b/examples/snippets/package.json new file mode 100644 index 0000000000..ba3738f172 --- /dev/null +++ b/examples/snippets/package.json @@ -0,0 +1,13 @@ +{ + "name": "snippets", + "version": "1.0.0", + "description": "example Stripe SDK code snippets", + "main": "index.js", + "license": "ISC", + "dependencies": { + "express": "^4.21.0", + "stripe": "file:../../", + "ts-node": "^10.9.2", + "typescript": "^5.6.2" + } +} diff --git a/examples/snippets/stripe_webhook_handler.js b/examples/snippets/stripe_webhook_handler.js new file mode 100644 index 0000000000..bc75e62683 --- /dev/null +++ b/examples/snippets/stripe_webhook_handler.js @@ -0,0 +1,39 @@ +const express = require('express'); +const {Stripe} = require('stripe'); + +const app = express(); + +const apiKey = process.env.STRIPE_API_KEY; +const webhookSecret = process.env.WEBHOOK_SECRET; + +const client = new Stripe(apiKey); + +app.post( + '/webhook', + express.raw({type: 'application/json'}), + async (req, res) => { + const sig = req.headers['stripe-signature']; + + try { + const thinEvent = client.parseThinEvent(req.body, sig, webhookSecret); + + // Fetch the event data to understand the failure + const event = await client.v2.core.events.retrieve(thinEvent.id); + if (event.type == 'v1.billing.meter.error_report_triggered') { + const meter = await client.billing.meters.retrieve( + event.related_object.id + ); + const meterId = meter.id; + console.log(`Success! ${meterId}`); + // Record the failures and alert your team + // Add your logic here + } + res.sendStatus(200); + } catch (err) { + console.log(`Webhook Error: ${err.stack}`); + res.status(400).send(`Webhook Error: ${err.message}`); + } + } +); + +app.listen(4242, () => console.log('Running on port 4242')); diff --git a/examples/snippets/yarn.lock b/examples/snippets/yarn.lock new file mode 100644 index 0000000000..622721e44e --- /dev/null +++ b/examples/snippets/yarn.lock @@ -0,0 +1,597 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== + dependencies: + "@jridgewell/trace-mapping" "0.3.9" + +"@jridgewell/resolve-uri@^3.0.3": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/sourcemap-codec@^1.4.10": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== + +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@tsconfig/node10@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + +"@types/node@>=8.1.0": + version "22.6.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.6.1.tgz#e531a45f4d78f14a8468cb9cdc29dc9602afc7ac" + integrity sha512-V48tCfcKb/e6cVUigLAaJDAILdMP0fUW6BidkPK4GpGjXcfbnoHasCZDwz3N3yVt5we2RHm4XTQCpv0KJz9zqw== + dependencies: + undici-types "~6.19.2" + +accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-walk@^8.1.1: + version "8.3.4" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" + integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== + dependencies: + acorn "^8.11.0" + +acorn@^8.11.0, acorn@^8.4.1: + version "8.12.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" + integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== + +body-parser@1.20.3: + version "1.20.3" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.3.tgz#1953431221c6fb5cd63c4b36d53fab0928e548c6" + integrity sha512-7rAxByjUMqQ3/bHJy7D6OGXvx/MMc4IqBn/X0fcM1QUcAItpZrBEYhWGem+tzXH90c+G01ypMcYJBO9Y30203g== + dependencies: + bytes "3.1.2" + content-type "~1.0.5" + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.4.24" + on-finished "2.4.1" + qs "6.13.0" + raw-body "2.5.2" + type-is "~1.6.18" + unpipe "1.0.0" + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" + +content-disposition@0.5.4: + version "0.5.4" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@~1.0.4, content-type@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== + +cookie@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" + integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + +debug@2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + +depd@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +encodeurl@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-2.0.0.tgz#7b8ea898077d7e409d3ac45474ea38eaf0857a58" + integrity sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg== + +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +express@^4.21.0: + version "4.21.0" + resolved "https://registry.yarnpkg.com/express/-/express-4.21.0.tgz#d57cb706d49623d4ac27833f1cbc466b668eb915" + integrity sha512-VqcNGcj/Id5ZT1LZ/cfihi3ttTn+NJmkli2eZADigjq29qTlWi/hAQ43t/VLPq8+UX06FCEx3ByOYet6ZFblng== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.20.3" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.6.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~2.0.0" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.3.1" + fresh "0.5.2" + http-errors "2.0.0" + merge-descriptors "1.0.3" + methods "~1.1.2" + on-finished "2.4.1" + parseurl "~1.3.3" + path-to-regexp "0.1.10" + proxy-addr "~2.0.7" + qs "6.13.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.19.0" + serve-static "1.16.2" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +finalhandler@1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.3.1.tgz#0c575f1d1d324ddd1da35ad7ece3df7d19088019" + integrity sha512-6BN9trH7bp3qvnrRyzsBz+g3lZxTNZTbVO2EV1CS0WIcDbawYVdYvGflME/9QP0h0pYlCDBCTjYa9nZzMDpyxQ== + dependencies: + debug "2.6.9" + encodeurl "~2.0.0" + escape-html "~1.0.3" + on-finished "2.4.1" + parseurl "~1.3.3" + statuses "2.0.1" + unpipe "~1.0.0" + +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +get-intrinsic@^1.1.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + +has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + +has-proto@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== + +has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +hasown@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +iconv-lite@0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +inherits@2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +merge-descriptors@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.3.tgz#d80319a65f3c7935351e5cfdac8f9318504dbed5" + integrity sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +negotiator@0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +object-inspect@^1.13.1: + version "1.13.2" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.2.tgz#dea0088467fb991e67af4058147a24824a3043ff" + integrity sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g== + +on-finished@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +path-to-regexp@0.1.10: + version "0.1.10" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.10.tgz#67e9108c5c0551b9e5326064387de4763c4d5f8b" + integrity sha512-7lf7qcQidTku0Gu3YDPc8DJ1q7OOucfa/BSsIwjuh56VU7katFvuM8hULfkwB3Fns/rsVF7PwPKVw1sl5KQS9w== + +proxy-addr@~2.0.7: + version "2.0.7" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== + dependencies: + forwarded "0.2.0" + ipaddr.js "1.9.1" + +qs@6.13.0, qs@^6.11.0: + version "6.13.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.13.0.tgz#6ca3bd58439f7e245655798997787b0d88a51906" + integrity sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg== + dependencies: + side-channel "^1.0.6" + +range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +raw-body@2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" + integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + +safe-buffer@5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +"safer-buffer@>= 2.1.2 < 3": + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +send@0.19.0: + version "0.19.0" + resolved "https://registry.yarnpkg.com/send/-/send-0.19.0.tgz#bbc5a388c8ea6c048967049dbeac0e4a3f09d7f8" + integrity sha512-dW41u5VfLXu8SJh5bwRmyYUbAoSB3c9uQh6L8h/KtsFREPWpbX1lrljJo186Jc4nmci/sGUZ9a0a0J2zgfq2hw== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serve-static@1.16.2: + version "1.16.2" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.16.2.tgz#b6a5343da47f6bdd2673848bf45754941e803296" + integrity sha512-VqpjJZKadQB/PEbEwvFdO43Ax5dFBZ2UECszz8bQ7pi7wt//PWe1P6MN7eCnjsatYtBT6EuiClbjSWP2WrIoTw== + dependencies: + encodeurl "~2.0.0" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.19.0" + +set-function-length@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +side-channel@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" + integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== + dependencies: + call-bind "^1.0.7" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + object-inspect "^1.13.1" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +"stripe@file:../..": + version "16.12.0" + dependencies: + "@types/node" ">=8.1.0" + qs "^6.11.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +ts-node@^10.9.2: + version "10.9.2" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.2.tgz#70f021c9e185bccdca820e26dc413805c101c71f" + integrity sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + +type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +typescript@^5.6.2: + version "5.6.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.2.tgz#d1de67b6bef77c41823f822df8f0b3bcff60a5a0" + integrity sha512-NW8ByodCSNCwZeghjN3o+JX5OFH0Ojg6sadjEKY4huZ52TqbJTJnDo5+Tw98lSy63NZvi4n+ez5m2u5d4PkZyw== + +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + +vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== diff --git a/src/Error.ts b/src/Error.ts index aa094c0952..bfe2aee00a 100644 --- a/src/Error.ts +++ b/src/Error.ts @@ -1,8 +1,11 @@ /* eslint-disable camelcase */ +/* eslint-disable no-warning-comments */ import {RawErrorType, StripeRawError} from './Types.js'; -export const generate = (rawStripeError: StripeRawError): StripeError => { +export const generateV1Error = ( + rawStripeError: StripeRawError +): StripeError => { switch (rawStripeError.type) { case 'card_error': return new StripeCardError(rawStripeError); @@ -23,12 +26,34 @@ export const generate = (rawStripeError: StripeRawError): StripeError => { } }; +// eslint-disable-next-line complexity +export const generateV2Error = ( + rawStripeError: StripeRawError +): StripeError => { + switch (rawStripeError.type) { + // switchCases: The beginning of the section generated from our OpenAPI spec + case 'temporary_session_expired': + return new TemporarySessionExpiredError(rawStripeError); + // switchCases: The end of the section generated from our OpenAPI spec + } + + // Special handling for requests with missing required fields in V2 APIs. + // invalid_field response in V2 APIs returns the field 'code' instead of 'type'. + switch (rawStripeError.code) { + case 'invalid_fields': + return new StripeInvalidRequestError(rawStripeError); + } + + return generateV1Error(rawStripeError); +}; + /** * StripeError is the base error from which all other more specific Stripe errors derive. * Specifically for errors returned from Stripe's REST API. */ export class StripeError extends Error { readonly message: string; + readonly userMessage?: string; readonly type: string; readonly raw: unknown; readonly rawType?: RawErrorType; @@ -64,7 +89,7 @@ export class StripeError extends Error { this.statusCode = raw.statusCode; // @ts-ignore this.message = raw.message; - + this.userMessage = raw.user_message; this.charge = raw.charge; this.decline_code = raw.decline_code; this.payment_intent = raw.payment_intent; @@ -77,7 +102,7 @@ export class StripeError extends Error { /** * Helper factory which takes raw stripe errors and outputs wrapping instances */ - static generate = generate; + static generate = generateV1Error; } // Specific Stripe Error types: @@ -205,3 +230,11 @@ export class StripeUnknownError extends StripeError { super(raw, 'StripeUnknownError'); } } + +// classDefinitions: The beginning of the section generated from our OpenAPI spec +export class TemporarySessionExpiredError extends StripeError { + constructor(rawStripeError: StripeRawError = {}) { + super(rawStripeError, 'TemporarySessionExpiredError'); + } +} +// classDefinitions: The end of the section generated from our OpenAPI spec diff --git a/src/RequestSender.ts b/src/RequestSender.ts index d69c3c0b87..59bbaf5d2b 100644 --- a/src/RequestSender.ts +++ b/src/RequestSender.ts @@ -5,14 +5,9 @@ import { StripeError, StripePermissionError, StripeRateLimitError, + generateV1Error, + generateV2Error, } from './Error.js'; -import { - emitWarning, - normalizeHeaders, - removeNullish, - stringifyRequestData, -} from './utils.js'; -import {HttpClient, HttpClientResponseInterface} from './net/HttpClient.js'; import { StripeObject, RequestHeaders, @@ -20,11 +15,27 @@ import { ResponseEvent, RequestCallback, RequestCallbackReturn, - RequestSettings, RequestData, - RequestOptions, RequestDataProcessor, + RequestOptions, + RequestSettings, + StripeRequest, + RequestOpts, + RequestArgs, + RequestAuthenticator, + ApiMode, } from './Types.js'; +import {HttpClient, HttpClientResponseInterface} from './net/HttpClient.js'; +import { + emitWarning, + jsonStringifyRequestData, + normalizeHeaders, + queryStringifyRequestData, + removeNullish, + getAPIMode, + getOptionsFromArgs, + getDataFromArgs, +} from './utils.js'; export type HttpClientResponseError = {code: string}; @@ -126,6 +137,7 @@ export class RequestSender { */ _jsonResponseHandler( requestEvent: RequestEvent, + apiMode: 'v1' | 'v2', usage: Array, callback: RequestCallback ) { @@ -167,8 +179,10 @@ export class RequestSender { err = new StripePermissionError(jsonResponse.error); } else if (statusCode === 429) { err = new StripeRateLimitError(jsonResponse.error); + } else if (apiMode === 'v2') { + err = generateV2Error(jsonResponse.error); } else { - err = StripeError.generate(jsonResponse.error); + err = generateV1Error(jsonResponse.error); } throw err; @@ -272,7 +286,7 @@ export class RequestSender { // number of numRetries so far as inputs. Do not allow the number to exceed // maxNetworkRetryDelay. let sleepSeconds = Math.min( - initialNetworkRetryDelay * Math.pow(numRetries - 1, 2), + initialNetworkRetryDelay * Math.pow(2, numRetries - 1), maxNetworkRetryDelay ); @@ -301,39 +315,65 @@ export class RequestSender { _defaultIdempotencyKey( method: string, - settings: RequestSettings + settings: RequestSettings, + apiMode: ApiMode ): string | null { // If this is a POST and we allow multiple retries, ensure an idempotency key. const maxRetries = this._getMaxNetworkRetries(settings); - if (method === 'POST' && maxRetries > 0) { - return `stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`; + const genKey = (): string => + `stripe-node-retry-${this._stripe._platformFunctions.uuid4()}`; + + // more verbose than it needs to be, but gives clear separation between V1 and V2 behavior + if (apiMode === 'v2') { + if (method === 'POST' || method === 'DELETE') { + return genKey(); + } + } else if (apiMode === 'v1') { + if (method === 'POST' && maxRetries > 0) { + return genKey(); + } } + return null; } - _makeHeaders( - auth: string | null, - contentLength: number, - apiVersion: string, - clientUserAgent: string, - method: string, - userSuppliedHeaders: RequestHeaders | null, - userSuppliedSettings: RequestSettings - ): RequestHeaders { + _makeHeaders({ + contentType, + contentLength, + apiVersion, + clientUserAgent, + method, + userSuppliedHeaders, + userSuppliedSettings, + stripeAccount, + stripeContext, + apiMode, + }: { + contentType: string; + contentLength: number; + apiVersion: string | null; + clientUserAgent: string; + method: string; + userSuppliedHeaders: RequestHeaders | null; + userSuppliedSettings: RequestSettings; + stripeAccount: string | null; + stripeContext: string | null; + apiMode: ApiMode; + }): RequestHeaders { const defaultHeaders = { - // Use specified auth token or use default from this stripe instance: - Authorization: auth ? `Bearer ${auth}` : this._stripe.getApiField('auth'), Accept: 'application/json', - 'Content-Type': 'application/x-www-form-urlencoded', - 'User-Agent': this._getUserAgentString(), + 'Content-Type': contentType, + 'User-Agent': this._getUserAgentString(apiMode), 'X-Stripe-Client-User-Agent': clientUserAgent, 'X-Stripe-Client-Telemetry': this._getTelemetryHeader(), 'Stripe-Version': apiVersion, - 'Stripe-Account': this._stripe.getApiField('stripeAccount'), + 'Stripe-Account': stripeAccount, + 'Stripe-Context': stripeContext, 'Idempotency-Key': this._defaultIdempotencyKey( method, - userSuppliedSettings + userSuppliedSettings, + apiMode ), } as RequestHeaders; @@ -372,13 +412,13 @@ export class RequestSender { ); } - _getUserAgentString(): string { + _getUserAgentString(apiMode: string): string { const packageVersion = this._stripe.getConstant('PACKAGE_VERSION'); const appInfo = this._stripe._appInfo ? this._stripe.getAppInfoAsString() : ''; - return `Stripe/v1 NodeBindings/${packageVersion} ${appInfo}`.trim(); + return `Stripe/${apiMode} NodeBindings/${packageVersion} ${appInfo}`.trim(); } _getTelemetryHeader(): string | undefined { @@ -422,19 +462,96 @@ export class RequestSender { } } + _rawRequest( + method: string, + path: string, + params?: RequestData, + options?: RequestOptions + ): Promise { + const requestPromise = new Promise((resolve, reject) => { + let opts: RequestOpts; + 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: RequestArgs = [].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 headers = calculatedOptions.headers; + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const authenticator: RequestAuthenticator = calculatedOptions.authenticator!; + opts = { + requestMethod, + requestPath: path, + bodyData: data, + queryData: {}, + authenticator, + headers, + host: null, + streaming: false, + settings: {}, + usage: ['raw_request'], + }; + } catch (err) { + reject(err); + return; + } + + function requestCallback( + err: any, + response: HttpClientResponseInterface + ): void { + if (err) { + reject(err); + } else { + resolve(response); + } + } + + const {headers, settings} = opts; + // eslint-disable-next-line @typescript-eslint/no-non-null-assertion + const authenticator: RequestAuthenticator = opts.authenticator!; + + this._request( + opts.requestMethod, + opts.host, + path, + opts.bodyData, + authenticator, + {headers, settings, streaming: opts.streaming}, + opts.usage, + requestCallback + ); + }); + + return requestPromise; + } + _request( method: string, host: string | null, path: string, - data: RequestData, - auth: string | null, - options: RequestOptions = {}, + data: RequestData | null, + authenticator: RequestAuthenticator, + options: RequestOptions, usage: Array = [], callback: RequestCallback, requestDataProcessor: RequestDataProcessor | null = null ): void { let requestData: string; - + authenticator = authenticator ?? this._stripe._authenticator ?? null; + const apiMode: ApiMode = getAPIMode(path); const retryRequest = ( requestFn: typeof makeRequest, apiVersion: string, @@ -465,88 +582,113 @@ export class RequestSender { ? options.settings.timeout : this._stripe.getApiField('timeout'); - const req = this._stripe - .getApiField('httpClient') - .makeRequest( - host || this._stripe.getApiField('host'), - this._stripe.getApiField('port'), - path, - method, - headers, - requestData, - this._stripe.getApiField('protocol'), - timeout - ); - - const requestStartTime = Date.now(); - - // @ts-ignore - const requestEvent: RequestEvent = removeNullish({ - api_version: apiVersion, - account: headers['Stripe-Account'], - idempotency_key: headers['Idempotency-Key'], - method, - path, - request_start_time: requestStartTime, - }); + const request = { + host: host || this._stripe.getApiField('host'), + port: this._stripe.getApiField('port'), + path: path, + method: method, + headers: Object.assign({}, headers), + body: requestData, + protocol: this._stripe.getApiField('protocol'), + }; - const requestRetries = numRetries || 0; - - const maxRetries = this._getMaxNetworkRetries(options.settings || {}); - this._stripe._emitter.emit('request', requestEvent); - - req - .then((res: HttpClientResponseInterface) => { - if (RequestSender._shouldRetry(res, requestRetries, maxRetries)) { - return retryRequest( - makeRequest, - apiVersion, - headers, - requestRetries, - // @ts-ignore - res.getHeaders()['retry-after'] + authenticator(request) + .then(() => { + const req = this._stripe + .getApiField('httpClient') + .makeRequest( + request.host, + request.port, + request.path, + request.method, + request.headers, + request.body, + request.protocol, + timeout ); - } else if (options.streaming && res.getStatusCode() < 400) { - return this._streamingResponseHandler( - requestEvent, - usage, - callback - )(res); - } else { - return this._jsonResponseHandler( - requestEvent, - usage, - callback - )(res); - } + + const requestStartTime = Date.now(); + + // @ts-ignore + const requestEvent: RequestEvent = removeNullish({ + api_version: apiVersion, + account: headers['Stripe-Account'], + idempotency_key: headers['Idempotency-Key'], + method, + path, + request_start_time: requestStartTime, + }); + + const requestRetries = numRetries || 0; + + const maxRetries = this._getMaxNetworkRetries(options.settings || {}); + this._stripe._emitter.emit('request', requestEvent); + + req + .then((res: HttpClientResponseInterface) => { + if (RequestSender._shouldRetry(res, requestRetries, maxRetries)) { + return retryRequest( + makeRequest, + apiVersion, + headers, + requestRetries, + // @ts-ignore + res.getHeaders()['retry-after'] + ); + } else if (options.streaming && res.getStatusCode() < 400) { + return this._streamingResponseHandler( + requestEvent, + usage, + callback + )(res); + } else { + return this._jsonResponseHandler( + requestEvent, + apiMode, + usage, + callback + )(res); + } + }) + .catch((error: HttpClientResponseError) => { + if ( + RequestSender._shouldRetry( + null, + requestRetries, + maxRetries, + error + ) + ) { + return retryRequest( + makeRequest, + apiVersion, + headers, + requestRetries, + null + ); + } else { + const isTimeoutError = + error.code && error.code === HttpClient.TIMEOUT_ERROR_CODE; + + return callback( + new StripeConnectionError({ + message: isTimeoutError + ? `Request aborted due to timeout being reached (${timeout}ms)` + : RequestSender._generateConnectionErrorMessage( + requestRetries + ), + // @ts-ignore + detail: error, + }) + ); + } + }); }) - .catch((error: HttpClientResponseError) => { - if ( - RequestSender._shouldRetry(null, requestRetries, maxRetries, error) - ) { - return retryRequest( - makeRequest, - apiVersion, - headers, - requestRetries, - null - ); - } else { - const isTimeoutError = - error.code && error.code === HttpClient.TIMEOUT_ERROR_CODE; - - return callback( - new StripeConnectionError({ - message: isTimeoutError - ? `Request aborted due to timeout being reached (${timeout}ms)` - : RequestSender._generateConnectionErrorMessage( - requestRetries - ), - // @ts-ignore - detail: error, - }) - ); - } + .catch((e: any) => { + throw new StripeError({ + message: 'Unable to authenticate the request', + exception: e, + }); }); }; @@ -559,15 +701,23 @@ export class RequestSender { this._stripe.getClientUserAgent((clientUserAgent: string) => { const apiVersion = this._stripe.getApiField('version'); - const headers = this._makeHeaders( - auth, - requestData.length, - apiVersion, + const headers = this._makeHeaders({ + contentType: + apiMode == 'v2' + ? 'application/json' + : 'application/x-www-form-urlencoded', + contentLength: requestData.length, + apiVersion: apiVersion, clientUserAgent, method, - options.headers ?? null, - options.settings ?? {} - ); + userSuppliedHeaders: options.headers, + userSuppliedSettings: options.settings, + stripeAccount: + apiMode == 'v2' ? null : this._stripe.getApiField('stripeAccount'), + stripeContext: + apiMode == 'v2' ? this._stripe.getApiField('stripeContext') : null, + apiMode: apiMode, + }); makeRequest(apiVersion, headers, 0); }); @@ -581,7 +731,15 @@ export class RequestSender { prepareAndMakeRequest ); } else { - prepareAndMakeRequest(null, stringifyRequestData(data || {})); + let stringifiedData: string; + + if (apiMode == 'v2') { + stringifiedData = data ? jsonStringifyRequestData(data) : ''; + } else { + stringifiedData = queryStringifyRequestData(data || {}, apiMode); + } + + prepareAndMakeRequest(null, stringifiedData); } } } diff --git a/src/StripeResource.ts b/src/StripeResource.ts index 59dc3fbe77..12da1fa007 100644 --- a/src/StripeResource.ts +++ b/src/StripeResource.ts @@ -3,7 +3,8 @@ import { getOptionsFromArgs, makeURLInterpolator, protoExtend, - stringifyRequestData, + queryStringifyRequestData, + getAPIMode, } from './utils.js'; import {stripeMethod} from './StripeMethod.js'; import { @@ -186,7 +187,7 @@ StripeResource.prototype = { requestPath, bodyData, queryData, - auth: options.auth, + authenticator: options.authenticator ?? null, headers, host: host ?? null, streaming, @@ -228,7 +229,7 @@ StripeResource.prototype = { const path = [ opts.requestPath, emptyQuery ? '' : '?', - stringifyRequestData(opts.queryData), + queryStringifyRequestData(opts.queryData, getAPIMode(opts.requestPath)), ].join(''); const {headers, settings} = opts; @@ -238,8 +239,12 @@ StripeResource.prototype = { opts.host, path, opts.bodyData, - opts.auth, - {headers, settings, streaming: opts.streaming}, + opts.authenticator, + { + headers, + settings, + streaming: opts.streaming, + }, opts.usage, requestCallback, this.requestDataProcessor?.bind(this) diff --git a/src/Types.d.ts b/src/Types.d.ts index 6bb97a4ff1..48f0ba9d85 100644 --- a/src/Types.d.ts +++ b/src/Types.d.ts @@ -7,6 +7,7 @@ import { import {PlatformFunctions} from './platform/PlatformFunctions.js'; export type AppInfo = {name?: string} & Record; +export type ApiMode = 'v1' | 'v2'; export type BufferedFile = { name: string; type: string; @@ -27,6 +28,7 @@ export type MethodSpec = { usage?: Array; }; export type MultipartRequestData = RequestData | StreamingFile | BufferedFile; +// rawErrorTypeEnum: The beginning of the section generated from our OpenAPI spec export type RawErrorType = | 'card_error' | 'invalid_request_error' @@ -34,8 +36,20 @@ export type RawErrorType = | 'idempotency_error' | 'rate_limit_error' | 'authentication_error' - | 'invalid_grant'; + | 'invalid_grant' + | 'temporary_session_expired'; +// rawErrorTypeEnum: The end of the section generated from our OpenAPI spec export type RequestArgs = Array; +export type StripeRequest = { + host: string; + port: string; + path: string; + method: string; + headers: RequestHeaders; + body: string; + protocol: string; +}; +export type RequestAuthenticator = (request: StripeRequest) => Promise; export type RequestCallback = ( this: void, error: Error | null, @@ -54,16 +68,16 @@ export type RequestEvent = { }; export type RequestHeaders = Record; export type RequestOptions = { - settings?: RequestSettings; - streaming?: boolean; - headers?: RequestHeaders; + settings: RequestSettings; + streaming: boolean; + headers: RequestHeaders; }; export type RequestOpts = { + authenticator: RequestAuthenticator | null; requestMethod: string; requestPath: string; bodyData: RequestData | null; queryData: RequestData; - auth: string | null; headers: RequestHeaders; host: string | null; streaming: boolean; @@ -124,13 +138,11 @@ export type StripeObject = { webhooks: any; _prepResources: () => void; _setAppInfo: (appInfo: AppInfo) => void; - _setApiKey: (apiKey: string) => void; _prevRequestMetrics: Array<{ request_id: string; request_duration_ms: number; }>; _api: { - auth: string | null; host: string; port: string | number; protocol: string; @@ -139,24 +151,42 @@ export type StripeObject = { timeout: number; maxNetworkRetries: number; agent: string; - httpClient: any; + httpClient: HttpClientInterface; dev: boolean; stripeAccount: string | null; + stripeContext: string | null; }; + _authenticator?: RequestAuthenticator; _emitter: EventEmitter; _enableTelemetry: boolean; _requestSender: RequestSender; _getPropsFromConfig: (config: Record) => UserProvidedConfig; _clientId?: string; _platformFunctions: PlatformFunctions; + _setAuthenticator: ( + key: string, + authenticator: RequestAuthenticator | undefined + ) => void; + rawRequest: ( + method: string, + path: string, + data: RequestData, + options: RequestOptions + ) => Promise; }; export type RequestSender = { + _rawRequest( + method: string, + path: string, + params?: RequestData, + options?: RequestOptions + ): Promise; _request( method: string, host: string | null, path: string, data: RequestData | null, - auth: string | null, + authenticator: RequestAuthenticator | null, options: RequestOptions, usage: Array, callback: RequestCallback, @@ -165,6 +195,7 @@ export type RequestSender = { }; export type StripeRawError = { message?: string; + user_message?: string; type?: RawErrorType; headers?: {[header: string]: string}; statusCode?: number; @@ -211,12 +242,13 @@ export type StripeResourceObject = { }; export type RequestDataProcessor = ( method: string, - data: RequestData, + data: RequestData | null, headers: RequestHeaders | undefined, prepareAndMakeRequest: (error: Error | null, data: string) => void ) => void; export type UrlInterpolator = (params: Record) => string; export type UserProvidedConfig = { + authenticator?: RequestAuthenticator; apiVersion?: string; protocol?: string; host?: string; @@ -226,6 +258,7 @@ export type UserProvidedConfig = { maxNetworkRetries?: number; httpClient?: HttpClientInterface; stripeAccount?: string; + stripeContext?: string; typescript?: boolean; telemetry?: boolean; appInfo?: AppInfo; diff --git a/src/Webhooks.ts b/src/Webhooks.ts index fc3dec8907..e0ffa5ea5c 100644 --- a/src/Webhooks.ts +++ b/src/Webhooks.ts @@ -25,7 +25,7 @@ type WebhookTestHeaderOptions = { cryptoProvider: CryptoProvider; }; -type WebhookEvent = Record; +export type WebhookEvent = Record; type WebhookPayload = string | Uint8Array; type WebhookSignatureObject = { verifyHeader: ( diff --git a/src/apiVersion.ts b/src/apiVersion.ts index 1966b582c5..c59d0bde0f 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec -export const ApiVersion = '2024-06-20'; +export const ApiVersion = '2024-09-30.acacia'; diff --git a/src/autoPagination.ts b/src/autoPagination.ts index 19cb4a8984..c8e3704c86 100644 --- a/src/autoPagination.ts +++ b/src/autoPagination.ts @@ -1,5 +1,9 @@ import {MethodSpec, RequestArgs, StripeResourceObject} from './Types.js'; -import {callbackifyPromiseWithTimeout, getDataFromArgs} from './utils.js'; +import { + callbackifyPromiseWithTimeout, + getDataFromArgs, + getAPIMode, +} from './utils.js'; type PromiseCache = { currentPromise: Promise | undefined | null; @@ -31,9 +35,10 @@ type AutoPaginationMethods = { type PageResult = { data: Array; has_more: boolean; - next_page: string | null; + next_page?: string | null; + next_page_url?: string | null; }; -class StripeIterator implements AsyncIterator { +class V1Iterator implements AsyncIterator { private index: number; private pagePromise: Promise>; private promiseCache: PromiseCache; @@ -117,7 +122,7 @@ class StripeIterator implements AsyncIterator { } } -class ListIterator extends StripeIterator { +class V1ListIterator extends V1Iterator { getNextPage(pageResult: PageResult): Promise> { const reverseIteration = isReverseIteration(this.requestArgs); const lastId = getLastId(pageResult, reverseIteration); @@ -127,7 +132,7 @@ class ListIterator extends StripeIterator { } } -class SearchIterator extends StripeIterator { +class V1SearchIterator extends V1Iterator { getNextPage(pageResult: PageResult): Promise> { if (!pageResult.next_page) { throw Error( @@ -140,6 +145,56 @@ class SearchIterator extends StripeIterator { } } +class V2ListIterator implements AsyncIterator { + private currentPageIterator: Promise>; + private nextPageUrl: Promise; + private requestArgs: RequestArgs; + private spec: MethodSpec; + private stripeResource: StripeResourceObject; + constructor( + firstPagePromise: Promise>, + requestArgs: RequestArgs, + spec: MethodSpec, + stripeResource: StripeResourceObject + ) { + this.currentPageIterator = (async (): Promise> => { + const page = await firstPagePromise; + return page.data[Symbol.iterator](); + })(); + + this.nextPageUrl = (async (): Promise => { + const page = await firstPagePromise; + return page.next_page_url || null; + })(); + + this.requestArgs = requestArgs; + this.spec = spec; + this.stripeResource = stripeResource; + } + private async turnPage(): Promise | null> { + const nextPageUrl = await this.nextPageUrl; + if (!nextPageUrl) return null; + this.spec.fullPath = nextPageUrl; + const page = await this.stripeResource._makeRequest([], this.spec, {}); + this.nextPageUrl = Promise.resolve(page.next_page_url); + this.currentPageIterator = Promise.resolve(page.data[Symbol.iterator]()); + return this.currentPageIterator; + } + async next(): Promise> { + { + const result = (await this.currentPageIterator).next(); + if (!result.done) return {done: false, value: result.value}; + } + const nextPageIterator = await this.turnPage(); + if (!nextPageIterator) { + return {done: true, value: undefined}; + } + const result = nextPageIterator.next(); + if (!result.done) return {done: false, value: result.value}; + return {done: true, value: undefined}; + } +} + export const makeAutoPaginationMethods = < TMethodSpec extends MethodSpec, TItem extends {id: string} @@ -149,14 +204,20 @@ export const makeAutoPaginationMethods = < spec: TMethodSpec, firstPagePromise: Promise> ): AutoPaginationMethods | null => { - if (spec.methodType === 'search') { + const apiMode = getAPIMode(spec.fullPath || spec.path); + if (apiMode !== 'v2' && spec.methodType === 'search') { + return makeAutoPaginationMethodsFromIterator( + new V1SearchIterator(firstPagePromise, requestArgs, spec, stripeResource) + ); + } + if (apiMode !== 'v2' && spec.methodType === 'list') { return makeAutoPaginationMethodsFromIterator( - new SearchIterator(firstPagePromise, requestArgs, spec, stripeResource) + new V1ListIterator(firstPagePromise, requestArgs, spec, stripeResource) ); } - if (spec.methodType === 'list') { + if (apiMode === 'v2' && spec.methodType === 'list') { return makeAutoPaginationMethodsFromIterator( - new ListIterator(firstPagePromise, requestArgs, spec, stripeResource) + new V2ListIterator(firstPagePromise, requestArgs, spec, stripeResource) ); } return null; diff --git a/src/crypto/CryptoProvider.ts b/src/crypto/CryptoProvider.ts index f362061c42..5d11947bb8 100644 --- a/src/crypto/CryptoProvider.ts +++ b/src/crypto/CryptoProvider.ts @@ -29,6 +29,13 @@ export class CryptoProvider { computeHMACSignatureAsync(payload: string, secret: string): Promise { throw new Error('computeHMACSignatureAsync not implemented.'); } + + /** + * Computes a SHA-256 hash of the data. + */ + computeSHA256Async(data: Uint8Array): Promise { + throw new Error('computeSHA256 not implemented.'); + } } /** diff --git a/src/crypto/NodeCryptoProvider.ts b/src/crypto/NodeCryptoProvider.ts index 477ce41039..fa86682151 100644 --- a/src/crypto/NodeCryptoProvider.ts +++ b/src/crypto/NodeCryptoProvider.ts @@ -21,4 +21,14 @@ export class NodeCryptoProvider extends CryptoProvider { const signature = await this.computeHMACSignature(payload, secret); return signature; } + + /** @override */ + async computeSHA256Async(data: Uint8Array): Promise { + return new Uint8Array( + await crypto + .createHash('sha256') + .update(data) + .digest() + ); + } } diff --git a/src/crypto/SubtleCryptoProvider.ts b/src/crypto/SubtleCryptoProvider.ts index 51ef0e9caa..db3b51a2c8 100644 --- a/src/crypto/SubtleCryptoProvider.ts +++ b/src/crypto/SubtleCryptoProvider.ts @@ -63,6 +63,11 @@ export class SubtleCryptoProvider extends CryptoProvider { return signatureHexCodes.join(''); } + + /** @override */ + async computeSHA256Async(data: Uint8Array): Promise { + return new Uint8Array(await this.subtleCrypto.digest('SHA-256', data)); + } } // Cached mapping of byte to hex representation. We do this once to avoid re- diff --git a/src/multipart.ts b/src/multipart.ts index 1e28eb44f9..85b6ce024b 100644 --- a/src/multipart.ts +++ b/src/multipart.ts @@ -4,7 +4,7 @@ import { RequestHeaders, StripeResourceObject, } from './Types.js'; -import {flattenAndStringify, stringifyRequestData} from './utils.js'; +import {flattenAndStringify, queryStringifyRequestData} from './utils.js'; type MultipartCallbackReturn = any; type MultipartCallback = ( @@ -87,7 +87,7 @@ export function multipartRequestDataProcessor( data = data || {}; if (method !== 'POST') { - return callback(null, stringifyRequestData(data)); + return callback(null, queryStringifyRequestData(data)); } this._stripe._platformFunctions diff --git a/src/net/FetchHttpClient.ts b/src/net/FetchHttpClient.ts index bea479b463..df5b3cf6b4 100644 --- a/src/net/FetchHttpClient.ts +++ b/src/net/FetchHttpClient.ts @@ -115,7 +115,7 @@ export class FetchHttpClient extends HttpClient implements HttpClientInterface { path: string, method: string, headers: RequestHeaders, - requestData: RequestData, + requestData: string, protocol: string, timeout: number ): Promise { diff --git a/src/net/HttpClient.ts b/src/net/HttpClient.ts index 3e886b6358..673be72a2e 100644 --- a/src/net/HttpClient.ts +++ b/src/net/HttpClient.ts @@ -10,7 +10,7 @@ export interface HttpClientInterface { path: string, method: string, headers: RequestHeaders, - requestData: RequestData, + requestData: string, protocol: string, timeout: number ) => Promise; @@ -48,7 +48,7 @@ export class HttpClient implements HttpClientInterface { path: string, method: string, headers: RequestHeaders, - requestData: RequestData, + requestData: string, protocol: string, timeout: number ): Promise { diff --git a/src/net/NodeHttpClient.ts b/src/net/NodeHttpClient.ts index e6f94f3a4b..562051582b 100644 --- a/src/net/NodeHttpClient.ts +++ b/src/net/NodeHttpClient.ts @@ -43,7 +43,7 @@ export class NodeHttpClient extends HttpClient { path: string, method: string, headers: RequestHeaders, - requestData: RequestData, + requestData: string, protocol: string, timeout: number ): Promise { diff --git a/src/resources.ts b/src/resources.ts index 109e6e9eb8..b9ca904bf8 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -14,6 +14,9 @@ import {Configurations as BillingPortalConfigurations} from './resources/Billing import {Configurations as TerminalConfigurations} from './resources/Terminal/Configurations.js'; import {ConfirmationTokens as TestHelpersConfirmationTokens} from './resources/TestHelpers/ConfirmationTokens.js'; import {ConnectionTokens as TerminalConnectionTokens} from './resources/Terminal/ConnectionTokens.js'; +import {CreditBalanceSummary as BillingCreditBalanceSummary} from './resources/Billing/CreditBalanceSummary.js'; +import {CreditBalanceTransactions as BillingCreditBalanceTransactions} from './resources/Billing/CreditBalanceTransactions.js'; +import {CreditGrants as BillingCreditGrants} from './resources/Billing/CreditGrants.js'; import {CreditReversals as TreasuryCreditReversals} from './resources/Treasury/CreditReversals.js'; import {Customers as TestHelpersCustomers} from './resources/TestHelpers/Customers.js'; import {DebitReversals as TreasuryDebitReversals} from './resources/Treasury/DebitReversals.js'; @@ -118,10 +121,14 @@ export {TaxRates} from './resources/TaxRates.js'; export {Tokens} from './resources/Tokens.js'; export {Topups} from './resources/Topups.js'; export {Transfers} from './resources/Transfers.js'; +export {V2} from './resources/V2.js'; export {WebhookEndpoints} from './resources/WebhookEndpoints.js'; export const Apps = resourceNamespace('apps', {Secrets: AppsSecrets}); export const Billing = resourceNamespace('billing', { Alerts: BillingAlerts, + CreditBalanceSummary: BillingCreditBalanceSummary, + CreditBalanceTransactions: BillingCreditBalanceTransactions, + CreditGrants: BillingCreditGrants, MeterEventAdjustments: BillingMeterEventAdjustments, MeterEvents: BillingMeterEvents, Meters: BillingMeters, diff --git a/src/resources/Billing/CreditBalanceSummary.ts b/src/resources/Billing/CreditBalanceSummary.ts new file mode 100644 index 0000000000..0258a0ec98 --- /dev/null +++ b/src/resources/Billing/CreditBalanceSummary.ts @@ -0,0 +1,10 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const CreditBalanceSummary = StripeResource.extend({ + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/billing/credit_balance_summary', + }), +}); diff --git a/src/resources/Billing/CreditBalanceTransactions.ts b/src/resources/Billing/CreditBalanceTransactions.ts new file mode 100644 index 0000000000..5f4cca0d2e --- /dev/null +++ b/src/resources/Billing/CreditBalanceTransactions.ts @@ -0,0 +1,15 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const CreditBalanceTransactions = StripeResource.extend({ + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/billing/credit_balance_transactions/{id}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v1/billing/credit_balance_transactions', + methodType: 'list', + }), +}); diff --git a/src/resources/Billing/CreditGrants.ts b/src/resources/Billing/CreditGrants.ts new file mode 100644 index 0000000000..19622cb64f --- /dev/null +++ b/src/resources/Billing/CreditGrants.ts @@ -0,0 +1,28 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const CreditGrants = StripeResource.extend({ + create: stripeMethod({method: 'POST', fullPath: '/v1/billing/credit_grants'}), + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/billing/credit_grants/{id}', + }), + update: stripeMethod({ + method: 'POST', + fullPath: '/v1/billing/credit_grants/{id}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v1/billing/credit_grants', + methodType: 'list', + }), + expire: stripeMethod({ + method: 'POST', + fullPath: '/v1/billing/credit_grants/{id}/expire', + }), + voidGrant: stripeMethod({ + method: 'POST', + fullPath: '/v1/billing/credit_grants/{id}/void', + }), +}); diff --git a/src/resources/OAuth.ts b/src/resources/OAuth.ts index 318d49835c..78f046a992 100644 --- a/src/resources/OAuth.ts +++ b/src/resources/OAuth.ts @@ -1,7 +1,7 @@ 'use strict'; import {StripeResource} from '../StripeResource.js'; -import {stringifyRequestData} from '../utils.js'; +import {queryStringifyRequestData} from '../utils.js'; type OAuthAuthorizeUrlParams = { response_type?: 'code'; @@ -48,7 +48,7 @@ export const OAuth = StripeResource.extend({ params.scope = 'read_write'; } - return `https://${oAuthHost}/${path}?${stringifyRequestData(params)}`; + return `https://${oAuthHost}/${path}?${queryStringifyRequestData(params)}`; }, token: stripeMethod({ diff --git a/src/resources/V2.ts b/src/resources/V2.ts new file mode 100644 index 0000000000..c8ad50c2e0 --- /dev/null +++ b/src/resources/V2.ts @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../StripeResource.js'; +import {Billing} from './V2/Billing.js'; +import {Core} from './V2/Core.js'; +export const V2 = StripeResource.extend({ + constructor: function(...args: any) { + StripeResource.apply(this, args); + this.billing = new Billing(...args); + this.core = new Core(...args); + }, +}); diff --git a/src/resources/V2/Billing.ts b/src/resources/V2/Billing.ts new file mode 100644 index 0000000000..752a0d3a10 --- /dev/null +++ b/src/resources/V2/Billing.ts @@ -0,0 +1,16 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +import {MeterEventSession} from './Billing/MeterEventSession.js'; +import {MeterEventAdjustments} from './Billing/MeterEventAdjustments.js'; +import {MeterEventStream} from './Billing/MeterEventStream.js'; +import {MeterEvents} from './Billing/MeterEvents.js'; +export const Billing = StripeResource.extend({ + constructor: function(...args: any) { + StripeResource.apply(this, args); + this.meterEventSession = new MeterEventSession(...args); + this.meterEventAdjustments = new MeterEventAdjustments(...args); + this.meterEventStream = new MeterEventStream(...args); + this.meterEvents = new MeterEvents(...args); + }, +}); diff --git a/src/resources/V2/Billing/MeterEventAdjustments.ts b/src/resources/V2/Billing/MeterEventAdjustments.ts new file mode 100644 index 0000000000..e6bc084da5 --- /dev/null +++ b/src/resources/V2/Billing/MeterEventAdjustments.ts @@ -0,0 +1,10 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const MeterEventAdjustments = StripeResource.extend({ + create: stripeMethod({ + method: 'POST', + fullPath: '/v2/billing/meter_event_adjustments', + }), +}); diff --git a/src/resources/V2/Billing/MeterEventSession.ts b/src/resources/V2/Billing/MeterEventSession.ts new file mode 100644 index 0000000000..2fa6fb9f8e --- /dev/null +++ b/src/resources/V2/Billing/MeterEventSession.ts @@ -0,0 +1,10 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const MeterEventSession = StripeResource.extend({ + create: stripeMethod({ + method: 'POST', + fullPath: '/v2/billing/meter_event_session', + }), +}); diff --git a/src/resources/V2/Billing/MeterEventStream.ts b/src/resources/V2/Billing/MeterEventStream.ts new file mode 100644 index 0000000000..c74537f037 --- /dev/null +++ b/src/resources/V2/Billing/MeterEventStream.ts @@ -0,0 +1,11 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const MeterEventStream = StripeResource.extend({ + create: stripeMethod({ + method: 'POST', + fullPath: '/v2/billing/meter_event_stream', + host: 'meter-events.stripe.com', + }), +}); diff --git a/src/resources/V2/Billing/MeterEvents.ts b/src/resources/V2/Billing/MeterEvents.ts new file mode 100644 index 0000000000..ae425b29b5 --- /dev/null +++ b/src/resources/V2/Billing/MeterEvents.ts @@ -0,0 +1,7 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const MeterEvents = StripeResource.extend({ + create: stripeMethod({method: 'POST', fullPath: '/v2/billing/meter_events'}), +}); diff --git a/src/resources/V2/Core.ts b/src/resources/V2/Core.ts new file mode 100644 index 0000000000..4f13f0cc90 --- /dev/null +++ b/src/resources/V2/Core.ts @@ -0,0 +1,10 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../StripeResource.js'; +import {Events} from './Core/Events.js'; +export const Core = StripeResource.extend({ + constructor: function(...args: any) { + StripeResource.apply(this, args); + this.events = new Events(...args); + }, +}); diff --git a/src/resources/V2/Core/Events.ts b/src/resources/V2/Core/Events.ts new file mode 100644 index 0000000000..e0bba400ce --- /dev/null +++ b/src/resources/V2/Core/Events.ts @@ -0,0 +1,12 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const Events = StripeResource.extend({ + retrieve: stripeMethod({method: 'GET', fullPath: '/v2/core/events/{id}'}), + list: stripeMethod({ + method: 'GET', + fullPath: '/v2/core/events', + methodType: 'list', + }), +}); diff --git a/src/stripe.core.ts b/src/stripe.core.ts index b777ce7cdb..2a22fbd5d8 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -1,14 +1,22 @@ import * as _Error from './Error.js'; import {RequestSender} from './RequestSender.js'; import {StripeResource} from './StripeResource.js'; -import {AppInfo, StripeObject, UserProvidedConfig} from './Types.js'; -import {WebhookObject, createWebhooks} from './Webhooks.js'; -import * as apiVersion from './apiVersion.js'; +import { + AppInfo, + RequestAuthenticator, + StripeObject, + UserProvidedConfig, + RequestData, + RequestOptions, +} from './Types.js'; +import {WebhookObject, WebhookEvent, createWebhooks} from './Webhooks.js'; +import {ApiVersion} from './apiVersion.js'; import {CryptoProvider} from './crypto/CryptoProvider.js'; import {HttpClient, HttpClientResponse} from './net/HttpClient.js'; import {PlatformFunctions} from './platform/PlatformFunctions.js'; import * as resources from './resources.js'; import { + createApiKeyAuthenticator, determineProcessUserAgentProperties, pascalToCamelCase, validateInteger, @@ -17,15 +25,16 @@ import { const DEFAULT_HOST = 'api.stripe.com'; const DEFAULT_PORT = '443'; const DEFAULT_BASE_PATH = '/v1/'; -const DEFAULT_API_VERSION = apiVersion.ApiVersion; +const DEFAULT_API_VERSION = ApiVersion; const DEFAULT_TIMEOUT = 80000; -const MAX_NETWORK_RETRY_DELAY_SEC = 2; +const MAX_NETWORK_RETRY_DELAY_SEC = 5; const INITIAL_NETWORK_RETRY_DELAY_SEC = 0.5; const APP_INFO_PROPERTIES = ['name', 'version', 'url', 'partner_id']; const ALLOWED_CONFIG_PROPERTIES = [ + 'authenticator', 'apiVersion', 'typescript', 'maxNetworkRetries', @@ -38,6 +47,7 @@ const ALLOWED_CONFIG_PROPERTIES = [ 'telemetry', 'appInfo', 'stripeAccount', + 'stripeContext', ]; type RequestSenderFactory = (stripe: StripeObject) => RequestSender; @@ -107,7 +117,6 @@ export function createStripe( const agent = props.httpAgent || null; this._api = { - auth: null, host: props.host || DEFAULT_HOST, port: props.port || DEFAULT_PORT, protocol: props.protocol || 'https', @@ -117,7 +126,7 @@ export function createStripe( maxNetworkRetries: validateInteger( 'maxNetworkRetries', props.maxNetworkRetries, - 1 + 2 ), agent: agent, httpClient: @@ -127,6 +136,7 @@ export function createStripe( : this._platformFunctions.createDefaultHttpClient()), dev: false, stripeAccount: props.stripeAccount || null, + stripeContext: props.stripeContext || null, }; const typescript = props.typescript || false; @@ -143,7 +153,7 @@ export function createStripe( } this._prepResources(); - this._setApiKey(key); + this._setAuthenticator(key, props.authenticator); this.errors = _Error; @@ -208,13 +218,33 @@ export function createStripe( _requestSender: null!, _platformFunctions: null!, + rawRequest( + method: string, + path: string, + params?: RequestData, + options?: RequestOptions + ): Promise { + return this._requestSender._rawRequest(method, path, params, options); + }, + /** * @private */ - _setApiKey(key: string): void { - if (key) { - this._setApiField('auth', `Bearer ${key}`); + _setAuthenticator( + key: string, + authenticator: RequestAuthenticator | undefined + ): void { + if (key && authenticator) { + throw new Error("Can't specify both apiKey and authenticator"); } + + if (!key && !authenticator) { + throw new Error('Neither apiKey nor config.authenticator provided'); + } + + this._authenticator = key + ? createApiKeyAuthenticator(key) + : authenticator; }, /** @@ -469,6 +499,43 @@ export function createStripe( return config; }, + + parseThinEvent( + payload: string | Uint8Array, + header: string | Uint8Array, + secret: string, + tolerance?: number, + cryptoProvider?: CryptoProvider, + receivedAt?: number + ): WebhookEvent { + // parses and validates the event payload all in one go + return this.webhooks.constructEvent( + payload, + header, + secret, + tolerance, + cryptoProvider, + receivedAt + ); + }, + + parseSnapshotEvent( + payload: string | Uint8Array, + header: string | Uint8Array, + secret: string, + tolerance?: number, + cryptoProvider?: CryptoProvider, + receivedAt?: number + ): WebhookEvent { + return this.webhooks.constructEvent( + payload, + header, + secret, + tolerance, + cryptoProvider, + receivedAt + ); + }, } as StripeObject; return Stripe; diff --git a/src/utils.ts b/src/utils.ts index 005256d56e..a9dfe7b143 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -6,6 +6,9 @@ import { StripeResourceObject, RequestHeaders, MultipartRequestData, + RequestAuthenticator, + StripeRequest, + ApiMode, } from './Types.js'; const OPTIONS_KEYS = [ @@ -16,6 +19,9 @@ const OPTIONS_KEYS = [ 'maxNetworkRetries', 'timeout', 'host', + 'authenticator', + 'stripeContext', + 'additionalHeaders', ]; type Settings = { @@ -24,11 +30,11 @@ type Settings = { }; type Options = { - auth: string | null; + authenticator?: RequestAuthenticator | null; host: string | null; settings: Settings; streaming?: boolean; - headers: Record; + headers: RequestHeaders; }; export function isOptionsHash(o: unknown): boolean | unknown { @@ -43,11 +49,15 @@ export function isOptionsHash(o: unknown): boolean | unknown { * Stringifies an Object, accommodating nested objects * (forming the conventional key 'parent[child]=value') */ -export function stringifyRequestData(data: RequestData | string): string { +export function queryStringifyRequestData( + data: RequestData | string, + apiMode?: ApiMode +): string { return ( qs .stringify(data, { serializeDate: (d: Date) => Math.floor(d.getTime() / 1000).toString(), + arrayFormat: apiMode == 'v2' ? 'repeat' : 'indices', }) // Don't use strict form encoding by changing the square bracket control // characters back to their literals. This is fine by the server, and @@ -132,7 +142,6 @@ export function getDataFromArgs(args: RequestArgs): RequestData { */ export function getOptionsFromArgs(args: RequestArgs): Options { const opts: Options = { - auth: null, host: null, headers: {}, settings: {}, @@ -140,7 +149,7 @@ export function getOptionsFromArgs(args: RequestArgs): Options { if (args.length > 0) { const arg = args[args.length - 1]; if (typeof arg === 'string') { - opts.auth = args.pop() as string; + opts.authenticator = createApiKeyAuthenticator(args.pop() as string); } else if (isOptionsHash(arg)) { const params = {...(args.pop() as Record)}; @@ -155,16 +164,24 @@ export function getOptionsFromArgs(args: RequestArgs): Options { } if (params.apiKey) { - opts.auth = params.apiKey as string; + opts.authenticator = createApiKeyAuthenticator(params.apiKey as string); } if (params.idempotencyKey) { - opts.headers['Idempotency-Key'] = params.idempotencyKey; + opts.headers['Idempotency-Key'] = params.idempotencyKey as string; } if (params.stripeAccount) { - opts.headers['Stripe-Account'] = params.stripeAccount; + opts.headers['Stripe-Account'] = params.stripeAccount as string; + } + if (params.stripeContext) { + if (opts.headers['Stripe-Account']) { + throw new Error( + "Can't specify both stripeAccount and stripeContext." + ); + } + opts.headers['Stripe-Context'] = params.stripeContext as string; } if (params.apiVersion) { - opts.headers['Stripe-Version'] = params.apiVersion; + opts.headers['Stripe-Version'] = params.apiVersion as string; } if (Number.isInteger(params.maxNetworkRetries)) { opts.settings.maxNetworkRetries = params.maxNetworkRetries as number; @@ -175,6 +192,23 @@ export function getOptionsFromArgs(args: RequestArgs): Options { if (params.host) { opts.host = params.host as string; } + if (params.authenticator) { + if (params.apiKey) { + throw new Error("Can't specify both apiKey and authenticator."); + } + if (typeof params.authenticator !== 'function') { + throw new Error( + 'The authenticator must be a function ' + + 'receiving a request as the first parameter.' + ); + } + opts.authenticator = params.authenticator as RequestAuthenticator; + } + if (params.additionalHeaders) { + opts.headers = params.additionalHeaders as { + [headerName: string]: string; + }; + } } } return opts; @@ -361,6 +395,20 @@ export function determineProcessUserAgentProperties(): Record { }; } +export function createApiKeyAuthenticator( + apiKey: string +): RequestAuthenticator { + const authenticator = (request: StripeRequest): Promise => { + request.headers.Authorization = 'Bearer ' + apiKey; + return Promise.resolve(); + }; + + // For testing + authenticator._apiKey = apiKey; + + return authenticator; +} + /** * Joins an array of Uint8Arrays into a single Uint8Array */ @@ -376,3 +424,31 @@ export function concat(arrays: Array): Uint8Array { return merged; } + +/** + * Replaces Date objects with Unix timestamps + */ +function dateTimeReplacer(this: any, key: string, value: any): string { + 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: RequestData | string): string { + return JSON.stringify(data, dateTimeReplacer); +} + +/** + * Inspects the given path to determine if the endpoint is for v1 or v2 API + */ +export function getAPIMode(path?: string): ApiMode { + if (!path) { + return 'v1'; + } + return path.startsWith('/v2') ? 'v2' : 'v1'; +} diff --git a/test/Error.spec.ts b/test/Error.spec.ts index a899766a7a..7efa021179 100644 --- a/test/Error.spec.ts +++ b/test/Error.spec.ts @@ -23,6 +23,29 @@ describe('Error', () => { ).to.be.instanceOf(Error.StripeUnknownError); }); + it('Generates specific instance of v2 errors depending on error-type', () => { + // Falls back to V1 parsing logic if code is absent + expect(Error.generateV2Error({type: 'card_error'})).to.be.instanceOf( + Error.StripeCardError + ); + // Falls back to V1 parsing logic if code is unrecognized + expect( + Error.generateV2Error({type: 'card_error', code: 'no_such_error'}) + ).to.be.instanceOf(Error.StripeCardError); + expect( + Error.generateV2Error({ + code: 'invalid_fields', + }) + ).to.be.instanceOf(Error.StripeInvalidRequestError); + expect( + Error.generateV2Error({type: 'temporary_session_expired'}) + ).to.be.instanceOf(Error.TemporarySessionExpiredError); + + expect(Error.generateV2Error({code: 'invalid_fields'})).to.be.instanceOf( + Error.StripeInvalidRequestError + ); + }); + it('copies whitelisted properties', () => { const e = new Error.StripeError({ charge: 'foo', diff --git a/test/RequestSender.spec.ts b/test/RequestSender.spec.ts index 9ccf7b1ea3..6927803959 100644 --- a/test/RequestSender.spec.ts +++ b/test/RequestSender.spec.ts @@ -1,5 +1,7 @@ // @ts-nocheck import {expect} from 'chai'; +import nock = require('nock'); + import { StripeAuthenticationError, StripeConnectionError, @@ -7,15 +9,17 @@ import { StripeIdempotencyError, StripePermissionError, StripeRateLimitError, + StripeUnknownError, + TemporarySessionExpiredError, } from '../src/Error.js'; -import {HttpClientResponse} from '../src/net/HttpClient.js'; import {RequestSender} from '../src/RequestSender.js'; +import {ApiVersion} from '../src/apiVersion.js'; +import {HttpClientResponse} from '../src/net/HttpClient.js'; import { FAKE_API_KEY, getSpyableStripe, getTestServerStripe, } from './testUtils.js'; -import nock = require('nock'); const stripe = getSpyableStripe(); @@ -23,22 +27,46 @@ describe('RequestSender', () => { const sender = new RequestSender(stripe, 0); describe('_makeHeaders', () => { - it('sets the Authorization header with Bearer auth using the global API key', () => { - const headers = sender._makeHeaders(null, 0, null); - expect(headers.Authorization).to.equal(`Bearer ${FAKE_API_KEY}`); - }); - it('sets the Authorization header with Bearer auth using the specified API key', () => { - const headers = sender._makeHeaders('anotherFakeAuthToken', 0, null); - expect(headers.Authorization).to.equal('Bearer anotherFakeAuthToken'); - }); it('sets the Stripe-Version header if an API version is provided', () => { - const headers = sender._makeHeaders(null, 0, '1970-01-01'); + const headers = sender._makeHeaders({apiVersion: '1970-01-01'}); expect(headers['Stripe-Version']).to.equal('1970-01-01'); }); it('does not the set the Stripe-Version header if no API version is provided', () => { - const headers = sender._makeHeaders(null, 0, null); + const headers = sender._makeHeaders({}); expect(headers).to.not.include.keys('Stripe-Version'); }); + describe('idempotency keys', () => { + it('only creates creates an idempotency key if a v1 request wil retry', () => { + const headers = sender._makeHeaders({ + method: 'POST', + userSuppliedSettings: {maxNetworkRetries: 3}, + apiMode: 'v1', + }); + expect(headers['Idempotency-Key']).matches(/^stripe-node-retry/); + }); + // should probably always create an IK; until then, codify the behavior + it("skips idempotency genration for v1 reqeust if we're not retrying the request", () => { + const headers = sender._makeHeaders({ + method: 'POST', + userSuppliedSettings: {maxNetworkRetries: 0}, + apiMode: 'v1', + }); + expect(headers['Idempotency-Key']).equals(undefined); + }); + it('always creates an idempotency key for v2 POST requests', () => { + const headers = sender._makeHeaders({method: 'POST', apiMode: 'v2'}); + expect(headers['Idempotency-Key']).matches(/^stripe-node-retry/); + }); + it('always creates an idempotency key for v2 DELETE requests', () => { + const headers = sender._makeHeaders({method: 'DELETE', apiMode: 'v2'}); + expect(headers['Idempotency-Key']).matches(/^stripe-node-retry/); + }); + it('generates a new key every time', () => { + expect(sender._defaultIdempotencyKey('POST', {}, 'v2')).not.to.equal( + sender._defaultIdempotencyKey('POST', {}, 'v2') + ); + }); + }); }); describe('_shouldRetry', () => { @@ -90,7 +118,7 @@ describe('RequestSender', () => { describe('Parameter encoding', () => { // Use a real instance of stripe as we're mocking the http.request responses. - const realStripe = require('../src/stripe.cjs.node.js')('sk_test_xyz'); + const realStripe = require('../src/stripe.cjs.node.js')(FAKE_API_KEY); afterEach(() => { nock.cleanAll(); @@ -268,9 +296,12 @@ describe('RequestSender', () => { const scope = nock( `https://${options.host}`, - // Content-Length should be present for POST. + // Content-Length and Content-Type should be present for POST. { - reqheaders: {'Content-Length': options.body.length}, + reqheaders: { + 'Content-Length': options.body.length, + 'Content-Type': 'application/x-www-form-urlencoded', + }, } ) .post(options.path, options.body) @@ -286,6 +317,89 @@ describe('RequestSender', () => { ); }); + it('encodes the body in POST requests as JSON for v2', (done) => { + const options = { + host: stripe.getConstant('DEFAULT_HOST'), + path: '/v2/billing/meter_event_session', + data: { + name: 'llama', + }, + body: '{"name":"llama"}', + }; + + const scope = nock( + `https://${options.host}`, + // Content-Length and Content-Type should be present for POST. + { + reqheaders: { + 'Content-Length': options.body.length, + 'Content-Type': 'application/json', + }, + } + ) + .post(options.path, options.body) + .reply(200, '{}'); + + realStripe.v2.billing.meterEventSession.create( + options.data, + (err, response) => { + done(err); + scope.done(); + } + ); + }); + + it('encodes null values in the body in POST correctly for v2', (done) => { + const options = { + host: stripe.getConstant('DEFAULT_HOST'), + path: '/v2/billing/meter_event_session', + data: { + name: null, + }, + body: '{"name":null}', + }; + + const scope = nock( + `https://${options.host}`, + // Content-Length and Content-Type should be present for POST. + { + reqheaders: { + 'Content-Length': options.body.length, + 'Content-Type': 'application/json', + }, + } + ) + .post(options.path, options.body) + .reply(200, '{}'); + + realStripe.v2.billing.meterEventSession.create( + options.data, + (err, response) => { + done(err); + scope.done(); + } + ); + }); + + it('encodes data for GET requests as query params for v2', (done) => { + const host = stripe.getConstant('DEFAULT_HOST'); + const scope = nock(`https://${host}`) + .get( + `/v2/core/events/event_123?include=defaults&include=configuration`, + '' + ) + .reply(200, '{}'); + + realStripe.v2.core.events.retrieve( + 'event_123', + {include: ['defaults', 'configuration']}, + (err, response) => { + done(err); + scope.done(); + } + ); + }); + it('always includes Content-Length in POST requests even when empty', (done) => { const options = { host: stripe.getConstant('DEFAULT_HOST'), @@ -315,6 +429,38 @@ describe('RequestSender', () => { ); }); + it('encodes Date objects in POST requests as JSON for v2', (done) => { + const options = { + host: stripe.getConstant('DEFAULT_HOST'), + path: '/v2/billing/meter_event_session', + data: { + created: new Date('2009-02-13T23:31:30Z'), + }, + body: '{"created":"1234567890"}', + }; + + const scope = nock( + `https://${options.host}`, + // Content-Length and Content-Type should be present for POST. + { + reqheaders: { + 'Content-Length': options.body.length, + 'Content-Type': 'application/json', + }, + } + ) + .post(options.path, options.body) + .reply(200, '{}'); + + realStripe.v2.billing.meterEventSession.create( + options.data, + (err, response) => { + done(err); + scope.done(); + } + ); + }); + it('allows overriding host', (done) => { const scope = nock('https://myhost') .get('/v1/accounts/acct_123') @@ -332,6 +478,20 @@ describe('RequestSender', () => { } ); }); + + it('sends with APIVersion in header', (done) => { + const host = stripe.getConstant('DEFAULT_HOST'); + const scope = nock(`https://${host}`, { + reqheaders: {'Stripe-Version': ApiVersion}, + }) + .get('/v1/subscriptions') + .reply(200, '{}'); + + realStripe.subscriptions.list((err, response) => { + done(err); + scope.done(); + }); + }); }); }); @@ -509,6 +669,47 @@ describe('RequestSender', () => { }); }); + it('throws a v2 StripeError based on the underlying error "code" for v2 APIs', (done) => { + const error = { + type: 'temporary_session_expired', + message: 'you messed up', + }; + + nock(`https://${options.host}`) + .post('/v2/billing/meter_event_session', {}) + .reply(400, { + error, + }); + + realStripe.v2.billing.meterEventSession.create({}, (err) => { + expect(err).to.be.an.instanceOf(TemporarySessionExpiredError); + expect(err.message).to.equal('you messed up'); + done(); + }); + }); + + it('throws a v1 StripeError for v1 APIs', (done) => { + const error = { + type: 'temporary_session_expired', + message: 'you messed up', + }; + + nock(`https://${options.host}`) + .post('/v1/customers', {}) + .reply(400, { + error, + }); + + realStripe.customers.create({}, (err) => { + expect(err).to.be.an.instanceOf(StripeError); + expect(err).to.be.an.instanceOf(StripeUnknownError); + expect(err).not.to.be.an.instanceOf(TemporarySessionExpiredError); + expect(err.message).to.equal('you messed up'); + expect(err.raw.message).to.equal('you messed up'); + done(); + }); + }); + it('retries connection timeout errors', (done) => { let nRequestsReceived = 0; return getTestServerStripe( diff --git a/test/autoPagination.spec.ts b/test/autoPagination.spec.ts index 1c5f99db1e..063aad5211 100644 --- a/test/autoPagination.spec.ts +++ b/test/autoPagination.spec.ts @@ -5,6 +5,7 @@ import {expect} from 'chai'; import {makeAutoPaginationMethods} from '../src/autoPagination.js'; import {StripeResource} from '../src/StripeResource.js'; import {getMockStripe} from './testUtils.js'; +import {MethodSpec} from '../src/Types.js'; describe('auto pagination', () => { const testCase = (mockPaginationFn) => ({ @@ -36,7 +37,6 @@ describe('auto pagination', () => { method: 'GET', fullPath: '/v1/items', methodType: 'list', - apiMode: 'v1', }; const mockStripe = getMockStripe( @@ -544,7 +544,7 @@ describe('auto pagination', () => { }); }); - describe('foward pagination', () => { + describe('forward pagination', () => { it('paginates forwards through a page', () => { return testCaseV1List({ pages: [ @@ -647,7 +647,6 @@ describe('auto pagination', () => { const spec = { method: 'GET', methodType: 'search', - apiMode: 'v1', }; const addNextPage = (props) => { @@ -746,6 +745,103 @@ describe('auto pagination', () => { }); }); }); + describe('V2 list pagination', () => { + const mockPaginationV2List = (pages, initialArgs) => { + let i = 1; + const paramsLog = []; + const spec = { + method: 'GET', + fullPath: '/v2/items', + methodType: 'list', + }; + + const mockStripe = getMockStripe( + {}, + (_1, _2, path, _4, _5, _6, _7, callback) => { + paramsLog.push(path.slice(path.indexOf('?'))); + callback( + null, + Promise.resolve({ + data: pages[i].ids.map((id) => ({id})), + next_page_url: pages[i].next_page_url, + }) + ); + i += 1; + } + ); + const resource = new StripeResource(mockStripe); + + const paginator = makeAutoPaginationMethods( + resource, + initialArgs || {}, + spec, + Promise.resolve({ + data: pages[0].ids.map((id) => ({id})), + next_page_url: pages[0].next_page_url, + }) + ); + return {paginator, paramsLog}; + }; + + const testCaseV2List = testCase(mockPaginationV2List); + it('paginates forwards through a page', () => { + return testCaseV2List({ + pages: [ + {ids: [1, 2], next_page_url: '/v2/items?page=foo'}, + {ids: [3, 4]}, + ], + limit: 10, + expectedIds: [1, 2, 3, 4], + expectedParamsLog: ['?page=foo'], + }); + }); + + it('paginates forwards through uneven-sized pages', () => { + return testCaseV2List({ + pages: [ + {ids: [1, 2], next_page_url: '/v2/items?page=foo'}, + {ids: [3, 4], next_page_url: '/v2/items?page=bar'}, + {ids: [5]}, + ], + limit: 10, + expectedIds: [1, 2, 3, 4, 5], + expectedParamsLog: ['?page=foo', '?page=bar'], + }); + }); + + it('respects limit even when paginating', () => { + return testCaseV2List({ + pages: [ + {ids: [1, 2], next_page_url: '/v2/items?limit=5&page=a'}, + {ids: [3, 4], next_page_url: '/v2/items?limit=5&page=b'}, + {ids: [5, 6]}, + ], + limit: 5, + expectedIds: [1, 2, 3, 4, 5], + expectedParamsLog: ['?limit=5&page=a', '?limit=5&page=b'], + }); + }); + + it('paginates through multiple full pages', () => { + return testCaseV2List({ + pages: [ + {ids: [1, 2], next_page_url: '/v2/items?limit=10&page=wibble'}, + {ids: [3, 4], next_page_url: '/v2/items?limit=10&page=wobble'}, + {ids: [5, 6], next_page_url: '/v2/items?limit=10&page=weeble'}, + {ids: [7, 8], next_page_url: '/v2/items?limit=10&page=blubble'}, + {ids: [9, 10]}, + ], + limit: 10, + expectedIds: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], + expectedParamsLog: [ + '?limit=10&page=wibble', + '?limit=10&page=wobble', + '?limit=10&page=weeble', + '?limit=10&page=blubble', + ], + }); + }); + }); }); export {}; diff --git a/test/crypto/helpers.ts b/test/crypto/helpers.ts index a056283c6c..3e5a905224 100644 --- a/test/crypto/helpers.ts +++ b/test/crypto/helpers.ts @@ -57,5 +57,16 @@ export const createCryptoProviderTestSuite = ( }); } }); + + describe('computeSHA256Async', () => { + it('computes the hash', async () => { + const signature = await cryptoProvider.computeSHA256Async( + new Uint8Array([1, 2, 3, 4, 5]) + ); + expect(Buffer.from(signature).toString('base64')).to.equal( + 'dPgf4WfZm0y0HW0MzagieMrunz4vJdXlo5Nv89zsYNA=' + ); + }); + }); }); }; diff --git a/test/net/helpers.ts b/test/net/helpers.ts index 6154b86473..cdec2b0e5f 100644 --- a/test/net/helpers.ts +++ b/test/net/helpers.ts @@ -101,7 +101,7 @@ export const createHttpClientTestSuite = (createHttpClientFn, extraTestsFn) => { }); it('sends request data (POST)', (done) => { - const expectedData = utils.stringifyRequestData({id: 'test'}); + const expectedData = utils.queryStringifyRequestData({id: 'test'}); nock('http://stripe.com') .post('/test') diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 8a87f2869d..06c429bc1b 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -567,6 +567,19 @@ describe('Generated tests', function() { expect(session).not.to.be.null; }); + it('test_core_events_get', async function() { + const stripe = testUtils.createMockClient([ + { + method: 'GET', + path: '/v2/core/events/ll_123', + response: + '{"context":"context","created":"1970-01-12T21:42:34.472Z","id":"obj_123","livemode":true,"object":"v2.core.event","reason":{"type":"request","request":{"id":"obj_123","idempotency_key":"idempotency_key"}},"type":"type"}', + }, + ]); + const event = await stripe.v2.core.events.retrieve('ll_123'); + expect(event).not.to.be.null; + }); + it('test_country_specs_get', async function() { const countrySpecs = await stripe.countrySpecs.list({ limit: 3, @@ -2988,17 +3001,6 @@ describe('Generated tests', function() { expect(reader).not.to.be.null; }); - it('test_terminal_readers_process_setup_intent_post', async function() { - const reader = await stripe.terminal.readers.processSetupIntent( - 'tmr_xxxxxxxxxxxxx', - { - setup_intent: 'seti_xxxxxxxxxxxxx', - customer_consent_collected: true, - } - ); - expect(reader).not.to.be.null; - }); - it('test_test_helpers_customers_fund_cash_balance_post', async function() { const customerCashBalanceTransaction = await stripe.testHelpers.customers.fundCashBalance( 'cus_123', diff --git a/test/stripe.spec.ts b/test/stripe.spec.ts index 79d702bf92..69c840e71e 100644 --- a/test/stripe.spec.ts +++ b/test/stripe.spec.ts @@ -4,14 +4,16 @@ 'use strict'; import {expect} from 'chai'; +import {StripeSignatureVerificationError} from '../src/Error.js'; import {ApiVersion} from '../src/apiVersion.js'; import {createStripe} from '../src/stripe.core.js'; +import {createApiKeyAuthenticator} from '../src/utils.js'; import { + FAKE_API_KEY, getMockPlatformFunctions, getRandomString, - getTestServerStripe, getStripeMockClient, - FAKE_API_KEY, + getTestServerStripe, } from './testUtils.js'; import Stripe = require('../src/stripe.cjs.node.js'); import crypto = require('crypto'); @@ -65,7 +67,7 @@ describe('Stripe Module', function() { }).to.not.throw(); }); - it('should perform a no-op if null, undefined or empty values are passed', () => { + it('API should use the default version when undefined or empty values are passed', () => { const cases = [null, undefined, '', {}]; cases.forEach((item) => { @@ -108,7 +110,32 @@ describe('Stripe Module', function() { describe('setApiKey', () => { it('uses Bearer auth', () => { - expect(stripe.getApiField('auth')).to.equal(`Bearer ${FAKE_API_KEY}`); + expect(stripe._authenticator._apiKey).to.equal(`${FAKE_API_KEY}`); + }); + + it('should throw if no api key or authenticator provided', () => { + expect(() => new Stripe(null)).to.throw( + 'Neither apiKey nor config.authenticator provided' + ); + }); + }); + + describe('authenticator', () => { + it('should throw an error when specifying both key and authenticator', () => { + expect(() => { + return new Stripe('key', { + authenticator: createApiKeyAuthenticator('...'), + }); + }).to.throw("Can't specify both apiKey and authenticator"); + }); + + it('can create client using authenticator', () => { + const authenticator = createApiKeyAuthenticator('...'); + const stripe = new Stripe(null, { + authenticator: authenticator, + }); + + expect(stripe._authenticator).to.equal(authenticator); }); }); @@ -529,6 +556,117 @@ describe('Stripe Module', function() { ); }); }); + describe('gets removed', () => { + let headers; + let stripeClient; + let closeServer; + beforeEach((callback) => { + getTestServerStripe( + {}, + (req, res) => { + headers = req.headers; + res.writeHeader(200); + res.write('{}'); + res.end(); + }, + (err, client, close) => { + if (err) { + return callback(err); + } + stripeClient = client; + closeServer = close; + return callback(); + } + ); + }); + afterEach(() => closeServer()); + + it('if explicitly undefined', (callback) => { + stripeClient.customers.create({stripeAccount: undefined}, (err) => { + closeServer(); + if (err) { + return callback(err); + } + expect(Object.keys(headers)).not.to.include('stripe-account'); + return callback(); + }); + }); + + it('if explicitly null', (callback) => { + stripeClient.customers.create({stripeAccount: null}, (err) => { + closeServer(); + if (err) { + return callback(err); + } + expect(Object.keys(headers)).not.to.include('stripe-account'); + return callback(); + }); + }); + }); + }); + + describe('context', () => { + describe('when passed in via the config object', () => { + let headers; + let stripeClient; + let closeServer; + beforeEach((callback) => { + getTestServerStripe( + { + stripeContext: 'ctx_123', + }, + (req, res) => { + headers = req.headers; + res.writeHeader(200); + res.write('{}'); + res.end(); + }, + (err, client, close) => { + if (err) { + return callback(err); + } + stripeClient = client; + closeServer = close; + return callback(); + } + ); + }); + afterEach(() => closeServer()); + it('is not sent on v1 call', (callback) => { + stripeClient.customers.create((err) => { + closeServer(); + if (err) { + return callback(err); + } + expect(headers['stripe-context']).to.equal(undefined); + return callback(); + }); + }); + it('is respected', (callback) => { + stripeClient.v2.billing.meterEventSession.create((err) => { + closeServer(); + if (err) { + return callback(err); + } + expect(headers['stripe-context']).to.equal('ctx_123'); + return callback(); + }); + }); + it('can still be overridden per-request', (callback) => { + stripeClient.v2.billing.meterEventSession.create( + {name: 'llama'}, + {stripeContext: 'ctx_456'}, + (err) => { + closeServer(); + if (err) { + return callback(err); + } + expect(headers['stripe-context']).to.equal('ctx_456'); + return callback(); + } + ); + }); + }); }); describe('setMaxNetworkRetries', () => { @@ -545,12 +683,12 @@ describe('Stripe Module', function() { }); describe('when passed in via the config object', () => { - it('should default to 1 if a non-integer is passed', () => { + it('should default to 2 if a non-integer is passed', () => { const newStripe = Stripe(FAKE_API_KEY, { maxNetworkRetries: 'foo', }); - expect(newStripe.getMaxNetworkRetries()).to.equal(1); + expect(newStripe.getMaxNetworkRetries()).to.equal(2); expect(() => { Stripe(FAKE_API_KEY, { @@ -572,7 +710,7 @@ describe('Stripe Module', function() { it('should use the default', () => { const newStripe = Stripe(FAKE_API_KEY); - expect(newStripe.getMaxNetworkRetries()).to.equal(1); + expect(newStripe.getMaxNetworkRetries()).to.equal(2); }); }); }); @@ -584,4 +722,243 @@ describe('Stripe Module', function() { expect(newStripe.VERSION).to.equal(Stripe.PACKAGE_VERSION); }); }); + + describe('parseThinEvent', () => { + const secret = 'whsec_test_secret'; + + it('can parse event from JSON payload', () => { + const jsonPayload = { + type: 'account.created', + data: 'hello', + related_object: {id: '123', url: 'hello_again'}, + }; + const payload = JSON.stringify(jsonPayload); + const header = stripe.webhooks.generateTestHeaderString({ + payload, + secret, + }); + const event = stripe.parseThinEvent(payload, header, secret); + + expect(event.type).to.equal(jsonPayload.type); + expect(event.data).to.equal(jsonPayload.data); + expect(event.related_object.id).to.equal(jsonPayload.related_object.id); + }); + + it('throws an error for invalid signatures', () => { + const payload = JSON.stringify({event_type: 'account.created'}); + + expect(() => { + stripe.parseThinEvent(payload, 'bad sigheader', secret); + }).to.throw(StripeSignatureVerificationError); + }); + }); + + describe('rawRequest', () => { + const returnedCustomer = { + id: 'cus_123', + }; + + it('should make request with specified encoding FORM', (done) => { + return getTestServerStripe( + {}, + (req, res) => { + expect(req.headers['content-type']).to.equal( + 'application/x-www-form-urlencoded' + ); + expect(req.headers['stripe-version']).to.equal(ApiVersion); + const requestBody = []; + req.on('data', (chunks) => { + requestBody.push(chunks); + }); + req.on('end', () => { + const body = Buffer.concat(requestBody).toString(); + expect(body).to.equal('description=test%20customer'); + }); + res.write(JSON.stringify(returnedCustomer)); + res.end(); + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + const result = await stripe.rawRequest( + 'POST', + '/v1/customers', + {description: 'test customer'}, + {} + ); + expect(result).to.deep.equal(returnedCustomer); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('should make request with specified encoding JSON', (done) => { + return getTestServerStripe( + {}, + (req, res) => { + expect(req.headers['content-type']).to.equal('application/json'); + expect(req.headers['stripe-version']).to.equal(ApiVersion); + expect(req.headers.foo).to.equal('bar'); + const requestBody = []; + req.on('data', (chunks) => { + requestBody.push(chunks); + }); + req.on('end', () => { + const body = Buffer.concat(requestBody).toString(); + expect(body).to.equal( + '{"description":"test meter event","created":"1234567890"}' + ); + }); + res.write(JSON.stringify(returnedCustomer)); + res.end(); + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + const result = await stripe.rawRequest( + 'POST', + '/v2/billing/meter_events', + { + description: 'test meter event', + created: new Date('2009-02-13T23:31:30Z'), + }, + {additionalHeaders: {foo: 'bar'}} + ); + expect(result).to.deep.equal(returnedCustomer); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('defaults to form encoding request if not specified', (done) => { + return getTestServerStripe( + {}, + (req, res) => { + expect(req.headers['content-type']).to.equal( + 'application/x-www-form-urlencoded' + ); + const requestBody = []; + req.on('data', (chunks) => { + requestBody.push(chunks); + }); + req.on('end', () => { + const body = Buffer.concat(requestBody).toString(); + expect(body).to.equal( + 'description=test%20customer&created=1234567890' + ); + }); + res.write(JSON.stringify(returnedCustomer)); + res.end(); + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + const result = await stripe.rawRequest('POST', '/v1/customers', { + description: 'test customer', + created: new Date('2009-02-13T23:31:30Z'), + }); + expect(result).to.deep.equal(returnedCustomer); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('should make request with specified additional headers', (done) => { + return getTestServerStripe( + {}, + (req, res) => { + console.log(req.headers); + expect(req.headers.foo).to.equal('bar'); + res.write(JSON.stringify(returnedCustomer)); + res.end(); + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + const result = await stripe.rawRequest( + 'GET', + '/v1/customers/cus_123', + {}, + {additionalHeaders: {foo: 'bar'}} + ); + expect(result).to.deep.equal(returnedCustomer); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('should make request successfully', async () => { + const response = await stripe.rawRequest('GET', '/v1/customers', {}); + + expect(response).to.have.property('object', 'list'); + }); + + it("should include 'raw_request' in usage telemetry", (done) => { + let telemetryHeader; + let shouldStayOpen = true; + return getTestServerStripe( + {}, + (req, res) => { + telemetryHeader = req.headers['x-stripe-client-telemetry']; + res.setHeader('Request-Id', `req_1`); + res.writeHeader(200); + res.write('{}'); + res.end(); + const ret = {shouldStayOpen}; + shouldStayOpen = false; + return ret; + }, + async (err, stripe, closeServer) => { + if (err) return done(err); + try { + await stripe.rawRequest( + 'POST', + '/v1/customers', + {description: 'test customer'}, + {} + ); + expect(telemetryHeader).to.equal(undefined); + await stripe.rawRequest( + 'POST', + '/v1/customers', + {description: 'test customer'}, + {} + ); + expect( + JSON.parse(telemetryHeader).last_request_metrics.usage + ).to.deep.equal(['raw_request']); + closeServer(); + done(); + } catch (err) { + return done(err); + } + } + ); + }); + + it('should throw error when passing in params to non-POST request', async () => { + await expect( + stripe.rawRequest('GET', '/v1/customers/cus_123', {foo: 'bar'}) + ).to.be.rejectedWith( + Error, + /rawRequest only supports params on POST requests. Please pass null and add your parameters to path./ + ); + }); + }); }); diff --git a/test/testUtils.ts b/test/testUtils.ts index 4d798ec6f7..454b273b46 100644 --- a/test/testUtils.ts +++ b/test/testUtils.ts @@ -8,6 +8,7 @@ import {NodePlatformFunctions} from '../src/platform/NodePlatformFunctions.js'; import {RequestSender} from '../src/RequestSender.js'; import {createStripe} from '../src/stripe.core.js'; import { + RequestAuthenticator, RequestCallback, RequestData, RequestDataProcessor, @@ -70,7 +71,7 @@ export const getStripeMockClient = (): StripeClient => { path: string, method: string, headers: RequestHeaders, - requestData: RequestData, + requestData: string, _protocol: string, timeout: number ): Promise { @@ -115,8 +116,8 @@ export const getMockStripe = ( host: string | null, path: string, data: RequestData, - auth: string | null, - options: RequestOptions = {}, + authenticator: RequestAuthenticator, + options: RequestOptions = {} as any, usage: Array, callback: RequestCallback, requestDataProcessor: RequestDataProcessor | null = null @@ -126,7 +127,7 @@ export const getMockStripe = ( host, path, data, - auth, + authenticator, options, usage, callback, @@ -170,8 +171,8 @@ export const getSpyableStripe = ( host: string | null, path: string, data: RequestData, - auth: string | null, - options: RequestOptions = {}, + authenticator: RequestAuthenticator, + options: RequestOptions = {} as any, usage: Array = [], callback: RequestCallback, requestDataProcessor: RequestDataProcessor | null = null @@ -183,6 +184,7 @@ export const getSpyableStripe = ( headers: RequestHeaders; settings: RequestSettings; auth?: string; + authenticator?: RequestAuthenticator; host?: string; usage?: Array; }; @@ -196,8 +198,13 @@ export const getSpyableStripe = ( if (usage && usage.length > 1) { req.usage = usage; } - if (auth) { - req.auth = auth; + if (authenticator) { + // Extract API key from the api-key authenticator + if ((authenticator as any)._apiKey) { + req.auth = (authenticator as any)._apiKey; + } else { + req.authenticator = authenticator; + } } if (host) { req.host = host; @@ -222,7 +229,7 @@ export const getSpyableStripe = ( host, path, data, - auth, + authenticator, options, usage, callback, diff --git a/test/utils.spec.ts b/test/utils.spec.ts index 248d8ee92b..b2437d9c76 100644 --- a/test/utils.spec.ts +++ b/test/utils.spec.ts @@ -28,10 +28,10 @@ describe('utils', () => { }); }); - describe('stringifyRequestData', () => { + describe('queryStringifyRequestData', () => { it('Handles basic types', () => { expect( - utils.stringifyRequestData({ + utils.queryStringifyRequestData({ a: 1, b: 'foo', }) @@ -40,7 +40,7 @@ describe('utils', () => { it('Handles Dates', () => { expect( - utils.stringifyRequestData({ + utils.queryStringifyRequestData({ date: new Date('2009-02-13T23:31:30Z'), created: { gte: new Date('2009-02-13T23:31:30Z'), @@ -58,7 +58,7 @@ describe('utils', () => { it('Handles deeply nested object', () => { expect( - utils.stringifyRequestData({ + utils.queryStringifyRequestData({ a: { b: { c: { @@ -72,7 +72,7 @@ describe('utils', () => { it('Handles arrays of objects', () => { expect( - utils.stringifyRequestData({ + utils.queryStringifyRequestData({ a: [{b: 'c'}, {b: 'd'}], }) ).to.equal('a[0][b]=c&a[1][b]=d'); @@ -80,7 +80,7 @@ describe('utils', () => { it('Handles indexed arrays', () => { expect( - utils.stringifyRequestData({ + utils.queryStringifyRequestData({ a: { 0: {b: 'c'}, 1: {b: 'd'}, @@ -91,7 +91,7 @@ describe('utils', () => { it('Creates a string from an object, handling shallow nested objects', () => { expect( - utils.stringifyRequestData({ + utils.queryStringifyRequestData({ test: 1, foo: 'baz', somethingElse: '::""%&', @@ -110,6 +110,17 @@ describe('utils', () => { ].join('&') ); }); + + it('Handles v2 arrays', () => { + expect( + utils.queryStringifyRequestData( + { + include: ['a', 'b'], + }, + 'v2' + ) + ).to.equal('include=a&include=b'); + }); }); describe('protoExtend', () => { @@ -183,7 +194,6 @@ describe('utils', () => { describe('getOptsFromArgs', () => { it('handles an empty list', () => { expect(utils.getOptionsFromArgs([])).to.deep.equal({ - auth: null, host: null, headers: {}, settings: {}, @@ -193,7 +203,6 @@ describe('utils', () => { it('handles an list with no object', () => { const args = [1, 3]; expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: null, host: null, headers: {}, settings: {}, @@ -204,7 +213,6 @@ describe('utils', () => { it('ignores a non-options object', () => { const args = [{foo: 'bar'}]; expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: null, host: null, headers: {}, settings: {}, @@ -214,30 +222,33 @@ describe('utils', () => { it('parses an api key', () => { const args = ['sk_test_iiiiiiiiiiiiiiiiiiiiiiii']; - expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: 'sk_test_iiiiiiiiiiiiiiiiiiiiiiii', + const options = utils.getOptionsFromArgs(args); + expect(options).to.deep.contain({ host: null, headers: {}, settings: {}, }); expect(args.length).to.equal(0); + expect(options.authenticator._apiKey).to.equal( + 'sk_test_iiiiiiiiiiiiiiiiiiiiiiii' + ); }); it('assumes any string is an api key', () => { const args = ['yolo']; - expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: 'yolo', + const options = utils.getOptionsFromArgs(args); + expect(options).to.deep.contain({ host: null, headers: {}, settings: {}, }); expect(args.length).to.equal(0); + expect(options.authenticator._apiKey).to.equal('yolo'); }); it('parses an idempotency key', () => { const args = [{foo: 'bar'}, {idempotencyKey: 'foo'}]; expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: null, host: null, headers: {'Idempotency-Key': 'foo'}, settings: {}, @@ -248,7 +259,6 @@ describe('utils', () => { it('parses an api version', () => { const args = [{foo: 'bar'}, {apiVersion: '2003-03-30'}]; expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: null, host: null, headers: {'Stripe-Version': '2003-03-30'}, settings: {}, @@ -265,8 +275,8 @@ describe('utils', () => { apiVersion: '2010-01-10', }, ]; - expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: 'sk_test_iiiiiiiiiiiiiiiiiiiiiiii', + const options = utils.getOptionsFromArgs(args); + expect(options).to.deep.contains({ host: null, headers: { 'Idempotency-Key': 'foo', @@ -275,6 +285,9 @@ describe('utils', () => { settings: {}, }); expect(args.length).to.equal(1); + expect(options.authenticator._apiKey).to.equal( + 'sk_test_iiiiiiiiiiiiiiiiiiiiiiii' + ); }); it('parses an idempotency key and api key and api version', () => { @@ -285,8 +298,8 @@ describe('utils', () => { apiVersion: 'hunter2', }, ]; - expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: 'sk_test_iiiiiiiiiiiiiiiiiiiiiiii', + const options = utils.getOptionsFromArgs(args); + expect(options).to.deep.contains({ host: null, headers: { 'Idempotency-Key': 'foo', @@ -295,6 +308,9 @@ describe('utils', () => { settings: {}, }); expect(args.length).to.equal(0); + expect(options.authenticator._apiKey).to.equal( + 'sk_test_iiiiiiiiiiiiiiiiiiiiiiii' + ); }); it('parses additional per-request settings', () => { @@ -306,7 +322,6 @@ describe('utils', () => { ]; expect(utils.getOptionsFromArgs(args)).to.deep.equal({ - auth: null, host: null, headers: {}, settings: { diff --git a/testProjects/mjs/index.js b/testProjects/mjs/index.js index d5bc505f23..4271be4424 100644 --- a/testProjects/mjs/index.js +++ b/testProjects/mjs/index.js @@ -19,7 +19,8 @@ assert(Stripe.createNodeCryptoProvider); assert(Stripe.createSubtleCryptoProvider); assert(Stripe.errors); -assert(Stripe.errors.generate) +assert(Stripe.errors.generateV1Error); +assert(Stripe.errors.generateV2Error); assert(Stripe.errors.StripeError); assert(Stripe.errors.StripeCardError); assert(Stripe.errors.StripeInvalidRequestError); diff --git a/types/Billing/Alerts.d.ts b/types/Billing/Alerts.d.ts index 3989d21281..4184264ffb 100644 --- a/types/Billing/Alerts.d.ts +++ b/types/Billing/Alerts.d.ts @@ -22,11 +22,6 @@ declare module 'stripe' { */ alert_type: 'usage_threshold'; - /** - * Limits the scope of the alert to a specific [customer](https://stripe.com/docs/api/customers). - */ - filter: Alert.Filter | null; - /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. */ @@ -45,20 +40,18 @@ declare module 'stripe' { /** * Encapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://stripe.com/docs/api/billing/meter). */ - usage_threshold_config: Alert.UsageThresholdConfig | null; + usage_threshold: Alert.UsageThreshold | null; } namespace Alert { - interface Filter { + type Status = 'active' | 'archived' | 'inactive'; + + interface UsageThreshold { /** - * Limit the scope of the alert to this customer ID + * The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time. */ - customer: string | Stripe.Customer | null; - } + filters: Array | null; - type Status = 'active' | 'archived' | 'inactive'; - - interface UsageThresholdConfig { /** * The value at which this alert will trigger. */ @@ -74,6 +67,17 @@ declare module 'stripe' { */ recurrence: 'one_time'; } + + namespace UsageThreshold { + interface Filter { + /** + * Limit the scope of the alert to this customer ID + */ + customer: string | Stripe.Customer | null; + + type: 'customer'; + } + } } } } diff --git a/types/Billing/AlertsResource.d.ts b/types/Billing/AlertsResource.d.ts index 6090503b89..fa0fdec94e 100644 --- a/types/Billing/AlertsResource.d.ts +++ b/types/Billing/AlertsResource.d.ts @@ -19,36 +19,19 @@ declare module 'stripe' { */ expand?: Array; - /** - * Filters to limit the scope of an alert. - */ - filter?: AlertCreateParams.Filter; - /** * The configuration of the usage threshold. */ - usage_threshold_config?: AlertCreateParams.UsageThresholdConfig; + usage_threshold?: AlertCreateParams.UsageThreshold; } namespace AlertCreateParams { - interface Filter { - /** - * Limit the scope to this alert only to this customer. - */ - customer?: string; - + interface UsageThreshold { /** - * Limit the scope of this rated usage alert to this subscription. + * The filters allows limiting the scope of this usage alert. You can only specify up to one filter at this time. */ - subscription?: string; + filters?: Array; - /** - * Limit the scope of this rated usage alert to this subscription item. - */ - subscription_item?: string; - } - - interface UsageThresholdConfig { /** * Defines at which value the alert will fire. */ @@ -64,6 +47,20 @@ declare module 'stripe' { */ recurrence: 'one_time'; } + + namespace UsageThreshold { + interface Filter { + /** + * Limit the scope to this usage alert only to this customer. + */ + customer?: string; + + /** + * What type of filter is being applied to this usage alert. + */ + type: 'customer'; + } + } } interface AlertRetrieveParams { diff --git a/types/Billing/CreditBalanceSummary.d.ts b/types/Billing/CreditBalanceSummary.d.ts new file mode 100644 index 0000000000..95c82c1f5d --- /dev/null +++ b/types/Billing/CreditBalanceSummary.d.ts @@ -0,0 +1,94 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Billing { + /** + * Indicates the credit balance for credits granted to a customer. + */ + interface CreditBalanceSummary { + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'billing.credit_balance_summary'; + + /** + * The credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. + */ + balances: Array; + + /** + * The customer the balance is for. + */ + customer: string | Stripe.Customer | Stripe.DeletedCustomer; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + } + + namespace CreditBalanceSummary { + interface Balance { + available_balance: Balance.AvailableBalance; + + ledger_balance: Balance.LedgerBalance; + } + + namespace Balance { + interface AvailableBalance { + /** + * The monetary amount. + */ + monetary: AvailableBalance.Monetary | null; + + /** + * The type of this amount. We currently only support `monetary` credits. + */ + type: 'monetary'; + } + + namespace AvailableBalance { + interface Monetary { + /** + * 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; + + /** + * A positive integer representing the amount. + */ + value: number; + } + } + + interface LedgerBalance { + /** + * The monetary amount. + */ + monetary: LedgerBalance.Monetary | null; + + /** + * The type of this amount. We currently only support `monetary` credits. + */ + type: 'monetary'; + } + + namespace LedgerBalance { + interface Monetary { + /** + * 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; + + /** + * A positive integer representing the amount. + */ + value: number; + } + } + } + } + } + } +} diff --git a/types/Billing/CreditBalanceSummaryResource.d.ts b/types/Billing/CreditBalanceSummaryResource.d.ts new file mode 100644 index 0000000000..a2c9312449 --- /dev/null +++ b/types/Billing/CreditBalanceSummaryResource.d.ts @@ -0,0 +1,64 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Billing { + interface CreditBalanceSummaryRetrieveParams { + /** + * The customer for which to fetch credit balance summary. + */ + customer: string; + + /** + * The filter criteria for the credit balance summary. + */ + filter: CreditBalanceSummaryRetrieveParams.Filter; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + namespace CreditBalanceSummaryRetrieveParams { + interface Filter { + /** + * The credit applicability scope for which to fetch balance summary. + */ + applicability_scope?: Filter.ApplicabilityScope; + + /** + * The credit grant for which to fetch balance summary. + */ + credit_grant?: string; + + /** + * Specify the type of this filter. + */ + type: Filter.Type; + } + + namespace Filter { + interface ApplicabilityScope { + /** + * The price type to which credit grants can apply to. We currently only support `metered` price type. + */ + price_type: 'metered'; + } + + type Type = 'applicability_scope' | 'credit_grant'; + } + } + + class CreditBalanceSummaryResource { + /** + * Retrieves the credit balance summary for a customer + */ + retrieve( + params: CreditBalanceSummaryRetrieveParams, + options?: RequestOptions + ): Promise>; + } + } + } +} diff --git a/types/Billing/CreditBalanceTransactions.d.ts b/types/Billing/CreditBalanceTransactions.d.ts new file mode 100644 index 0000000000..91b1b93dd4 --- /dev/null +++ b/types/Billing/CreditBalanceTransactions.d.ts @@ -0,0 +1,159 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Billing { + /** + * A credit balance transaction is a resource representing a transaction (either a credit or a debit) against an existing credit grant. + */ + interface CreditBalanceTransaction { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'billing.credit_balance_transaction'; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * Credit details for this balance transaction. Only present if type is `credit`. + */ + credit: CreditBalanceTransaction.Credit | null; + + /** + * The credit grant associated with this balance transaction. + */ + credit_grant: string | Stripe.Billing.CreditGrant; + + /** + * Debit details for this balance transaction. Only present if type is `debit`. + */ + debit: CreditBalanceTransaction.Debit | null; + + /** + * The effective time of this balance transaction. + */ + effective_at: number; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * ID of the test clock this credit balance transaction belongs to. + */ + test_clock: string | Stripe.TestHelpers.TestClock | null; + + /** + * The type of balance transaction (credit or debit). + */ + type: CreditBalanceTransaction.Type | null; + } + + namespace CreditBalanceTransaction { + interface Credit { + amount: Credit.Amount; + + /** + * The type of credit transaction. + */ + type: 'credits_granted'; + } + + namespace Credit { + interface Amount { + /** + * The monetary amount. + */ + monetary: Amount.Monetary | null; + + /** + * The type of this amount. We currently only support `monetary` credits. + */ + type: 'monetary'; + } + + namespace Amount { + interface Monetary { + /** + * 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; + + /** + * A positive integer representing the amount. + */ + value: number; + } + } + } + + interface Debit { + amount: Debit.Amount; + + /** + * Details of how the credits were applied to an invoice. Only present if `type` is `credits_applied`. + */ + credits_applied: Debit.CreditsApplied | null; + + /** + * The type of debit transaction. + */ + type: Debit.Type; + } + + namespace Debit { + interface Amount { + /** + * The monetary amount. + */ + monetary: Amount.Monetary | null; + + /** + * The type of this amount. We currently only support `monetary` credits. + */ + type: 'monetary'; + } + + namespace Amount { + interface Monetary { + /** + * 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; + + /** + * A positive integer representing the amount. + */ + value: number; + } + } + + interface CreditsApplied { + /** + * The invoice to which the credits were applied. + */ + invoice: string | Stripe.Invoice; + + /** + * The invoice line item to which the credits were applied. + */ + invoice_line_item: string; + } + + type Type = 'credits_applied' | 'credits_expired' | 'credits_voided'; + } + + type Type = 'credit' | 'debit'; + } + } + } +} diff --git a/types/Billing/CreditBalanceTransactionsResource.d.ts b/types/Billing/CreditBalanceTransactionsResource.d.ts new file mode 100644 index 0000000000..22eb502afa --- /dev/null +++ b/types/Billing/CreditBalanceTransactionsResource.d.ts @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Billing { + interface CreditBalanceTransactionRetrieveParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface CreditBalanceTransactionListParams extends PaginationParams { + /** + * The customer for which to fetch credit balance transactions. + */ + customer: string; + + /** + * The credit grant for which to fetch credit balance transactions. + */ + credit_grant?: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + class CreditBalanceTransactionsResource { + /** + * Retrieves a credit balance transaction + */ + retrieve( + id: string, + params?: CreditBalanceTransactionRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Retrieve a list of credit balance transactions + */ + list( + params: CreditBalanceTransactionListParams, + options?: RequestOptions + ): ApiListPromise; + } + } + } +} diff --git a/types/Billing/CreditGrants.d.ts b/types/Billing/CreditGrants.d.ts new file mode 100644 index 0000000000..9c93b0c433 --- /dev/null +++ b/types/Billing/CreditGrants.d.ts @@ -0,0 +1,124 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Billing { + /** + * A credit grant is a resource that records a grant of some credit to a customer. + */ + interface CreditGrant { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'billing.credit_grant'; + + amount: CreditGrant.Amount; + + applicability_config: CreditGrant.ApplicabilityConfig; + + /** + * The category of this credit grant. + */ + category: CreditGrant.Category; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * Id of the customer to whom the credit was granted. + */ + customer: string | Stripe.Customer | Stripe.DeletedCustomer; + + /** + * The time when the credit becomes effective i.e when it is eligible to be used. + */ + effective_at: number | null; + + /** + * The time when the credit will expire. If not present, the credit will never expire. + */ + expires_at: number | null; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * 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; + + /** + * A descriptive name shown in dashboard and on invoices. + */ + name: string | null; + + /** + * ID of the test clock this credit grant belongs to. + */ + test_clock: string | Stripe.TestHelpers.TestClock | null; + + /** + * Time at which the object was last updated. Measured in seconds since the Unix epoch. + */ + updated: number; + + /** + * The time when this credit grant was voided. If not present, the credit grant hasn't been voided. + */ + voided_at: number | null; + } + + namespace CreditGrant { + interface Amount { + /** + * The monetary amount. + */ + monetary: Amount.Monetary | null; + + /** + * The type of this amount. We currently only support `monetary` credits. + */ + type: 'monetary'; + } + + namespace Amount { + interface Monetary { + /** + * 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; + + /** + * A positive integer representing the amount. + */ + value: number; + } + } + + interface ApplicabilityConfig { + scope: ApplicabilityConfig.Scope; + } + + namespace ApplicabilityConfig { + interface Scope { + /** + * The price type to which credit grants can apply to. We currently only support `metered` price type. + */ + price_type: 'metered'; + } + } + + type Category = 'paid' | 'promotional'; + } + } + } +} diff --git a/types/Billing/CreditGrantsResource.d.ts b/types/Billing/CreditGrantsResource.d.ts new file mode 100644 index 0000000000..82d5cc5f0c --- /dev/null +++ b/types/Billing/CreditGrantsResource.d.ts @@ -0,0 +1,219 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace Billing { + interface CreditGrantCreateParams { + /** + * Amount of this credit grant. + */ + amount: CreditGrantCreateParams.Amount; + + /** + * Configuration specifying what this credit grant applies to. + */ + applicability_config: CreditGrantCreateParams.ApplicabilityConfig; + + /** + * The category of this credit grant. + */ + category: CreditGrantCreateParams.Category; + + /** + * Id of the customer to whom the credit should be granted. + */ + customer: string; + + /** + * The time when the credit becomes effective i.e when it is eligible to be used. Defaults to the current timestamp if not specified. + */ + effective_at?: number; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + /** + * The time when the credit will expire. If not specified, the credit will never expire. + */ + expires_at?: number; + + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (ex: cost basis) in a structured format. + */ + metadata?: Stripe.MetadataParam; + + /** + * A descriptive name shown in dashboard and on invoices. + */ + name?: string; + } + + namespace CreditGrantCreateParams { + interface Amount { + /** + * The monetary amount. + */ + monetary?: Amount.Monetary; + + /** + * Specify the type of this amount. We currently only support `monetary` credits. + */ + type: 'monetary'; + } + + namespace Amount { + interface Monetary { + /** + * Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) of the `value` parameter. + */ + currency: string; + + /** + * A positive integer representing the amount of the credit grant. + */ + value: number; + } + } + + interface ApplicabilityConfig { + /** + * Specify the scope of this applicability config. + */ + scope: ApplicabilityConfig.Scope; + } + + namespace ApplicabilityConfig { + interface Scope { + /** + * The price type to which credit grants can apply to. We currently only support `metered` price type. + */ + price_type: 'metered'; + } + } + + type Category = 'paid' | 'promotional'; + } + + interface CreditGrantRetrieveParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface CreditGrantUpdateParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + + /** + * The time when the credit created by this credit grant will expire. If set to empty, the credit will never expire. + */ + expires_at?: Stripe.Emptyable; + + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (ex: cost basis) in a structured format. + */ + metadata?: Stripe.MetadataParam; + } + + interface CreditGrantListParams extends PaginationParams { + /** + * Only return credit grants for this customer. + */ + customer?: string; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface CreditGrantExpireParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + interface CreditGrantVoidGrantParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + + class CreditGrantsResource { + /** + * Creates a credit grant + */ + create( + params: CreditGrantCreateParams, + options?: RequestOptions + ): Promise>; + + /** + * Retrieves a credit grant + */ + retrieve( + id: string, + params?: CreditGrantRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Updates a credit grant + */ + update( + id: string, + params?: CreditGrantUpdateParams, + options?: RequestOptions + ): Promise>; + + /** + * Retrieve a list of credit grants + */ + list( + params?: CreditGrantListParams, + options?: RequestOptions + ): ApiListPromise; + list( + options?: RequestOptions + ): ApiListPromise; + + /** + * Expires a credit grant + */ + expire( + id: string, + params?: CreditGrantExpireParams, + options?: RequestOptions + ): Promise>; + expire( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Voids a credit grant + */ + voidGrant( + id: string, + params?: CreditGrantVoidGrantParams, + options?: RequestOptions + ): Promise>; + voidGrant( + id: string, + options?: RequestOptions + ): Promise>; + } + } + } +} diff --git a/types/BillingPortal/ConfigurationsResource.d.ts b/types/BillingPortal/ConfigurationsResource.d.ts index 636feb34ec..949b391d2a 100644 --- a/types/BillingPortal/ConfigurationsResource.d.ts +++ b/types/BillingPortal/ConfigurationsResource.d.ts @@ -178,7 +178,7 @@ declare module 'stripe' { /** * The types of subscription updates that are supported. When empty, subscriptions are not updateable. */ - default_allowed_updates: Stripe.Emptyable< + default_allowed_updates?: Stripe.Emptyable< Array >; @@ -190,7 +190,7 @@ declare module 'stripe' { /** * The list of up to 10 products that support subscription updates. */ - products: Stripe.Emptyable>; + products?: Stripe.Emptyable>; /** * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. diff --git a/types/Capabilities.d.ts b/types/Capabilities.d.ts index 195e9d57cd..1e844cb75b 100644 --- a/types/Capabilities.d.ts +++ b/types/Capabilities.d.ts @@ -38,7 +38,7 @@ declare module 'stripe' { requirements?: Capability.Requirements; /** - * The status of the capability. Can be `active`, `inactive`, `pending`, or `unrequested`. + * The status of the capability. */ status: Capability.Status; } diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 84383ac49a..a4d770e700 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -690,7 +690,7 @@ declare module 'stripe' { namespace LineItem { interface AdjustableQuantity { /** - * Set to true if the quantity can be adjusted to any non-negative integer. By default customers will be able to remove the line item by setting the quantity to 0. + * Set to true if the quantity can be adjusted to any non-negative integer. */ enabled: boolean; diff --git a/types/CreditNoteLineItems.d.ts b/types/CreditNoteLineItems.d.ts index e56b6079dc..9395b6a7b0 100644 --- a/types/CreditNoteLineItems.d.ts +++ b/types/CreditNoteLineItems.d.ts @@ -51,6 +51,8 @@ declare module 'stripe' { */ livemode: boolean; + pretax_credit_amounts?: Array; + /** * The number of units of product being credited. */ @@ -100,6 +102,34 @@ declare module 'stripe' { discount: string | Stripe.Discount | Stripe.DeletedDiscount; } + interface PretaxCreditAmount { + /** + * The amount, in cents (or local equivalent), of the pretax credit amount. + */ + amount: number; + + /** + * The credit balance transaction that was applied to get this pretax credit amount. + */ + credit_balance_transaction?: + | string + | Stripe.Billing.CreditBalanceTransaction; + + /** + * The discount that was applied to get this pretax credit amount. + */ + discount?: string | Stripe.Discount | Stripe.DeletedDiscount; + + /** + * Type of the pretax credit amount referenced. + */ + type: PretaxCreditAmount.Type; + } + + namespace PretaxCreditAmount { + type Type = 'credit_balance_transaction' | 'discount'; + } + interface TaxAmount { /** * The amount, in cents (or local equivalent), of the tax. diff --git a/types/CreditNotes.d.ts b/types/CreditNotes.d.ts index ee619a0f94..9906a58586 100644 --- a/types/CreditNotes.d.ts +++ b/types/CreditNotes.d.ts @@ -106,6 +106,8 @@ declare module 'stripe' { */ pdf: string; + pretax_credit_amounts?: Array; + /** * Reason for issuing this credit note, one of `duplicate`, `fraudulent`, `order_change`, or `product_unsatisfactory` */ @@ -175,6 +177,34 @@ declare module 'stripe' { discount: string | Stripe.Discount | Stripe.DeletedDiscount; } + interface PretaxCreditAmount { + /** + * The amount, in cents (or local equivalent), of the pretax credit amount. + */ + amount: number; + + /** + * The credit balance transaction that was applied to get this pretax credit amount. + */ + credit_balance_transaction?: + | string + | Stripe.Billing.CreditBalanceTransaction; + + /** + * The discount that was applied to get this pretax credit amount. + */ + discount?: string | Stripe.Discount | Stripe.DeletedDiscount; + + /** + * Type of the pretax credit amount referenced. + */ + type: PretaxCreditAmount.Type; + } + + namespace PretaxCreditAmount { + type Type = 'credit_balance_transaction' | 'discount'; + } + type Reason = | 'duplicate' | 'fraudulent' diff --git a/types/Customers.d.ts b/types/Customers.d.ts index 7ea03d7ea6..3c55da594b 100644 --- a/types/Customers.d.ts +++ b/types/Customers.d.ts @@ -3,9 +3,8 @@ declare module 'stripe' { namespace Stripe { /** - * This object represents a customer of your business. Use it to create recurring charges and track payments that belong to the same customer. - * - * Related guide: [Save a card during payment](https://stripe.com/docs/payments/save-during-payment) + * This object represents a customer of your business. Use it to [create recurring charges](https://stripe.com/docs/invoicing/customer), [save payment](https://stripe.com/docs/payments/save-during-payment) and contact information, + * and track payments that belong to the same customer. */ interface Customer { /** diff --git a/types/Errors.d.ts b/types/Errors.d.ts index 0b3a10d639..7f05e43539 100644 --- a/types/Errors.d.ts +++ b/types/Errors.d.ts @@ -1,5 +1,6 @@ declare module 'stripe' { namespace Stripe { + // rawErrorTypeEnum: The beginning of the section generated from our OpenAPI spec export type RawErrorType = | 'card_error' | 'invalid_request_error' @@ -7,10 +8,13 @@ declare module 'stripe' { | 'idempotency_error' | 'rate_limit_error' | 'authentication_error' - | 'invalid_grant'; + | 'invalid_grant' + | 'temporary_session_expired'; + // rawErrorTypeEnum: The end of the section generated from our OpenAPI spec export type StripeRawError = { message?: string; + userMessage?: string; type: RawErrorType; @@ -32,27 +36,35 @@ declare module 'stripe' { }; namespace errors { + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: 'card_error'} ): StripeCardError; + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: 'invalid_request_error'} ): StripeInvalidRequestError; + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: 'api_error'} ): StripeAPIError; + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: 'authentication_error'} ): StripeAuthenticationError; + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: 'rate_limit_error'} ): StripeRateLimitError; + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: 'idempotency_error'} ): StripeIdempotencyError; + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: 'invalid_grant'} ): StripeInvalidGrantError; + /** @deprecated Not for external use. */ function generate( rawError: StripeRawError & {type: RawErrorType} ): StripeError; @@ -60,27 +72,35 @@ declare module 'stripe' { class StripeError extends Error { constructor(rawError: StripeRawError); + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: 'card_error'} ): StripeCardError; + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: 'invalid_request_error'} ): StripeInvalidRequestError; + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: 'api_error'} ): StripeAPIError; + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: 'authentication_error'} ): StripeAuthenticationError; + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: 'rate_limit_error'} ): StripeRateLimitError; + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: 'idempotency_error'} ): StripeIdempotencyError; + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: 'invalid_grant'} ): StripeInvalidGrantError; + /** @deprecated Not for external use. */ static generate( rawError: StripeRawError & {type: RawErrorType} ): StripeError; @@ -91,6 +111,7 @@ declare module 'stripe' { */ readonly message: string; + // errorClassNameEnum: The beginning of the section generated from our OpenAPI spec readonly type: | 'StripeError' | 'StripeCardError' @@ -102,7 +123,9 @@ declare module 'stripe' { | 'StripeConnectionError' | 'StripeSignatureVerificationError' | 'StripeIdempotencyError' - | 'StripeInvalidGrantError'; + | 'StripeInvalidGrantError' + | 'TemporarySessionExpiredError'; + // errorClassNameEnum: The end of the section generated from our OpenAPI spec /** * See the "error types" section at https://stripe.com/docs/api/errors @@ -245,6 +268,13 @@ declare module 'stripe' { readonly type: 'StripeInvalidGrantError'; readonly rawType: 'invalid_grant'; } + + // errorClassDefinitions: The beginning of the section generated from our OpenAPI spec + export class TemporarySessionExpiredError extends StripeError { + readonly type: 'TemporarySessionExpiredError'; + readonly rawType: 'temporary_session_expired'; + } + // errorClassDefinitions: The end of the section generated from our OpenAPI spec } } } diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index 54f2e9c05f..d22e466207 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -240,7 +240,9 @@ declare module 'stripe' { | TreasuryReceivedCreditFailedEvent | TreasuryReceivedCreditSucceededEvent | TreasuryReceivedDebitCreatedEvent; + } + namespace Stripe { /** * Occurs whenever a user authorizes an application. Sent to the related application only. */ diff --git a/types/InvoiceLineItems.d.ts b/types/InvoiceLineItems.d.ts index 205dfdce99..31a5f894e0 100644 --- a/types/InvoiceLineItems.d.ts +++ b/types/InvoiceLineItems.d.ts @@ -80,6 +80,8 @@ declare module 'stripe' { */ plan: Stripe.Plan | null; + pretax_credit_amounts?: Array | null; + /** * The price of the line item. */ @@ -156,6 +158,40 @@ declare module 'stripe' { start: number; } + interface PretaxCreditAmount { + /** + * The amount, in cents (or local equivalent), of the pretax credit amount. + */ + amount: number; + + /** + * The credit balance transaction that was applied to get this pretax credit amount. + */ + credit_balance_transaction?: + | string + | Stripe.Billing.CreditBalanceTransaction + | null; + + /** + * The discount that was applied to get this pretax credit amount. + */ + discount?: string | Stripe.Discount | Stripe.DeletedDiscount; + + /** + * The margin that was applied to get this pretax credit amount. + */ + margin?: string | Stripe.Margin; + + /** + * Type of the pretax credit amount referenced. + */ + type: PretaxCreditAmount.Type; + } + + namespace PretaxCreditAmount { + type Type = 'credit_balance_transaction' | 'discount'; + } + interface ProrationDetails { /** * For a credit proration `line_item`, the original debit line_items to which the credit proration applies. diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 4d64c4566d..ed832e9a84 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -461,6 +461,10 @@ declare module 'stripe' { */ total_excluding_tax: number | null; + total_pretax_credit_amounts?: Array< + Invoice.TotalPretaxCreditAmount + > | null; + /** * The aggregate amounts calculated per tax rate for all line items. */ @@ -1396,6 +1400,40 @@ declare module 'stripe' { discount: string | Stripe.Discount | Stripe.DeletedDiscount; } + interface TotalPretaxCreditAmount { + /** + * The amount, in cents (or local equivalent), of the pretax credit amount. + */ + amount: number; + + /** + * The credit balance transaction that was applied to get this pretax credit amount. + */ + credit_balance_transaction?: + | string + | Stripe.Billing.CreditBalanceTransaction + | null; + + /** + * The discount that was applied to get this pretax credit amount. + */ + discount?: string | Stripe.Discount | Stripe.DeletedDiscount; + + /** + * The margin that was applied to get this pretax credit amount. + */ + margin?: string | Stripe.Margin; + + /** + * Type of the pretax credit amount referenced. + */ + type: TotalPretaxCreditAmount.Type; + } + + namespace TotalPretaxCreditAmount { + type Type = 'credit_balance_transaction' | 'discount'; + } + interface TotalTaxAmount { /** * The amount, in cents (or local equivalent), of the tax. diff --git a/types/Margins.d.ts b/types/Margins.d.ts new file mode 100644 index 0000000000..deb8ef1eb7 --- /dev/null +++ b/types/Margins.d.ts @@ -0,0 +1,56 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + /** + * A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who + * resell products and services and earn a discount (margin) for doing so. + */ + interface Margin { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'margin'; + + /** + * Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`. + */ + active: boolean; + + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * 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; + + /** + * Name of the margin that's displayed on, for example, invoices. + */ + name: string | null; + + /** + * Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied. + */ + percent_off: number; + + /** + * Time at which the object was last updated. Measured in seconds since the Unix epoch. + */ + updated: number; + } + } +} diff --git a/types/ProductsResource.d.ts b/types/ProductsResource.d.ts index fb1e54db28..e5fdab2bfd 100644 --- a/types/ProductsResource.d.ts +++ b/types/ProductsResource.d.ts @@ -101,6 +101,11 @@ declare module 'stripe' { [key: string]: DefaultPriceData.CurrencyOptions; }; + /** + * When set, provides configuration for the amount to be adjusted by the customer during Checkout Sessions and Payment Links. + */ + custom_unit_amount?: DefaultPriceData.CustomUnitAmount; + /** * The recurring components of a price such as `interval` and `interval_count`. */ @@ -112,7 +117,7 @@ declare module 'stripe' { tax_behavior?: DefaultPriceData.TaxBehavior; /** - * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of `unit_amount` or `unit_amount_decimal` is required. + * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how much to charge. One of `unit_amount`, `unit_amount_decimal`, or `custom_unit_amount` is required. */ unit_amount?: number; @@ -203,6 +208,28 @@ declare module 'stripe' { } } + interface CustomUnitAmount { + /** + * Pass in `true` to enable `custom_unit_amount`, otherwise omit `custom_unit_amount`. + */ + enabled: boolean; + + /** + * The maximum unit amount the customer can specify for this item. + */ + maximum?: number; + + /** + * The minimum unit amount the customer can specify for this item. Must be at least the minimum charge amount. + */ + minimum?: number; + + /** + * The starting unit amount which can be updated by the customer. + */ + preset?: number; + } + interface Recurring { /** * Specifies billing frequency. Either `day`, `week`, `month` or `year`. diff --git a/types/PromotionCodes.d.ts b/types/PromotionCodes.d.ts index a89780e7fa..905af1ca04 100644 --- a/types/PromotionCodes.d.ts +++ b/types/PromotionCodes.d.ts @@ -23,7 +23,7 @@ declare module 'stripe' { active: boolean; /** - * The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer. + * The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for each customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). */ code: string; diff --git a/types/PromotionCodesResource.d.ts b/types/PromotionCodesResource.d.ts index 620838bb23..1381825bfe 100644 --- a/types/PromotionCodesResource.d.ts +++ b/types/PromotionCodesResource.d.ts @@ -14,7 +14,9 @@ declare module 'stripe' { active?: boolean; /** - * The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. If left blank, we will generate one automatically. + * The customer-facing code. Regardless of case, this code must be unique across all active promotion codes for a specific customer. Valid characters are lower case letters (a-z), upper case letters (A-Z), and digits (0-9). + * + * If left blank, we will generate one automatically. */ code?: string; diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 44484a8a14..5033c38baf 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -1972,11 +1972,11 @@ declare module 'stripe' { list(options?: RequestOptions): ApiListPromise; /** - * Cancels a customer's subscription immediately. The customer will not be charged again for the subscription. + * Cancels a customer's subscription immediately. The customer won't be charged again for the subscription. After it's canceled, you can no longer update the subscription or its [metadata](https://stripe.com/metadata). * - * Note, however, that any pending invoice items that you've created will still be charged for at the end of the period, unless manually [deleted](https://stripe.com/docs/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed. + * Any pending invoice items that you've created are still charged at the end of the period, unless manually [deleted](https://stripe.com/docs/api#delete_invoiceitem). If you've set the subscription to cancel at the end of the period, any pending prorations are also left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations are removed. * - * By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. + * By default, upon subscription cancellation, Stripe stops automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all. */ cancel( id: string, diff --git a/types/Tax/Settings.d.ts b/types/Tax/Settings.d.ts index e8135e6f03..b21b988351 100644 --- a/types/Tax/Settings.d.ts +++ b/types/Tax/Settings.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { livemode: boolean; /** - * The `active` status indicates you have all required settings to calculate tax. A status can transition out of `active` when new required settings are introduced. + * The status of the Tax `Settings`. */ status: Settings.Status; diff --git a/types/Terminal/ReadersResource.d.ts b/types/Terminal/ReadersResource.d.ts index f419ea13df..d8a4f2738a 100644 --- a/types/Terminal/ReadersResource.d.ts +++ b/types/Terminal/ReadersResource.d.ts @@ -123,6 +123,11 @@ declare module 'stripe' { namespace ReaderProcessPaymentIntentParams { interface ProcessConfig { + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. + */ + allow_redisplay?: ProcessConfig.AllowRedisplay; + /** * Enables cancel button on transaction screens. */ @@ -140,6 +145,8 @@ declare module 'stripe' { } namespace ProcessConfig { + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + 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). @@ -151,14 +158,14 @@ declare module 'stripe' { interface ReaderProcessSetupIntentParams { /** - * SetupIntent ID + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. */ - setup_intent: string; + allow_redisplay: ReaderProcessSetupIntentParams.AllowRedisplay; /** - * Customer Consent Collected + * SetupIntent ID */ - customer_consent_collected?: boolean; + setup_intent: string; /** * Specifies which fields in the response should be expanded. @@ -172,6 +179,8 @@ declare module 'stripe' { } namespace ReaderProcessSetupIntentParams { + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface ProcessConfig { /** * Enables cancel button on transaction screens. diff --git a/types/ThinEvent.d.ts b/types/ThinEvent.d.ts new file mode 100644 index 0000000000..269ed2057a --- /dev/null +++ b/types/ThinEvent.d.ts @@ -0,0 +1,36 @@ +// This is a manually maintained file + +declare module 'stripe' { + namespace Stripe { + namespace Event { + /** + * Object containing the reference to API resource relevant to the event. + */ + interface RelatedObject { + /** + * Unique identifier for the object relevant to the event. + */ + id: string; + + /** + * Type of the object relevant to the event. + */ + type: string; + + /** + * URL to retrieve the resource. + */ + url: string; + } + } + /** + * The Event object as recieved from StripeClient.parseThinEvent. + */ + interface ThinEvent extends V2.EventBase { + /** + * Object containing the reference to API resource relevant to the event. + */ + related_object: Event.RelatedObject | null; + } + } +} diff --git a/types/Treasury/ReceivedCredits.d.ts b/types/Treasury/ReceivedCredits.d.ts index 3716c3ff5d..f306394452 100644 --- a/types/Treasury/ReceivedCredits.d.ts +++ b/types/Treasury/ReceivedCredits.d.ts @@ -83,7 +83,11 @@ declare module 'stripe' { } namespace ReceivedCredit { - type FailureCode = 'account_closed' | 'account_frozen' | 'other'; + type FailureCode = + | 'account_closed' + | 'account_frozen' + | 'international_transaction' + | 'other'; interface InitiatingPaymentMethodDetails { /** diff --git a/types/V2/Billing/MeterEventAdjustments.d.ts b/types/V2/Billing/MeterEventAdjustments.d.ts new file mode 100644 index 0000000000..11b670631e --- /dev/null +++ b/types/V2/Billing/MeterEventAdjustments.d.ts @@ -0,0 +1,65 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Billing { + /** + * The MeterEventAdjustment object. + */ + interface MeterEventAdjustment { + /** + * The unique id of this meter event adjustment. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value of the object field. + */ + object: 'billing.meter_event_adjustment'; + + /** + * Specifies which event to cancel. + */ + cancel: MeterEventAdjustment.Cancel; + + /** + * The time the adjustment was created. + */ + created: string; + + /** + * The name of the meter event. Corresponds with the `event_name` field on a meter. + */ + event_name: string; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * Open Enum. The meter event adjustment's status. + */ + status: MeterEventAdjustment.Status; + + /** + * Open Enum. Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + */ + type: 'cancel'; + } + + namespace MeterEventAdjustment { + interface Cancel { + /** + * Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + */ + identifier: string; + } + + type Status = 'complete' | 'pending'; + } + } + } + } +} diff --git a/types/V2/Billing/MeterEventAdjustmentsResource.d.ts b/types/V2/Billing/MeterEventAdjustmentsResource.d.ts new file mode 100644 index 0000000000..310d13b7a5 --- /dev/null +++ b/types/V2/Billing/MeterEventAdjustmentsResource.d.ts @@ -0,0 +1,47 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Billing { + interface MeterEventAdjustmentCreateParams { + /** + * Specifies which event to cancel. + */ + cancel: MeterEventAdjustmentCreateParams.Cancel; + + /** + * The name of the meter event. Corresponds with the `event_name` field on a meter. + */ + event_name: string; + + /** + * Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. + */ + type: 'cancel'; + } + + namespace MeterEventAdjustmentCreateParams { + interface Cancel { + /** + * Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them. + */ + identifier: string; + } + } + } + + namespace Billing { + class MeterEventAdjustmentsResource { + /** + * Creates a meter event adjustment to cancel a previously sent meter event. + */ + create( + params: MeterEventAdjustmentCreateParams, + options?: RequestOptions + ): Promise>; + } + } + } + } +} diff --git a/types/V2/Billing/MeterEventSessionResource.d.ts b/types/V2/Billing/MeterEventSessionResource.d.ts new file mode 100644 index 0000000000..dadb405d8b --- /dev/null +++ b/types/V2/Billing/MeterEventSessionResource.d.ts @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Billing { + interface MeterEventSessionCreateParams {} + } + + namespace Billing { + class MeterEventSessionResource { + /** + * Creates a meter event session to send usage on the high-throughput meter event stream. Authentication tokens are only valid for 15 minutes, so you will need to create a new meter event session when your token expires. + */ + create( + params?: MeterEventSessionCreateParams, + options?: RequestOptions + ): Promise>; + create( + options?: RequestOptions + ): Promise>; + } + } + } + } +} diff --git a/types/V2/Billing/MeterEventSessions.d.ts b/types/V2/Billing/MeterEventSessions.d.ts new file mode 100644 index 0000000000..6259622644 --- /dev/null +++ b/types/V2/Billing/MeterEventSessions.d.ts @@ -0,0 +1,45 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Billing { + /** + * The MeterEventSession object. + */ + interface MeterEventSession { + /** + * The unique id of this auth session. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value of the object field. + */ + object: 'billing.meter_event_session'; + + /** + * The authentication token for this session. Use this token when calling the + * high-throughput meter event API. + */ + authentication_token: string; + + /** + * The creation time of this session. + */ + created: string; + + /** + * The time at which this session will expire. + */ + expires_at: string; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + } + } + } + } +} diff --git a/types/V2/Billing/MeterEventStreamResource.d.ts b/types/V2/Billing/MeterEventStreamResource.d.ts new file mode 100644 index 0000000000..fc4e65e3d4 --- /dev/null +++ b/types/V2/Billing/MeterEventStreamResource.d.ts @@ -0,0 +1,62 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Billing { + interface MeterEventStreamCreateParams { + /** + * List of meter events to include in the request. + */ + events: Array; + } + + namespace MeterEventStreamCreateParams { + interface Event { + /** + * The name of the meter event. Corresponds with the `event_name` field on a meter. + */ + event_name: string; + + /** + * A unique identifier for the event. If not provided, one will be generated. + * We recommend using a globally unique identifier for this. We'll enforce + * uniqueness within a rolling 24 hour period. + */ + identifier?: string; + + /** + * The payload of the event. This must contain the fields corresponding to a meter's + * `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and + * `value_settings.event_payload_key` (default is `value`). Read more about + * the + * [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides). + */ + payload: { + [key: string]: string; + }; + + /** + * The time of the event. Must be within the past 35 calendar days or up to + * 5 minutes in the future. Defaults to current timestamp if not specified. + */ + timestamp?: string; + } + } + } + + namespace Billing { + class MeterEventStreamResource { + /** + * Creates meter events. Events are processed asynchronously, including validation. Requires a meter event session for authentication. Supports up to 10,000 requests per second in livemode. For even higher rate-limits, contact sales. + * @throws Stripe.TemporarySessionExpiredError + */ + create( + params: MeterEventStreamCreateParams, + options?: RequestOptions + ): Promise; + } + } + } + } +} diff --git a/types/V2/Billing/MeterEvents.d.ts b/types/V2/Billing/MeterEvents.d.ts new file mode 100644 index 0000000000..53aac66a23 --- /dev/null +++ b/types/V2/Billing/MeterEvents.d.ts @@ -0,0 +1,54 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Billing { + /** + * Fix me empty_doc_string. + */ + interface MeterEvent { + /** + * String representing the object's type. Objects of the same type share the same value of the object field. + */ + object: 'billing.meter_event'; + + /** + * The creation time of this meter event. + */ + created: string; + + /** + * The name of the meter event. Corresponds with the `event_name` field on a meter. + */ + event_name: string; + + /** + * A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. + */ + identifier: string; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * The payload of the event. This must contain the fields corresponding to a meter's + * `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and + * `value_settings.event_payload_key` (default is `value`). Read more about the payload. + */ + payload: { + [key: string]: string; + }; + + /** + * The time of the event. Must be within the past 35 calendar days or up to + * 5 minutes in the future. Defaults to current timestamp if not specified. + */ + timestamp: string; + } + } + } + } +} diff --git a/types/V2/Billing/MeterEventsResource.d.ts b/types/V2/Billing/MeterEventsResource.d.ts new file mode 100644 index 0000000000..00def8d19f --- /dev/null +++ b/types/V2/Billing/MeterEventsResource.d.ts @@ -0,0 +1,52 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Billing { + interface MeterEventCreateParams { + /** + * The name of the meter event. Corresponds with the `event_name` field on a meter. + */ + event_name: string; + + /** + * The payload of the event. This must contain the fields corresponding to a meter's + * `customer_mapping.event_payload_key` (default is `stripe_customer_id`) and + * `value_settings.event_payload_key` (default is `value`). Read more about + * the + * [payload](https://docs.stripe.com/billing/subscriptions/usage-based/recording-usage#payload-key-overrides). + */ + payload: { + [key: string]: string; + }; + + /** + * A unique identifier for the event. If not provided, one will be generated. + * We recommend using a globally unique identifier for this. We'll enforce + * uniqueness within a rolling 24 hour period. + */ + identifier?: string; + + /** + * The time of the event. Must be within the past 35 calendar days or up to + * 5 minutes in the future. Defaults to current timestamp if not specified. + */ + timestamp?: string; + } + } + + namespace Billing { + class MeterEventsResource { + /** + * Creates a meter event. Events are validated synchronously, but are processed asynchronously. Supports up to 1,000 events per second in livemode. For higher rate-limits, please use meter event streams instead. + */ + create( + params: MeterEventCreateParams, + options?: RequestOptions + ): Promise>; + } + } + } + } +} diff --git a/types/V2/BillingResource.d.ts b/types/V2/BillingResource.d.ts new file mode 100644 index 0000000000..a57eee05c7 --- /dev/null +++ b/types/V2/BillingResource.d.ts @@ -0,0 +1,14 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + class BillingResource { + meterEventSession: Stripe.V2.Billing.MeterEventSessionResource; + meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource; + meterEventStream: Stripe.V2.Billing.MeterEventStreamResource; + meterEvents: Stripe.V2.Billing.MeterEventsResource; + } + } + } +} diff --git a/types/V2/Core/EventsResource.d.ts b/types/V2/Core/EventsResource.d.ts new file mode 100644 index 0000000000..21a09fa644 --- /dev/null +++ b/types/V2/Core/EventsResource.d.ts @@ -0,0 +1,57 @@ +// File generated from our OpenAPI spec + +/// + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Core { + interface EventRetrieveParams {} + } + + namespace Core { + interface EventListParams { + /** + * Primary object ID used to retrieve related events. + */ + object_id: string; + + /** + * The page size. + */ + limit?: number; + + /** + * The requested page number. + */ + page?: string; + } + } + + namespace Core { + class EventsResource { + /** + * Retrieves the details of an event. + */ + retrieve( + id: string, + params?: EventRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * List events, going back up to 30 days. + */ + list( + params: EventListParams, + options?: RequestOptions + ): ApiListPromise; + } + } + } + } +} diff --git a/types/V2/CoreResource.d.ts b/types/V2/CoreResource.d.ts new file mode 100644 index 0000000000..f65f8a4b98 --- /dev/null +++ b/types/V2/CoreResource.d.ts @@ -0,0 +1,11 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + class CoreResource { + events: Stripe.V2.Core.EventsResource; + } + } + } +} diff --git a/types/V2/EventTypes.d.ts b/types/V2/EventTypes.d.ts new file mode 100644 index 0000000000..4fe79efa87 --- /dev/null +++ b/types/V2/EventTypes.d.ts @@ -0,0 +1,214 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe.V2 { + export type Event = + | Stripe.Events.V1BillingMeterErrorReportTriggeredEvent + | Stripe.Events.V1BillingMeterNoMeterFoundEvent; + } + + namespace Stripe.Events { + /** + * This event occurs when there are invalid async usage events for a given meter. + */ + export interface V1BillingMeterErrorReportTriggeredEvent + extends V2.EventBase { + type: 'v1.billing.meter.error_report_triggered'; + // Retrieves data specific to this event. + data: V1BillingMeterErrorReportTriggeredEvent.Data; + // Retrieves the object associated with the event. + related_object: Event.RelatedObject; + } + + namespace V1BillingMeterErrorReportTriggeredEvent { + export interface Data { + /** + * Extra field included in the event's `data` when fetched from /v2/events. + */ + developer_message_summary: string; + + /** + * This contains information about why meter error happens. + */ + reason: Data.Reason; + + /** + * The end of the window that is encapsulated by this summary. + */ + validation_end: string; + + /** + * The start of the window that is encapsulated by this summary. + */ + validation_start: string; + } + + namespace Data { + export interface Reason { + /** + * The total error count within this window. + */ + error_count: number; + + /** + * The error details. + */ + error_types: Array; + } + + namespace Reason { + export interface ErrorType { + /** + * Open Enum. + */ + code: ErrorType.Code; + + /** + * The number of errors of this type. + */ + error_count: number; + + /** + * A list of sample errors of this type. + */ + sample_errors: Array; + } + + namespace ErrorType { + export type Code = + | 'archived_meter' + | 'meter_event_customer_not_found' + | 'meter_event_dimension_count_too_high' + | 'meter_event_invalid_value' + | 'meter_event_no_customer_defined' + | 'missing_dimension_payload_keys' + | 'no_meter' + | 'timestamp_in_future' + | 'timestamp_too_far_in_past'; + + export interface SampleError { + /** + * The error message. + */ + error_message: string; + + /** + * The request causes the error. + */ + request: SampleError.Request; + } + + namespace SampleError { + export interface Request { + /** + * The request idempotency key. + */ + identifier: string; + } + } + } + } + } + } + + /** + * This event occurs when async usage events have missing or invalid meter ids. + */ + export interface V1BillingMeterNoMeterFoundEvent extends V2.EventBase { + type: 'v1.billing.meter.no_meter_found'; + // Retrieves data specific to this event. + data: V1BillingMeterNoMeterFoundEvent.Data; + } + + namespace V1BillingMeterNoMeterFoundEvent { + export interface Data { + /** + * Extra field included in the event's `data` when fetched from /v2/events. + */ + developer_message_summary: string; + + /** + * This contains information about why meter error happens. + */ + reason: Data.Reason; + + /** + * The end of the window that is encapsulated by this summary. + */ + validation_end: string; + + /** + * The start of the window that is encapsulated by this summary. + */ + validation_start: string; + } + + namespace Data { + export interface Reason { + /** + * The total error count within this window. + */ + error_count: number; + + /** + * The error details. + */ + error_types: Array; + } + + namespace Reason { + export interface ErrorType { + /** + * Open Enum. + */ + code: ErrorType.Code; + + /** + * The number of errors of this type. + */ + error_count: number; + + /** + * A list of sample errors of this type. + */ + sample_errors: Array; + } + + namespace ErrorType { + export type Code = + | 'archived_meter' + | 'meter_event_customer_not_found' + | 'meter_event_dimension_count_too_high' + | 'meter_event_invalid_value' + | 'meter_event_no_customer_defined' + | 'missing_dimension_payload_keys' + | 'no_meter' + | 'timestamp_in_future' + | 'timestamp_too_far_in_past'; + + export interface SampleError { + /** + * The error message. + */ + error_message: string; + + /** + * The request causes the error. + */ + request: SampleError.Request; + } + + namespace SampleError { + export interface Request { + /** + * The request idempotency key. + */ + identifier: string; + } + } + } + } + } + } + } +} diff --git a/types/V2/Events.d.ts b/types/V2/Events.d.ts new file mode 100644 index 0000000000..6dac16c035 --- /dev/null +++ b/types/V2/Events.d.ts @@ -0,0 +1,75 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Event { + interface Reason { + /** + * Event reason type. + */ + type: 'request'; + + /** + * Information on the API request that instigated the event. + */ + request: Reason.Request | null; + } + + namespace Reason { + interface Request { + /** + * ID of the API request that caused the event. + */ + id: string; + + /** + * The idempotency key transmitted during the request. + */ + idempotency_key: string; + } + } + } + + /** + * The Event object. + */ + interface EventBase { + /** + * Unique identifier for the event. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value of the object field. + */ + object: 'v2.core.event'; + + /** + * Authentication context needed to fetch the event or related object. + */ + context: string | null; + + /** + * Time at which the object was created. + */ + created: string; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * Reason for the event. + */ + reason: Event.Reason | null; + + /** + * The type of the event. + */ + type: string; + } + } + } +} diff --git a/types/V2Resource.d.ts b/types/V2Resource.d.ts new file mode 100644 index 0000000000..b882341036 --- /dev/null +++ b/types/V2Resource.d.ts @@ -0,0 +1,10 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + class V2Resource { + billing: Stripe.V2.BillingResource; + core: Stripe.V2.CoreResource; + } + } +} diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index eebd26330d..c4a38488ed 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -142,7 +142,8 @@ declare module 'stripe' { | '2023-08-16' | '2023-10-16' | '2024-04-10' - | '2024-06-20'; + | '2024-06-20' + | '2024-09-30.acacia'; type EnabledEvent = | '*' diff --git a/types/index.d.ts b/types/index.d.ts index dea69dcf12..3d2b26258d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -8,6 +8,8 @@ /// /// /// +/// +/// // Imports: The beginning of the section generated from our OpenAPI spec /// /// @@ -18,6 +20,9 @@ /// /// /// +/// +/// +/// /// /// /// @@ -124,6 +129,14 @@ /// /// /// +/// +/// +/// +/// +/// +/// +/// +/// /// /// /// @@ -138,6 +151,9 @@ /// /// /// +/// +/// +/// /// /// /// @@ -199,6 +215,7 @@ /// /// /// +/// /// /// /// @@ -262,6 +279,10 @@ /// /// /// +/// +/// +/// +/// /// // Imports: The end of the section generated from our OpenAPI spec @@ -333,12 +354,16 @@ declare module 'stripe' { tokens: Stripe.TokensResource; topups: Stripe.TopupsResource; transfers: Stripe.TransfersResource; + v2: Stripe.V2Resource; webhookEndpoints: Stripe.WebhookEndpointsResource; apps: { secrets: Stripe.Apps.SecretsResource; }; billing: { alerts: Stripe.Billing.AlertsResource; + creditBalanceSummary: Stripe.Billing.CreditBalanceSummaryResource; + creditBalanceTransactions: Stripe.Billing.CreditBalanceTransactionsResource; + creditGrants: Stripe.Billing.CreditGrantsResource; meters: Stripe.Billing.MetersResource; meterEvents: Stripe.Billing.MeterEventsResource; meterEventAdjustments: Stripe.Billing.MeterEventAdjustmentsResource; @@ -459,6 +484,109 @@ declare module 'stripe' { event: 'response', handler: (event: Stripe.ResponseEvent) => void ): 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>; + + /** + * Parses webhook event payload into a ThinEvent and verifies webhook signature. + * To get more information on the event, pass the id from the returned object to + * `stripe.v2.core.events.retrieve()` + * + * @throws Stripe.errors.StripeSignatureVerificationError + */ + parseThinEvent: ( + /** + * Raw text body payload received from Stripe. + */ + payload: string | Buffer, + /** + * Value of the `stripe-signature` header from Stripe. + * Typically a string. + * + * Note that this is typed to accept an array of strings + * so that it works seamlessly with express's types, + * but will throw if an array is passed in practice + * since express should never return this header as an array, + * only a string. + */ + header: string | Buffer | Array, + /** + * Your Webhook Signing Secret for this endpoint (e.g., 'whsec_...'). + * You can get this [in your dashboard](https://dashboard.stripe.com/webhooks). + */ + secret: string, + /** + * Seconds of tolerance on timestamps. + */ + tolerance?: number, + /** + * Optional CryptoProvider to use for computing HMAC signatures. + */ + cryptoProvider?: Stripe.CryptoProvider, + + /** + * Optional: timestamp to use when checking signature validity. Defaults to Date.now(). + */ + receivedAt?: number + ) => Stripe.ThinEvent; + + /** + * Parses webhook event payload into a SnapshotEvent and verifies webhook signature. + * + * @throws Stripe.errors.StripeSignatureVerificationError + */ + parseSnapshotEvent: ( + /** + * Raw text body payload received from Stripe. + */ + payload: string | Buffer, + /** + * Value of the `stripe-signature` header from Stripe. + * Typically a string. + * + * Note that this is typed to accept an array of strings + * so that it works seamlessly with express's types, + * but will throw if an array is passed in practice + * since express should never return this header as an array, + * only a string. + */ + header: string | Buffer | Array, + /** + * Your Webhook Signing Secret for this endpoint (e.g., 'whsec_...'). + * You can get this [in your dashboard](https://dashboard.stripe.com/webhooks). + */ + secret: string, + /** + * Seconds of tolerance on timestamps. + */ + tolerance?: number, + /** + * Optional CryptoProvider to use for computing HMAC signatures. + */ + cryptoProvider?: Stripe.CryptoProvider, + + /** + * Optional: timestamp to use when checking signature validity. Defaults to Date.now(). + */ + receivedAt?: number + ) => Stripe.Event; } export default Stripe; diff --git a/types/lib.d.ts b/types/lib.d.ts index d82037bbf7..66a33f2dc6 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { }): (...args: any[]) => Response; //eslint-disable-line @typescript-eslint/no-explicit-any static MAX_BUFFERED_REQUEST_METRICS: number; } - export type LatestApiVersion = '2024-06-20'; + export type LatestApiVersion = '2024-09-30.acacia'; export type HttpAgent = Agent; export type HttpProtocol = 'http' | 'https'; @@ -153,6 +153,13 @@ declare module 'stripe' { host?: string; } + export type RawRequestOptions = RequestOptions & { + /** + * Specify additional request headers. This is an experimental interface and is not yet stable. + */ + additionalHeaders?: {[headerName: string]: string}; + }; + export type Response = T & { lastResponse: { headers: {[key: string]: string}; diff --git a/types/test/typescriptTest.ts b/types/test/typescriptTest.ts index 09a0c3e58f..e83aaa73c3 100644 --- a/types/test/typescriptTest.ts +++ b/types/test/typescriptTest.ts @@ -9,7 +9,7 @@ import Stripe from 'stripe'; let stripe = new Stripe('sk_test_123', { - apiVersion: '2024-06-20', + apiVersion: '2024-09-30.acacia', }); stripe = new Stripe('sk_test_123'); @@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', { // Check config object. stripe = new Stripe('sk_test_123', { - apiVersion: '2024-06-20', + apiVersion: '2024-09-30.acacia', typescript: true, maxNetworkRetries: 1, timeout: 1000, @@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', { description: 'test', }; const opts: Stripe.RequestOptions = { - apiVersion: '2024-06-20', + apiVersion: '2024-09-30.acacia', }; const customer: Stripe.Customer = await stripe.customers.create(params, opts); From 3511d7f9d7c2a1845e6326881ceff2207d7ec0dd Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Tue, 1 Oct 2024 09:53:41 -0700 Subject: [PATCH 04/27] Remove parseSnapshotEvent (#2195) --- src/stripe.core.ts | 18 ------------------ types/index.d.ts | 41 ----------------------------------------- 2 files changed, 59 deletions(-) diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 2a22fbd5d8..3b8c8ad281 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -518,24 +518,6 @@ export function createStripe( receivedAt ); }, - - parseSnapshotEvent( - payload: string | Uint8Array, - header: string | Uint8Array, - secret: string, - tolerance?: number, - cryptoProvider?: CryptoProvider, - receivedAt?: number - ): WebhookEvent { - return this.webhooks.constructEvent( - payload, - header, - secret, - tolerance, - cryptoProvider, - receivedAt - ); - }, } as StripeObject; return Stripe; diff --git a/types/index.d.ts b/types/index.d.ts index 3d2b26258d..7a83f51811 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -546,47 +546,6 @@ declare module 'stripe' { */ receivedAt?: number ) => Stripe.ThinEvent; - - /** - * Parses webhook event payload into a SnapshotEvent and verifies webhook signature. - * - * @throws Stripe.errors.StripeSignatureVerificationError - */ - parseSnapshotEvent: ( - /** - * Raw text body payload received from Stripe. - */ - payload: string | Buffer, - /** - * Value of the `stripe-signature` header from Stripe. - * Typically a string. - * - * Note that this is typed to accept an array of strings - * so that it works seamlessly with express's types, - * but will throw if an array is passed in practice - * since express should never return this header as an array, - * only a string. - */ - header: string | Buffer | Array, - /** - * Your Webhook Signing Secret for this endpoint (e.g., 'whsec_...'). - * You can get this [in your dashboard](https://dashboard.stripe.com/webhooks). - */ - secret: string, - /** - * Seconds of tolerance on timestamps. - */ - tolerance?: number, - /** - * Optional CryptoProvider to use for computing HMAC signatures. - */ - cryptoProvider?: Stripe.CryptoProvider, - - /** - * Optional: timestamp to use when checking signature validity. Defaults to Date.now(). - */ - receivedAt?: number - ) => Stripe.Event; } export default Stripe; From 2399b97ca3634a78986790dc92db151b53fb202c Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Tue, 1 Oct 2024 11:33:43 -0700 Subject: [PATCH 05/27] Bump version to 17.0.0 --- CHANGELOG.md | 46 ++++++++++++++++++++++++++++++++++++++++++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 49 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1e683d60e..15f9cb3703 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,51 @@ # Changelog +## 17.0.0 - 2024-10-01 +* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia + + This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading. + + ### āš ļø Breaking changes due to changes in the Stripe API + - Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert` + - Remove support for `filter` on `Billing.AlertCreateParams` and `Billing.Alert`. Use the filters on the `usage_threshold` instead + - Remove support for `customer_consent_collected` on `Terminal.ReaderProcessSetupIntentParams`. + + ### āš ļø Other Breaking changes in the SDK + - Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are: + - max retries: `1` -> `2` + - max timeout (seconds): `2` -> `5` + + + ### Additions + * Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data` + * Add support for `allow_redisplay` on `Terminal.ReaderProcessPaymentIntentParams.process_config` and `Terminal.ReaderProcessSetupIntentParams` + * Add support for new value `international_transaction` on enum `Treasury.ReceivedCredit.failure_code` + * Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version` + * Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview) + * Add method `parseThinEvent()` on the `Stripe` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview). + * Add method [rawRequest()](https://github.com/stripe/stripe-node/tree/master?tab=readme-ov-file#custom-requests) on the `Stripe` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. + + ### Changes + * Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional +* [#2195](https://github.com/stripe/stripe-node/pull/2195) Remove parseSnapshotEvent +* [#2188](https://github.com/stripe/stripe-node/pull/2188) Revert "Add raw_request (#2185)" +* [#2185](https://github.com/stripe/stripe-node/pull/2185) Add raw_request + Adds the ability to make raw requests to the Stripe API, by providing an HTTP method and url. + + Example: + ```node + 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' } + ); + + ``` + ## 16.12.0 - 2024-09-18 * [#2177](https://github.com/stripe/stripe-node/pull/2177) Update generated code * Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code` diff --git a/VERSION b/VERSION index ccefa10045..aac58983e6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -16.12.0 +17.0.0 diff --git a/package.json b/package.json index 448455dbc2..3e0097d0f1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "16.12.0", + "version": "17.0.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 3b8c8ad281..774facfceb 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '16.12.0'; + Stripe.PACKAGE_VERSION = '17.0.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From d9a09ee98f2b27185a1eb754223700af7a923927 Mon Sep 17 00:00:00 2001 From: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> Date: Thu, 3 Oct 2024 09:32:47 -0700 Subject: [PATCH 06/27] Remove entries for the follow ups from CHANGELOG.md (#2196) --- CHANGELOG.md | 7382 +++++++++++++++++++++++++------------------------- 1 file changed, 3682 insertions(+), 3700 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 15f9cb3703..4ed747b9bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ -# Changelog - -## 17.0.0 - 2024-10-01 -* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia +# Changelog + +## 17.0.0 - 2024-10-01 +* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading. @@ -27,3699 +27,3681 @@ ### Changes * Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional -* [#2195](https://github.com/stripe/stripe-node/pull/2195) Remove parseSnapshotEvent -* [#2188](https://github.com/stripe/stripe-node/pull/2188) Revert "Add raw_request (#2185)" -* [#2185](https://github.com/stripe/stripe-node/pull/2185) Add raw_request - Adds the ability to make raw requests to the Stripe API, by providing an HTTP method and url. - - Example: - ```node - 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' } - ); - - ``` - -## 16.12.0 - 2024-09-18 -* [#2177](https://github.com/stripe/stripe-node/pull/2177) Update generated code - * Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code` -* [#2175](https://github.com/stripe/stripe-node/pull/2175) Update generated code - * Add support for new value `verification_supportability` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for new value `terminal_reader_invalid_location_for_activation` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `payer_details` on `Charge.payment_method_details.klarna` - * Add support for `amazon_pay` on `Dispute.payment_method_details` - * Add support for new value `amazon_pay` on enum `Dispute.payment_method_details.type` - * Add support for `automatically_finalizes_at` on `Invoice` - * Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us` - -## 16.11.0 - 2024-09-12 -* [#2171](https://github.com/stripe/stripe-node/pull/2171) Update generated code - * Add support for new resource `InvoiceRenderingTemplate` - * Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate` - * Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection` - * Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` - * Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` - * Add support for new value `submitted` on enum `Issuing.Card.shipping.status` - * Change `TestHelpers.TestClock.status_details` to be required - -## 16.10.0 - 2024-09-05 -* [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code - * Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter` - * Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional - -## 16.9.0 - 2024-08-29 -* [#2163](https://github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230 - * Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional - * Add support for new value `hr_oib` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `hr_oib` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for new value `issuing_regulatory_reporting` on enums `File.purpose` and `FileListParams.purpose` - * Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose` - * Change `Issuing.Card.shipping.address_validation` to be required - * Add support for `status_details` on `TestHelpers.TestClock` - -## 16.8.0 - 2024-08-15 -* [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code - * Add support for `authorization_code` on `Charge.payment_method_details.card` - * Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` - * Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit` - * Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire` - * Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null` - -## 16.7.0 - 2024-08-08 -* [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code - * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert` - * Add support for `retrieve` method on resource `Tax.Calculation` - * Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline` - * Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present` - * Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` - * Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional - * Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` - * Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]` - -## 16.6.0 - 2024-08-01 -* [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code - * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert` - * Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * āš ļø Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week. - * Add support for new value `billing.alert.triggered` on enum `Event.type` - * Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 16.5.0 - 2024-07-25 -* [#2143](https://github.com/stripe/stripe-node/pull/2143) Update generated code - * Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components` -* [#2140](https://github.com/stripe/stripe-node/pull/2140) Update generated code - * Add support for `update` method on resource `Checkout.Session` - * Add support for `transaction_id` on `Charge.payment_method_details.affirm` - * Add support for `buyer_id` on `Charge.payment_method_details.blik` - * Add support for `authorization_code` on `Charge.payment_method_details.card` - * Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` - * Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present` - * Add support for `case_type` on `Dispute.payment_method_details.card` - * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type` - * Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 16.4.0 - 2024-07-18 -* [#2138](https://github.com/stripe/stripe-node/pull/2138) Update generated code - * Add support for `customer` on `ConfirmationToken.payment_method_preview` - * Add support for new value `issuing_dispute.funds_rescinded` on enum `Event.type` - * Add support for new value `multibanco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` - * Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#2136](https://github.com/stripe/stripe-node/pull/2136) Update changelog - -## 16.3.0 - 2024-07-11 -* [#2130](https://github.com/stripe/stripe-node/pull/2130) Update generated code - * āš ļø Remove support for values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` from enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`. - * āš ļø Remove support for value `payment_intent_fx_quote_invalid` from enum `StripeError.code`. The was mistakenly released last week. - * Add support for `payment_method_options` on `ConfirmationToken` - * Add support for `payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components` - * Add support for `address_validation` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` - * Add support for `shipping` on `Issuing.CardUpdateParams` - * Change `Plan.meter` and `Price.recurring.meter` to be required -* [#2133](https://github.com/stripe/stripe-node/pull/2133) update node versions in CI -* [#2132](https://github.com/stripe/stripe-node/pull/2132) check `hasOwnProperty` when using `for..in` -* [#2048](https://github.com/stripe/stripe-node/pull/2048) Add generateTestHeaderStringAsync function to Webhooks.ts - -## 16.2.0 - 2024-07-05 -* [#2125](https://github.com/stripe/stripe-node/pull/2125) Update generated code - * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice` - * Add support for new value `payment_intent_fx_quote_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `posted_at` on `Tax.TransactionCreateFromCalculationParams` and `Tax.Transaction` - -## 16.1.0 - 2024-06-27 -* [#2120](https://github.com/stripe/stripe-node/pull/2120) Update generated code - * Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` - * Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams` - * Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters` - * Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` - -## 16.0.0 - 2024-06-24 -* [#2113](https://github.com/stripe/stripe-node/pull/2113) - - This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading. - - ### āš ļø Breaking changes - - * Remove the unused resource `PlatformTaxFee` - * Rename `volume_decimal` to `quantity_decimal` on - * `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, - * `Issuing.Transaction.purchase_details.fuel`, - * `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and - * `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` - * `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values - * `other` - * `paused.inactivity` - * `pending.onboarding` - * `pending.review` - * `platform_disabled` - * `platform_paused` - * `rejected.inactivity` - * `rejected.other` - * `rejected.unsupported_business` - * `requirements.fields_needed` - - ### Additions - - * Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` - * Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason` - * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization` - * Add support for new value `ch_uid` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details` - * Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization` - * Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` - * Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version` -* [#2118](https://github.com/stripe/stripe-node/pull/2118) Use worker module in Bun - -## 15.12.0 - 2024-06-17 -* [#2109](https://github.com/stripe/stripe-node/pull/2109) Update generated code - * Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `tax_id_collection` on `PaymentLinkUpdateParams` -* [#2111](https://github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names - * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 - * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2 - * Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 - -## 15.11.0 - 2024-06-13 -* [#2102](https://github.com/stripe/stripe-node/pull/2102) Update generated code - * Add support for `multibanco_payments` and `twint_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `twint` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `multibanco` on `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new values `multibanco` and `twint` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for new value `de_stn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `multibanco` and `twint` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new values `multibanco` and `twint` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - * Add support for new value `de_stn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `multibanco_display_details` on `PaymentIntent.next_action` - * Add support for `invoice_settings` on `Subscription` - -## 15.10.0 - 2024-06-06 -* [#2101](https://github.com/stripe/stripe-node/pull/2101) Update generated code - * Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, and `us_bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new value `swish` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - -## 15.9.0 - 2024-05-30 -* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code - * Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text` - * Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card` - * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type` - * Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required - * Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 15.8.0 - 2024-05-23 -* [#2092](https://github.com/stripe/stripe-node/pull/2092) Update generated code - * Add support for `external_account_collection` on `AccountSession.components.balances.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.balances.features`, and `AccountSessionCreateParams.components.payouts.features` - * Add support for new value `terminal_reader_invalid_location_for_payment` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `payment_method_remove` on `Checkout.Session.saved_payment_method_options` - -## 15.7.0 - 2024-05-16 -* [#2088](https://github.com/stripe/stripe-node/pull/2088) Update generated code - * Add support for `fee_source` on `ApplicationFee` - * Add support for `net_available` on `Balance.instant_available[]` - * Add support for `preferred_locales` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, and `PaymentMethod.card_present` - * Add support for `klarna` on `Dispute.payment_method_details` - * Add support for new value `klarna` on enum `Dispute.payment_method_details.type` - * Add support for `archived` and `lookup_key` on `Entitlements.FeatureListParams` - * Change `FinancialConnections.SessionCreateParams.filters.countries` to be optional - * Add support for `no_valid_authorization` on `Issuing.Dispute.evidence`, `Issuing.DisputeCreateParams.evidence`, and `Issuing.DisputeUpdateParams.evidence` - * Add support for new value `no_valid_authorization` on enums `Issuing.Dispute.evidence.reason`, `Issuing.DisputeCreateParams.evidence.reason`, and `Issuing.DisputeUpdateParams.evidence.reason` - * Add support for `loss_reason` on `Issuing.Dispute` - * Add support for `routing` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` - * Add support for `application_fee_amount` and `application_fee` on `Payout` - * Add support for `stripe_s700` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` - * Change `Treasury.OutboundPayment.tracking_details` and `Treasury.OutboundTransfer.tracking_details` to be required - -## 15.6.0 - 2024-05-09 -* [#2086](https://github.com/stripe/stripe-node/pull/2086) Update generated code - * Remove support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` -* [#2080](https://github.com/stripe/stripe-node/pull/2080) Update generated code - * Add support for `update` test helper method on resources `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` - * Add support for `allow_redisplay` on `ConfirmationToken.payment_method_preview` and `PaymentMethod` - * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enum `Event.type` - * Add support for `preview_mode` on `InvoiceCreatePreviewParams`, `InvoiceUpcomingLinesParams`, and `InvoiceUpcomingParams` - * Add support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` - * Add support for `tracking_details` on `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` - * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#2085](https://github.com/stripe/stripe-node/pull/2085) Remove unnecessary pointer to description in deprecation message - -## 15.5.0 - 2024-05-02 -* [#2072](https://github.com/stripe/stripe-node/pull/2072) Update generated code - * Add support for new value `shipping_address_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Fix properties incorrectly marked as required in the OpenAPI spec. - * Change `Apps.Secret.payload`, `BillingPortal.Configuration.features.subscription_update.products`, `Charge.refunds`, `ConfirmationToken.payment_method_preview.klarna.dob`, `Identity.VerificationReport.document.dob`, `Identity.VerificationReport.document.expiration_date`, `Identity.VerificationReport.document.number`, `Identity.VerificationReport.id_number.dob`, `Identity.VerificationReport.id_number.id_number`, `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.dob`, `Identity.VerificationSession.verified_outputs.id_number`, `Identity.VerificationSession.verified_outputs`, `Issuing.Dispute.balance_transactions`, `Issuing.Transaction.purchase_details`, `PaymentMethod.klarna.dob`, `Tax.Calculation.line_items`, `Tax.CalculationLineItem.tax_breakdown`, `Tax.Transaction.line_items`, `Treasury.FinancialAccount.financial_addresses[].aba.account_number`, `Treasury.ReceivedCredit.linked_flows.source_flow_details`, `Treasury.Transaction.entries`, `Treasury.Transaction.flow_details`, and `Treasury.TransactionEntry.flow_details` to be optional - * Add support for `paypal` on `Dispute.payment_method_details` - * Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')` - * Change type of `Entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` - * Add support for `payment_method_types` on `PaymentIntentConfirmParams` - * Add support for `ship_from_details` on `Tax.CalculationCreateParams`, `Tax.Calculation`, and `Tax.Transaction` - * Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` -* [#2077](https://github.com/stripe/stripe-node/pull/2077) Deprecate Node methods and params based on OpenAPI spec - - Mark as deprecated the `approve` and `decline` methods on `Issuing.Authorization`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). - - Mark as deprecated the `persistent_token` property on `ConfirmationToken.PaymentMethodPreview.Link`, `PaymentIntent.PaymentMethodOptions.Link`, `PaymentIntentResource.PaymentMethodOptions.Link`, `PaymentMethod.Link.persistent_token`. `SetupIntents.PaymentMethodOptions.Card.Link.persistent_token`, `SetupIntentsResource.persistent_token`. This is a legacy parameter that no longer has any function. -* [#2074](https://github.com/stripe/stripe-node/pull/2074) Add a more explicit comment on `limit` param in `autoPagingToArray` - -## 15.4.0 - 2024-04-25 -* [#2071](https://github.com/stripe/stripe-node/pull/2071) Update generated code - * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay` - * Change type of `Entitlements.ActiveEntitlement.feature` from `string` to `expandable(Entitlements.Feature)` - * Remove support for inadvertently released identity verification features `email` and `phone` on `Identity.VerificationSessionCreateParams.options` and `Identity.VerificationSessionUpdateParams.options` - * Change `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.email`, and `Identity.VerificationSession.verified_outputs.phone` to be required - * Add support for new values `amazon_pay` and `revolut_pay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for `amazon_pay` and `revolut_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details` - * Add support for `ending_before`, `limit`, and `starting_after` on `PaymentMethodConfigurationListParams` - * Add support for `mobilepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` -* [#2061](https://github.com/stripe/stripe-node/pull/2061) Make cloudflare package export - -## 15.3.0 - 2024-04-18 -* [#2069](https://github.com/stripe/stripe-node/pull/2069) Update generated code - * Add support for `create_preview` method on resource `Invoice` - * Add support for `payment_method_data` on `Checkout.SessionCreateParams` - * Add support for `saved_payment_method_options` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `mobilepay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for new value `mobilepay` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `allow_redisplay` on `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerListPaymentMethodsParams`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `schedule_details` and `subscription_details` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Add support for new value `other` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` - -## 15.2.0 - 2024-04-16 -* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code - * Add support for new resource `Entitlements.ActiveEntitlementSummary` - * Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required - * Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional - * Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard` - * Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type` - * Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API. - * Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay` - * Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 15.1.0 - 2024-04-11 -* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code - * Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features` - * Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Change `Billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `Billing.MeterEventAdjustmentCreateParams.cancel` to be optional - * Change `Billing.MeterEventAdjustmentCreateParams.type` to be required - * Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `BillingMeterResourceBillingMeterEventAdjustmentCancel | null` - * Add support for `amazon_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for new value `ownership` on enums `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` - * Add support for new value `amazon_pay` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `amazon_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `amazon_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh` - * Add support for new value `ownership` on enums `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` and `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` - -## 15.0.0 - 2024-04-10 -* [#2057](https://github.com/stripe/stripe-node/pull/2057) - - * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading. - - ### āš ļø Breaking changes - - * Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent` - * Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent` - * Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`. - - #### āš ļø Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API - - * Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated. - * `BillingPortal.Configuration.Features` - * `BillingPortal.ConfigurationCreateParams.Features` - * `BillingPortal.ConfigurationUpdateParams.Features` - * Remove the below deprecated values for the type `BalanceTransaction.Type` - * `obligation_inbound` - * `obligation_payout` - * `obligation_payout_failure` - * `'obligation_reversal_outbound'` - * Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway` - * Remove deprecated events - * `invoiceitem.updated` - * `order.created` - * `recipient.created` - * `recipient.deleted` - * `recipient.updated` - * `sku.created` - * `sku.deleted` - * `sku.updated` - * Remove types for the deprecated events - * `InvoiceItemUpdatedEvent` - * `OrderCreatedEvent` - * `RecipientCreatedEvent` - * `RecipientDeletedEvent` - * `RecipientUpdatedEvent` - * `SKUCreatedEvent` - * `SKUDeletedEvent` - * Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior` - * Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData` - * Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent` - * Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration` - * Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory` - * Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure` - * Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead. - -## 14.25.0 - 2024-04-09 -* [#2059](https://github.com/stripe/stripe-node/pull/2059) Update generated code - * Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature` - * Add support for `list` and `retrieve` methods on resource `ActiveEntitlement` - * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature` - * Add support for `controller` on `AccountCreateParams` - * Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller` - * Add support for new value `none` on enum `Account.type` - * Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment` - * Add support for `cancel` and `type` on `Billing.MeterEventAdjustment` - - -## 14.24.0 - 2024-04-04 -* [#2053](https://github.com/stripe/stripe-node/pull/2053) Update generated code - * Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required - * Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string` - * Add support for `subscription_item` on `Discount` - * Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options` - * Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession` - * Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type` - * Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession` - * Change `Identity.VerificationSessionCreateParams.type` to be optional - * Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code` - * Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]` - * Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription` - * Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))` - * Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls` - * Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for `offline` on `SetupAttempt.payment_method_details.card_present` - * Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` - -## 14.23.0 - 2024-03-28 -* [#2046](https://github.com/stripe/stripe-node/pull/2046) Update generated code - * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter` - * Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter` - * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent` - * Add support for `amazon_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new value `verification_failed_representative_authority` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for `destination_on_behalf_of_charge_management` on `AccountSession.components.payment_details.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.payment_details.features`, and `AccountSessionCreateParams.components.payments.features` - * Add support for `mandate` on `Charge.payment_method_details.us_bank_account`, `Treasury.InboundTransfer.origin_payment_method_details.us_bank_account`, `Treasury.OutboundPayment.destination_payment_method_details.us_bank_account`, and `Treasury.OutboundTransfer.destination_payment_method_details.us_bank_account` - * Add support for `second_line` on `Issuing.CardCreateParams` - * Add support for `meter` on `PlanCreateParams`, `Plan`, `Price.recurring`, `PriceCreateParams.recurring`, and `PriceListParams.recurring` -* [#2045](https://github.com/stripe/stripe-node/pull/2045) esbuild test project fixes - -## 14.22.0 - 2024-03-21 -* [#2040](https://github.com/stripe/stripe-node/pull/2040) Update generated code - * Add support for new resources `ConfirmationToken` and `Forwarding.Request` - * Add support for `retrieve` method on resource `ConfirmationToken` - * Add support for `create`, `list`, and `retrieve` methods on resource `Request` - * Add support for `mobilepay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new values `forwarding_api_inactive`, `forwarding_api_invalid_parameter`, `forwarding_api_upstream_connection_error`, and `forwarding_api_upstream_connection_timeout` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `mobilepay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `payment_reference` on `Charge.payment_method_details.us_bank_account` - * Add support for new value `mobilepay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `confirmation_token` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `SetupIntentConfirmParams`, and `SetupIntentCreateParams` - * Add support for new value `mobilepay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `mobilepay` on enum `PaymentMethod.type` - * Add support for `name` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` - * Add support for `payout` on `Treasury.ReceivedDebit.linked_flows` -* [#2043](https://github.com/stripe/stripe-node/pull/2043) Don't mutate error.type during minification - -## 14.21.0 - 2024-03-14 -* [#2035](https://github.com/stripe/stripe-node/pull/2035) Update generated code - * Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle` - * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign` - * Add support for `list` and `retrieve` methods on resource `PhysicalBundle` - * Add support for `personalization_design` on `Issuing.CardCreateParams`, `Issuing.CardListParams`, `Issuing.CardUpdateParams`, and `Issuing.Card` - * Change type of `SubscriptionCreateParams.application_fee_percent` and `SubscriptionUpdateParams.application_fee_percent` from `number` to `emptyStringable(number)` - * Add support for `sepa_debit` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` - -## 14.20.0 - 2024-03-07 -* [#2033](https://github.com/stripe/stripe-node/pull/2033) Update generated code - * Add support for `documents` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Add support for `request_three_d_secure` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card` - * Add support for `created` on `CreditNoteListParams` - * Add support for `sepa_debit` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, and `InvoiceUpdateParams.payment_settings.payment_method_options` - -## 14.19.0 - 2024-02-29 -* [#2029](https://github.com/stripe/stripe-node/pull/2029) Update generated code - * Change `Identity.VerificationReport.type`, `SubscriptionSchedule.default_settings.invoice_settings.account_tax_ids`, `SubscriptionSchedule.phases[].invoice_settings.account_tax_ids`, and `TaxId.owner` to be required - * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number') | null` to `enum('document'|'id_number')` - * Add support for `number` on `InvoiceCreateParams` and `InvoiceUpdateParams` - * Add support for `enable_customer_cancellation` on `Terminal.Reader.action.process_payment_intent.process_config`, `Terminal.Reader.action.process_setup_intent.process_config`, `Terminal.ReaderProcessPaymentIntentParams.process_config`, and `Terminal.ReaderProcessSetupIntentParams.process_config` - * Add support for `refund_payment_config` on `Terminal.Reader.action.refund_payment` and `Terminal.ReaderRefundPaymentParams` - * Add support for `payment_method` on `TokenCreateParams.bank_account` -* [#2027](https://github.com/stripe/stripe-node/pull/2027) vscode settings: true -> "explicit" - -## 14.18.0 - 2024-02-22 -* [#2022](https://github.com/stripe/stripe-node/pull/2022) Update generated code - * Add support for `client_reference_id` on `Identity.VerificationReportListParams`, `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` - * Add support for `created` on `Treasury.OutboundPaymentListParams` -* [#2025](https://github.com/stripe/stripe-node/pull/2025) Standardize parameter interface names - - `CapabilityListParams` renamed to `AccountListCapabilitiesParams` - - `CapabilityRetrieveParams` renamed to `AccountRetrieveCapabilityParams` - - `CapabilityUpdateParams` renamed to `AccountUpdateCapabilityParams` - - `CashBalanceRetrieveParams` renamed to `CustomerRetrieveCashBalanceParams` - - `CashBalanceUpdateParams` renamed to `CustomerUpdateCashBalanceParams` - - `CreditNoteLineItemListParams` renamed to `CreditNoteListLineItemsParams` - - `CustomerBalanceTransactionCreateParams` renamed to `CustomerCreateBalanceTransactionParams` - - `CustomerBalanceTransactionListParams` renamed to `CustomerListBalanceTransactionsParams` - - `CustomerBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveBalanceTransactionParams` - - `CustomerBalanceTransactionUpdateParams` renamed to `CustomerUpdateBalanceTransactionParams` - - `CustomerCashBalanceTransactionListParams` renamed to `CustomerListCashBalanceTransactionsParams` - - `CustomerCashBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveCashBalanceTransactionParams` - - `CustomerSourceCreateParams` renamed to `CustomerCreateSourceParams` - - `CustomerSourceDeleteParams` renamed to `CustomerDeleteSourceParams` - - `CustomerSourceListParams` renamed to `CustomerListSourcesParams` - - `CustomerSourceRetrieveParams` renamed to `CustomerRetrieveSourceParams` - - `CustomerSourceUpdateParams` renamed to `CustomerUpdateSourceParams` - - `CustomerSourceVerifyParams` renamed to `CustomerVerifySourceParams` - - `ExternalAccountCreateParams` renamed to `AccountCreateExternalAccountParams` - - `ExternalAccountDeleteParams` renamed to `AccountDeleteExternalAccountParams` - - `ExternalAccountListParams` renamed to `AccountListExternalAccountsParams` - - `ExternalAccountRetrieveParams` renamed to `AccountRetrieveExternalAccountParams` - - `ExternalAccountUpdateParams` renamed to `AccountUpdateExternalAccountParams` - - `FeeRefundCreateParams` renamed to `ApplicationFeeCreateRefundParams` - - `FeeRefundListParams` renamed to `ApplicationFeeListRefundsParams` - - `FeeRefundRetrieveParams` renamed to `ApplicationFeeRetrieveRefundParams` - - `FeeRefundUpdateParams` renamed to `ApplicationFeeUpdateRefundParams` - - `InvoiceLineItemListParams` renamed to `InvoiceListLineItemsParams` - - `InvoiceLineItemUpdateParams` renamed to `InvoiceUpdateLineItemParams` - - `LoginLinkCreateParams` renamed to `AccountCreateLoginLinkParams` - - `PersonCreateParams` renamed to `AccountCreatePersonParams` - - `PersonDeleteParams` renamed to `AccountDeletePersonParams` - - `PersonListParams` renamed to `AccountListPersonsParams` - - `PersonRetrieveParams` renamed to `AccountRetrievePersonParams` - - `PersonUpdateParams` renamed to `AccountUpdatePersonParams` - - `TaxIdCreateParams` renamed to `CustomerCreateTaxIdParams` - - `TaxIdDeleteParams` renamed to `CustomerDeleteTaxIdParams` - - `TaxIdListParams` renamed to `CustomerListTaxIdsParams` - - `TaxIdRetrieveParams` renamed to `CustomerRetrieveTaxIdParams` - - `TransferReversalCreateParams` renamed to `TransferCreateReversalParams` - - `TransferReversalListParams` renamed to `TransferListReversalsParams` - - `TransferReversalRetrieveParams` renamed to `TransferRetrieveReversalParams` - - `TransferReversalUpdateParams` renamed to `TransferUpdateReversalParams` - - `UsageRecordCreateParams` renamed to `SubscriptionItemCreateUsageRecordParams` - - `UsageRecordSummaryListParams` renamed to `SubscriptionItemListUsageRecordSummariesParams` - - Old names will still work but are deprecated and will be removed in future versions. -* [#2021](https://github.com/stripe/stripe-node/pull/2021) Add TaxIds API - * Add support for `create`, `del`, `list`, and `retrieve` methods on resource `TaxId` - -## 14.17.0 - 2024-02-15 -* [#2018](https://github.com/stripe/stripe-node/pull/2018) Update generated code - * Add support for `networks` on `Card`, `PaymentMethodCreateParams.card`, `PaymentMethodUpdateParams.card`, and `TokenCreateParams.card` - * Add support for new value `no_voec` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `no_voec` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type` - * Add support for `display_brand` on `PaymentMethod.card` - * Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 14.16.0 - 2024-02-08 -* [#2012](https://github.com/stripe/stripe-node/pull/2012) Update generated code - * Add support for `invoices` on `Account.settings` and `AccountUpdateParams.settings` - * Add support for new value `velobank` on enums `Charge.payment_method_details.p24.bank`, `PaymentIntentConfirmParams.payment_method_data.p24.bank`, `PaymentIntentCreateParams.payment_method_data.p24.bank`, `PaymentIntentUpdateParams.payment_method_data.p24.bank`, `PaymentMethod.p24.bank`, `PaymentMethodCreateParams.p24.bank`, `SetupIntentConfirmParams.payment_method_data.p24.bank`, `SetupIntentCreateParams.payment_method_data.p24.bank`, and `SetupIntentUpdateParams.payment_method_data.p24.bank` - * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.blik`, `PaymentIntentConfirmParams.payment_method_options.blik`, `PaymentIntentCreateParams.payment_method_options.blik`, and `PaymentIntentUpdateParams.payment_method_options.blik` - * Add support for `require_cvc_recollection` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `account_tax_ids` on `SubscriptionCreateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, `SubscriptionScheduleUpdateParams.phases[].invoice_settings`, and `SubscriptionUpdateParams.invoice_settings` - -## 14.15.0 - 2024-02-05 -* [#2001](https://github.com/stripe/stripe-node/pull/2001) Update generated code - * Add support for `swish` payment method throughout the API - * Add support for `relationship` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, and `TokenCreateParams.account.individual` - * Add support for `jurisdiction_level` on `TaxRate` - * Change type of `Terminal.Reader.status` from `string` to `enum('offline'|'online')` -* [#2009](https://github.com/stripe/stripe-node/pull/2009) Remove https check for *.stripe.com - * Stops throwing exceptions if `protocol: 'http'` is set for requests to `api.stripe.com`. - -## 14.14.0 - 2024-01-25 -* [#1998](https://github.com/stripe/stripe-node/pull/1998) Update generated code - * Add support for `annual_revenue` and `estimated_worker_count` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` - * Add support for new value `registered_charity` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` - * Add support for `collection_options` on `AccountLinkCreateParams` - * Add support for `liability` on `Checkout.Session.automatic_tax`, `Checkout.SessionCreateParams.automatic_tax`, `PaymentLink.automatic_tax`, `PaymentLinkCreateParams.automatic_tax`, `PaymentLinkUpdateParams.automatic_tax`, `Quote.automatic_tax`, `QuoteCreateParams.automatic_tax`, `QuoteUpdateParams.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, `SubscriptionSchedule.phases[].automatic_tax`, `SubscriptionScheduleCreateParams.default_settings.automatic_tax`, `SubscriptionScheduleCreateParams.phases[].automatic_tax`, `SubscriptionScheduleUpdateParams.default_settings.automatic_tax`, and `SubscriptionScheduleUpdateParams.phases[].automatic_tax` - * Add support for `issuer` on `Checkout.Session.invoice_creation.invoice_data`, `Checkout.SessionCreateParams.invoice_creation.invoice_data`, `PaymentLink.invoice_creation.invoice_data`, `PaymentLinkCreateParams.invoice_creation.invoice_data`, `PaymentLinkUpdateParams.invoice_creation.invoice_data`, `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings` - * Add support for `invoice_settings` on `Checkout.SessionCreateParams.subscription_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` - * Add support for new value `challenge` on enums `Invoice.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `Subscription.payment_settings.payment_method_options.card.request_three_d_secure`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure` - * Add support for `promotion_code` on `InvoiceUpcomingLinesParams.discounts[]`, `InvoiceUpcomingLinesParams.invoice_items[].discounts[]`, `InvoiceUpcomingParams.discounts[]`, and `InvoiceUpcomingParams.invoice_items[].discounts[]` - * Add support for `account_type` on `PaymentMethodUpdateParams.us_bank_account` -* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code - * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` - * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required - * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` - * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Add support for `pin` on `Issuing.CardCreateParams` - * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` - * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` -* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding - -## 14.13.0 - 2024-01-18 -* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code - * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` - * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required - * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` - * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Add support for `pin` on `Issuing.CardCreateParams` - * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` - * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` -* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding - -## 14.12.0 - 2024-01-12 -* [#1990](https://github.com/stripe/stripe-node/pull/1990) Update generated code - * Add support for new resource `CustomerSession` - * Add support for `create` method on resource `CustomerSession` - * Remove support for values `obligation_inbound`, `obligation_payout_failure`, `obligation_payout`, and `obligation_reversal_outbound` from enum `BalanceTransaction.type` - * Add support for new values `eps` and `p24` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Remove support for value `obligation` from enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - * Add support for `billing_cycle_anchor_config` on `SubscriptionCreateParams` and `Subscription` - -## 14.11.0 - 2024-01-04 -* [#1985](https://github.com/stripe/stripe-node/pull/1985) Update generated code - * Add support for `retrieve` method on resource `Tax.Registration` - * Change `AccountSession.components.payment_details.features`, `AccountSession.components.payment_details`, `AccountSession.components.payments.features`, `AccountSession.components.payments`, `AccountSession.components.payouts.features`, `AccountSession.components.payouts`, `PaymentLink.inactive_message`, and `PaymentLink.restrictions` to be required - * Change type of `SubscriptionSchedule.default_settings.invoice_settings` from `InvoiceSettingSubscriptionScheduleSetting | null` to `InvoiceSettingSubscriptionScheduleSetting` -* [#1987](https://github.com/stripe/stripe-node/pull/1987) Update docstrings to indicate removal of deprecated event types - -## 14.10.0 - 2023-12-22 -* [#1979](https://github.com/stripe/stripe-node/pull/1979) Update generated code - * Add support for `collection_method` on `Mandate.payment_method_details.us_bank_account` - * Add support for `mandate_options` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` -* [#1976](https://github.com/stripe/stripe-node/pull/1976) Update generated code - * Add support for new resource `FinancialConnections.Transaction` - * Add support for `list` and `retrieve` methods on resource `Transaction` - * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account` - * Add support for `features` on `AccountSessionCreateParams.components.payouts` - * Add support for `edit_payout_schedule`, `instant_payouts`, and `standard_payouts` on `AccountSession.components.payouts.features` - * Change type of `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` from `literal('balances')` to `enum('balances'|'transactions')` - * Add support for new value `financial_connections.account.refreshed_transactions` on enum `Event.type` - * Add support for new value `transactions` on enum `FinancialConnections.AccountRefreshParams.features[]` - * Add support for `subscriptions` and `transaction_refresh` on `FinancialConnections.Account` - * Add support for `next_refresh_available_at` on `FinancialConnections.Account.balance_refresh` - * Add support for new value `transactions` on enums `FinancialConnections.Session.prefetch[]` and `FinancialConnections.SessionCreateParams.prefetch[]` - * Add support for new value `unknown` on enums `Issuing.Authorization.verification_data.authentication_exemption.type` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data.authentication_exemption.type` - * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure`, `PaymentIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentCreateParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentUpdateParams.payment_method_options.card.request_three_d_secure`, `SetupIntent.payment_method_options.card.request_three_d_secure`, `SetupIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `SetupIntentCreateParams.payment_method_options.card.request_three_d_secure`, and `SetupIntentUpdateParams.payment_method_options.card.request_three_d_secure` - * Add support for `revolut_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Change type of `Quote.invoice_settings` from `InvoiceSettingQuoteSetting | null` to `InvoiceSettingQuoteSetting` - * Add support for `destination_details` on `Refund` - * Add support for new value `financial_connections.account.refreshed_transactions` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 14.9.0 - 2023-12-14 -* [#1973](https://github.com/stripe/stripe-node/pull/1973) Add `usage` to X-Stripe-Client-Telemetry -* [#1971](https://github.com/stripe/stripe-node/pull/1971) Update generated code - * Add support for `payment_method_reuse_agreement` on `Checkout.Session.consent_collection`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` - * Add support for `after_submit` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` - * Add support for `created` on `Radar.EarlyFraudWarningListParams` - -## 14.8.0 - 2023-12-07 -* [#1968](https://github.com/stripe/stripe-node/pull/1968) Update generated code - * Add support for `payment_details`, `payments`, and `payouts` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Add support for `features` on `AccountSession.components.account_onboarding` and `AccountSessionCreateParams.components.account_onboarding` - * Add support for new values `customer_tax_location_invalid` and `financial_connections_no_successful_transaction_refresh` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for new values `payment_network_reserve_hold` and `payment_network_reserve_release` on enum `BalanceTransaction.type` - * Change `Climate.Product.metric_tons_available` to be required - * Remove support for value `various` from enum `Climate.Supplier.removal_pathway` - * Remove support for values `challenge_only` and `challenge` from enum `PaymentIntent.payment_method_options.card.request_three_d_secure` - * Add support for `inactive_message` and `restrictions` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for `transfer_group` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` - * Add support for `trial_settings` on `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` - -## 14.7.0 - 2023-11-30 -* [#1965](https://github.com/stripe/stripe-node/pull/1965) Update generated code - * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier` - * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `Order` - * Add support for `list` and `retrieve` methods on resources `Product` and `Supplier` - * Add support for new value `financial_connections_account_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `BalanceTransaction.type` - * Add support for `created` on `Checkout.SessionListParams` - * Add support for `validate_location` on `CustomerCreateParams.tax` and `CustomerUpdateParams.tax` - * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enum `Event.type` - * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure` and `SetupIntent.payment_method_options.card.request_three_d_secure` - * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 14.6.0 - 2023-11-21 -* [#1961](https://github.com/stripe/stripe-node/pull/1961) Update generated code - * Add support for `electronic_commerce_indicator` on `Charge.payment_method_details.card.three_d_secure` and `SetupAttempt.payment_method_details.card.three_d_secure` - * Add support for `exemption_indicator_applied` and `exemption_indicator` on `Charge.payment_method_details.card.three_d_secure` - * Add support for `transaction_id` on `Charge.payment_method_details.card.three_d_secure`, `Issuing.Authorization.network_data`, `Issuing.Transaction.network_data`, and `SetupAttempt.payment_method_details.card.three_d_secure` - * Add support for `offline` on `Charge.payment_method_details.card_present` - * Add support for `system_trace_audit_number` on `Issuing.Authorization.network_data` - * Add support for `network_risk_score` on `Issuing.Authorization.pending_request` and `Issuing.Authorization.request_history[]` - * Add support for `requested_at` on `Issuing.Authorization.request_history[]` - * Add support for `authorization_code` on `Issuing.Transaction.network_data` - * Add support for `three_d_secure` on `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, and `SetupIntentUpdateParams.payment_method_options.card` - -## 14.5.0 - 2023-11-16 -* [#1957](https://github.com/stripe/stripe-node/pull/1957) Update generated code - * Add support for `bacs_debit_payments` on `AccountCreateParams.settings` and `AccountUpdateParams.settings` - * Add support for `service_user_number` on `Account.settings.bacs_debit_payments` - * Change type of `Account.settings.bacs_debit_payments.display_name` from `string` to `string | null` - * Add support for `capture_before` on `Charge.payment_method_details.card` - * Add support for `paypal` on `Checkout.Session.payment_method_options` - * Add support for `tax_amounts` on `CreditNoteCreateParams.lines[]`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]` - * Add support for `network_data` on `Issuing.Transaction` -* [#1960](https://github.com/stripe/stripe-node/pull/1960) Update generated code - * Add support for `status` on `Checkout.SessionListParams` -* [#1958](https://github.com/stripe/stripe-node/pull/1958) Move Webhooks instance to static field -* [#1952](https://github.com/stripe/stripe-node/pull/1952) Use AbortController for native fetch cancellation when available - -## 14.4.0 - 2023-11-09 -* [#1947](https://github.com/stripe/stripe-node/pull/1947) Update generated code - * Add support for new value `terminal_reader_hardware_fault` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Change `Charge.payment_method_details.card.amount_authorized`, `Checkout.Session.payment_method_configuration_details`, `PaymentIntent.latest_charge`, `PaymentIntent.payment_method_configuration_details`, and `SetupIntent.payment_method_configuration_details` to be required - * Change `Product.features[].name` to be optional - * Add support for `metadata` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, and `QuoteUpdateParams.subscription_data` - -## 14.3.0 - 2023-11-02 -* [#1943](https://github.com/stripe/stripe-node/pull/1943) Update generated code - * Add support for new resource `Tax.Registration` - * Add support for `create`, `list`, and `update` methods on resource `Registration` - * Add support for `revolut_pay_payments` on `Account` APIs. - * Add support for new value `token_card_network_invalid` on error code enums. - * Add support for new value `payment_unreconciled` on enum `BalanceTransaction.type` - * Add support for `revolut_pay` throughout the API. - * Change `.paypal.payer_email` to be required in several locations. - * Add support for `aba` and `swift` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` - * Add support for new values `ach`, `domestic_wire_us`, and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` - * Add support for new values `aba` and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` - * Add support for `url` on `Issuing.Authorization.merchant_data`, `Issuing.AuthorizationCreateParams.testHelpers.merchant_data`, `Issuing.Transaction.merchant_data`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.merchant_data`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.merchant_data` - * Add support for `authentication_exemption` and `three_d_secure` on `Issuing.Authorization.verification_data` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data` - * Add support for `description` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` - * Add support for new value `unreconciled_customer_funds` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - -## 14.2.0 - 2023-10-26 -* [#1939](https://github.com/stripe/stripe-node/pull/1939) Update generated code - * Add support for new value `balance_invalid_parameter` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Change `Issuing.Cardholder.individual.card_issuing` to be optional -* [#1940](https://github.com/stripe/stripe-node/pull/1940) Do not require passing apiVersion - -## 14.1.0 - 2023-10-17 -* [#1933](https://github.com/stripe/stripe-node/pull/1933) Update generated code - * Add support for new value `invalid_dob_age_under_minimum` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Change `Checkout.Session.client_secret` and `Checkout.Session.ui_mode` to be required - -## 14.0.0 - 2023-10-16 -* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe` package. -* [#1932](https://github.com/stripe/stripe-node/pull/1932) Update generated code - * Add support for `legal_guardian` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship` - * Add support for new values `invalid_address_highway_contract_box`, `invalid_address_private_mailbox`, `invalid_business_profile_name_denylisted`, `invalid_business_profile_name`, `invalid_company_name_denylisted`, `invalid_dob_age_over_maximum`, `invalid_product_description_length`, `invalid_product_description_url_match`, `invalid_statement_descriptor_business_mismatch`, `invalid_statement_descriptor_denylisted`, `invalid_statement_descriptor_length`, `invalid_statement_descriptor_prefix_denylisted`, `invalid_statement_descriptor_prefix_mismatch`, `invalid_tax_id_format`, `invalid_tax_id`, `invalid_url_denylisted`, `invalid_url_format`, `invalid_url_length`, `invalid_url_web_presence_detected`, `invalid_url_website_business_information_mismatch`, `invalid_url_website_empty`, `invalid_url_website_inaccessible_geoblocked`, `invalid_url_website_inaccessible_password_protected`, `invalid_url_website_inaccessible`, `invalid_url_website_incomplete_cancellation_policy`, `invalid_url_website_incomplete_customer_service_details`, `invalid_url_website_incomplete_legal_restrictions`, `invalid_url_website_incomplete_refund_policy`, `invalid_url_website_incomplete_return_policy`, `invalid_url_website_incomplete_terms_and_conditions`, `invalid_url_website_incomplete_under_construction`, `invalid_url_website_incomplete`, and `invalid_url_website_other` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for `additional_tos_acceptances` on `TokenCreateParams.person` - * Add support for new value `2023-10-16` on enum `WebhookEndpointCreateParams.api_version` - -## 13.11.0 - 2023-10-16 -* [#1924](https://github.com/stripe/stripe-node/pull/1924) Update generated code - * Add support for new values `issuing_token.created` and `issuing_token.updated` on enum `Event.type` - * Add support for new values `issuing_token.created` and `issuing_token.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1926](https://github.com/stripe/stripe-node/pull/1926) Add named unions for all polymorphic types -* [#1921](https://github.com/stripe/stripe-node/pull/1921) Add event types - -## 13.10.0 - 2023-10-11 -* [#1920](https://github.com/stripe/stripe-node/pull/1920) Update generated code - * Add support for `redirect_on_completion`, `return_url`, and `ui_mode` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Change `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.success_url`, `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, and `PaymentLink.custom_fields[].text` to be optional - * Add support for `client_secret` on `Checkout.Session` - * Change type of `Checkout.Session.custom_fields[].dropdown` from `PaymentPagesCheckoutSessionCustomFieldsDropdown | null` to `PaymentPagesCheckoutSessionCustomFieldsDropdown` - * Change type of `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` from `PaymentPagesCheckoutSessionCustomFieldsNumeric | null` to `PaymentPagesCheckoutSessionCustomFieldsNumeric` - * Add support for `postal_code` on `Issuing.Authorization.verification_data` - * Change type of `PaymentLink.custom_fields[].dropdown` from `PaymentLinksResourceCustomFieldsDropdown | null` to `PaymentLinksResourceCustomFieldsDropdown` - * Change type of `PaymentLink.custom_fields[].numeric` and `PaymentLink.custom_fields[].text` from `PaymentLinksResourceCustomFieldsNumeric | null` to `PaymentLinksResourceCustomFieldsNumeric` - * Add support for `offline` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` -* [#1914](https://github.com/stripe/stripe-node/pull/1914) Bump get-func-name from 2.0.0 to 2.0.2 - -## 13.9.0 - 2023-10-05 -* [#1916](https://github.com/stripe/stripe-node/pull/1916) Update generated code - * Add support for new resource `Issuing.Token` - * Add support for `list`, `retrieve`, and `update` methods on resource `Token` - * Add support for `amount_authorized`, `extended_authorization`, `incremental_authorization`, `multicapture`, and `overcapture` on `Charge.payment_method_details.card` - * Add support for `token` on `Issuing.Authorization` and `Issuing.Transaction` - * Add support for `authorization_code` on `Issuing.Authorization.request_history[]` - * Add support for `request_extended_authorization`, `request_multicapture`, and `request_overcapture` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `request_incremental_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `final_capture` on `PaymentIntentCaptureParams` - * Add support for `metadata` on `PaymentLink.payment_intent_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkCreateParams.subscription_data` - * Add support for `statement_descriptor_suffix` and `statement_descriptor` on `PaymentLink.payment_intent_data` and `PaymentLinkCreateParams.payment_intent_data` - * Add support for `payment_intent_data` and `subscription_data` on `PaymentLinkUpdateParams` - -## 13.8.0 - 2023-09-28 -* [#1911](https://github.com/stripe/stripe-node/pull/1911) Update generated code - * Add support for `rendering` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` - * Change `PaymentMethod.us_bank_account.financial_connections_account` and `PaymentMethod.us_bank_account.status_details` to be required - -## 13.7.0 - 2023-09-21 -* [#1907](https://github.com/stripe/stripe-node/pull/1907) Update generated code - * Add support for `terms_of_service_acceptance` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` - -## 13.6.0 - 2023-09-14 -* [#1905](https://github.com/stripe/stripe-node/pull/1905) Update generated code - * Add support for new resource `PaymentMethodConfiguration` - * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration` - * Add support for `payment_method_configuration` on `Checkout.SessionCreateParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` - * Add support for `payment_method_configuration_details` on `Checkout.Session`, `PaymentIntent`, and `SetupIntent` -* [#1897](https://github.com/stripe/stripe-node/pull/1897) Update generated code - * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization` - * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction` - * Add support for new value `stripe_tax_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `nonce` on `EphemeralKeyCreateParams` - * Add support for `cashback_amount` on `Issuing.Authorization.amount_details`, `Issuing.Authorization.pending_request.amount_details`, `Issuing.Authorization.request_history[].amount_details`, and `Issuing.Transaction.amount_details` - * Add support for `serial_number` on `Terminal.ReaderListParams` -* [#1895](https://github.com/stripe/stripe-node/pull/1895) feat: webhook signing Nestjs -* [#1878](https://github.com/stripe/stripe-node/pull/1878) Use src/apiVersion.ts, not API_VERSION as source of truth - -## 13.5.0 - 2023-09-07 -* [#1893](https://github.com/stripe/stripe-node/pull/1893) Update generated code - * Add support for new resource `PaymentMethodDomain` - * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain` - * Add support for new value `n26` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `NTSBDEB1` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Add support for new values `treasury.credit_reversal.created`, `treasury.credit_reversal.posted`, `treasury.debit_reversal.completed`, `treasury.debit_reversal.created`, `treasury.debit_reversal.initial_credit_granted`, `treasury.financial_account.closed`, `treasury.financial_account.created`, `treasury.financial_account.features_status_updated`, `treasury.inbound_transfer.canceled`, `treasury.inbound_transfer.created`, `treasury.inbound_transfer.failed`, `treasury.inbound_transfer.succeeded`, `treasury.outbound_payment.canceled`, `treasury.outbound_payment.created`, `treasury.outbound_payment.expected_arrival_date_updated`, `treasury.outbound_payment.failed`, `treasury.outbound_payment.posted`, `treasury.outbound_payment.returned`, `treasury.outbound_transfer.canceled`, `treasury.outbound_transfer.created`, `treasury.outbound_transfer.expected_arrival_date_updated`, `treasury.outbound_transfer.failed`, `treasury.outbound_transfer.posted`, `treasury.outbound_transfer.returned`, `treasury.received_credit.created`, `treasury.received_credit.failed`, `treasury.received_credit.succeeded`, and `treasury.received_debit.created` on enum `Event.type` - * Remove support for value `invoiceitem.updated` from enum `Event.type` - * Add support for `features` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` - * Remove support for value `invoiceitem.updated` from enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 13.4.0 - 2023-08-31 -* [#1884](https://github.com/stripe/stripe-node/pull/1884) Update generated code - * Add support for new resource `AccountSession` - * Add support for `create` method on resource `AccountSession` - * Add support for new values `obligation_inbound`, `obligation_outbound`, `obligation_payout_failure`, `obligation_payout`, `obligation_reversal_inbound`, and `obligation_reversal_outbound` on enum `BalanceTransaction.type` - * Change type of `Event.type` from `string` to `enum` - * Add support for `application` on `PaymentLink` - * Add support for new value `obligation` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - -## 13.3.0 - 2023-08-24 -* [#1879](https://github.com/stripe/stripe-node/pull/1879) Update generated code - * Add support for `retention` on `BillingPortal.Session.flow.subscription_cancel` and `BillingPortal.SessionCreateParams.flow_data.subscription_cancel` - * Add support for `prefetch` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections`, `FinancialConnections.SessionCreateParams`, `FinancialConnections.Session`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` - * Add support for `payment_method_details` on `Dispute` - * Change type of `PaymentIntentCreateParams.mandate_data` and `SetupIntentCreateParams.mandate_data` from `secret_key_param` to `emptyStringable(secret_key_param)` - * Change type of `PaymentIntentConfirmParams.mandate_data` and `SetupIntentConfirmParams.mandate_data` from `secret_key_param | client_key_param` to `emptyStringable(secret_key_param | client_key_param)` - * Add support for `balance_transaction` on `CustomerCashBalanceTransaction.adjusted_for_overdraft` -* [#1882](https://github.com/stripe/stripe-node/pull/1882) Update v13.0.0 CHANGELOG.md -* [#1880](https://github.com/stripe/stripe-node/pull/1880) Improved `maxNetworkRetries` options JSDoc - -## 13.2.0 - 2023-08-17 -* [#1876](https://github.com/stripe/stripe-node/pull/1876) Update generated code - * Add support for `flat_amount` on `Tax.TransactionCreateReversalParams` - -## 13.1.0 - 2023-08-17 -* [#1875](https://github.com/stripe/stripe-node/pull/1875) Update Typescript types to support version `2023-08-16`. - -## 13.0.0 - 2023-08-16 -* This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-node`. -* More information is available in the [stripe-node v13 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v13) - -"āš ļø" symbol highlights breaking changes. - -* āš ļø[#1803](https://github.com/stripe/stripe-node/pull/1803) Change the default behavior to perform 1 reattempt on retryable request failures (previously the default was 0). -* [#1808](https://github.com/stripe/stripe-node/pull/1808) Allow request-level options to disable retries. -* āš ļøRemove deprecated `del` method on `Subscriptions`. Please use the `cancel` method instead, which was introduced in [v9.14.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#9140---2022-07-18): -* [#1872](https://github.com/stripe/stripe-node/pull/1872) Update generated code - * āš ļøAdd support for new values `verification_directors_mismatch`, `verification_document_directors_mismatch`, `verification_extraneous_directors`, and `verification_missing_directors` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * āš ļøRemove support for values `custom_account_update` and `custom_account_verification` from enum `AccountLinkCreateParams.type` - * These values are not fully operational. Please use `account_update` and `account_onboarding` instead (see [API reference](https://stripe.com/docs/api/account_links/create#create_account_link-type)). - * āš ļøRemove support for `available_on` on `BalanceTransactionListParams` - * Use of this parameter is discouraged. Suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. - * āš ļøRemove support for `alternate_statement_descriptors` and `dispute` on `Charge` - * Use of these fields is discouraged. - * āš ļøRemove support for `destination` on `Charge` - * Please use `transfer_data` or `on_behalf_of` instead. - * āš ļøRemove support for `shipping_rates` on `Checkout.SessionCreateParams` - * Please use `shipping_options` instead. - * āš ļøRemove support for `coupon` and `trial_from_plan` on `Checkout.SessionCreateParams.subscription_data` - * Please [migrate to the Prices API](https://stripe.com/docs/billing/migration/migrating-prices), or suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. - * āš ļøRemove support for value `card_present` from enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * This value was not fully operational. - * āš ļøRemove support for value `charge_refunded` from enum `Dispute.status` - * This value was not fully operational. - * āš ļøRemove support for `blik` on `Mandate.payment_method_details`, `PaymentMethodUpdateParams`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` - * These fields were mistakenly released. - * āš ļøRemove support for `acss_debit`, `affirm`, `au_becs_debit`, `bacs_debit`, `cashapp`, `sepa_debit`, and `zip` on `PaymentMethodUpdateParams` - * These fields are empty. - * āš ļøRemove support for `country` on `PaymentMethod.link` - * This field was not fully operational. - * āš ļøRemove support for `recurring` on `PriceUpdateParams` - * This property should be set on create only. - * āš ļøRemove support for `attributes`, `caption`, and `deactivate_on` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` - * These fields are not fully operational. - * āš ļøAdd support for new value `2023-08-16` on enum `WebhookEndpointCreateParams.api_version` - -## 12.18.0 - 2023-08-10 -* [#1867](https://github.com/stripe/stripe-node/pull/1867) Update generated code - * Add support for new values `incorporated_partnership` and `unincorporated_partnership` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` - * Add support for new value `payment_reversal` on enum `BalanceTransaction.type` - * Change `Invoice.subscription_details.metadata` and `Invoice.subscription_details` to be required - -## 12.17.0 - 2023-08-03 -* [#1863](https://github.com/stripe/stripe-node/pull/1863) Update generated code - * Change many types from `string` to `emptyStringable(string)` - * Add support for `subscription_details` on `Invoice` - * Add support for `preferred_settlement_speed` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, and `PaymentIntentUpdateParams.payment_method_options.us_bank_account` - * Add support for new values `sepa_debit_fingerprint` and `us_bank_account_fingerprint` on enums `Radar.ValueList.item_type` and `Radar.ValueListCreateParams.item_type` -* [#1866](https://github.com/stripe/stripe-node/pull/1866) Allow monkey patching http / https - -## 12.16.0 - 2023-07-27 -* [#1853](https://github.com/stripe/stripe-node/pull/1853) Update generated code - * Add support for `monthly_estimated_revenue` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` -* [#1859](https://github.com/stripe/stripe-node/pull/1859) Revert "import * as http -> import http from 'http'" - -## 12.15.0 - 2023-07-27 (DEPRECATED āš ļø ) -* This version included a breaking change [#1859](https://github.com/stripe/stripe-node/pull/1859) that we should not have released. It has been deprecated on npmjs.org. Please do not use this version. - -## 12.14.0 - 2023-07-20 -* [#1842](https://github.com/stripe/stripe-node/pull/1842) Update generated code - * Add support for new value `ro_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, and `Tax.Transaction.customer_details.tax_ids[].type` - * Remove support for values `excluded_territory`, `jurisdiction_unsupported`, and `vat_exempt` from enums `Checkout.Session.shipping_cost.taxes[].taxability_reason`, `Checkout.Session.total_details.breakdown.taxes[].taxability_reason`, `CreditNote.shipping_cost.taxes[].taxability_reason`, `Invoice.shipping_cost.taxes[].taxability_reason`, `LineItem.taxes[].taxability_reason`, `Quote.computed.recurring.total_details.breakdown.taxes[].taxability_reason`, `Quote.computed.upfront.total_details.breakdown.taxes[].taxability_reason`, and `Quote.total_details.breakdown.taxes[].taxability_reason` - * Add support for new value `ro_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `Tax.CalculationCreateParams.customer_details.tax_ids[].type` - * Add support for `use_stripe_sdk` on `SetupIntentConfirmParams` and `SetupIntentCreateParams` - * Add support for new value `service_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` -* [#1849](https://github.com/stripe/stripe-node/pull/1849) Changelog: fix delimiterless namespaced param types -* [#1848](https://github.com/stripe/stripe-node/pull/1848) Changelog: `CheckoutSessionCreateParams` -> `Checkout.SessionCreateParams` - -## 12.13.0 - 2023-07-13 -* [#1838](https://github.com/stripe/stripe-node/pull/1838) Update generated code - * Add support for new resource `Tax.Settings` - * Add support for `retrieve` and `update` methods on resource `Settings` - * Add support for new value `invalid_tax_location` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `order_id` on `Charge.payment_method_details.afterpay_clearpay` - * Add support for `allow_redirects` on `PaymentIntent.automatic_payment_methods`, `PaymentIntentCreateParams.automatic_payment_methods`, `SetupIntent.automatic_payment_methods`, and `SetupIntentCreateParams.automatic_payment_methods` - * Add support for new values `amusement_tax` and `communications_tax` on enums `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, and `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type` - * Add support for `product` on `Tax.TransactionLineItem` - * Add support for new value `tax.settings.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 12.12.0 - 2023-07-06 -* [#1831](https://github.com/stripe/stripe-node/pull/1831) Update generated code - * Add support for `numeric` and `text` on `PaymentLink.custom_fields[]` - * Add support for `automatic_tax` on `SubscriptionListParams` - -## 12.11.0 - 2023-06-29 -* [#1823](https://github.com/stripe/stripe-node/pull/1823) Update generated code - * Add support for new value `application_fees_not_allowed` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for new tax IDs `ad_nrt`, `ar_cuit`, `bo_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, and `vn_tin` - * Add support for `effective_at` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` -* [#1828](https://github.com/stripe/stripe-node/pull/1828) Better CryptoProvider error - -## 12.10.0 - 2023-06-22 -* [#1820](https://github.com/stripe/stripe-node/pull/1820) Update generated code - * Add support for `on_behalf_of` on `Mandate` -* [#1817](https://github.com/stripe/stripe-node/pull/1817) Update README.md -* [#1819](https://github.com/stripe/stripe-node/pull/1819) Update generated code - * Release specs are identical. -* [#1813](https://github.com/stripe/stripe-node/pull/1813) Update generated code - * Change type of `Checkout.Session.success_url` from `string` to `string | null` - * Change type of `FileCreateParams.file` from `string` to `file` -* [#1815](https://github.com/stripe/stripe-node/pull/1815) Generate FileCreateParams - -## 12.9.0 - 2023-06-08 -* [#1809](https://github.com/stripe/stripe-node/pull/1809) Update generated code - * Change `Charge.payment_method_details.cashapp.buyer_id`, `Charge.payment_method_details.cashapp.cashtag`, `PaymentMethod.cashapp.buyer_id`, and `PaymentMethod.cashapp.cashtag` to be required - * Add support for `taxability_reason` on `Tax.Calculation.tax_breakdown[]` -* [#1812](https://github.com/stripe/stripe-node/pull/1812) More helpful error when signing secrets contain whitespace - -## 12.8.0 - 2023-06-01 -* [#1799](https://github.com/stripe/stripe-node/pull/1799) Update generated code - * Add support for `numeric` and `text` on `Checkout.SessionCreateParams.custom_fields[]`, `PaymentLinkCreateParams.custom_fields[]`, and `PaymentLinkUpdateParams.custom_fields[]` - * Add support for new values `aba` and `swift` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` - * Add support for new value `us_bank_transfer` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.type`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.type`, `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` - * Add support for `maximum_length` and `minimum_length` on `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` - * Add support for `preferred_locales` on `Issuing.Cardholder`, `Issuing.CardholderCreateParams`, and `Issuing.CardholderUpdateParams` - * Add support for `description`, `iin`, and `issuer` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` - * Add support for `payer_email` on `PaymentMethod.paypal` - -## 12.7.0 - 2023-05-25 -* [#1797](https://github.com/stripe/stripe-node/pull/1797) Update generated code - * Add support for `zip_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Change type of `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` from `string` to `enum` - * Add support for `zip` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `zip` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` - * Add support for new value `zip` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `zip` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `zip` on enum `PaymentMethod.type` - -## 12.6.0 - 2023-05-19 -* [#1787](https://github.com/stripe/stripe-node/pull/1787) Update generated code - * Add support for `subscription_update_confirm` and `subscription_update` on `BillingPortal.Session.flow` and `BillingPortal.SessionCreateParams.flow_data` - * Add support for new values `subscription_update_confirm` and `subscription_update` on enums `BillingPortal.Session.flow.type` and `BillingPortal.SessionCreateParams.flow_data.type` - * Add support for `link` on `Charge.payment_method_details.card.wallet` and `PaymentMethod.card.wallet` - * Add support for `buyer_id` and `cashtag` on `Charge.payment_method_details.cashapp` and `PaymentMethod.cashapp` - * Add support for new values `amusement_tax` and `communications_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` - -## 12.5.0 - 2023-05-11 -* [#1785](https://github.com/stripe/stripe-node/pull/1785) Update generated code - * Add support for `paypal` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for `network_token` on `Charge.payment_method_details.card` - * Add support for new value `paypal` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` - * Add support for `taxability_reason` and `taxable_amount` on `Checkout.Session.shipping_cost.taxes[]`, `Checkout.Session.total_details.breakdown.taxes[]`, `CreditNote.shipping_cost.taxes[]`, `CreditNote.tax_amounts[]`, `Invoice.shipping_cost.taxes[]`, `Invoice.total_tax_amounts[]`, `LineItem.taxes[]`, `Quote.computed.recurring.total_details.breakdown.taxes[]`, `Quote.computed.upfront.total_details.breakdown.taxes[]`, and `Quote.total_details.breakdown.taxes[]` - * Add support for new value `paypal` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `paypal` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `paypal` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `eftpos_au` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` - * Add support for new value `paypal` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `brand`, `cardholder_name`, `country`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `last4`, `networks`, and `read_method` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` - * Add support for `preferred_locales` on `PaymentMethod.interac_present` - * Add support for new value `paypal` on enum `PaymentMethod.type` - * Add support for `effective_percentage` on `TaxRate` - * Add support for `gb_bank_transfer` and `jp_bank_transfer` on `CustomerCashBalanceTransaction.Funded.BankTransfer` - -## 12.4.0 - 2023-05-04 -* [#1774](https://github.com/stripe/stripe-node/pull/1774) Update generated code - * Add support for `link` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for `brand`, `country`, `description`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `iin`, `issuer`, `last4`, `network`, and `wallet` on `SetupAttempt.payment_method_details.card` -* [#1782](https://github.com/stripe/stripe-node/pull/1782) Let user supply a timestamp when verifying webhooks - -## 12.3.0 - 2023-04-27 -* [#1770](https://github.com/stripe/stripe-node/pull/1770) Update generated code - * Add support for `billing_cycle_anchor` and `proration_behavior` on `Checkout.SessionCreateParams.subscription_data` - * Add support for `terminal_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` - * Add support for `metadata` on `PaymentIntentCaptureParams` - * Add support for `checks` on `SetupAttempt.payment_method_details.card` - * Add support for `tax_breakdown` on `Tax.Calculation.shipping_cost` and `Tax.Transaction.shipping_cost` - -## 12.2.0 - 2023-04-20 -* [#1759](https://github.com/stripe/stripe-node/pull/1759) Update generated code - * Change `Checkout.Session.currency_conversion` to be required - * Change `Identity.VerificationReport.options` and `Identity.VerificationReport.type` to be optional - * Change type of `Identity.VerificationSession.options` from `VerificationSessionOptions` to `VerificationSessionOptions | null` - * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number')` to `enum('document'|'id_number') | null` -* [#1762](https://github.com/stripe/stripe-node/pull/1762) Add Deno webhook signing example -* [#1761](https://github.com/stripe/stripe-node/pull/1761) Add Deno usage instructions in README - -## 12.1.1 - 2023-04-13 -No product changes. - -## 12.1.0 - 2023-04-13 -* [#1754](https://github.com/stripe/stripe-node/pull/1754) Update generated code - * Add support for new value `REVOIE23` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` -* [#1749](https://github.com/stripe/stripe-node/pull/1749) Type extend and ResourceNamespace better - -## 12.0.0 - 2023-04-06 -* [#1743](https://github.com/stripe/stripe-node/pull/1743) Remove `Stripe.default` and `Stripe.Stripe` -This was added to maintain backwards compatibility during the transition of stripe-node to a dual ES module / CommonJS package, and should not be functionally necessary. -* [#1742](https://github.com/stripe/stripe-node/pull/1743) Pin latest API version as the default - **āš ļø ACTION REQUIRED: the breaking change in this release likely affects you āš ļø** - - In this release, Stripe API Version `2022-11-15` (the latest at time of release) will be sent by default on all requests. - The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). - - To successfully upgrade to stripe-node v12, you must either - - 1. **(Recommended) Upgrade your integration to be compatible with API Version `2022-11-15`.** - - Please read the API Changelog carefully for each API Version from `2022-11-15` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production. - - You can read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more detailed instructions. - 2. **(Alternative option) Specify a version other than `2022-11-15` when initializing `stripe-node`.** - - If you were previously initializing stripe-node without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example: - - ```diff - - const stripe = require('stripe')('sk_test_...'); - + const stripe = require('stripe')('sk_test_...', { - + apiVersion: 'YYYY-MM-DD' // Determine your default version from https://dashboard.stripe.com/developers - + }) - ``` - - If you were already initializing stripe-node with an explicit API Version, upgrading to v12 will not affect your integration. - - Read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more details. - - Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release. - That is, instead of upgrading stripe-node and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-node, you should also upgrade your integration to be compatible with the latest Stripe API version. - -## 11.18.0 - 2023-04-06 -* [#1738](https://github.com/stripe/stripe-node/pull/1738) Update generated code - * Add support for new value `link` on enums `Charge.payment_method_details.card.wallet.type` and `PaymentMethod.card.wallet.type` - * Change `Issuing.CardholderCreateParams.type` to be optional - * Add support for `country` on `PaymentMethod.link` - * Add support for `status_details` on `PaymentMethod.us_bank_account` -* [#1747](https://github.com/stripe/stripe-node/pull/1747) (Typescript) remove deprecated properties - -## 11.17.0 - 2023-03-30 -* [#1734](https://github.com/stripe/stripe-node/pull/1734) Update generated code - * Remove support for `create` method on resource `Tax.Transaction` - * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `createFromCalculation` method. - * Add support for `export_license_id` and `export_purpose_code` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company` - * Remove support for value `deleted` from enum `Invoice.status` - * This is not a breaking change, as `deleted` was never returned or accepted as input. - * Add support for `amount_tip` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` - -## 11.16.0 - 2023-03-23 -* [#1730](https://github.com/stripe/stripe-node/pull/1730) Update generated code - * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction` - * Add support for `create` and `list_line_items` methods on resource `Calculation` - * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction` - * Add support for new value `link` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `currency_conversion` on `Checkout.Session` - * Add support for new value `link` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `automatic_payment_methods` on `SetupIntentCreateParams` and `SetupIntent` -* [#1726](https://github.com/stripe/stripe-node/pull/1726) Add Deno entry point - -## 11.15.0 - 2023-03-16 -* [#1714](https://github.com/stripe/stripe-node/pull/1714) API Updates - * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new value `cashapp` as a new `type` throughout the API. - * Add support for `future_requirements` and `requirements` on `BankAccount` - * Add support for `country` on `Charge.payment_method_details.link` - * Add support for new value `automatic_async` on enums `Checkout.SessionCreateParams.payment_intent_data.capture_method`, `PaymentIntent.capture_method`, `PaymentIntentConfirmParams.capture_method`, `PaymentIntentCreateParams.capture_method`, `PaymentIntentUpdateParams.capture_method`, `PaymentLink.payment_intent_data.capture_method`, and `PaymentLinkCreateParams.payment_intent_data.capture_method` - - * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, - * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` - * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1709](https://github.com/stripe/stripe-node/pull/1709) Add ES module package entry point - * Add support for ES modules by defining a separate ESM entry point. This updates stripe-node to be a [dual CommonJS / ES module package](https://nodejs.org/api/packages.html#dual-commonjses-module-packages). -* [#1704](https://github.com/stripe/stripe-node/pull/1704) Configure 2 TypeScript compile targets for ESM and CJS -* [#1710](https://github.com/stripe/stripe-node/pull/1710) Update generated code (new) - * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `cashapp` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `cashapp` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new value `cashapp` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `cashapp` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `cashapp` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, `PaymentIntentConfirmParams.payment_method_options.affirm`, `PaymentIntentCreateParams.payment_method_options.affirm`, and `PaymentIntentUpdateParams.payment_method_options.affirm` - * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` - * Add support for new value `cashapp` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for new value `cashapp` on enum `PaymentMethodCreateParams.type` - * Add support for new value `cashapp` on enum `PaymentMethod.type` - * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 11.14.0 - 2023-03-09 -* [#1703](https://github.com/stripe/stripe-node/pull/1703) API Updates - * Add support for `card_issuing` on `Issuing.CardholderCreateParams.individual` and `Issuing.CardholderUpdateParams.individual` - * Add support for new value `requirements.past_due` on enum `Issuing.Cardholder.requirements.disabled_reason` - * Add support for new values `individual.card_issuing.user_terms_acceptance.date` and `individual.card_issuing.user_terms_acceptance.ip` on enum `Issuing.Cardholder.requirements.past_due[]` - * Add support for `cancellation_details` on `SubscriptionCancelParams`, `SubscriptionUpdateParams`, and `Subscription` -* [#1701](https://github.com/stripe/stripe-node/pull/1701) Change httpProxy to httpAgent in README example -* [#1695](https://github.com/stripe/stripe-node/pull/1695) Migrate generated files to ES module syntax -* [#1699](https://github.com/stripe/stripe-node/pull/1699) Remove extra test directory - -## 11.13.0 - 2023-03-02 -* [#1696](https://github.com/stripe/stripe-node/pull/1696) API Updates - * Add support for new values `electric_vehicle_charging`, `emergency_services_gcas_visa_use_only`, `government_licensed_horse_dog_racing_us_region_only`, `government_licensed_online_casions_online_gambling_us_region_only`, `government_owned_lotteries_non_us_region`, `government_owned_lotteries_us_region_only`, and `marketplaces` on spending control categories. - * Add support for `reconciliation_status` on `Payout` - * Add support for new value `lease_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` - -* [#1689](https://github.com/stripe/stripe-node/pull/1689) Update v11.8.0 changelog with breaking change disclaimer - -## 11.12.0 - 2023-02-23 -* [#1688](https://github.com/stripe/stripe-node/pull/1688) API Updates - * Add support for new value `yoursafe` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `BITSNL2A` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Add support for new value `igst` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` -* [#1687](https://github.com/stripe/stripe-node/pull/1687) Convert TypeScript files to use ES modules - -## 11.11.0 - 2023-02-16 -* [#1681](https://github.com/stripe/stripe-node/pull/1681) API Updates - * Add support for `refund_payment` method on resource `Terminal.Reader` - * Add support for new value `name` on enums `BillingPortal.Configuration.features.customer_update.allowed_updates[]`, `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates[]`, and `BillingPortal.ConfigurationUpdateParams.features.customer_update.allowed_updates[]` - * Add support for `custom_fields` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Change `Subscription.trial_settings.end_behavior` and `Subscription.trial_settings` to be required - * Add support for `interac_present` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` - * Change type of `Terminal.ReaderPresentPaymentMethodParams.testHelpers.type` from `literal('card_present')` to `enum('card_present'|'interac_present')` - * Add support for `refund_payment` on `Terminal.Reader.action` - * Add support for new value `refund_payment` on enum `Terminal.Reader.action.type` -* [#1683](https://github.com/stripe/stripe-node/pull/1683) Add NextJS webhook sample -* [#1685](https://github.com/stripe/stripe-node/pull/1685) Add more webhook parsing checks -* [#1684](https://github.com/stripe/stripe-node/pull/1684) Add infrastructure for mocked tests - -## 11.10.0 - 2023-02-09 -* [#1679](https://github.com/stripe/stripe-node/pull/1679) Enable library to work in worker environments without extra configuration. - -## 11.9.1 - 2023-02-03 -* [#1672](https://github.com/stripe/stripe-node/pull/1672) Update main entrypoint on package.json - -## 11.9.0 - 2023-02-02 -* [#1669](https://github.com/stripe/stripe-node/pull/1669) API Updates - * Add support for `resume` method on resource `Subscription` - * Add support for `payment_link` on `Checkout.SessionListParams` - * Add support for `trial_settings` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` - * Add support for `shipping_cost` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `amount_shipping` on `CreditNote` and `Invoice` - * Add support for `shipping_details` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `subscription_resume_at` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Change `Issuing.CardholderCreateParams.individual.first_name`, `Issuing.CardholderCreateParams.individual.last_name`, `Issuing.CardholderUpdateParams.individual.first_name`, and `Issuing.CardholderUpdateParams.individual.last_name` to be optional - * Change type of `Issuing.Cardholder.individual.first_name` and `Issuing.Cardholder.individual.last_name` from `string` to `string | null` - * Add support for `invoice_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for new value `America/Ciudad_Juarez` on enum `Reporting.ReportRunCreateParams.parameters.timezone` - * Add support for new value `paused` on enum `SubscriptionListParams.status` - * Add support for new value `paused` on enum `Subscription.status` - * Add support for new values `customer.subscription.paused` and `customer.subscription.resumed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - * Add support for new value `funding_reversed` on enum `CustomerCashBalanceTransaction.type` - -* [#1670](https://github.com/stripe/stripe-node/pull/1670) Change default entrypoint to stripe.node -* [#1668](https://github.com/stripe/stripe-node/pull/1668) Use EventTarget in worker / browser runtimes -* [#1667](https://github.com/stripe/stripe-node/pull/1667) fix: added support for TypeScript "NodeNext" module resolution - -## 11.8.0 - 2023-01-26 -* [#1665](https://github.com/stripe/stripe-node/pull/1665) API Updates - * Add support for new value `BE` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, and `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country` - * Add support for new values `cs-CZ`, `el-GR`, `en-CZ`, and `en-GR` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` -* [#1660](https://github.com/stripe/stripe-node/pull/1660) Introduce separate entry point for worker environments - * This is technically a breaking change that explicitly defines package entry points and was mistakenly released in a minor version. If your application previously imported other internal files from stripe-node and this change breaks it, please open an issue detailing your use case. - -## 11.7.0 - 2023-01-19 -* [#1661](https://github.com/stripe/stripe-node/pull/1661) API Updates - * Add support for `verification_session` on `EphemeralKeyCreateParams` - * Add support for new values `refund.created` and `refund.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1647](https://github.com/stripe/stripe-node/pull/1647) Bump json5 from 2.2.1 to 2.2.3 - -## 11.6.0 - 2023-01-05 -* [#1646](https://github.com/stripe/stripe-node/pull/1646) API Updates - * Add support for `card_issuing` on `Issuing.Cardholder.individual` - -## 11.5.0 - 2022-12-22 -* [#1642](https://github.com/stripe/stripe-node/pull/1642) API Updates - * Add support for new value `merchant_default` on enums `CashBalanceUpdateParams.settings.reconciliation_mode`, `CustomerCreateParams.cash_balance.settings.reconciliation_mode`, and `CustomerUpdateParams.cash_balance.settings.reconciliation_mode` - * Add support for `using_merchant_default` on `CashBalance.settings` - * Change `Checkout.SessionCreateParams.cancel_url` to be optional - * Change type of `Checkout.Session.cancel_url` from `string` to `string | null` - -## 11.4.0 - 2022-12-15 -* [#1639](https://github.com/stripe/stripe-node/pull/1639) API Updates - * Add support for new value `invoice_overpaid` on enum `CustomerBalanceTransaction.type` -* [#1637](https://github.com/stripe/stripe-node/pull/1637) Update packages in examples/webhook-signing - -## 11.3.0 - 2022-12-08 -* [#1634](https://github.com/stripe/stripe-node/pull/1634) API Updates - * Change `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` to be optional - -## 11.2.0 - 2022-12-06 -* [#1632](https://github.com/stripe/stripe-node/pull/1632) API Updates - * Add support for `flow_data` on `BillingPortal.SessionCreateParams` - * Add support for `flow` on `BillingPortal.Session` -* [#1631](https://github.com/stripe/stripe-node/pull/1631) API Updates - * Add support for `india_international_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `invoice_creation` on `Checkout.Session` and `Checkout.SessionCreateParams` - * Add support for `invoice` on `Checkout.Session` - * Add support for `metadata` on `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]` -* [#1630](https://github.com/stripe/stripe-node/pull/1630) Remove BASIC_METHODS from TS definitions -* [#1629](https://github.com/stripe/stripe-node/pull/1629) Narrower type for stripe.invoices.retrieveUpcoming() -* [#1627](https://github.com/stripe/stripe-node/pull/1627) remove unneeded IIFE -* [#1625](https://github.com/stripe/stripe-node/pull/1625) Remove API version from the path -* [#1626](https://github.com/stripe/stripe-node/pull/1626) Move child resource method params next to method declarations -* [#1624](https://github.com/stripe/stripe-node/pull/1624) Split resource and service types - -## 11.1.0 - 2022-11-17 -* [#1623](https://github.com/stripe/stripe-node/pull/1623) API Updates - * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code` -* [#1622](https://github.com/stripe/stripe-node/pull/1622) API Updates - * Add support for `custom_text` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code` - - -## 11.0.0 - 2022-11-16 - -This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-11-15 - -"āš ļø" symbol highlights breaking changes. - -* [#1608](https://github.com/stripe/stripe-node/pull/1608) Next major release changes -* [#1619](https://github.com/stripe/stripe-node/pull/1619) Annotate prototypes with types -* [#1612](https://github.com/stripe/stripe-node/pull/1612) Add type information here and there -* [#1615](https://github.com/stripe/stripe-node/pull/1615) API Updates - * āš ļø Remove support for `tos_shown_and_accepted` on `Checkout.SessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked. - -### āš ļø Changed -* Drop support for Node.js 8 and 10. We now support Node.js 12+. ((#1579) -* Change `StripeSignatureVerificationError` to have `header` and `payload` fields instead of `detail`. To access these properties, use `err.header` and `err.payload` instead of `err.detail.header` and `err.detail.payload`. (#1574) - -### āš ļø Removed -* Remove `Orders` resource. (#1580) -* Remove `SKU` resource (#1583) -* Remove deprecated `Checkout.SessionCreateParams.subscription_data.items`. (#1580) -* Remove deprecated configuration setter methods (`setHost`, `setProtocol`, `setPort`, `setApiVersion`, `setApiKey`, `setTimeout`, `setAppInfo`, `setHttpAgent`, `setMaxNetworkRetries`, and `setTelemetryEnabled`). (#1597) - - Use the config object to set these options instead, for example: - ```typescript - const stripe = Stripe('sk_test_...', { - apiVersion: '2019-08-08', - maxNetworkRetries: 1, - httpAgent: new ProxyAgent(process.env.http_proxy), - timeout: 1000, - host: 'api.example.com', - port: 123, - telemetry: true, - }); - ``` -* Remove deprecated basic method definitions. (#1600) - Use basic methods defined on the resource instead. - ```typescript - // Before - basicMethods: true - - // After - create: stripeMethod({ - method: 'POST', - fullPath: '/v1/resource', - }), - list: stripeMethod({ - method: 'GET', - methodType: 'list', - fullPath: '/v1/resource', - }), - retrieve: stripeMethod({ - method: 'GET', - fullPath: '/v1/resource/{id}', - }), - update: stripeMethod({ - method: 'POST', - fullPath: '/v1/resource/{id}', - }), - // Avoid 'delete' keyword in JS - del: stripeMethod({ - method: 'DELETE', - fullPath: '/v1/resource/{id}', - }), - ``` -* Remove deprecated option names. Use the following option names instead (`OLD`->`NEW`): `api_key`->`apiKey`, `idempotency_key`->`idempotencyKey`, `stripe_account`->`stripeAccount`, `stripe_version`->`apiVersion`, `stripeVersion`->`apiVersion`. (#1600) -* Remove `charges` field on `PaymentIntent` and replace it with `latest_charge`. (#1614 ) -* Remove deprecated `amount` field on `Checkout.Session.LineItem`. (#1614 ) -* Remove support for `tos_shown_and_accepted` on `Checkout.Session.PaymentMethodOptions.Paynow`. (#1614 ) - -## 10.17.0 - 2022-11-08 -* [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates - * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `reason_message` on `Issuing.Authorization.request_history[]` - * Add support for new value `webhook_error` on enum `Issuing.Authorization.request_history[].reason` - -## 10.16.0 - 2022-11-03 -* [#1596](https://github.com/stripe/stripe-node/pull/1596) API Updates - * Add support for `on_behalf_of` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription` - * Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]` - -## 10.15.0 - 2022-10-20 -* [#1588](https://github.com/stripe/stripe-node/pull/1588) API Updates - * Add support for new values `jp_trn` and `ke_pin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `jp_trn` and `ke_pin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `tipping` on `Terminal.Reader.action.process_payment_intent.process_config` and `Terminal.ReaderProcessPaymentIntentParams.process_config` -* [#1585](https://github.com/stripe/stripe-node/pull/1585) use native UUID method if available - -## 10.14.0 - 2022-10-13 -* [#1582](https://github.com/stripe/stripe-node/pull/1582) API Updates - * Add support for new values `invalid_representative_country` and `verification_failed_residential_address` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` - * Add support for `request_log_url` on `StripeError` objects - * Add support for `network_data` on `Issuing.Authorization` - * āš ļø Remove `currency`, `description`, `images`, and `name` from `Checkout.SessionCreateParams`. These properties do not work on the latest API version. (fixes #1575) - -## 10.13.0 - 2022-10-06 -* [#1571](https://github.com/stripe/stripe-node/pull/1571) API Updates - * Add support for new value `invalid_dob_age_under_18` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` - * Add support for new value `bank_of_china` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethod.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank` - * Add support for new values `America/Nuuk`, `Europe/Kyiv`, and `Pacific/Kanton` on enum `Reporting.ReportRunCreateParams.parameters.timezone` - * Add support for `klarna` on `SetupAttempt.payment_method_details` -* [#1570](https://github.com/stripe/stripe-node/pull/1570) Update node-fetch to 2.6.7 -* [#1568](https://github.com/stripe/stripe-node/pull/1568) Upgrade dependencies -* [#1567](https://github.com/stripe/stripe-node/pull/1567) Fix release tag calculation - -## 10.12.0 - 2022-09-29 -* [#1564](https://github.com/stripe/stripe-node/pull/1564) API Updates - * Change type of `Charge.payment_method_details.card_present.incremental_authorization_supported` and `Charge.payment_method_details.card_present.overcapture_supported` from `boolean | null` to `boolean` - * Add support for `created` on `Checkout.Session` - * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix` - * Deprecate `Checkout.SessionCreateParams.subscription_data.items` (use the `line_items` param instead). This will be removed in the next major version. -* [#1563](https://github.com/stripe/stripe-node/pull/1563) Migrate other Stripe infrastructure to TS -* [#1562](https://github.com/stripe/stripe-node/pull/1562) Restore lib after generating -* [#1551](https://github.com/stripe/stripe-node/pull/1551) Re-introduce Typescript changes - -## 10.11.0 - 2022-09-22 -* [#1560](https://github.com/stripe/stripe-node/pull/1560) API Updates - * Add support for `terms_of_service` on `Checkout.Session.consent_collection`, `Checkout.Session.consent`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` - * āš ļø Remove support for `plan` on `Checkout.SessionCreateParams.payment_method_options.card.installments`. The property was mistakenly released and never worked. - * Add support for `statement_descriptor` on `PaymentIntentIncrementAuthorizationParams` - * Change `SubscriptionSchedule.phases[].currency` to be required - - -## 10.10.0 - 2022-09-15 -* [#1552](https://github.com/stripe/stripe-node/pull/1552) API Updates - * Add support for `pix` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `pix` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new value `pix` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for `from_invoice` on `InvoiceCreateParams` and `Invoice` - * Add support for `latest_revision` on `Invoice` - * Add support for `amount` on `Issuing.DisputeCreateParams` and `Issuing.DisputeUpdateParams` - * Add support for new value `pix` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for `pix_display_qr_code` on `PaymentIntent.next_action` - * Add support for new value `pix` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for new value `pix` on enum `PaymentMethodCreateParams.type` - * Add support for new value `pix` on enum `PaymentMethod.type` - * Add support for `created` on `Treasury.CreditReversal` and `Treasury.DebitReversal` - -## 10.9.0 - 2022-09-09 -* [#1549](https://github.com/stripe/stripe-node/pull/1549) API Updates - * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` - * Add support for `require_signature` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` - -## 10.8.0 - 2022-09-07 -* [#1544](https://github.com/stripe/stripe-node/pull/1544) API Updates - * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` - -## 10.7.0 - 2022-08-31 -* [#1540](https://github.com/stripe/stripe-node/pull/1540) API Updates - * Add support for new values `de-CH`, `en-CH`, `en-PL`, `en-PT`, `fr-CH`, `it-CH`, `pl-PL`, and `pt-PT` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - * Add support for `description` on `PaymentLink.subscription_data` and `PaymentLinkCreateParams.subscription_data` - -## 10.6.0 - 2022-08-26 -* [#1534](https://github.com/stripe/stripe-node/pull/1534) API Updates - * Change `Account.company.name`, `Charge.refunds`, `PaymentIntent.charges`, `Product.caption`, `Product.statement_descriptor`, `Product.unit_label`, `Terminal.Configuration.tipping.aud.fixed_amounts`, `Terminal.Configuration.tipping.aud.percentages`, `Terminal.Configuration.tipping.cad.fixed_amounts`, `Terminal.Configuration.tipping.cad.percentages`, `Terminal.Configuration.tipping.chf.fixed_amounts`, `Terminal.Configuration.tipping.chf.percentages`, `Terminal.Configuration.tipping.czk.fixed_amounts`, `Terminal.Configuration.tipping.czk.percentages`, `Terminal.Configuration.tipping.dkk.fixed_amounts`, `Terminal.Configuration.tipping.dkk.percentages`, `Terminal.Configuration.tipping.eur.fixed_amounts`, `Terminal.Configuration.tipping.eur.percentages`, `Terminal.Configuration.tipping.gbp.fixed_amounts`, `Terminal.Configuration.tipping.gbp.percentages`, `Terminal.Configuration.tipping.hkd.fixed_amounts`, `Terminal.Configuration.tipping.hkd.percentages`, `Terminal.Configuration.tipping.myr.fixed_amounts`, `Terminal.Configuration.tipping.myr.percentages`, `Terminal.Configuration.tipping.nok.fixed_amounts`, `Terminal.Configuration.tipping.nok.percentages`, `Terminal.Configuration.tipping.nzd.fixed_amounts`, `Terminal.Configuration.tipping.nzd.percentages`, `Terminal.Configuration.tipping.sek.fixed_amounts`, `Terminal.Configuration.tipping.sek.percentages`, `Terminal.Configuration.tipping.sgd.fixed_amounts`, `Terminal.Configuration.tipping.sgd.percentages`, `Terminal.Configuration.tipping.usd.fixed_amounts`, `Terminal.Configuration.tipping.usd.percentages`, `Treasury.FinancialAccount.active_features`, `Treasury.FinancialAccount.pending_features`, `Treasury.FinancialAccount.platform_restrictions`, and `Treasury.FinancialAccount.restricted_features` to be optional - * This is a bug fix. These fields were all actually optional and not guaranteed to be returned by the Stripe API, however the type annotations did not correctly reflect this. - * Fixes https://github.com/stripe/stripe-node/issues/1518. - * Add support for `login_page` on `BillingPortal.Configuration`, `BillingPortal.ConfigurationCreateParams`, and `BillingPortal.ConfigurationUpdateParams` - * Add support for new value `deutsche_bank_ag` on enums `Charge.payment_method_details.eps.bank`, `PaymentIntentConfirmParams.payment_method_data.eps.bank`, `PaymentIntentCreateParams.payment_method_data.eps.bank`, `PaymentIntentUpdateParams.payment_method_data.eps.bank`, `PaymentMethod.eps.bank`, `PaymentMethodCreateParams.eps.bank`, `SetupIntentConfirmParams.payment_method_data.eps.bank`, `SetupIntentCreateParams.payment_method_data.eps.bank`, and `SetupIntentUpdateParams.payment_method_data.eps.bank` - * Add support for `customs` and `phone_number` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` - * Add support for `description` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `QuoteUpdateParams.subscription_data`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, and `SubscriptionScheduleUpdateParams.phases[]` - -* [#1532](https://github.com/stripe/stripe-node/pull/1532) Update coveralls step to run for one node version, remove finish step -* [#1531](https://github.com/stripe/stripe-node/pull/1531) Regen yarn.lock. - -## 10.5.0 - 2022-08-24 -* [#1527](https://github.com/stripe/stripe-node/pull/1527) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests. -* [#1528](https://github.com/stripe/stripe-node/pull/1528) Update README.md to use a new NOTE notation -* [#1526](https://github.com/stripe/stripe-node/pull/1526) Add test coverage using Coveralls - -## 10.4.0 - 2022-08-23 -* [#1520](https://github.com/stripe/stripe-node/pull/1520) Add beta readme.md section -* [#1524](https://github.com/stripe/stripe-node/pull/1524) API Updates - * Change `Terminal.Reader.action` to be required - * Change `Treasury.OutboundTransferCreateParams.destination_payment_method` to be optional - * Change type of `Treasury.OutboundTransfer.destination_payment_method` from `string` to `string | null` - * Change the return type of `Customer.fundCashBalance` test helper from `CustomerBalanceTransaction` to `CustomerCashBalanceTransaction`. - * This would generally be considered a breaking change, but we've worked with all existing users to migrate and are comfortable releasing this as a minor as it is solely a test helper method. This was essentially broken prior to this change. - - -## 10.3.0 - 2022-08-19 -* [#1516](https://github.com/stripe/stripe-node/pull/1516) API Updates - * Add support for new resource `CustomerCashBalanceTransaction` - * Remove support for value `paypal` from enums `Order.payment.settings.payment_method_types[]`, `OrderCreateParams.payment.settings.payment_method_types[]`, and `OrderUpdateParams.payment.settings.payment_method_types[]` - * Add support for `currency` on `PaymentLink` - * Add support for `network` on `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `Subscription.payment_settings.payment_method_options.card`, `SubscriptionCreateParams.payment_settings.payment_method_options.card`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card` - * Change `Subscription.currency` to be required - * Change type of `Topup.source` from `Source` to `Source | null` - * Add support for new value `customer_cash_balance_transaction.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1515](https://github.com/stripe/stripe-node/pull/1515) Add a support section to the readme - -## 10.2.0 - 2022-08-11 -* [#1510](https://github.com/stripe/stripe-node/pull/1510) API Updates - * Add support for `payment_method_collection` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - - -## 10.1.0 - 2022-08-09 -* [#1506](https://github.com/stripe/stripe-node/pull/1506) API Updates - * Add support for `process_config` on `Terminal.Reader.action.process_payment_intent` -* [#1505](https://github.com/stripe/stripe-node/pull/1505) Simplify AddressParam definitions - - Rename `AddressParam` to `ShippingAddressParam`, and change type of `Source.source_order.shipping.address`, `SourceUpdateParams.SourceOrder.Shipping.address`, and `SessionCreateParams.PaymentIntentData.Shipping.address` to `ShippingAddressParam` - - Rename `AccountAddressParam` go `AddressParam`, and change type of `AccountCreateParams.BusinessProfile.support_address`, `AccountCreateParams.Company.address`, `AccountCreateParams.Individual.address `, `AccountCreateParams.Individual.registered_address`, `AccountUpdateParams.BusinessProfile.support_address`, `AccountUpdateParams.Company.address`, `AccountUpdateParams.Individual.address`, `AccountUpdateParams.Individual.registered_address`, `ChargeCreateParams.Shipping.address`, `ChargeUpdateParams.Shipping.address`, `CustomerCreateParams.Shipping.address`, `CustomerUpdateParams.Shipping.address`, `CustomerSourceUpdateParams.Owner.address`, `InvoiceListUpcomingLinesParams.CustomerDetails.Shipping.address`, `InvoiceRetrieveUpcomingParams.CustomerDetails.Shipping.address`, `OrderCreateParams.BillingDetails.address`, `OrderCreateParams.ShippingDetails.address`, `OrderUpdateParams.BillingDetails.address`, `OrderUpdateParams.ShippingDetails.address`, `PaymentIntentCreateParams.Shipping.address`, `PaymentIntentUpdateParams.Shipping.address`, `PaymentIntentConfirmParams.Shipping.address`, `PersonCreateParams.address`, `PersonCreateParams.registered_address`, `PersonUpdateParams.address`, `PersonUpdateParams.registered_address`, `SourceCreateParams.Owner.address`, `SourceUpdateParams.Owner.address`, `TokenCreateParams.Account.Company.address`, `TokenCreateParams.Account.Individual.address`, `TokenCreateParams.Account.Individual.registered_address`, `TokenCreateParams.Person.address`, `TokenCreateParams.Person.registered_address`, and `Terminal.LocationUpdateParams.address` to `AddressParam` -* [#1503](https://github.com/stripe/stripe-node/pull/1503) API Updates - * Add support for `expires_at` on `Apps.Secret` and `Apps.SecretCreateParams` - -## 10.0.0 - 2022-08-02 - -This release includes breaking changes resulting from: - -* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-08-01 -* Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v10. - -"āš ļø" symbol highlights breaking changes. - -* [#1497](https://github.com/stripe/stripe-node/pull/1497) API Updates -* [#1493](https://github.com/stripe/stripe-node/pull/1493) Next major release changes - -### Added -* Add support for new value `invalid_tos_acceptance` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` -* Add support for `shipping_cost` and `shipping_details` on `Checkout.Session` - -### āš ļø Changed -* Change type of `business_profile`, `business_type`, `country`, `default_currency`, and `settings` properties on `Account` resource to be nullable. -* Change type of `currency` property on `Checkout.Session` resource from `string` to `'cad' | 'usd'`. -* Change location of TypeScript definitions for `CreditNoteLineItemListPreviewParams`, `CreditNoteLineItemListPreviewParams.Line`, `CreditNoteLineItemListPreviewParams.Line.Type`, and `CreditNoteLineItemListPreviewParams.Line.Reason` interfaces from `CreditNoteLineItems.d.ts` to `CreditNotes.d.ts`. -* Change type of `address`, `currency`, `delinquent`, `discount`, `invoice_prefix`, `name`, `phone`, and `preferred_locales` properties on `Customer` resource to be nullable. -* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. - -### āš ļø Removed -* Remove for `AlipayAccount`, `DeletedAlipayAccount`, `BitcoinReceiver`, `DeletedBitcoinReceiver`, `BitcoinTransaction`, and `BitcoinTransactionListParams` definitions. -* Remove `AlipayAccount` and `BitcoinReceiver` from `CustomerSource`. -* Remove `Stripe.DeletedAlipayAccount` and `Stripe.DeletedBitcoinReceiver` from possible values of `source` property in `PaymentIntent`. -* Remove `IssuerFraudRecord`, `IssuerFraudRecordRetrieveParams`, `IssuerFraudRecordListParams`, and `IssuerFraudRecordsResource`, definitions. -* Remove `treasury.received_credit.reversed` webhook event constant. Please use `treasury.received_credit.returned` instead. -* Remove `order.payment_failed`, `transfer.failed`, and `transfer.paid`. The events were deprecated. -* Remove `retrieveDetails` method from `Issuing.Card` resource. The method was unsupported. Read more at https://stripe.com/docs/issuing/cards/virtual. -* Remove `Issuing.CardDetails` and `CardRetrieveDetailsParams` definition. -* Remove `IssuerFraudRecords` resource. -* Remove `Recipient` resource and`recipient` property from `Card` resource. -* Remove `InvoiceMarkUncollectibleParams` definition. -* Remove deprecated `Stripe.Errors` and `StripeError` (and derived `StripeCardError`, `StripeInvalidRequestError`, `StripeAPIError`, `StripeAuthenticationError`, `StripePermissionError`, `StripeRateLimitError`, `StripeConnectionError`, `StripeSignatureVerificationError`, `StripeIdempotencyError`, and `StripeInvalidGrantError`) definitions. -* Remove `redirect_url` from `LoginLinks` definition. The property is no longer supported. -* Remove `LineItemListParams` definition. The interface was no longer in use. - -### āš ļø Renamed -* Rename `listUpcomingLineItems` method on `Invoice` resource to `listUpcomingLines`. -* Rename `InvoiceLineItemListUpcomingParams` to `InvoiceListUpcomingLinesParams`. -* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. - -## 9.16.0 - 2022-07-26 -* [#1492](https://github.com/stripe/stripe-node/pull/1492) API Updates - * Add support for new value `exempted` on enums `Charge.payment_method_details.card.three_d_secure.result` and `SetupAttempt.payment_method_details.card.three_d_secure.result` - * Add support for `customer_balance` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for new value `customer_balance` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new values `en-CA` and `fr-CA` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - -## 9.15.0 - 2022-07-25 -* [#1486](https://github.com/stripe/stripe-node/pull/1486) API Updates - * Add support for `installments` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `Invoice.payment_settings.payment_method_options.card`, `InvoiceCreateParams.payment_settings.payment_method_options.card`, and `InvoiceUpdateParams.payment_settings.payment_method_options.card` - * Add support for `default_currency` and `invoice_credit_balance` on `Customer` - * Add support for `currency` on `InvoiceCreateParams` - * Add support for `default_mandate` on `Invoice.payment_settings`, `InvoiceCreateParams.payment_settings`, and `InvoiceUpdateParams.payment_settings` - * Add support for `mandate` on `InvoicePayParams` - * Add support for `product_data` on `OrderCreateParams.line_items[]` and `OrderUpdateParams.line_items[]` - - -## 9.14.0 - 2022-07-18 -* [#1477](https://github.com/stripe/stripe-node/pull/1477) API Updates - * Add support for `blik_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `blik` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Change type of `Checkout.Session.consent_collection.promotions`, `Checkout.SessionCreateParams.consent_collection.promotions`, `PaymentLink.consent_collection.promotions`, and `PaymentLinkCreateParams.consent_collection.promotions` from `literal('auto')` to `enum('auto'|'none')` - * Add support for new value `blik` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new value `blik` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `blik` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `blik` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for new value `blik` on enum `PaymentMethodCreateParams.type` - * Add support for new value `blik` on enum `PaymentMethod.type` - * Add support for `cancel` method on `Subscriptions` resource. This has the same functionality as the `del` method - if you are on a version less than 9.14.0, please use `del`. -* [#1476](https://github.com/stripe/stripe-node/pull/1476) fix: Include trailing slash when passing empty query parameters. -* [#1475](https://github.com/stripe/stripe-node/pull/1475) Move @types/node to devDependencies - -## 9.13.0 - 2022-07-12 -* [#1473](https://github.com/stripe/stripe-node/pull/1473) API Updates - * Add support for `customer_details` on `Checkout.SessionListParams` - * Change `LineItem.amount_discount` and `LineItem.amount_tax` to be required - * Change `Transfer.source_type` to be optional and not nullable -* [#1471](https://github.com/stripe/stripe-node/pull/1471) Update readme to include a note on beta packages - -## 9.12.0 - 2022-07-07 -* [#1468](https://github.com/stripe/stripe-node/pull/1468) API Updates - * Add support for `currency` on `Checkout.SessionCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `PaymentLinkCreateParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `Subscription` - * Add support for `currency_options` on `Checkout.SessionCreateParams.shipping_options[].shipping_rate_data.fixed_amount`, `CouponCreateParams`, `CouponUpdateParams`, `Coupon`, `OrderCreateParams.shipping_cost.shipping_rate_data.fixed_amount`, `OrderUpdateParams.shipping_cost.shipping_rate_data.fixed_amount`, `PriceCreateParams`, `PriceUpdateParams`, `Price`, `ProductCreateParams.default_price_data`, `PromotionCode.restrictions`, `PromotionCodeCreateParams.restrictions`, `ShippingRate.fixed_amount`, and `ShippingRateCreateParams.fixed_amount` - * Add support for `restrictions` on `PromotionCodeUpdateParams` - * Add support for `fixed_amount` and `tax_behavior` on `ShippingRateUpdateParams` -* [#1467](https://github.com/stripe/stripe-node/pull/1467) API Updates - * Add support for `customer` on `Checkout.SessionListParams` and `RefundCreateParams` - * Add support for `currency` and `origin` on `RefundCreateParams` - * Add support for new values `financial_connections.account.created`, `financial_connections.account.deactivated`, `financial_connections.account.disconnected`, `financial_connections.account.reactivated`, and `financial_connections.account.refreshed_balance` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 9.11.0 - 2022-06-29 -* [#1462](https://github.com/stripe/stripe-node/pull/1462) API Updates - * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card` - * Change type of `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` from `literal('card')` to `enum` - * Add support for `hosted_regulatory_receipt_url` on `Treasury.ReceivedCredit` and `Treasury.ReceivedDebit` - -## 9.10.0 - 2022-06-23 -* [#1459](https://github.com/stripe/stripe-node/pull/1459) API Updates - * Add support for `capture_method` on `PaymentIntentConfirmParams` and `PaymentIntentUpdateParams` -* [#1458](https://github.com/stripe/stripe-node/pull/1458) API Updates - * Add support for `promptpay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `promptpay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `promptpay` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `subtotal_excluding_tax` on `CreditNote` and `Invoice` - * Add support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem` - * Add support for new value `promptpay` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for `rendering_options` on `InvoiceCreateParams` and `InvoiceUpdateParams` - * Add support for new value `promptpay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for `total_excluding_tax` on `Invoice` - * Add support for `automatic_payment_methods` on `Order.payment.settings` - * Add support for new value `promptpay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for `promptpay_display_qr_code` on `PaymentIntent.next_action` - * Add support for new value `promptpay` on enum `PaymentMethodCreateParams.type` - * Add support for new value `promptpay` on enum `PaymentMethod.type` -* [#1455](https://github.com/stripe/stripe-node/pull/1455) fix: Stop using path.join to create URLs. - -## 9.9.0 - 2022-06-17 -* [#1453](https://github.com/stripe/stripe-node/pull/1453) API Updates - * Add support for `fund_cash_balance` test helper method on resource `Customer` - * Add support for `statement_descriptor_prefix_kana` and `statement_descriptor_prefix_kanji` on `Account.settings.card_payments`, `Account.settings.payments`, `AccountCreateParams.settings.card_payments`, and `AccountUpdateParams.settings.card_payments` - * Add support for `statement_descriptor_suffix_kana` and `statement_descriptor_suffix_kanji` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `total_excluding_tax` on `CreditNote` - * Change type of `CustomerCreateParams.invoice_settings.rendering_options` and `CustomerUpdateParams.invoice_settings.rendering_options` from `rendering_options_param` to `emptyStringable(rendering_options_param)` - * Add support for `rendering_options` on `Customer.invoice_settings` and `Invoice` -* [#1452](https://github.com/stripe/stripe-node/pull/1452) Fix non-conforming changelog entries and port the Makefile fix -* [#1450](https://github.com/stripe/stripe-node/pull/1450) Only publish stable version to the latest tag - -## 9.8.0 - 2022-06-09 -* [#1448](https://github.com/stripe/stripe-node/pull/1448) Add types for extra request options -* [#1446](https://github.com/stripe/stripe-node/pull/1446) API Updates - * Add support for `treasury` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings` - * Add support for `rendering_options` on `CustomerCreateParams.invoice_settings` and `CustomerUpdateParams.invoice_settings` - * Add support for `eu_bank_transfer` on `CustomerCreateFundingInstructionsParams.bank_transfer`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer`, `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer`, `SubscriptionCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer` - * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum('iban'|'sort_code'|'spei'|'zengin')` - * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` from `literal('jp_bank_transfer')` to `enum('eu_bank_transfer'|'gb_bank_transfer'|'jp_bank_transfer'|'mx_bank_transfer')` - * Add support for `iban`, `sort_code`, and `spei` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` - * Add support for new values `bacs`, `fps`, and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` - * Add support for new values `sort_code` and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` - * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum` - * Add support for `custom_unit_amount` on `PriceCreateParams` and `Price` - -## 9.7.0 - 2022-06-08 -* [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates - * Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.SessionCreateParams.payment_method_options` - * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.*` and `Checkout.SessionCreateParams.payment_method_options.*`, - * Change `PaymentMethod.us_bank_account.networks` and `SetupIntent.flow_directions` to be required - * Add support for `attach_to_self` on `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, and `SetupIntentUpdateParams` - * Add support for `flow_directions` on `SetupAttempt`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` - -## 9.6.0 - 2022-06-01 -* [#1439](https://github.com/stripe/stripe-node/pull/1439) API Updates - * Add support for `radar_options` on `ChargeCreateParams`, `Charge`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `account_holder_name`, `account_number`, `account_type`, `bank_code`, `bank_name`, `branch_code`, and `branch_name` on `FundingInstructions.bank_transfer.financial_addresses[].zengin` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin` - * Add support for new values `en-AU` and `en-NZ` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type` and `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type` from `enum` to `literal('jp_bank_transfer')` - * This is technically breaking in Typescript, but now accurately represents the behavior that was allowed by the server. We haven't historically treated breaking Typescript changes as requiring a major. - * Change `PaymentIntent.next_action.display_bank_transfer_instructions.hosted_instructions_url` to be required - * Add support for `network` on `SetupIntent.payment_method_options.card` - * Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` - - -## 9.5.0 - 2022-05-26 -* [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates - * Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` - * Add support for new value `affirm` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions` - * Add support for `id_number_secondary_provided` on `Person` - * Add support for `card_issuing` on `Treasury.FinancialAccountCreateParams.features`, `Treasury.FinancialAccountUpdateFeaturesParams`, and `Treasury.FinancialAccountUpdateParams.features` - -* [#1432](https://github.com/stripe/stripe-node/pull/1432) docs: Update HttpClient documentation to remove experimental status. - -## 9.4.0 - 2022-05-23 -* [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates - * Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - -## 9.3.0 - 2022-05-23 -* [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates - * Add support for new resource `Apps.Secret` - * Add support for `affirm` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `link` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `OrderCreateParams.payment.settings.payment_method_options`, `OrderUpdateParams.payment.settings.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `link` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new values `affirm` and `link` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type` - * Add support for new values `affirm` and `link` on enum `PaymentMethod.type` - -## 9.2.0 - 2022-05-19 -* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates - * Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction` - * Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `Issuing.DisputeCreateParams` - * Add support for `retrieve_payment_method` method on resource `Customer` - * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account` - * Change `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates` to be optional - * Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)` - * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.Session.payment_method_options` - * Add support for `financial_account` on `Issuing.Card` and `Issuing.CardCreateParams` - * Add support for `client_secret` on `Order` - * Add support for `networks` on `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `PaymentMethod.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` - * Add support for `attach_to_self` and `flow_directions` on `SetupIntent` - * Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings` - * Add support for `czk` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` - -## 9.1.0 - 2022-05-11 -* [#1420](https://github.com/stripe/stripe-node/pull/1420) API Updates - * Add support for `description` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` - * Add support for `consent_collection`, `payment_intent_data`, `shipping_options`, `submit_type`, and `tax_id_collection` on `PaymentLinkCreateParams` and `PaymentLink` - * Add support for `customer_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for `metadata` on `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]` - * Add support for new value `billing_portal.session.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 9.0.0 - 2022-05-09 -Major version release - The [migration guide](https://github.com/stripe/stripe-node/wiki/Migration-Guide-for-v9) contains a detailed list of backwards-incompatible changes with upgrade instructions. -(āš ļø = breaking changes): -* āš ļø[#1336](https://github.com/stripe/stripe-node/pull/1336) feat(http-client): retry closed connection errors -* [#1415](https://github.com/stripe/stripe-node/pull/1415) [#1417](https://github.com/stripe/stripe-node/pull/1417) API Updates - * āš ļø Replace the legacy `Order` API with the new `Order` API. - * Resource modified: `Order`. - * New methods: `cancel`, `list_line_items`, `reopen`, and `submit` - * Removed methods: `pay` and `return_order` - * Removed resources: `OrderItem` and `OrderReturn` - * Removed references from other resources: `Charge.order` - * Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem` - * Change type of `Charge.shipping.name`, `Checkout.Session.shipping.name`, `Customer.shipping.name`, `Invoice.customer_shipping.name`, `PaymentIntent.shipping.name`, `ShippingDetails.name`, and `Source.source_order.shipping.name` from `nullable(string)` to `string` - -## 8.222.0 - 2022-05-05 -* [#1414](https://github.com/stripe/stripe-node/pull/1414) API Updates - * Add support for `default_price_data` on `ProductCreateParams` - * Add support for `default_price` on `ProductUpdateParams` and `Product` - * Add support for `instructions_email` on `RefundCreateParams` and `Refund` - - -## 8.221.0 - 2022-05-05 -* [#1413](https://github.com/stripe/stripe-node/pull/1413) API Updates - * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` - * Add support for `financial_connections` on `Checkout.Session.payment_method_options.us_bank_account`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, `SetupIntentUpdateParams.payment_method_options.us_bank_account`, `Subscription.payment_settings.payment_method_options.us_bank_account`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account` - * Add support for `financial_connections_account` on `PaymentIntentConfirmParams.payment_method_data.us_bank_account`, `PaymentIntentCreateParams.payment_method_data.us_bank_account`, `PaymentIntentUpdateParams.payment_method_data.us_bank_account`, `PaymentMethod.us_bank_account`, `PaymentMethodCreateParams.us_bank_account`, `SetupIntentConfirmParams.payment_method_data.us_bank_account`, `SetupIntentCreateParams.payment_method_data.us_bank_account`, and `SetupIntentUpdateParams.payment_method_data.us_bank_account` - -* [#1410](https://github.com/stripe/stripe-node/pull/1410) API Updates - * Add support for `registered_address` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` - * Change type of `PaymentIntent.amount_details.tip.amount` from `nullable(integer)` to `integer` - * Change `PaymentIntent.amount_details.tip.amount` to be optional - * Add support for `payment_method_data` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` -* [#1409](https://github.com/stripe/stripe-node/pull/1409) Update autoPagination tests to be hermetic. -* [#1411](https://github.com/stripe/stripe-node/pull/1411) Enable CI on beta branch - -## 8.220.0 - 2022-05-03 -* [#1407](https://github.com/stripe/stripe-node/pull/1407) API Updates - * Add support for new resource `CashBalance` - * Change type of `BillingPortal.Configuration.application` from `$Application` to `deletable($Application)` - * Add support for `alipay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Change type of `Checkout.SessionCreateParams.payment_method_options.konbini.expires_after_days` from `emptyStringable(integer)` to `integer` - * Add support for new value `eu_oss_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new value `eu_oss_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `cash_balance` on `Customer` - * Add support for `application` on `Invoice`, `Quote`, `SubscriptionSchedule`, and `Subscription` -* [#1403](https://github.com/stripe/stripe-node/pull/1403) Add tests for specifying a custom host on StripeMethod. - -## 8.219.0 - 2022-04-21 -* [#1398](https://github.com/stripe/stripe-node/pull/1398) API Updates - * Add support for `expire` test helper method on resource `Refund` - * Change type of `BillingPortal.Configuration.application` from `string` to `expandable($Application)` - * Change `Issuing.DisputeCreateParams.transaction` to be optional - -## 8.218.0 - 2022-04-18 -* [#1396](https://github.com/stripe/stripe-node/pull/1396) API Updates - * Add support for new resources `FundingInstructions` and `Terminal.Configuration` - * Add support for `create_funding_instructions` method on resource `Customer` - * Add support for new value `customer_balance` as a payment method `type`. - * Add support for `customer_balance` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` - * Add support for `cash_balance` on `CustomerCreateParams` and `CustomerUpdateParams` - * Add support for `amount_details` on `PaymentIntent` - * Add support for `display_bank_transfer_instructions` on `PaymentIntent.next_action` - * Add support for `configuration_overrides` on `Terminal.Location`, `Terminal.LocationCreateParams`, and `Terminal.LocationUpdateParams` - -## 8.217.0 - 2022-04-13 -* [#1395](https://github.com/stripe/stripe-node/pull/1395) API Updates - * Add support for `increment_authorization` method on resource `PaymentIntent` - * Add support for `incremental_authorization_supported` on `Charge.payment_method_details.card_present` - * Add support for `request_incremental_authorization_support` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` - -## 8.216.0 - 2022-04-08 -* [#1391](https://github.com/stripe/stripe-node/pull/1391) API Updates - * Add support for `apply_customer_balance` method on resource `PaymentIntent` - * Add support for new value `cash_balance.funds_available` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 8.215.0 - 2022-04-01 -* [#1389](https://github.com/stripe/stripe-node/pull/1389) API Updates - * Add support for `bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `capture_before` on `Charge.payment_method_details.card_present` - * Add support for `address` and `name` on `Checkout.Session.customer_details` - * Add support for `customer_balance` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` - * Add support for new value `customer_balance` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for `request_extended_authorization` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` - * Add support for new values `payment_intent.partially_funded`, `terminal.reader.action_failed`, and `terminal.reader.action_succeeded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -* [#1388](https://github.com/stripe/stripe-node/pull/1388) Stop sending Content-Length header for verbs which don't have bodies. - * Fixes https://github.com/stripe/stripe-node/issues/1360. - -## 8.214.0 - 2022-03-30 -* [#1386](https://github.com/stripe/stripe-node/pull/1386) API Updates - * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader` - * Change `Charge.failure_balance_transaction`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.next_action.verify_with_microdeposits.microdeposit_type`, `SetupIntent.next_action.verify_with_microdeposits.microdeposit_type`, and `Subscription.payment_settings.payment_method_options.us_bank_account` to be required - * Add support for `action` on `Terminal.Reader` - -## 8.213.0 - 2022-03-28 -* [#1383](https://github.com/stripe/stripe-node/pull/1383) API Updates - * Add support for Search API - * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription` -* [#1384](https://github.com/stripe/stripe-node/pull/1384) Bump qs package to latest. - -## 8.212.0 - 2022-03-25 -* [#1381](https://github.com/stripe/stripe-node/pull/1381) API Updates - * Add support for PayNow and US Bank Accounts Debits payments - * **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details)) - * Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details` - * **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type)) - * Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type` - * **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options)) - * Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` - * Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` - * Add support for `paynow_display_qr_code` on `PaymentIntent.next_action` - * Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` - * **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options)) - * Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams` - * **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details)) - * Add support for `us_bank_account` on `SetupAttempt.payment_method_details` - * **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow)) - * Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams` - * Add support for `us_bank_account` on `PaymentMethodUpdateParams` - * Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type` - * **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types)) - * Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `Checkout.SessionCreateParams` - * Add support for new values `paynow` and `us_bank_account` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types)) - * Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` - * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` - * **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types)) - * Add support for `us_bank_account` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` - * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams` - * **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities)) - * Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams` - * Add support for `failure_balance_transaction` on `Charge` - * Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on - `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options-afterpay_clearpay-capture_method)) - * Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits)) - * Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent` - * Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams` - * Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock)) -* [#1375](https://github.com/stripe/stripe-node/pull/1375) Update error types to be namespaced under Stripe.error -* [#1380](https://github.com/stripe/stripe-node/pull/1380) Force update minimist dependency - -## 8.211.0 - 2022-03-23 -* [#1377](https://github.com/stripe/stripe-node/pull/1377) API Updates - * Add support for `cancel` method on resource `Refund` - * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Change `InvoiceCreateParams.customer` to be optional - * Add support for `test_clock` on `QuoteListParams` - * Add support for new values `test_helpers.test_clock.advancing`, `test_helpers.test_clock.created`, `test_helpers.test_clock.deleted`, `test_helpers.test_clock.internal_failure`, and `test_helpers.test_clock.ready` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 8.210.0 - 2022-03-18 -* [#1372](https://github.com/stripe/stripe-node/pull/1372) API Updates - * Add support for `status` on `Card` - -## 8.209.0 - 2022-03-11 -* [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates - * Add support for `mandate` on `Charge.payment_method_details.card` - * Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card` - * Add support for `card_await_notification` on `PaymentIntent.next_action` - * Add support for `customer_notification` on `PaymentIntent.processing.card` - * Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams` - -* [#1364](https://github.com/stripe/stripe-node/pull/1364) Update search pagination to use page param instead of next_page. - -## 8.208.0 - 2022-03-09 -* [#1366](https://github.com/stripe/stripe-node/pull/1366) API Updates - * Add support for `test_clock` on `CustomerListParams` - * Change `Invoice.test_clock`, `InvoiceItem.test_clock`, `Quote.test_clock`, `Subscription.test_clock`, and `SubscriptionSchedule.test_clock` to be required - -## 8.207.0 - 2022-03-02 -* [#1363](https://github.com/stripe/stripe-node/pull/1363) API Updates - * Add support for new resources `CreditedItems` and `ProrationDetails` - * Add support for `proration_details` on `InvoiceLineItem` - -## 8.206.0 - 2022-03-01 -* [#1361](https://github.com/stripe/stripe-node/pull/1361) [#1362](https://github.com/stripe/stripe-node/pull/1362) API Updates - * Add support for new resource `TestHelpers.TestClock` - * Add support for `test_clock` on `CustomerCreateParams`, `Customer`, `Invoice`, `InvoiceItem`, `QuoteCreateParams`, `Quote`, `Subscription`, and `SubscriptionSchedule` - * Add support for `pending_invoice_items_behavior` on `InvoiceCreateParams` - * Change type of `ProductUpdateParams.url` from `string` to `emptyStringable(string)` - * Add support for `next_action` on `Refund` - -## 8.205.0 - 2022-02-25 -* [#1098](https://github.com/stripe/stripe-node/pull/1098) Typescript: add declaration for `onDone` on `autoPagingEach` -* [#1357](https://github.com/stripe/stripe-node/pull/1357) Properly handle API errors with unknown error types -* [#1359](https://github.com/stripe/stripe-node/pull/1359) API Updates - * Change `BillingPortal.Configuration` `.business_profile.privacy_policy_url` and `.business_profile.terms_of_service_url` to be optional on requests and responses - - * Add support for `konbini_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` - * Add support for `konbini` on `Charge.payment_method_details`, - * Add support for `.payment_method_options.konbini` and `.payment_method_data.konbini` on the `PaymentIntent` API. - * Add support for `.payment_settings.payment_method_options.konbini` on the `Invoice` API. - * Add support for `.payment_method_options.konbini` on the `Subscription` API - * Add support for `.payment_method_options.konbini` on the `Checkout.Session` API - * Add support for `konbini` on the `PaymentMethod` API. - * Add support for `konbini_display_details` on `PaymentIntent.next_action` -* [#1311](https://github.com/stripe/stripe-node/pull/1311) update documentation to use appInfo - -## 8.204.0 - 2022-02-23 -* [#1354](https://github.com/stripe/stripe-node/pull/1354) API Updates - * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.*` - * Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` - * Add support for `object` on `ExternalAccountListParams` (fixes #1351) - -## 8.203.0 - 2022-02-15 -* [#1350](https://github.com/stripe/stripe-node/pull/1350) API Updates - * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent` - * Add support for new value `grabpay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` -* [#1348](https://github.com/stripe/stripe-node/pull/1348) API Updates - * Add support for `pin` on `Issuing.CardUpdateParams` - -## 8.202.0 - 2022-02-03 -* [#1344](https://github.com/stripe/stripe-node/pull/1344) API Updates - * Add support for new value `au_becs_debit` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Change type of `Refund.reason` from `string` to `enum('duplicate'|'expired_uncaptured_charge'|'fraudulent'|'requested_by_customer')` - -## 8.201.0 - 2022-01-28 -* [#1342](https://github.com/stripe/stripe-node/pull/1342) Bump nanoid from 3.1.20 to 3.2.0. -* [#1335](https://github.com/stripe/stripe-node/pull/1335) Fix StripeResource to successfully import TIMEOUT_ERROR_CODE. -* [#1339](https://github.com/stripe/stripe-node/pull/1339) Bump node-fetch from 2.6.2 to 2.6.7 - -## 8.200.0 - 2022-01-25 -* [#1338](https://github.com/stripe/stripe-node/pull/1338) API Updates - * Change `Checkout.Session.payment_link` to be required - * Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink` - * Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - * Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new value `is_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - -* [#1333](https://github.com/stripe/stripe-node/pull/1333) Customer tax_ids is not included by default - -## 8.199.0 - 2022-01-20 -* [#1332](https://github.com/stripe/stripe-node/pull/1332) API Updates - * Add support for new resource `PaymentLink` - * Add support for `payment_link` on `Checkout.Session` - -## 8.198.0 - 2022-01-19 -* [#1331](https://github.com/stripe/stripe-node/pull/1331) API Updates - * Change type of `Charge.status` from `string` to `enum('failed'|'pending'|'succeeded')` - * Add support for `bacs_debit` and `eps` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Add support for `image_url_png` and `image_url_svg` on `PaymentIntent.next_action.wechat_pay_display_qr_code` - -## 8.197.0 - 2022-01-13 -* [#1329](https://github.com/stripe/stripe-node/pull/1329) API Updates - * Add support for `paid_out_of_band` on `Invoice` - -## 8.196.0 - 2022-01-12 -* [#1328](https://github.com/stripe/stripe-node/pull/1328) API Updates - * Add support for `customer_creation` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `fpx` and `grabpay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` -* [#1315](https://github.com/stripe/stripe-node/pull/1315) API Updates - * Add support for `mandate_options` on `SubscriptionCreateParams.payment_settings.payment_method_options.card`, `SubscriptionUpdateParams.payment_settings.payment_method_options.card`, and `Subscription.payment_settings.payment_method_options.card` -* [#1327](https://github.com/stripe/stripe-node/pull/1327) Remove DOM type references. -* [#1325](https://github.com/stripe/stripe-node/pull/1325) Add comment documenting makeRequest#headers type. - -## 8.195.0 - 2021-12-22 -* [#1314](https://github.com/stripe/stripe-node/pull/1314) API Updates - * Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Change type of `PaymentIntent.processing.type` from `string` to `literal('card')`. This is not considered a breaking change as the field was added in the same release. -* [#1313](https://github.com/stripe/stripe-node/pull/1313) API Updates - * Add support for new values `en-FR`, `es-US`, and `fr-FR` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` - * Add support for `boleto` on `SetupAttempt.payment_method_details` - -* [#1312](https://github.com/stripe/stripe-node/pull/1312) API Updates - * Add support for `processing` on `PaymentIntent` - -## 8.194.0 - 2021-12-15 -* [#1309](https://github.com/stripe/stripe-node/pull/1309) API Updates - * Add support for new resource `PaymentIntentTypeSpecificPaymentMethodOptionsClient` - * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, and `PaymentIntent.payment_method_options.card` - -## 8.193.0 - 2021-12-09 -* [#1308](https://github.com/stripe/stripe-node/pull/1308) API Updates - * Add support for `metadata` on `BillingPortal.ConfigurationCreateParams`, `BillingPortal.ConfigurationUpdateParams`, and `BillingPortal.Configuration` - -## 8.192.0 - 2021-12-09 -* [#1307](https://github.com/stripe/stripe-node/pull/1307) API Updates - * Add support for new values `ge_vat` and `ua_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new values `ge_vat` and `ua_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Change type of `PaymentIntentCreateParams.payment_method_data.billing_details.email`, `PaymentIntentUpdateParams.payment_method_data.billing_details.email`, `PaymentIntentConfirmParams.payment_method_data.billing_details.email`, `PaymentMethodCreateParams.billing_details.email`, and `PaymentMethodUpdateParams.billing_details.email` from `string` to `emptyStringable(string)` - * Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Add support for new value `en-IE` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` -* [#1301](https://github.com/stripe/stripe-node/pull/1301) Remove coveralls from package.json -* [#1300](https://github.com/stripe/stripe-node/pull/1300) Fix broken link in docstring - -## 8.191.0 - 2021-11-19 -* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates - * Add support for `wallets` on `Issuing.Card` - -* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates - * Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` - -## 8.190.0 - 2021-11-17 -* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates - * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent` - - -## 8.189.0 - 2021-11-16 -* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates - * Add support for new resource `ShippingRate` - * Add support for `shipping_options` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `shipping_rate` on `Checkout.Session` - -## 8.188.0 - 2021-11-12 -* [#1293](https://github.com/stripe/stripe-node/pull/1293) API Updates - * Add support for new value `agrobank` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, and `PaymentMethod.fpx.bank` - -## 8.187.0 - 2021-11-11 -* [#1292](https://github.com/stripe/stripe-node/pull/1292) API Updates - * Add support for `expire` method on resource `Checkout.Session` - * Add support for `status` on `Checkout.Session` -* [#1288](https://github.com/stripe/stripe-node/pull/1288) Add SubtleCryptoProvider and update Webhooks to allow async crypto. -* [#1291](https://github.com/stripe/stripe-node/pull/1291) Better types in `lib.d.ts` - -## 8.186.1 - 2021-11-04 -* [#1284](https://github.com/stripe/stripe-node/pull/1284) API Updates - * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused. - * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company` - - -## 8.186.0 - 2021-11-01 -* [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates - * Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company` - * Add support for `proof_of_registration` on `AccountUpdateParams.documents` and `AccountCreateParams.documents` - * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account` - -## 8.185.0 - 2021-11-01 -* [#1282](https://github.com/stripe/stripe-node/pull/1282) API Updates - * Change type of `AccountUpdateParams.individual.full_name_aliases`, `AccountCreateParams.individual.full_name_aliases`, `PersonCreateParams.full_name_aliases`, `PersonUpdateParams.full_name_aliases`, `TokenCreateParams.account.individual.full_name_aliases`, and `TokenCreateParams.person.full_name_aliases` from `array(string)` to `emptyStringable(array(string))` - * Add support for new values `en-BE`, `en-ES`, and `en-IT` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` - -## 8.184.0 - 2021-10-20 -* [#1276](https://github.com/stripe/stripe-node/pull/1276) API Updates - * Change `Account.controller.type` to be required - * Add support for `buyer_id` on `Charge.payment_method_details.alipay` -* [#1273](https://github.com/stripe/stripe-node/pull/1273) Add typed createFetchHttpClient function. - -## 8.183.0 - 2021-10-15 -* [#1272](https://github.com/stripe/stripe-node/pull/1272) API Updates - * Change type of `UsageRecordCreateParams.timestamp` from `integer` to `literal('now') | integer` - * Change `UsageRecordCreateParams.timestamp` to be optional - -## 8.182.0 - 2021-10-14 -* [#1271](https://github.com/stripe/stripe-node/pull/1271) API Updates - * Change `Charge.payment_method_details.klarna.payment_method_category`, `Charge.payment_method_details.klarna.preferred_locale`, `Checkout.Session.customer_details.phone`, and `PaymentMethod.klarna.dob` to be required - * Add support for new value `klarna` on enum `Checkout.SessionCreateParams.payment_method_types[]` - -## 8.181.0 - 2021-10-11 -* [#1269](https://github.com/stripe/stripe-node/pull/1269) API Updates - * Add support for `payment_method_category` and `preferred_locale` on `Charge.payment_method_details.klarna` - * Add support for new value `klarna` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for `klarna` on `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` - * Add support for new value `klarna` on enums `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, and `PaymentIntentConfirmParams.payment_method_data.type` - * Add support for new value `klarna` on enum `PaymentMethodCreateParams.type` - * Add support for new value `klarna` on enum `PaymentMethod.type` - -## 8.180.0 - 2021-10-11 -* [#1266](https://github.com/stripe/stripe-node/pull/1266) API Updates - * Add support for `list_payment_methods` method on resource `Customer` - -## 8.179.0 - 2021-10-07 -* [#1265](https://github.com/stripe/stripe-node/pull/1265) API Updates - * Add support for `phone_number_collection` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `phone` on `Checkout.Session.customer_details` - * Change `PaymentMethodListParams.customer` to be optional - * Add support for new value `customer_id` on enums `Radar.ValueListCreateParams.item_type` and `Radar.ValueList.item_type` - * Add support for new value `bbpos_wisepos_e` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` - -## 8.178.0 - 2021-09-29 -* [#1261](https://github.com/stripe/stripe-node/pull/1261) API Updates - * Add support for `klarna_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` - -## 8.177.0 - 2021-09-28 -* [#1257](https://github.com/stripe/stripe-node/pull/1257) API Updates - * Add support for `amount_authorized` and `overcapture_supported` on `Charge.payment_method_details.card_present` -* [#1256](https://github.com/stripe/stripe-node/pull/1256) Bump up ansi-regex version to 5.0.1. -* [#1253](https://github.com/stripe/stripe-node/pull/1253) Update FetchHttpClient to make fetch function optional. - -## 8.176.0 - 2021-09-16 -* [#1248](https://github.com/stripe/stripe-node/pull/1248) API Updates - * Add support for `full_name_aliases` on `AccountUpdateParams.individual`, `AccountCreateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` -* [#1247](https://github.com/stripe/stripe-node/pull/1247) Update README.md -* [#1245](https://github.com/stripe/stripe-node/pull/1245) Fix StripeResource.extend type - -## 8.175.0 - 2021-09-15 -* [#1242](https://github.com/stripe/stripe-node/pull/1242) API Updates - * Change `BillingPortal.Configuration.features.subscription_cancel.cancellation_reason` to be required - * Add support for `default_for` on `Checkout.SessionCreateParams.payment_method_options.acss_debit.mandate_options`, `Checkout.Session.payment_method_options.acss_debit.mandate_options`, `Mandate.payment_method_details.acss_debit`, `SetupIntentCreateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.acss_debit.mandate_options`, and `SetupIntent.payment_method_options.acss_debit.mandate_options` - * Add support for `acss_debit` on `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Invoice.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, `SubscriptionUpdateParams.payment_settings.payment_method_options`, and `Subscription.payment_settings.payment_method_options` - * Add support for new value `acss_debit` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` - * Add support for `livemode` on `Reporting.ReportType` -* [#1235](https://github.com/stripe/stripe-node/pull/1235) API Updates - * Change `Account.future_requirements.alternatives`, `Account.requirements.alternatives`, `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Checkout.Session.after_expiration`, `Checkout.Session.consent`, `Checkout.Session.consent_collection`, `Checkout.Session.expires_at`, `Checkout.Session.recovered_from`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` to be required - * Change type of `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` from `array(AccountRequirementsAlternative)` to `nullable(array(AccountRequirementsAlternative))` - * Add support for new value `rst` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` - * Add support for new value `checkout.session.expired` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1237](https://github.com/stripe/stripe-node/pull/1237) Add a CryptoProvider interface and NodeCryptoProvider implementation. -* [#1236](https://github.com/stripe/stripe-node/pull/1236) Add an HTTP client which uses fetch. - -## 8.174.0 - 2021-09-01 -* [#1231](https://github.com/stripe/stripe-node/pull/1231) API Updates - * Add support for `future_requirements` on `Account`, `Capability`, and `Person` - * Add support for `alternatives` on `Account.requirements`, `Capability.requirements`, and `Person.requirements` - -## 8.173.0 - 2021-09-01 -* [#1230](https://github.com/stripe/stripe-node/pull/1230) [#1228](https://github.com/stripe/stripe-node/pull/1228) API Updates - * Add support for `after_expiration`, `consent_collection`, and `expires_at` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `consent` and `recovered_from` on `Checkout.Session` - -## 8.172.0 - 2021-08-31 -* [#1198](https://github.com/stripe/stripe-node/pull/1198) Add support for paginting SearchResult objects. - -## 8.171.0 - 2021-08-27 -* [#1226](https://github.com/stripe/stripe-node/pull/1226) API Updates - * Add support for `cancellation_reason` on `BillingPortal.ConfigurationCreateParams.features.subscription_cancel`, `BillingPortal.ConfigurationUpdateParams.features.subscription_cancel`, and `BillingPortal.Configuration.features.subscription_cancel` - -## 8.170.0 - 2021-08-19 -* [#1223](https://github.com/stripe/stripe-node/pull/1223) API Updates - * Add support for new value `fil` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` - * Add support for new value `au_arn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new value `au_arn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` -* [#1221](https://github.com/stripe/stripe-node/pull/1221) Add client name property to HttpClient. -* [#1219](https://github.com/stripe/stripe-node/pull/1219) Update user agent computation to handle environments without process. -* [#1218](https://github.com/stripe/stripe-node/pull/1218) Add an HttpClient interface and NodeHttpClient implementation. -* [#1217](https://github.com/stripe/stripe-node/pull/1217) Update nock. - -## 8.169.0 - 2021-08-11 -* [#1215](https://github.com/stripe/stripe-node/pull/1215) API Updates - * Add support for `locale` on `BillingPortal.SessionCreateParams` and `BillingPortal.Session` - * Change type of `Invoice.collection_method` and `Subscription.collection_method` from `nullable(enum('charge_automatically'|'send_invoice'))` to `enum('charge_automatically'|'send_invoice')` - -## 8.168.0 - 2021-08-04 -* [#1211](https://github.com/stripe/stripe-node/pull/1211) API Updates - * Change type of `PaymentIntentCreateParams.payment_method_options.sofort.preferred_language`, `PaymentIntentUpdateParams.payment_method_options.sofort.preferred_language`, and `PaymentIntentConfirmParams.payment_method_options.sofort.preferred_language` from `enum` to `emptyStringable(enum)` - * Change `Price.tax_behavior`, `Product.tax_code`, `Quote.automatic_tax`, and `TaxRate.tax_type` to be required - -## 8.167.0 - 2021-07-28 -* [#1206](https://github.com/stripe/stripe-node/pull/1206) Fix Typescript definition for `StripeResource.LastResponse.headers` -* [#1205](https://github.com/stripe/stripe-node/pull/1205) Prevent concurrent initial `uname` invocations -* [#1199](https://github.com/stripe/stripe-node/pull/1199) Explicitly define basic method specs -* [#1200](https://github.com/stripe/stripe-node/pull/1200) Add support for `fullPath` on method specs - -## 8.166.0 - 2021-07-28 -* [#1203](https://github.com/stripe/stripe-node/pull/1203) API Updates - * Bugfix: add missing autopagination methods to `Quote.listLineItems` and `Quote.listComputedUpfrontLineItems` - * Add support for `account_type` on `BankAccount`, `ExternalAccountUpdateParams`, and `TokenCreateParams.bank_account` - * Add support for `category_code` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` - * Add support for new value `redacted` on enum `Review.closed_reason` - * Remove duplicate type definition for `Account.retrieve`. - * Fix some `attributes` fields mistakenly defined as `Stripe.Metadata` -* [#1097](https://github.com/stripe/stripe-node/pull/1097) fix error arguments - -## 8.165.0 - 2021-07-22 -* [#1197](https://github.com/stripe/stripe-node/pull/1197) API Updates - * Add support for new values `hr`, `ko`, and `vi` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` - * Add support for `payment_settings` on `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` - -## 8.164.0 - 2021-07-20 -* [#1196](https://github.com/stripe/stripe-node/pull/1196) API Updates - * Remove support for values `api_connection_error`, `authentication_error`, and `rate_limit_error` from enums `StripeError.type`, `StripeErrorResponse.error.type`, `Invoice.last_finalization_error.type`, `PaymentIntent.last_payment_error.type`, `SetupAttempt.setup_error.type`, and `SetupIntent.last_setup_error.type` - * Add support for `wallet` on `Issuing.Transaction` - * Add support for `ideal` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - - -## 8.163.0 - 2021-07-15 -* [#1102](https://github.com/stripe/stripe-node/pull/1102), [#1191](https://github.com/stripe/stripe-node/pull/1191) Add support for `stripeAccount` when initializing the client - -## 8.162.0 - 2021-07-14 -* [#1194](https://github.com/stripe/stripe-node/pull/1194) API Updates - * Add support for `quote.accepted`, `quote.canceled`, `quote.created`, and `quote.finalized` events. -* [#1190](https://github.com/stripe/stripe-node/pull/1190) API Updates - * Add support for `list_computed_upfront_line_items` method on resource `Quote` -* [#1192](https://github.com/stripe/stripe-node/pull/1192) Update links to Stripe.js docs - -## 8.161.0 - 2021-07-09 -* [#1188](https://github.com/stripe/stripe-node/pull/1188) API Updates - * Add support for new resource `Quote` - * Add support for `quote` on `Invoice` - * Add support for new value `quote_accept` on enum `Invoice.billing_reason` - * Changed type of `Charge.payment_method_details.card.three_d_secure.result`, `SetupAttempt.payment_method_details.card.three_d_secure.result`, `Charge.payment_method_details.card.three_d_secure.version`, and `SetupAttempt.payment_method_details.card.three_d_secure.version` to be nullable. - -* [#1187](https://github.com/stripe/stripe-node/pull/1187) Bugfix in binary streaming support - -## 8.160.0 - 2021-06-30 -* [#1182](https://github.com/stripe/stripe-node/pull/1182) API Updates - * Add support for new value `boleto` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, and `Invoice.payment_settings.payment_method_types[]`. - -## 8.159.0 - 2021-06-30 -* [#1180](https://github.com/stripe/stripe-node/pull/1180) API Updates - * Add support for `wechat_pay` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` - * Add support for new value `wechat_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentMethodCreateParams.type`, `PaymentMethodListParams.type`, and `PaymentMethod.type` - * Add support for `wechat_pay_display_qr_code`, `wechat_pay_redirect_to_android_app`, and `wechat_pay_redirect_to_ios_app` on `PaymentIntent.next_action` - -## 8.158.0 - 2021-06-29 -* [#1179](https://github.com/stripe/stripe-node/pull/1179) API Updates - * Added support for `boleto_payments` on `Account.capabilities` - * Added support for `boleto` and `oxxo` on `Checkout.SessionCreateParams.payment_method_options` and `Checkout.Session.payment_method_options` - * Added support for `boleto` and `oxxo` as members of the `type` enum inside `Checkout.SessionCreateParams.payment_method_types[]`. - -## 8.157.0 - 2021-06-25 -* [#1177](https://github.com/stripe/stripe-node/pull/1177) API Updates - * Added support for `boleto` on `PaymentMethodCreateParams`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `Charge.payment_method_details` and `PaymentMethod` - * `PaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentCreataParams.payment_method_data.type` and `PaymentMethod.type` added new enum members: `boleto` - * Added support for `boleto_display_details` on `PaymentIntent.next_action` - * `TaxIdCreateParams.type`, `Invoice.customer_tax_ids[].type`, `InvoiceLineItemListUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `CustomerCreateParams.tax_id_data[].type`, `Checkout.Session.customer_details.tax_ids[].type` and `TaxId.type` added new enum members: `il_vat`. -* [#1157](https://github.com/stripe/stripe-node/pull/1157) Add support for streaming requests - -## 8.156.0 - 2021-06-18 -* [#1175](https://github.com/stripe/stripe-node/pull/1175) API Updates - * Add support for new TaxId types: `ca_pst_mb`, `ca_pst_bc`, `ca_gst_hst`, and `ca_pst_sk`. - -## 8.155.0 - 2021-06-16 -* [#1173](https://github.com/stripe/stripe-node/pull/1173) API Updates - * Add support for `url` on Checkout `Session`. - -## 8.154.0 - 2021-06-07 -* [#1170](https://github.com/stripe/stripe-node/pull/1170) API Updates - * Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams` - * Update `Terminal.Reader.location` to be expandable (TypeScript breaking change) - -## 8.153.0 - 2021-06-04 -* [#1168](https://github.com/stripe/stripe-node/pull/1168) API Updates - * Add support for `controller` on `Account`. - -## 8.152.0 - 2021-06-04 -* [#1167](https://github.com/stripe/stripe-node/pull/1167) API Updates - * Add support for new resource `TaxCode`. - * Add support for `tax_code` on `Product`, `ProductCreateParams`, `ProductUpdateParams`, `PriceCreateParams.product_data`, `PlanCreateParams.product`, and Checkout `SessionCreateParams.line_items[].price_data.product_data`. - * Add support for `tax` to `Customer`, `CustomerCreateParams`, `CustomerUpdateParams`. - * Add support for `default_settings[automatic_tax]` and `phases[].automatic_tax` on `SubscriptionSchedule`, `SubscriptionScheduleCreateParams`, and `SubscriptionScheduleUpdateParams`. - * Add support for `automatic_tax` on `Subscription`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`; `Invoice`, `InvoiceCreateParams`, `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`; Checkout `Session` and Checkout `SessionCreateParams`. - * Add support for `tax_behavior` to `Price`, `PriceCreateParams`, `PriceUpdateParams` and to the many Param objects that contain `price_data`: - - `SubscriptionScheduleCreateParams` and `SubscriptionScheduleUpdateParams`, beneath `phases[].add_invoice_items[]` and `phases[].items[]` - - `SubscriptionItemCreateParams` and `SubscriptionItemUpdateParams`, on the top-level - - `SubscriptionCreateParams` create and `UpdateCreateParams`, beneath `items[]` and `add_invoice_items[]` - - `InvoiceItemCreateParams` and `InvoiceItemUpdateParams`, on the top-level - - `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams` beneath `subscription_items[]` and `invoice_items[]`. - - Checkout `SessionCreateParams`, beneath `line_items[]`. - * Add support for `customer_update` to Checkout `SessionCreateParams`. - * Add support for `customer_details` to `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`. - * Add support for `tax_type` to `TaxRate`, `TaxRateCreateParams`, and `TaxRateUpdateParams`. - -## 8.151.0 - 2021-06-02 -* [#1166](https://github.com/stripe/stripe-node/pull/1166) API Updates - * Added support for `llc`, `free_zone_llc`, `free_zone_establishment` and `sole_establishment` to the `structure` enum on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company` and `TokenCreateParams.account.company`. - -## 8.150.0 - 2021-05-26 -* [#1163](https://github.com/stripe/stripe-node/pull/1163) API Updates - * Added support for `documents` on `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` - -## 8.149.0 - 2021-05-19 -* [#1159](https://github.com/stripe/stripe-node/pull/1159) API Updates - * Add support for Identity VerificationSupport and VerificationReport APIs - * Update Typescript for `CouponCreateParams.duration` and `CouponCreateParams.products` to be optional. -* [#1158](https://github.com/stripe/stripe-node/pull/1158) API Updates - * `AccountUpdateParams.business_profile.support_url` and `AccountCreatParams.business_profile.support_url` changed from `string` to `Stripe.Emptyable` - * `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query` - -## 8.148.0 - 2021-05-06 -* [#1154](https://github.com/stripe/stripe-node/pull/1154) API Updates - * Added support for `reference` on `Charge.payment_method_details.afterpay_clearpay` - * Added support for `afterpay_clearpay` on `PaymentIntent.payment_method_options`. - -## 8.147.0 - 2021-05-05 -* [#1153](https://github.com/stripe/stripe-node/pull/1153) API Updates - * Add support for `payment_intent` on `Radar.EarlyFraudWarning` - -## 8.146.0 - 2021-05-04 -* Add support for `card_present` on `PaymentIntent#confirm.payment_method_options`, `PaymentIntent#update.payment_method_options`, `PaymentIntent#create.payment_method_options` and `PaymentIntent.payment_method_options` -* `SubscriptionItem#create.payment_behavior`, `Subscription#update.payment_behavior`, `Subscription#create.payment_behavior` and `SubscriptionItem#update.payment_behavior` added new enum members: `default_incomplete` - -## 8.145.0 - 2021-04-21 -* [#1143](https://github.com/stripe/stripe-node/pull/1143) API Updates - * Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members: - * Add support for `dhl` and `royal_mail` as enum members of `Issuing.Card.shipping.carrier`. -* [#1142](https://github.com/stripe/stripe-node/pull/1142) Improve type definition for for `AccountCreateParams.external_account` - -## 8.144.0 - 2021-04-16 -* [#1140](https://github.com/stripe/stripe-node/pull/1140) API Updates - * Add support for `currency` on `Checkout.Session.PaymentMethodOptions.AcssDebit` - -## 8.143.0 - 2021-04-12 -* [#1139](https://github.com/stripe/stripe-node/pull/1139) API Updates - * Add support for `acss_debit_payments` on `Account.capabilities` - * Add support for `payment_method_options` on `Checkout.Session` - * Add support for `acss_debit` on `SetupIntent.payment_method_options`, `SetupAttempt.payment_method_details`, `PaymentMethod`, `PaymentIntent.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `Mandate.payment_method_details` and `SetupIntent.payment_method_options` - * Add support for `verify_with_microdeposits` on `PaymentIntent.next_action` and `SetupIntent.next_action` - * Add support for `acss_debit` as member of the `type` enum on `PaymentMethod` and `PaymentIntent`, and inside `Checkout.SessionCreateParams.payment_method_types[]`. - -## 8.142.0 - 2021-04-02 -* [#1138](https://github.com/stripe/stripe-node/pull/1138) API Updates - * Add support for `subscription_pause` on `BillingPortal.ConfigurationUpdateParams.features`, `BillingPortal.ConfigurationCreateParams.features` and `BillingPortal.Configuration.features` - -## 8.141.0 - 2021-03-31 -* [#1137](https://github.com/stripe/stripe-node/pull/1137) API Updates - * Add support for `transfer_data` on `SessionCreateParams.subscription_data` -* [#1134](https://github.com/stripe/stripe-node/pull/1134) API Updates - * Added support for `card_issuing` on `AccountUpdateParams.settings` and `Account.settings` - -## 8.140.0 - 2021-03-25 -* [#1133](https://github.com/stripe/stripe-node/pull/1133) API Updates - * `Capability.requirements.errors[].code`, `Account.requirements.errors[].code` and `Person.requirements.errors[].code` added new enum members: `verification_missing_owners, verification_missing_executives and verification_requires_additional_memorandum_of_associations` - * `SessionCreateParams.locale` and `Checkout.Session.locale` added new enum members: `th` - -## 8.139.0 - 2021-03-22 -* [#1132](https://github.com/stripe/stripe-node/pull/1132) API Updates - * Added support for `shipping_rates` on `SessionCreateOptions` - * Added support for `amount_shipping` on `Checkout.SessionTotalDetails` -* [#1131](https://github.com/stripe/stripe-node/pull/1131) types: export StripeRawError type - -## 8.138.0 - 2021-03-10 -* [#1124](https://github.com/stripe/stripe-node/pull/1124) API Updates - * Added support for `BillingPortal.Configuration` API. - * `Terminal.LocationUpdateParams.country` is now optional. - -## 8.137.0 - 2021-02-17 -* [#1123](https://github.com/stripe/stripe-node/pull/1123) API Updates - * Add support for on_behalf_of to Invoice - * Add support for enum member revolut on PaymentIntent.payment_method_data.ideal.bank, PaymentMethod.ideal.bank, Charge.payment_method_details.ideal.bank and SetupAttempt.payment_method_details.ideal.bank - * Added support for enum member REVOLT21 on PaymentMethod.ideal.bic, Charge.payment_method_details.ideal.bic and SetupAttempt.payment_method_details.ideal.bic - -## 8.136.0 - 2021-02-16 -* [#1122](https://github.com/stripe/stripe-node/pull/1122) API Updates - * Add support for `afterpay_clearpay` on `PaymentMethod`, `PaymentIntent.payment_method_data`, and `Charge.payment_method_details`. - * Add support for `afterpay_clearpay` as a payment method type on `PaymentMethod`, `PaymentIntent` and `Checkout.Session` - * Add support for `adjustable_quantity` on `SessionCreateParams.LineItem` - * Add support for `bacs_debit`, `au_becs_debit` and `sepa_debit` on `SetupAttempt.payment_method_details` - -## 8.135.0 - 2021-02-08 -* [#1119](https://github.com/stripe/stripe-node/pull/1119) API Updates - * Add support for `afterpay_clearpay_payments` on `Account.capabilities` - * Add support for `payment_settings` on `Invoice` - -## 8.134.0 - 2021-02-05 -* [#1118](https://github.com/stripe/stripe-node/pull/1118) API Updates - * `LineItem.amount_subtotal` and `LineItem.amount_total` changed from `nullable(integer)` to `integer` - * Improve error message for `EphemeralKeys.create` - -## 8.133.0 - 2021-02-03 -* [#1115](https://github.com/stripe/stripe-node/pull/1115) API Updates - * Added support for `nationality` on `Person`, `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` - * Added `gb_vat` to `TaxId.type` enum. - -## 8.132.0 - 2021-01-21 -* [#1112](https://github.com/stripe/stripe-node/pull/1112) API Updates - * `Issuing.Transaction.type` dropped enum members: 'dispute' - * `LineItem.price` can now be null. - -## 8.131.1 - 2021-01-15 -* [#1104](https://github.com/stripe/stripe-node/pull/1104) Make request timeout errors eligible for retry - -## 8.131.0 - 2021-01-14 -* [#1108](https://github.com/stripe/stripe-node/pull/1108) Multiple API Changes - * Added support for `dynamic_tax_rates` on `Checkout.SessionCreateParams.line_items` - * Added support for `customer_details` on `Checkout.Session` - * Added support for `type` on `Issuing.TransactionListParams` - * Added support for `country` and `state` on `TaxRateUpdateParams`, `TaxRateCreateParams` and `TaxRate` -* [#1107](https://github.com/stripe/stripe-node/pull/1107) More consistent type definitions - -## 8.130.0 - 2021-01-07 -* [#1105](https://github.com/stripe/stripe-node/pull/1105) API Updates - * Added support for `company_registration_verification`, `company_ministerial_decree`, `company_memorandum_of_association`, `company_license` and `company_tax_id_verification` on AccountUpdateParams.documents and AccountCreateParams.documents -* [#1100](https://github.com/stripe/stripe-node/pull/1100) implement/fix reverse iteration when iterating with ending_before -* [#1096](https://github.com/stripe/stripe-node/pull/1096) typo receieved -> received - -## 8.129.0 - 2020-12-15 -* [#1093](https://github.com/stripe/stripe-node/pull/1093) API Updates - * Added support for card_present on SetupAttempt.payment_method_details - -## 8.128.0 - 2020-12-10 -* [#1088](https://github.com/stripe/stripe-node/pull/1088) Multiple API changes - * Add newlines for consistency. - * Prefix deleted references with `Stripe.` for consistency. - * Add support for `bank` on `PaymentMethod[eps]`. - * Add support for `tos_shown_and_accepted` to `payment_method_options[p24]` on `PaymentMethod`. - -## 8.127.0 - 2020-12-03 -* [#1084](https://github.com/stripe/stripe-node/pull/1084) Add support for `documents` on `Account` create and update -* [#1080](https://github.com/stripe/stripe-node/pull/1080) fixed promises example - -## 8.126.0 - 2020-11-24 -* [#1079](https://github.com/stripe/stripe-node/pull/1079) Multiple API changes - * Add support for `account_tax_ids` on `Invoice` - * Add support for `payment_method_options[sepa_debit]` on `PaymentIntent` - -## 8.125.0 - 2020-11-20 -* [#1075](https://github.com/stripe/stripe-node/pull/1075) Add support for `capabilities[grabpay_payments]` on `Account` - -## 8.124.0 - 2020-11-19 -* [#1074](https://github.com/stripe/stripe-node/pull/1074) - * Add support for mandate_options on SetupIntent.payment_method_options.sepa_debit. - * Add support for card_present and interact_present as values for PaymentMethod.type. -* [#1073](https://github.com/stripe/stripe-node/pull/1073) More consistent namespacing for shared types - -## 8.123.0 - 2020-11-18 -* [#1072](https://github.com/stripe/stripe-node/pull/1072) Add support for `grabpay` on `PaymentMethod` - -## 8.122.1 - 2020-11-17 -* Identical to 8.122.0. Published to resolve a release issue. - -## 8.122.0 - 2020-11-17 -* [#1070](https://github.com/stripe/stripe-node/pull/1070) - * Add support for `sepa_debit` on `SetupIntent.PaymentMethodOptions` - * `Invoice.tax_amounts` and `InvoiceLineItem.tax_rates` are no longer nullable - * `Invoice.default_tax_rates` and `InvoiceLineItem.tax_amounts` are no longer nullable - -## 8.121.0 - 2020-11-09 -* [#1064](https://github.com/stripe/stripe-node/pull/1064) Add `invoice.finalization_error` as a `type` on `Event` -* [#1063](https://github.com/stripe/stripe-node/pull/1063) Multiple API changes - * Add support for `last_finalization_error` on `Invoice` - * Add support for deserializing Issuing `Dispute` as a `source` on `BalanceTransaction` - * Add support for `payment_method_type` on `StripeError` used by other API resources - -## 8.120.0 - 2020-11-04 -* [#1061](https://github.com/stripe/stripe-node/pull/1061) Add support for `company[registration_number]` on `Account` - -## 8.119.0 - 2020-10-27 -* [#1056](https://github.com/stripe/stripe-node/pull/1056) Add `payment_method_details[interac_present][preferred_locales]` on `Charge` -* [#1057](https://github.com/stripe/stripe-node/pull/1057) Standardize on CRULD order for method definitions -* [#1055](https://github.com/stripe/stripe-node/pull/1055) Added requirements to README - -## 8.118.0 - 2020-10-26 -* [#1053](https://github.com/stripe/stripe-node/pull/1053) Multiple API changes - * Improving Typescript types for nullable parameters and introduced `Stripe.Emptyable` as a type - * Add support for `payment_method_options[card][cvc_token]` on `PaymentIntent` - * Add support for `cvc_update[cvc]` on `Token` creation -* [#1052](https://github.com/stripe/stripe-node/pull/1052) Add Stripe.Emptyable type definition - -## 8.117.0 - 2020-10-23 -* [#1050](https://github.com/stripe/stripe-node/pull/1050) Add support for passing `p24[bank]` for P24 on `PaymentIntent` or `PaymentMethod` - -## 8.116.0 - 2020-10-22 -* [#1049](https://github.com/stripe/stripe-node/pull/1049) Support passing `tax_rates` when creating invoice items through `Subscription` or `SubscriptionSchedule` - -## 8.115.0 - 2020-10-20 -* [#1048](https://github.com/stripe/stripe-node/pull/1048) Add support for `jp_rn` and `ru_kpp` as a `type` on `TaxId` -* [#1046](https://github.com/stripe/stripe-node/pull/1046) chore: replace recommended extension sublime babel with babel javascript - -## 8.114.0 - 2020-10-15 -* [#1045](https://github.com/stripe/stripe-node/pull/1045) Make `original_payout` and `reversed_by` not optional anymore - -## 8.113.0 - 2020-10-14 -* [#1044](https://github.com/stripe/stripe-node/pull/1044) Add support for `discounts` on `Session.create` - -## 8.112.0 - 2020-10-14 -* [#1042](https://github.com/stripe/stripe-node/pull/1042) Add support for the Payout Reverse API -* [#1041](https://github.com/stripe/stripe-node/pull/1041) Do not mutate user-supplied opts - -## 8.111.0 - 2020-10-12 -* [#1038](https://github.com/stripe/stripe-node/pull/1038) Add support for `description`, `iin` and `issuer` in `payment_method_details[card_present]` and `payment_method_details[interac_present]` on `Charge` - -## 8.110.0 - 2020-10-12 -* [#1035](https://github.com/stripe/stripe-node/pull/1035) Add support for `setup_intent.requires_action` on Event - -## 8.109.0 - 2020-10-09 -* [#1033](https://github.com/stripe/stripe-node/pull/1033) Add support for internal-only `description`, `iin`, and `issuer` for `card_present` and `interac_present` on `Charge.payment_method_details` - -## 8.108.0 - 2020-10-08 -* [#1028](https://github.com/stripe/stripe-node/pull/1028) Add support for `Bancontact/iDEAL/Sofort -> SEPA` - * Add support for `generated_sepa_debit` and `generated_sepa_debit_mandate` on `Charge.payment_method_details.ideal`, `Charge.payment_method_details.bancontact` and `Charge.payment_method_details.sofort` - * Add support for `generated_from` on `PaymentMethod.sepa_debit` - * Add support for `ideal`, `bancontact` and `sofort` on `SetupAttempt.payment_method_details` - -## 8.107.0 - 2020-10-02 -* [#1026](https://github.com/stripe/stripe-node/pull/1026) Add support for `tos_acceptance[service_agreement]` on `Account` -* [#1025](https://github.com/stripe/stripe-node/pull/1025) Add support for new payments capabilities on `Account` - -## 8.106.0 - 2020-09-29 -* [#1024](https://github.com/stripe/stripe-node/pull/1024) Add support for the `SetupAttempt` resource and List API - -## 8.105.0 - 2020-09-29 -* [#1023](https://github.com/stripe/stripe-node/pull/1023) Add support for `contribution` in `reporting_category` on `ReportRun` - -## 8.104.0 - 2020-09-28 -* [#1022](https://github.com/stripe/stripe-node/pull/1022) Add support for `oxxo_payments` capability on `Account` - -## 8.103.0 - 2020-09-28 -* [#1021](https://github.com/stripe/stripe-node/pull/1021) Add VERSION constant to instantiated Stripe client. - -## 8.102.0 - 2020-09-25 -* [#1019](https://github.com/stripe/stripe-node/pull/1019) Add support for `oxxo` as a valid `type` on the List PaymentMethod API - -## 8.101.0 - 2020-09-25 -* [#1018](https://github.com/stripe/stripe-node/pull/1018) More idiomatic types - -## 8.100.0 - 2020-09-24 -* [#1016](https://github.com/stripe/stripe-node/pull/1016) Multiple API changes - * Add support for OXXO on `PaymentMethod` and `PaymentIntent` - * Add support for `contribution` on `BalanceTransaction` - -## 8.99.0 - 2020-09-24 -* [#1011](https://github.com/stripe/stripe-node/pull/1011) Add type definition for Stripe.StripeResource - -## 8.98.0 - 2020-09-23 -* [#1014](https://github.com/stripe/stripe-node/pull/1014) Multiple API changes - * Add support for `issuing_dispute.closed` and `issuing_dispute.submitted` events - * Add support for `instant_available` on `Balance` - -## 8.97.0 - 2020-09-21 -* [#1012](https://github.com/stripe/stripe-node/pull/1012) Multiple API changes - * `metadata` is now always nullable on all resources - * Add support for `amount_captured` on `Charge` - * Add `checkout_session` on `Discount` - -## 8.96.0 - 2020-09-13 -* [#1003](https://github.com/stripe/stripe-node/pull/1003) Add support for `promotion_code.created` and `promotion_code.updated` on `Event` - -## 8.95.0 - 2020-09-10 -* [#999](https://github.com/stripe/stripe-node/pull/999) Add support for SEPA debit on Checkout - -## 8.94.0 - 2020-09-09 -* [#998](https://github.com/stripe/stripe-node/pull/998) Multiple API changes - * Add support for `sofort` as a `type` on the List PaymentMethods API - * Add back support for `invoice.payment_succeeded` - -## 8.93.0 - 2020-09-08 -* [#995](https://github.com/stripe/stripe-node/pull/995) Add support for Sofort on `PaymentMethod` and `PaymentIntent` - -## 8.92.0 - 2020-09-02 -* [#993](https://github.com/stripe/stripe-node/pull/993) Multiple API changes - * Add support for the Issuing `Dispute` submit API - * Add support for evidence details on Issuing `Dispute` creation, update and the resource. - * Add `available_payout_methods` on `BankAccount` - * Add `payment_status` on Checkout `Session` - -## 8.91.0 - 2020-08-31 -* [#992](https://github.com/stripe/stripe-node/pull/992) Add support for `payment_method.automatically_updated` on `WebhookEndpoint` - -## 8.90.0 - 2020-08-28 -* [#991](https://github.com/stripe/stripe-node/pull/991) Multiple API changes -* [#990](https://github.com/stripe/stripe-node/pull/990) Typescript: add 'lastResponse' to return types - -## 8.89.0 - 2020-08-19 -* [#988](https://github.com/stripe/stripe-node/pull/988) Multiple API changes - * `tax_ids` on `Customer` can now be nullable - * Added support for `expires_at` on `File` - -## 8.88.0 - 2020-08-17 -* [#987](https://github.com/stripe/stripe-node/pull/987) Add support for `amount_details` on Issuing `Authorization` and `Transaction` - -## 8.87.0 - 2020-08-17 -* [#984](https://github.com/stripe/stripe-node/pull/984) Multiple API changes - * Add `alipay` on `type` for the List PaymentMethods API - * Add `payment_intent.requires_action` as a new `type` on `Event` - -## 8.86.0 - 2020-08-13 -* [#981](https://github.com/stripe/stripe-node/pull/981) Add support for Alipay on Checkout `Session` - -## 8.85.0 - 2020-08-13 -* [#980](https://github.com/stripe/stripe-node/pull/980) [codegen] Multiple API Changes - * Added support for bank_name on `Charge.payment_method_details.acss_debit` - * `Issuing.dispute.balance_transactions` is now nullable. - -## 8.84.0 - 2020-08-07 -* [#975](https://github.com/stripe/stripe-node/pull/975) Add support for Alipay on `PaymentMethod` and `PaymentIntent` - -## 8.83.0 - 2020-08-05 -* [#973](https://github.com/stripe/stripe-node/pull/973) Multiple API changes - * Add support for the `PromotionCode` resource and APIs - * Add support for `allow_promotion_codes` on Checkout `Session` - * Add support for `applies_to[products]` on `Coupon` - * Add support for `promotion_code` on `Customer` and `Subscription` - * Add support for `promotion_code` on `Discount` - -## 8.82.0 - 2020-08-04 -* [#972](https://github.com/stripe/stripe-node/pull/972) Multiple API changes - * Add `zh-HK` and `zh-TW` as `locale` on Checkout `Session` - * Add `payment_method_details[card_present][receipt][account_type]` on `Charge` - -## 8.81.0 - 2020-07-30 -* [#970](https://github.com/stripe/stripe-node/pull/970) Improve types for `customer` on `CreditNote` to support `DeletedCustomer` - -## 8.80.0 - 2020-07-29 -* [#969](https://github.com/stripe/stripe-node/pull/969) Multiple API changes - * Add support for `id`, `invoice` and `invoice_item` on `Discount` and `DeletedDiscount` - * Add support for `discount_amounts` on `CreditNote`, `CreditNoteLineItem`, `InvoiceLineItem` - * Add support for `discounts` on `InvoiceItem`, `InvoiceLineItem` and `Invoice` - * Add support for `total_discount_amounts` on `Invoice` - * Make `customer` and `verification` on `TaxId` optional as the resource will be re-used for `Account` in the future. - -## 8.79.0 - 2020-07-24 -* [#967](https://github.com/stripe/stripe-node/pull/967) Multiple API changes - * Make all properties from `Discount` available on `DeletedDiscount` - * Add `capabilities[fpx_payments]` on `Account` create and update - -## 8.78.0 - 2020-07-22 -* [#965](https://github.com/stripe/stripe-node/pull/965) Add support for `cartes_bancaires_payments` as a `Capability` - -## 8.77.0 - 2020-07-20 -* [#963](https://github.com/stripe/stripe-node/pull/963) Add support for `capabilities` as a parameter on `Account` create and update - -## 8.76.0 - 2020-07-17 -* [#962](https://github.com/stripe/stripe-node/pull/962) Add support for `political_exposure` on `Person` - -## 8.75.0 - 2020-07-16 -* [#961](https://github.com/stripe/stripe-node/pull/961) Add support for `account_onboarding` and `account_update` as `type` on `AccountLink` - -## 8.74.0 - 2020-07-16 -* [#959](https://github.com/stripe/stripe-node/pull/959) Refactor remaining 'var' to 'let/const' usages -* [#960](https://github.com/stripe/stripe-node/pull/960) Use strict equality check for 'protocol' field for consistency -* [#952](https://github.com/stripe/stripe-node/pull/952) Add new fields to lastResponse: apiVersion, stripeAccount, idempotencyKey - -## 8.73.0 - 2020-07-15 -* [#958](https://github.com/stripe/stripe-node/pull/958) Multiple API changes - * Add support for `en-GB`, `fr-CA` and `id` as `locale` on Checkout `Session` - * Move `purpose` to an enum on `File` -* [#957](https://github.com/stripe/stripe-node/pull/957) Bump lodash from 4.17.15 to 4.17.19 - -## 8.72.0 - 2020-07-15 -* [#956](https://github.com/stripe/stripe-node/pull/956) Add support for `amount_total`, `amount_subtotal`, `currency` and `total_details` on Checkout `Session` - -## 8.71.0 - 2020-07-14 -* [#955](https://github.com/stripe/stripe-node/pull/955) Change from string to enum value for `billing_address_collection` on Checkout `Session` - -## 8.70.0 - 2020-07-13 -* [#953](https://github.com/stripe/stripe-node/pull/953) Multiple API changes - * Adds `es-419` as a `locale` to Checkout `Session` - * Adds `billing_cycle_anchor` to `default_settings` and `phases` for `SubscriptionSchedule` - -## 8.69.0 - 2020-07-06 -* [#946](https://github.com/stripe/stripe-node/pull/946) Fix `assert_capabilities` type definition -* [#920](https://github.com/stripe/stripe-node/pull/920) Expose StripeResource on instance - -## 8.68.0 - 2020-07-01 -* [#940](https://github.com/stripe/stripe-node/pull/940) Document but discourage `protocol` config option -* [#933](https://github.com/stripe/stripe-node/pull/933) Fix tests for `Plan` and `Price` to not appear as amount can be updated. - -## 8.67.0 - 2020-06-24 -* [#929](https://github.com/stripe/stripe-node/pull/929) Add support for `invoice.paid` event - -## 8.66.0 - 2020-06-23 -* [#927](https://github.com/stripe/stripe-node/pull/927) Add support for `payment_method_data` on `PaymentIntent` - -## 8.65.0 - 2020-06-23 -* [#926](https://github.com/stripe/stripe-node/pull/926) Multiple API changes - * Add `discounts` on `LineItem` - * Add `document_provider_identity_document` as a `purpose` on `File` - * Support nullable `metadata` on Issuing `Dispute` - * Add `klarna[shipping_delay]` on `Source` - -## 8.64.0 - 2020-06-18 -* [#924](https://github.com/stripe/stripe-node/pull/924) Multiple API changes - * Add support for `refresh_url` and `return_url` on `AccountLink` - * Add support for `issuing_dispute.*` events - -## 8.63.0 - 2020-06-11 -* [#919](https://github.com/stripe/stripe-node/pull/919) Multiple API changes - * Add `transaction` on Issuing `Dispute` - * Add `payment_method_details[acss_debit][mandate]` on `Charge` - -## 8.62.0 - 2020-06-10 -* [#918](https://github.com/stripe/stripe-node/pull/918) Add support for Cartes Bancaires payments on `PaymentIntent` and `Payā€¦ - -## 8.61.0 - 2020-06-09 -* [#917](https://github.com/stripe/stripe-node/pull/917) Add support for `id_npwp` and `my_frp` as `type` on `TaxId` - -## 8.60.0 - 2020-06-03 -* [#911](https://github.com/stripe/stripe-node/pull/911) Add support for `payment_intent_data[transfer_group]` on Checkout `Session` - -## 8.59.0 - 2020-06-03 -* [#910](https://github.com/stripe/stripe-node/pull/910) Add support for Bancontact, EPS, Giropay and P24 on Checkout `Session` - -## 8.58.0 - 2020-06-03 -* [#909](https://github.com/stripe/stripe-node/pull/909) Multiple API changes - * Add `bacs_debit_payments` as a `Capability` - * Add support for BACS Debit on Checkout `Session` - * Add support for `checkout.session.async_payment_failed` and `checkout.session.async_payment_succeeded` as `type` on `Event` - -## 8.57.0 - 2020-06-03 -* [#908](https://github.com/stripe/stripe-node/pull/908) Multiple API changes - * Add support for bg, cs, el, et, hu, lt, lv, mt, ro, ru, sk, sl and tr as new locale on Checkout `Session` - * Add `settings[sepa_debit_payments][creditor_id]` on `Account` - * Add support for Bancontact, EPS, Giropay and P24 on `PaymentMethod`, `PaymentIntent` and `SetupIntent` - * Add support for `order_item[parent]` on `Source` for Klarna -* [#905](https://github.com/stripe/stripe-node/pull/905) Add support for BACS Debit as a `PaymentMethod` - -## 8.56.0 - 2020-05-28 -* [#904](https://github.com/stripe/stripe-node/pull/904) Multiple API changes - * Add `payment_method_details[card][three_d_secure][authentication_flow]` on `Charge` - * Add `line_items[][price_data][product_data]` on Checkout `Session` creation - -## 8.55.0 - 2020-05-22 -* [#899](https://github.com/stripe/stripe-node/pull/899) Multiple API changes - * Add support for `ae_trn`, `cl_tin` and `sa_vat` as `type` on `TaxId` - * Add `result` and `result_reason` inside `payment_method_details[card][three_d_secure]` on `Charge` - -## 8.54.0 - 2020-05-20 -* [#897](https://github.com/stripe/stripe-node/pull/897) Multiple API changes - * Add `anticipation_repayment` as a `type` on `BalanceTransaction` - * Add `interac_present` as a `type` on `PaymentMethod` - * Add `payment_method_details[interac_present]` on `Charge` - * Add `transfer_data` on `SubscriptionSchedule` - -## 8.53.0 - 2020-05-18 -* [#895](https://github.com/stripe/stripe-node/pull/895) Multiple API changes - * Add support for `issuing_dispute` as a `type` on `BalanceTransaction` - * Add `balance_transactions` as an array of `BalanceTransaction` on Issuing `Dispute` - * Add `fingerprint` and `transaction_id` in `payment_method_details[alipay]` on `Charge` - * Add `transfer_data[amount]` on `Invoice` - * Add `transfer_data[amount_percent]` on `Subscription` - * Add `price.created`, `price.deleted` and `price.updated` on `Event` - -## 8.52.0 - 2020-05-13 -* [#891](https://github.com/stripe/stripe-node/pull/891) Add support for `purchase_details` on Issuing `Transaction` - -## 8.51.0 - 2020-05-11 -* [#890](https://github.com/stripe/stripe-node/pull/890) Add support for the `LineItem` resource and APIs - -## 8.50.0 - 2020-05-07 -* [#888](https://github.com/stripe/stripe-node/pull/888) Multiple API changes - * Remove parameters in `price_data[recurring]` across APIs as they were never supported - * Move `payment_method_details[card][three_d_secure]` to a list of enum values on `Charge` - * Add support for for `business_profile[support_adress]` on `Account` create and update - -## 8.49.0 - 2020-05-01 -* [#883](https://github.com/stripe/stripe-node/pull/883) Multiple API changes - * Add `issuing` on `Balance` - * Add `br_cnpj` and `br_cpf` as `type` on `TaxId` - * Add `price` support in phases on `SubscriptionSchedule` - * Make `quantity` nullable on `SubscriptionSchedule` for upcoming API version change - -## 8.48.0 - 2020-04-29 -* [#881](https://github.com/stripe/stripe-node/pull/881) Add support for the `Price` resource and APIs - -## 8.47.1 - 2020-04-28 -* [#880](https://github.com/stripe/stripe-node/pull/880) Make `display_items` on Checkout `Session` optional - -## 8.47.0 - 2020-04-24 -* [#876](https://github.com/stripe/stripe-node/pull/876) Add support for `jcb_payments` as a `Capability` - -## 8.46.0 - 2020-04-22 -* [#875](https://github.com/stripe/stripe-node/pull/875) Add support for `coupon` when for subscriptions on Checkout - -## 8.45.0 - 2020-04-22 -* [#874](https://github.com/stripe/stripe-node/pull/874) Add support for `billingPortal` namespace and `session` resource and APIs - -## 8.44.0 - 2020-04-17 -* [#873](https://github.com/stripe/stripe-node/pull/873) Multiple API changes - * Add support for `cardholder_name` in `payment_method_details[card_present]` on `Charge` - * Add new enum values for `company.structure` on `Account` - -## 8.43.0 - 2020-04-16 -* [#868](https://github.com/stripe/stripe-node/pull/868) Multiple API changes - -## 8.42.0 - 2020-04-15 -* [#867](https://github.com/stripe/stripe-node/pull/867) Clean up deprecated features in our Typescript definitions for Issuing and other resources - -## 8.41.0 - 2020-04-14 -* [#866](https://github.com/stripe/stripe-node/pull/866) Add support for `settings[branding][secondary_color]` on `Account` - -## 8.40.0 - 2020-04-13 -* [#865](https://github.com/stripe/stripe-node/pull/865) Add support for `description` on `WebhookEndpoint` - -## 8.39.2 - 2020-04-10 -* [#864](https://github.com/stripe/stripe-node/pull/864) Multiple API changes - * Make `payment_intent` expandable on `Charge` - * Add support for `sg_gst` as a value for `type` on `TaxId` and related APIs - * Add `cancellation_reason` and new enum values for `replacement_reason` on Issuing `Card` - -## 8.39.1 - 2020-04-08 -* [#848](https://github.com/stripe/stripe-node/pull/848) Fix TS return type for autoPagingEach - -## 8.39.0 - 2020-04-03 -* [#859](https://github.com/stripe/stripe-node/pull/859) Add support for `calculatedStatementDescriptor` on `Charge` - -## 8.38.0 - 2020-03-27 - -- [#853](https://github.com/stripe/stripe-node/pull/853) Improve StripeError.generate() - - Add `doc_url` field to StripeError. - - Expose `Stripe.errors.generate()` as a convenience for `Stripe.errors.StripeError.generate()`. - - Fix several TS types related to StripeErrors. - - Add types for `StripeInvalidGrantError`. - - Add support for `authentication_error` and `rate_limit_error` in `.generate()`. - -## 8.37.0 - 2020-03-26 - -- [#851](https://github.com/stripe/stripe-node/pull/851) Add support for `spending_controls` on Issuing `Card` and `Cardholder` - -## 8.36.0 - 2020-03-25 - -- [#850](https://github.com/stripe/stripe-node/pull/850) Multiple API changes - - Add support for `pt-BR` as a `locale` on Checkout `Session` - - Add support for `company` as a `type` on Issuing `Cardholder` - -## 8.35.0 - 2020-03-24 - -- [#849](https://github.com/stripe/stripe-node/pull/849) Add support for `pause_collection` on `Subscription` - -## 8.34.0 - 2020-03-24 - -- [#847](https://github.com/stripe/stripe-node/pull/847) Add new capabilities for AU Becs Debit and tax reporting - -## 8.33.0 - 2020-03-20 - -- [#842](https://github.com/stripe/stripe-node/pull/842) Multiple API changes for Issuing: - - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` on `Authorization` - - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` inside `request_history` on `Authorization` - - Add `pending_request` on `Authorization` - - Add `amount` when approving an `Authorization` - - Add `replaced_by` on `Card` - -## 8.32.0 - 2020-03-13 - -- [#836](https://github.com/stripe/stripe-node/pull/836) Multiple API changes for Issuing: - - Rename `speed` to `service` on Issuing `Card` - - Rename `wallet_provider` to `wallet` and `address_zip_check` to `address_postal_code_check` on Issuing `Authorization` - - Mark `is_default` as deprecated on Issuing `Cardholder` - -## 8.31.0 - 2020-03-12 - -- [#835](https://github.com/stripe/stripe-node/pull/835) Add support for `shipping` and `shipping_address_collection` on Checkout `Session` - -## 8.30.0 - 2020-03-12 - -- [#834](https://github.com/stripe/stripe-node/pull/834) Add support for `ThreeDSecure` on Issuing `Authorization` - -## 8.29.0 - 2020-03-05 - -- [#833](https://github.com/stripe/stripe-node/pull/833) Make metadata nullable in many endpoints - -## 8.28.1 - 2020-03-05 - -- [#827](https://github.com/stripe/stripe-node/pull/827) Allow `null`/`undefined` to be passed for `options` arg. - -## 8.28.0 - 2020-03-04 - -- [#830](https://github.com/stripe/stripe-node/pull/830) Add support for `metadata` on `WebhookEndpoint` - -## 8.27.0 - 2020-03-04 - -- [#829](https://github.com/stripe/stripe-node/pull/829) Multiple API changes - - Add support for `account` as a parameter on `Token` to create Account tokens - - Add support for `verification_data.expiry_check` on Issuing `Authorization` - - Add support for `incorrect_cvc` and `incorrect_expiry` as a value for `request_history.reason` on Issuing `Authorization` - -## 8.26.0 - 2020-03-04 - -- [#828](https://github.com/stripe/stripe-node/pull/828) Multiple API changes - - Add support for `errors` in `requirements` on `Account`, `Capability` and `Person` - - Add support for `payment_intent.processing` as a new `type` on `Event`. - -## 8.25.0 - 2020-03-03 - -āš ļø This is a breaking change for TypeScript users. - -- [#826](https://github.com/stripe/stripe-node/pull/826) Multiple API changes: - - āš ļø Types are now for the API version `2020-03-02`. This is a breaking change for TypeScript users - - Remove `uob_regional` as a value on `bank` for FPX as this is deprecated and was never used - - Add support for `next_invoice_sequence` on `Customer` - - Add support for `proration_behavior` on `SubscriptionItem` delete - -## 8.24.1 - 2020-03-02 - -- [#824](https://github.com/stripe/stripe-node/pull/824) Update type for StripeError to extend Error - -## 8.24.0 - 2020-02-28 - -- [#822](https://github.com/stripe/stripe-node/pull/822) Add `my_sst` as a valid value for `type` on `TaxId` - -## 8.23.0 - 2020-02-27 - -- [#821](https://github.com/stripe/stripe-node/pull/821) Make `type` on `AccountLink` an enum - -## 8.22.0 - 2020-02-24 - -- [#820](https://github.com/stripe/stripe-node/pull/820) Add new enum values in `reason` for Issuing `Dispute` creation - -## 8.21.0 - 2020-02-24 - -- [#819](https://github.com/stripe/stripe-node/pull/819) Add support for listing Checkout `Session` and passing tax rate information - -## 8.20.0 - 2020-02-21 - -- [#813](https://github.com/stripe/stripe-node/pull/813) Multiple API changes - - Add support for `timezone` on `ReportRun` - - Add support for `proration_behavior` on `SubscriptionSchedule` - -## 8.19.0 - 2020-02-18 - -- [#807](https://github.com/stripe/stripe-node/pull/807) Change timeout default to constant 80000 instead Node default - -## 8.18.0 - 2020-02-14 - -- [#802](https://github.com/stripe/stripe-node/pull/802) TS Fixes - - Correctly type `Array` - - More consistently describe nullable fields as `| null`, vs `| ''`. - -## 8.17.0 - 2020-02-12 - -- [#804](https://github.com/stripe/stripe-node/pull/804) Add support for `payment_intent_data[transfer_data][amount]` on Checkout `Session` - -## 8.16.0 - 2020-02-12 - -- [#803](https://github.com/stripe/stripe-node/pull/803) Multiple API changes reflect in Typescript definitions - - Add `fpx` as a valid `source_type` on `Balance`, `Payout` and `Transfer` - - Add `fpx` support on Checkout `Session` - - Fields inside `verification_data` on Issuing `Authorization` are now enums - - Support updating `payment_method_options` on `PaymentIntent` and `SetupIntent` - -## 8.15.0 - 2020-02-10 - -- [#801](https://github.com/stripe/stripe-node/pull/801) Multiple API changes - - Add support for new `type` values for `TaxId`. - - Add support for `payment_intent_data[statement_descriptor_suffix]` on Checkout `Session`. - -## 8.14.0 - 2020-02-04 - -- [#793](https://github.com/stripe/stripe-node/pull/793) Rename `sort_code` to `sender_sort_code` on `SourceTransaction` for BACS debit. - -## 8.13.0 - 2020-02-03 - -- [#792](https://github.com/stripe/stripe-node/pull/792) Multiple API changes - - Add new `purpose` for `File`: `additional_verification` - - Add `error_on_requires_action` as a parameter for `PaymentIntent` creation and confirmation - -## 8.12.0 - 2020-01-31 - -- [#790](https://github.com/stripe/stripe-node/pull/790) Add new type of `TaxId` - -## 8.11.0 - 2020-01-30 - -- [#789](https://github.com/stripe/stripe-node/pull/789) Add support for `company.structure` on `Account` and other docs changes - -## 8.10.0 - 2020-01-30 - -- [#788](https://github.com/stripe/stripe-node/pull/788) Make typescript param optional - -## 8.9.0 - 2020-01-30 - -- [#787](https://github.com/stripe/stripe-node/pull/787) Add support for FPX as a `PaymentMethod` -- [#769](https://github.com/stripe/stripe-node/pull/769) Fix Typescript definition on `Token` creation for bank accounts - -## 8.8.2 - 2020-01-30 - -- [#785](https://github.com/stripe/stripe-node/pull/785) Fix file uploads with nested params - -## 8.8.1 - 2020-01-29 - -- [#784](https://github.com/stripe/stripe-node/pull/784) Allow @types/node 8.1 - -## 8.8.0 - 2020-01-28 - -- [#780](https://github.com/stripe/stripe-node/pull/780) Add new type for `TaxId` and `sender_account_name` on `SourceTransaction` - -## 8.7.0 - 2020-01-24 - -- [#777](https://github.com/stripe/stripe-node/pull/777) Add support for `shipping[speed]` on Issuing `Card` - -## 8.6.0 - 2020-01-23 - -- [#775](https://github.com/stripe/stripe-node/pull/775) Gracefully handle a missing `subprocess` module - -## 8.5.0 - 2020-01-23 - -- [#776](https://github.com/stripe/stripe-node/pull/776) Add support for new `type` on `CustomerTaxId` - -## 8.4.1 - 2020-01-21 - -- [#774](https://github.com/stripe/stripe-node/pull/774) Improve docstrings for many properties and parameters - -## 8.4.0 - 2020-01-17 - -- [#771](https://github.com/stripe/stripe-node/pull/771) Add `metadata` on Checkout `Session` and remove deprecated features -- [#764](https://github.com/stripe/stripe-node/pull/764) Added typescript webhook example - -## 8.3.0 - 2020-01-15 - -- [#767](https://github.com/stripe/stripe-node/pull/767) Adding missing events for pending updates on `Subscription` - -## 8.2.0 - 2020-01-15 - -- [#765](https://github.com/stripe/stripe-node/pull/765) Add support for `pending_update` on `Subscription` to the Typescript definitions - -## 8.1.0 - 2020-01-14 - -- [#763](https://github.com/stripe/stripe-node/pull/763) Add support for listing line items on a `CreditNote` -- [#762](https://github.com/stripe/stripe-node/pull/762) Improve docs for core fields such as `metadata` on Typescript definitions - -## 8.0.1 - 2020-01-09 - -- [#757](https://github.com/stripe/stripe-node/pull/757) [bugfix] Add types dir to npmignore whitelist and stop warning when instantiating stripe with no args - -## 8.0.0 - 2020-01-09 - -Major version release, adding TypeScript definitions and dropping support for Node 6. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v8) contains a detailed list of backwards-incompatible changes with upgrade instructions. - -Major pull requests included in this release (cf. [#742](https://github.com/stripe/stripe-node/pull/742)) (āš ļø = breaking changes): - -- [#736](https://github.com/stripe/stripe-node/pull/736) Add TypeScript definitions -- [#744](https://github.com/stripe/stripe-node/pull/744) Remove deprecated resources and methods -- [#752](https://github.com/stripe/stripe-node/pull/752) Deprecate many library api's, unify others - -## 7.63.1 - 2020-11-17 -- Identical to 7.15.0. - -## 7.63.0 - 2020-11-17 -- Published in error. Do not use. This is identical to 8.122.0. - -## 7.15.0 - 2019-12-30 - -- [#745](https://github.com/stripe/stripe-node/pull/745) Bump handlebars from 4.1.2 to 4.5.3 -- [#737](https://github.com/stripe/stripe-node/pull/737) Fix flows test - -## 7.14.0 - 2019-11-26 - -- [#732](https://github.com/stripe/stripe-node/pull/732) Add support for CreditNote preview - -## 7.13.1 - 2019-11-22 - -- [#728](https://github.com/stripe/stripe-node/pull/728) Remove duplicate export - -## 7.13.0 - 2019-11-06 - -- [#703](https://github.com/stripe/stripe-node/pull/703) New config object - -## 7.12.0 - 2019-11-05 - -- [#724](https://github.com/stripe/stripe-node/pull/724) Add support for `Mandate` - -## 7.11.0 - 2019-10-31 - -- [#719](https://github.com/stripe/stripe-node/pull/719) Define 'type' as a property on errors rather than a getter -- [#709](https://github.com/stripe/stripe-node/pull/709) README: imply context of stripe-node -- [#717](https://github.com/stripe/stripe-node/pull/717) Contributor Convenant - -## 7.10.0 - 2019-10-08 - -- [#699](https://github.com/stripe/stripe-node/pull/699) Add request-specific fields from raw error to top level error - -## 7.9.1 - 2019-09-17 - -- [#692](https://github.com/stripe/stripe-node/pull/692) Retry based on `Stripe-Should-Retry` and `Retry-After` headers - -## 7.9.0 - 2019-09-09 - -- [#691](https://github.com/stripe/stripe-node/pull/691) GET and DELETE requests data: body->queryParams -- [#684](https://github.com/stripe/stripe-node/pull/684) Bump eslint-utils from 1.3.1 to 1.4.2 - -## 7.8.0 - 2019-08-12 - -- [#678](https://github.com/stripe/stripe-node/pull/678) Add `subscriptionItems.createUsageRecord()` method - -## 7.7.0 - 2019-08-09 - -- [#675](https://github.com/stripe/stripe-node/pull/675) Remove subscription schedule revisions - - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused. - -## 7.6.2 - 2019-08-09 - -- [#674](https://github.com/stripe/stripe-node/pull/674) Refactor requestDataProcessor for File out into its own file - -## 7.6.1 - 2019-08-08 - -- [#673](https://github.com/stripe/stripe-node/pull/673) Add request start and end time to request and response events - -## 7.6.0 - 2019-08-02 - -- [#661](https://github.com/stripe/stripe-node/pull/661) Refactor errors to ES6 classes. -- [#672](https://github.com/stripe/stripe-node/pull/672) Refinements to error ES6 classes. - -## 7.5.5 - 2019-08-02 - -- [#665](https://github.com/stripe/stripe-node/pull/665) Remove `lodash.isplainobject`. - -## 7.5.4 - 2019-08-01 - -- [#671](https://github.com/stripe/stripe-node/pull/671) Include a prefix in generated idempotency keys and remove uuid dependency. - -## 7.5.3 - 2019-07-31 - -- [#667](https://github.com/stripe/stripe-node/pull/667) Refactor request headers, allowing any header to be overridden. - -## 7.5.2 - 2019-07-30 - -- [#664](https://github.com/stripe/stripe-node/pull/664) Expose and use `once` - -## 7.5.1 - 2019-07-30 - -- [#662](https://github.com/stripe/stripe-node/pull/662) Remove `safe-buffer` dependency -- [#666](https://github.com/stripe/stripe-node/pull/666) Bump lodash from 4.17.11 to 4.17.15 -- [#668](https://github.com/stripe/stripe-node/pull/668) Move Balance History to /v1/balance_transactions - -## 7.5.0 - 2019-07-24 - -- [#660](https://github.com/stripe/stripe-node/pull/660) Interpret any string in args as API Key instead of a regex - - āš ļø Careful: passing strings which are not API Keys as as the final argument to a request previously would have ignored those strings, and would now result in the request failing with an authentication error. - - āš ļø Careful: The private api `utils.isAuthKey` was removed. -- [#658](https://github.com/stripe/stripe-node/pull/658) Update README retry code sample to use two retries -- [#653](https://github.com/stripe/stripe-node/pull/653) Reorder customer methods - -## 7.4.0 - 2019-06-27 - -- [#652](https://github.com/stripe/stripe-node/pull/652) Add support for the `SetupIntent` resource and APIs - -## 7.3.0 - 2019-06-24 - -- [#649](https://github.com/stripe/stripe-node/pull/649) Enable request latency telemetry by default - -## 7.2.0 - 2019-06-17 - -- [#608](https://github.com/stripe/stripe-node/pull/608) Add support for `CustomerBalanceTransaction` resource and APIs - -## 7.1.0 - 2019-05-23 - -- [#632](https://github.com/stripe/stripe-node/pull/632) Add support for `radar.early_fraud_warning` resource - -## 7.0.1 - 2019-05-22 - -- [#631](https://github.com/stripe/stripe-node/pull/631) Make autopagination functions work for `listLineItems` and `listUpcomingLineItems` - -## 7.0.0 - 2019-05-14 - -Major version release. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v7) contains a detailed list of backwards-incompatible changes with upgrade instructions. - -Pull requests included in this release (cf. [#606](https://github.com/stripe/stripe-node/pull/606)) (āš ļø = breaking changes): - -- āš ļø Drop support for Node 4, 5 and 7 ([#606](https://github.com/stripe/stripe-node/pull/606)) -- Prettier formatting ([#604](https://github.com/stripe/stripe-node/pull/604)) -- Alphabetize ā€œbasicā€ methods ([#610](https://github.com/stripe/stripe-node/pull/610)) -- Use `id` for single positional arguments ([#611](https://github.com/stripe/stripe-node/pull/611)) -- Modernize ES5 to ES6 with lebab ([#607](https://github.com/stripe/stripe-node/pull/607)) -- āš ļø Remove deprecated methods ([#613](https://github.com/stripe/stripe-node/pull/613)) -- Add VSCode and EditorConfig files ([#620](https://github.com/stripe/stripe-node/pull/620)) -- āš ļø Drop support for Node 9 and bump dependencies to latest versions ([#614](https://github.com/stripe/stripe-node/pull/614)) -- Misc. manual formatting ([#623](https://github.com/stripe/stripe-node/pull/623)) -- āš ļø Remove legacy parameter support in `invoices.retrieveUpcoming()` ([#621](https://github.com/stripe/stripe-node/pull/621)) -- āš ļø Remove curried urlData and manually specified urlParams ([#625](https://github.com/stripe/stripe-node/pull/625)) -- Extract resources file ([#626](https://github.com/stripe/stripe-node/pull/626)) - -## 6.36.0 - 2019-05-14 - -- [#622](https://github.com/stripe/stripe-node/pull/622) Add support for the `Capability` resource and APIs - -## 6.35.0 - 2019-05-14 - -- [#627](https://github.com/stripe/stripe-node/pull/627) Add `listLineItems` and `listUpcomingLineItems` methods to `Invoice` - -## 6.34.0 - 2019-05-08 - -- [#619](https://github.com/stripe/stripe-node/pull/619) Move `generateTestHeaderString` to stripe.webhooks (fixes a bug in 6.33.0) - -## 6.33.0 - 2019-05-08 - -**Important**: This version is non-functional and has been yanked in favor of 6.32.0. - -- [#609](https://github.com/stripe/stripe-node/pull/609) Add `generateWebhookHeaderString` to make it easier to mock webhook events - -## 6.32.0 - 2019-05-07 - -- [#612](https://github.com/stripe/stripe-node/pull/612) Add `balanceTransactions` resource - -## 6.31.2 - 2019-05-03 - -- [#602](https://github.com/stripe/stripe-node/pull/602) Handle errors from the oauth/token endpoint - -## 6.31.1 - 2019-04-26 - -- [#600](https://github.com/stripe/stripe-node/pull/600) Fix encoding of nested parameters in multipart requests - -## 6.31.0 - 2019-04-24 - -- [#588](https://github.com/stripe/stripe-node/pull/588) Add support for the `TaxRate` resource and APIs - -## 6.30.0 - 2019-04-22 - -- [#589](https://github.com/stripe/stripe-node/pull/589) Add support for the `TaxId` resource and APIs -- [#593](https://github.com/stripe/stripe-node/pull/593) `retrieveUpcoming` on `Invoice` can now take one hash as parameter instead of requiring a customer id. - -## 6.29.0 - 2019-04-18 - -- [#585](https://github.com/stripe/stripe-node/pull/585) Add support for the `CreditNote` resource and APIs - -## 6.28.0 - 2019-03-18 - -- [#570](https://github.com/stripe/stripe-node/pull/570) Add support for the `PaymentMethod` resource and APIs -- [#578](https://github.com/stripe/stripe-node/pull/578) Add support for retrieving a Checkout `Session` - -## 6.27.0 - 2019-03-15 - -- [#581](https://github.com/stripe/stripe-node/pull/581) Add support for deleting Terminal `Location` and `Reader` - -## 6.26.1 - 2019-03-14 - -- [#580](https://github.com/stripe/stripe-node/pull/580) Fix support for HTTPS proxies - -## 6.26.0 - 2019-03-11 - -- [#574](https://github.com/stripe/stripe-node/pull/574) Encode `Date`s as Unix timestamps - -## 6.25.1 - 2019-02-14 - -- [#565](https://github.com/stripe/stripe-node/pull/565) Always encode arrays as integer-indexed hashes - -## 6.25.0 - 2019-02-13 - -- [#559](https://github.com/stripe/stripe-node/pull/559) Add `stripe.setMaxNetworkRetries(n)` for automatic network retries - -## 6.24.0 - 2019-02-12 - -- [#562](https://github.com/stripe/stripe-node/pull/562) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision` - -## 6.23.1 - 2019-02-04 - -- [#560](https://github.com/stripe/stripe-node/pull/560) Enable persistent connections by default - -## 6.23.0 - 2019-01-30 - -- [#557](https://github.com/stripe/stripe-node/pull/557) Add configurable telemetry to gather information on client-side request latency - -## 6.22.0 - 2019-01-25 - -- [#555](https://github.com/stripe/stripe-node/pull/555) Add support for OAuth methods - -## 6.21.0 - 2019-01-23 - -- [#551](https://github.com/stripe/stripe-node/pull/551) Rename `CheckoutSession` to `Session` and move it under the `checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach. - -## 6.20.1 - 2019-01-17 - -- [#552](https://github.com/stripe/stripe-node/pull/552) Fix `Buffer` deprecation warnings - -## 6.20.0 - 2018-12-21 - -- [#539](https://github.com/stripe/stripe-node/pull/539) Add support for the `CheckoutSession` resource - -## 6.19.0 - 2018-12-10 - -- [#535](https://github.com/stripe/stripe-node/pull/535) Add support for account links - -## 6.18.1 - 2018-12-07 - -- [#534](https://github.com/stripe/stripe-node/pull/534) Fix iterating on `files.list` method - -## 6.18.0 - 2018-12-06 - -- [#530](https://github.com/stripe/stripe-node/pull/530) Export errors on root Stripe object - -## 6.17.0 - 2018-11-28 - -- [#527](https://github.com/stripe/stripe-node/pull/527) Add support for the `Review` APIs - -## 6.16.0 - 2018-11-27 - -- [#515](https://github.com/stripe/stripe-node/pull/515) Add support for `ValueLists` and `ValueListItems` for Radar - -## 6.15.2 - 2018-11-26 - -- [#526](https://github.com/stripe/stripe-node/pull/526) Fixes an accidental mutation of input in rare cases - -## 6.15.1 - 2018-11-23 - -- [#523](https://github.com/stripe/stripe-node/pull/523) Handle `Buffer` instances in `Webhook.constructEvent` - -## 6.15.0 - 2018-11-12 - -- [#474](https://github.com/stripe/stripe-node/pull/474) Add support for `partner_id` in `setAppInfo` - -## 6.14.0 - 2018-11-09 - -- [#509](https://github.com/stripe/stripe-node/pull/509) Add support for new `Invoice` methods - -## 6.13.0 - 2018-10-30 - -- [#507](https://github.com/stripe/stripe-node/pull/507) Add support for persons -- [#510](https://github.com/stripe/stripe-node/pull/510) Add support for webhook endpoints - -## 6.12.1 - 2018-09-24 - -- [#502](https://github.com/stripe/stripe-node/pull/502) Fix test suite - -## 6.12.0 - 2018-09-24 - -- [#498](https://github.com/stripe/stripe-node/pull/498) Add support for Stripe Terminal -- [#500](https://github.com/stripe/stripe-node/pull/500) Rename `FileUploads` to `Files`. For backwards compatibility, `Files` is aliased to `FileUploads`. `FileUploads` is deprecated and will be removed from the next major version. - -## 6.11.0 - 2018-09-18 - -- [#496](https://github.com/stripe/stripe-node/pull/496) Add auto-pagination - -## 6.10.0 - 2018-09-05 - -- [#491](https://github.com/stripe/stripe-node/pull/491) Add support for usage record summaries - -## 6.9.0 - 2018-09-05 - -- [#493](https://github.com/stripe/stripe-node/pull/493) Add support for reporting resources - -## 6.8.0 - 2018-08-27 - -- [#488](https://github.com/stripe/stripe-node/pull/488) Remove support for `BitcoinReceivers` write-actions - -## 6.7.0 - 2018-08-03 - -- [#485](https://github.com/stripe/stripe-node/pull/485) Add support for `cancel` on topups - -## 6.6.0 - 2018-08-02 - -- [#483](https://github.com/stripe/stripe-node/pull/483) Add support for file links - -## 6.5.0 - 2018-07-28 - -- [#482](https://github.com/stripe/stripe-node/pull/482) Add support for Sigma scheduled query runs - -## 6.4.0 - 2018-07-26 - -- [#481](https://github.com/stripe/stripe-node/pull/481) Add support for Stripe Issuing - -## 6.3.0 - 2018-07-18 - -- [#471](https://github.com/stripe/stripe-node/pull/471) Add support for streams in file uploads - -## 6.2.1 - 2018-07-03 - -- [#475](https://github.com/stripe/stripe-node/pull/475) Fixes array encoding of subscription items for the upcoming invoices endpoint. - -## 6.2.0 - 2018-06-28 - -- [#473](https://github.com/stripe/stripe-node/pull/473) Add support for payment intents - -## 6.1.1 - 2018-06-07 - -- [#469](https://github.com/stripe/stripe-node/pull/469) Add `.npmignore` to create a lighter package (minus examples and tests) - -## 6.1.0 - 2018-06-01 - -- [#465](https://github.com/stripe/stripe-node/pull/465) Warn when unknown options are passed to functions - -## 6.0.0 - 2018-05-14 - -- [#453](https://github.com/stripe/stripe-node/pull/453) Re-implement usage record's `create` so that it correctly passes all arguments (this is a very minor breaking change) - -## 5.10.0 - 2018-05-14 - -- [#459](https://github.com/stripe/stripe-node/pull/459) Export error types on `stripe.errors` so that errors can be matched with `instanceof` instead of comparing the strings generated by `type` - -## 5.9.0 - 2018-05-09 - -- [#456](https://github.com/stripe/stripe-node/pull/456) Add support for issuer fraud records - -## 5.8.0 - 2018-04-04 - -- [#444](https://github.com/stripe/stripe-node/pull/444) Introduce flexible billing primitives for subscriptions - -## 5.7.0 - 2018-04-02 - -- [#441](https://github.com/stripe/stripe-node/pull/441) Write directly to a connection that's known to be still open - -## 5.6.1 - 2018-03-25 - -- [#437](https://github.com/stripe/stripe-node/pull/437) Fix error message when passing invalid parameters to some API methods - -## 5.6.0 - 2018-03-24 - -- [#439](https://github.com/stripe/stripe-node/pull/439) Drop Bluebird dependency and use native ES6 promises - -## 5.5.0 - 2018-02-21 - -- [#425](https://github.com/stripe/stripe-node/pull/425) Add support for topups - -## 5.4.0 - 2017-12-05 - -- [#412](https://github.com/stripe/stripe-node/pull/412) Add `StripeIdempotencyError` type for new kind of stripe error - -## 5.3.0 - 2017-10-31 - -- [#405](https://github.com/stripe/stripe-node/pull/405) Support for exchange rates APIs - -## 5.2.0 - 2017-10-26 - -- [#404](https://github.com/stripe/stripe-node/pull/404) Support for listing source transactions - -## 5.1.1 - 2017-10-04 - -- [#394](https://github.com/stripe/stripe-node/pull/394) Fix improper warning for requests that have options but no parameters - -## 5.1.0 - 2017-09-25 - -- Add check for when options are accidentally included in an arguments object -- Use safe-buffer package instead of building our own code -- Remove dependency on object-assign package -- Bump required versions of bluebird and qs - -## 5.0.0 - 2017-09-12 - -- Drop support for Node 0.x (minimum required version is now >= 4) - -## 4.25.0 - 2017-09-05 - -- Switch to Bearer token authentication on API requests - -## 4.24.1 - 2017-08-25 - -- Specify UTF-8 encoding when verifying HMAC-SHA256 payloads - -## 4.24.0 - 2017-08-10 - -- Support informational events with `Stripe.on` (see README for details) - -## 4.23.2 - 2017-08-03 - -- Handle `Buffer.from` incompatibility for Node versions prior to 4.5.x - -## 4.23.1 - 2017-06-24 - -- Properly encode subscription items when retrieving upcoming invoice - -## 4.23.0 - 2017-06-20 - -- Add support for ephemeral keys - -## 4.22.1 - 2017-06-20 - -- Fix usage of hasOwnProperty in utils - -## 4.22.0 - 2017-05-25 - -- Make response headers accessible on error objects - -## 4.21.0 - 2017-05-25 - -- Add support for account login links - -## 4.20.0 - 2017-05-24 - -- Add `stripe.setAppInfo` for plugin authors to register app information - -## 4.19.1 - 2017-05-18 - -- Tweak class initialization for compatibility with divergent JS engines - -## 4.19.0 - 2017-05-11 - -- Support for checking webhook signatures - -## 4.18.0 - 2017-04-12 - -- Reject ID parameters that don't look like strings - -## 4.17.1 - 2017-04-05 - -- Fix paths in error messages on bad arguments - -## 4.17.0 - 2017-03-31 - -- Add support for payouts - -## 4.16.1 - 2017-03-30 - -- Fix bad reference to `requestId` when initializing errors - -## 4.16.0 - 2017-03-22 - -- Make `requestId` available on resource `lastResponse` objects - -## 4.15.1 - 2017-03-08 - -- Update required version of "qs" dependency to 6.0.4+ - -## 4.15.0 - 2017-01-18 - -- Add support for updating sources - -## 4.14.0 - 2016-12-01 - -- Add support for verifying sources - -## 4.13.0 - 2016-11-21 - -- Add retrieve method for 3-D Secure resources - -## 4.12.0 - 2016-10-18 - -- Support for 403 status codes (permission denied) - -## 4.11.0 - 2016-09-16 - -- Add support for Apple Pay domains - -## 4.10.0 - 2016-08-29 - -- Refactor deprecated uses of Bluebird's `Promise.defer` - -## 4.9.1 - 2016-08-22 - -- URI-encode unames for Stripe user agents so we don't fail on special characters - -## 4.9.0 - 2016-07-19 - -- Add `Source` model for generic payment sources support (experimental) - -## 4.8.0 - 2016-07-14 - -- Add `ThreeDSecure` model for 3-D secure payments - -## 4.7.0 - 2016-05-25 - -- Add support for returning Relay orders - -## 4.6.0 - 2016-05-04 - -- Add `update`, `create`, `retrieve`, `list` and `del` methods to `stripe.subscriptions` - -## 4.5.0 - 2016-03-15 - -- Add `reject` on `Account` to support the new API feature - -## 4.4.0 - 2016-02-08 - -- Add `CountrySpec` model for looking up country payment information - -## 4.3.0 - 2016-01-26 - -- Add support for deleting Relay SKUs and products - -## 4.2.0 - 2016-01-13 - -- Add `lastResponse` property on `StripeResource` objects -- Return usage errors of `stripeMethod` through callback instead of raising -- Use latest year for expiry years in tests to avoid new year problems - -## 4.1.0 - 2015-12-02 - -- Add a verification routine for external accounts - -## 4.0.0 - 2015-09-17 - -- Remove ability for API keys to be passed as 1st param to acct.retrieve -- Rename StripeInvalidRequest to StripeInvalidRequestError - -## 3.9.0 - 2015-09-14 - -- Add Relay resources: Products, SKUs, and Orders - -## 3.8.0 - 2015-09-11 - -- Added rate limiting responses - -## 3.7.1 - 2015-08-17 - -- Added refund object with listing, retrieval, updating, and creation. - -## 3.7.0 - 2015-08-03 - -- Added managed account deletion -- Added dispute listing and retrieval - -## 3.6.0 - 2015-07-07 - -- Added request IDs to all Stripe errors - -## 3.5.2 - 2015-06-30 - -- [BUGFIX] Fixed issue with uploading binary files (Gabriel Chagas Marques) - -## 3.5.1 - 2015-06-30 - -- [BUGFIX] Fixed issue with passing arrays of objects - -## 3.5.0 - 2015-06-11 - -- Added support for optional parameters when retrieving an upcoming invoice - (Matthew Arkin) - -## 3.4.0 - 2015-06-10 - -- Added support for bank accounts and debit cards in managed accounts - -## 3.3.4 - 2015-04-02 - -- Remove SSL revocation tests and check - -## 3.3.3 - 2015-03-31 - -- [BUGFIX] Fix support for both stripe.account and stripe.accounts - -## 3.3.2 - 2015-02-24 - -- Support transfer reversals. - -## 3.3.1 - 2015-02-21 - -- [BUGFIX] Fix passing in only a callback to the Account resource. (Matthew Arkin) - -## 3.3.0 - 2015-02-19 - -- Support BitcoinReceiver update & delete actions -- Add methods for manipulating customer sources as per 2015-02-18 API version -- The Account resource will now take an account ID. However, legacy use of the resource (without an account ID) will still work. - -## 3.2.0 - 2015-02-05 - -- [BUGFIX] Fix incorrect failing tests for headers support -- Update all dependencies (remove mocha-as-promised) -- Switch to bluebird for promises - -## 3.1.0 - 2015-01-21 - -- Support making bitcoin charges through BitcoinReceiver source object - -## 3.0.3 - 2014-12-23 - -- Adding file uploads as a resource. - -## 3.0.2 - 2014-11-26 - -- [BUGFIX] Fix issue where multiple expand params were not getting passed through (#130) - -## 3.0.1 - 2014-11-26 - -- (Version skipped due to npm mishap) - -## 3.0.0 - 2014-11-18 - -- [BUGFIX] Fix `stringifyRequestData` to deal with nested objs correctly -- Bump MAJOR as we're no longer supporting Node 0.8 - -## 2.9.0 - 2014-11-12 - -- Allow setting of HTTP agent (proxy) (issue #124) -- Add stack traces to all Stripe Errors - -## 2.8.0 - 2014-07-26 - -- Make application fee refunds a list instead of array - -## 2.7.4 - 2014-07-17 - -- [BUGFIX] Fix lack of subscription param in `invoices#retrieveUpcoming` method -- Add support for an `optional!` annotation on `urlParams` - -## 2.7.3 - 2014-06-17 - -- Add metadata to disputes and refunds - -## 2.6.3 - 2014-05-21 - -- Support cards for recipients. - -## 2.5.3 - 2014-05-16 - -- Allow the `update` method on coupons for metadata changes - -## 2.5.2 - 2014-04-28 - -- [BUGFIX] Fix when.js version string in package.json to support older npm versions - -## 2.5.1 - 2014-04-25 - -- [BUGFIX] Fix revoked-ssl check -- Upgrade when.js to 3.1.0 - -## 2.5.0 - 2014-04-09 - -- Ensure we prevent requests using revoked SSL certs - -## 2.4.5 - 2014-04-08 - -- Add better checks for incorrect arguments (throw exceptions accordingly). -- Validate the Connect Auth key, if passed - -## 2.4.4 - 2014-03-27 - -- [BUGFIX] Fix URL encoding issue (not encoding interpolated URL params, see issue #93) - -## 2.4.3 - 2014-03-27 - -- Add more debug information to the case of a failed `JSON.parse()` - -## 2.4.2 - 2014-02-20 - -- Add binding for `transfers/{tr_id}/transactions` endpoint - -## 2.4.1 - 2014-02-07 - -- Ensure raw error object is accessible on the generated StripeError - -## 2.4.0 - 2014-01-29 - -- Support multiple subscriptions per customer - -## 2.3.4 - 2014-01-11 - -- [BUGFIX] Fix #76, pass latest as version to api & fix constructor arg signature - -## 2.3.3 - 2014-01-10 - -- Document cancelSubscription method params and add specs for `at_period_end` - -## 2.3.2 - 2013-12-02 - -- Add application fees API - -## 2.2.2 - 2013-11-20 - -- [BUGFIX] Fix incorrect deleteDiscount method & related spec(s) - -### 2.2.1 - 2013-12-01 - -- [BUGFIX] Fix user-agent header issue (see issue #75) - -## 2.2.0 - 2013-11-09 - -- Add support for setTimeout -- Add specs for invoice-item listing/querying via timestamp - -## 2.1.0 - 2013-11-07 - -- Support single key/value setting on setMetadata method -- [BUGFIX] Fix Windows url-path issue -- Add missing stripe.charges.update method -- Support setting auth_token per request (useful in Connect) -- Remove global 'resources' variable - -## 2.0.0 - 2013-10-18 - -- API overhaul and refactor, including addition of promises. -- Release of version 2.0.0 - -## 1.3.0 - 2013-01-30 - -- Requests return Javascript Errors (Guillaume Flandre) - -## 1.2.0 - 2012-08-03 - -- Added events API (Jonathan Hollinger) -- Added plans update API (Pavan Kumar Sunkara) -- Various test fixes, node 0.8.x tweaks (Jan Lehnardt) - -## 1.1.0 - 2012-02-01 - -- Add Coupons API (Ryan) -- Pass a more robust error object to the callback (Ryan) -- Fix duplicate callbacks from some functions when called incorrectly (bug #24, reported by Kishore Nallan) - -## 1.0.0 - 2011-12-06 - -- Add APIs and tests for Plans and "Invoice Items" - (both changes by Ryan Ettipio) - -## 0.0.5 - 2011-11-26 - -- Add Subscription API (John Ku, #3) -- Add Invoices API (Chris Winn, #6) -- [BUGFIX] Fix a bug where callback could be called twice, if the callback() threw an error itself (Peteris Krumins) -- [BUGFIX] Fix bug in tokens.retrieve API (Xavi) -- Change documentation links (Stripe changed their URL structure) -- Make tests pass again (error in callback is null instead of 0 if all is well) -- Amount in stripe.charges.refund is optional (Branko Vukelic) -- Various documentation fixes (Xavi) -- Only require node 0.4.0 - -## 0.0.3 - 2011-10-05 - -- Add Charges API (issue #1, brackishlake) -- Add customers.list API - -## 0.0.2 - 2011-09-28 - -- Initial release with customers and tokens APIs + +## 16.12.0 - 2024-09-18 +* [#2177](https://github.com/stripe/stripe-node/pull/2177) Update generated code + * Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code` +* [#2175](https://github.com/stripe/stripe-node/pull/2175) Update generated code + * Add support for new value `verification_supportability` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for new value `terminal_reader_invalid_location_for_activation` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `payer_details` on `Charge.payment_method_details.klarna` + * Add support for `amazon_pay` on `Dispute.payment_method_details` + * Add support for new value `amazon_pay` on enum `Dispute.payment_method_details.type` + * Add support for `automatically_finalizes_at` on `Invoice` + * Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us` + +## 16.11.0 - 2024-09-12 +* [#2171](https://github.com/stripe/stripe-node/pull/2171) Update generated code + * Add support for new resource `InvoiceRenderingTemplate` + * Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate` + * Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection` + * Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` + * Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` + * Add support for new value `submitted` on enum `Issuing.Card.shipping.status` + * Change `TestHelpers.TestClock.status_details` to be required + +## 16.10.0 - 2024-09-05 +* [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code + * Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter` + * Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional + +## 16.9.0 - 2024-08-29 +* [#2163](https://github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230 + * Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional + * Add support for new value `hr_oib` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `hr_oib` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for new value `issuing_regulatory_reporting` on enums `File.purpose` and `FileListParams.purpose` + * Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose` + * Change `Issuing.Card.shipping.address_validation` to be required + * Add support for `status_details` on `TestHelpers.TestClock` + +## 16.8.0 - 2024-08-15 +* [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code + * Add support for `authorization_code` on `Charge.payment_method_details.card` + * Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` + * Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit` + * Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire` + * Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null` + +## 16.7.0 - 2024-08-08 +* [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code + * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert` + * Add support for `retrieve` method on resource `Tax.Calculation` + * Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline` + * Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present` + * Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` + * Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional + * Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` + * Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]` + +## 16.6.0 - 2024-08-01 +* [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code + * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert` + * Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * āš ļø Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week. + * Add support for new value `billing.alert.triggered` on enum `Event.type` + * Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 16.5.0 - 2024-07-25 +* [#2143](https://github.com/stripe/stripe-node/pull/2143) Update generated code + * Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components` +* [#2140](https://github.com/stripe/stripe-node/pull/2140) Update generated code + * Add support for `update` method on resource `Checkout.Session` + * Add support for `transaction_id` on `Charge.payment_method_details.affirm` + * Add support for `buyer_id` on `Charge.payment_method_details.blik` + * Add support for `authorization_code` on `Charge.payment_method_details.card` + * Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` + * Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present` + * Add support for `case_type` on `Dispute.payment_method_details.card` + * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type` + * Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 16.4.0 - 2024-07-18 +* [#2138](https://github.com/stripe/stripe-node/pull/2138) Update generated code + * Add support for `customer` on `ConfirmationToken.payment_method_preview` + * Add support for new value `issuing_dispute.funds_rescinded` on enum `Event.type` + * Add support for new value `multibanco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` + * Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#2136](https://github.com/stripe/stripe-node/pull/2136) Update changelog + +## 16.3.0 - 2024-07-11 +* [#2130](https://github.com/stripe/stripe-node/pull/2130) Update generated code + * āš ļø Remove support for values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` from enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`. + * āš ļø Remove support for value `payment_intent_fx_quote_invalid` from enum `StripeError.code`. The was mistakenly released last week. + * Add support for `payment_method_options` on `ConfirmationToken` + * Add support for `payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components` + * Add support for `address_validation` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` + * Add support for `shipping` on `Issuing.CardUpdateParams` + * Change `Plan.meter` and `Price.recurring.meter` to be required +* [#2133](https://github.com/stripe/stripe-node/pull/2133) update node versions in CI +* [#2132](https://github.com/stripe/stripe-node/pull/2132) check `hasOwnProperty` when using `for..in` +* [#2048](https://github.com/stripe/stripe-node/pull/2048) Add generateTestHeaderStringAsync function to Webhooks.ts + +## 16.2.0 - 2024-07-05 +* [#2125](https://github.com/stripe/stripe-node/pull/2125) Update generated code + * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice` + * Add support for new value `payment_intent_fx_quote_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `posted_at` on `Tax.TransactionCreateFromCalculationParams` and `Tax.Transaction` + +## 16.1.0 - 2024-06-27 +* [#2120](https://github.com/stripe/stripe-node/pull/2120) Update generated code + * Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` + * Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams` + * Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters` + * Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` + +## 16.0.0 - 2024-06-24 +* [#2113](https://github.com/stripe/stripe-node/pull/2113) + + This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading. + + ### āš ļø Breaking changes + + * Remove the unused resource `PlatformTaxFee` + * Rename `volume_decimal` to `quantity_decimal` on + * `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, + * `Issuing.Transaction.purchase_details.fuel`, + * `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and + * `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` + * `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values + * `other` + * `paused.inactivity` + * `pending.onboarding` + * `pending.review` + * `platform_disabled` + * `platform_paused` + * `rejected.inactivity` + * `rejected.other` + * `rejected.unsupported_business` + * `requirements.fields_needed` + + ### Additions + + * Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` + * Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason` + * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization` + * Add support for new value `ch_uid` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details` + * Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization` + * Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` + * Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version` +* [#2118](https://github.com/stripe/stripe-node/pull/2118) Use worker module in Bun + +## 15.12.0 - 2024-06-17 +* [#2109](https://github.com/stripe/stripe-node/pull/2109) Update generated code + * Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `tax_id_collection` on `PaymentLinkUpdateParams` +* [#2111](https://github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names + * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 + * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2 + * Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 + +## 15.11.0 - 2024-06-13 +* [#2102](https://github.com/stripe/stripe-node/pull/2102) Update generated code + * Add support for `multibanco_payments` and `twint_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `twint` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `multibanco` on `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new values `multibanco` and `twint` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for new value `de_stn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `multibanco` and `twint` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `multibanco` and `twint` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new value `de_stn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `multibanco_display_details` on `PaymentIntent.next_action` + * Add support for `invoice_settings` on `Subscription` + +## 15.10.0 - 2024-06-06 +* [#2101](https://github.com/stripe/stripe-node/pull/2101) Update generated code + * Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, and `us_bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new value `swish` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + +## 15.9.0 - 2024-05-30 +* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code + * Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text` + * Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card` + * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type` + * Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required + * Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 15.8.0 - 2024-05-23 +* [#2092](https://github.com/stripe/stripe-node/pull/2092) Update generated code + * Add support for `external_account_collection` on `AccountSession.components.balances.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.balances.features`, and `AccountSessionCreateParams.components.payouts.features` + * Add support for new value `terminal_reader_invalid_location_for_payment` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `payment_method_remove` on `Checkout.Session.saved_payment_method_options` + +## 15.7.0 - 2024-05-16 +* [#2088](https://github.com/stripe/stripe-node/pull/2088) Update generated code + * Add support for `fee_source` on `ApplicationFee` + * Add support for `net_available` on `Balance.instant_available[]` + * Add support for `preferred_locales` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, and `PaymentMethod.card_present` + * Add support for `klarna` on `Dispute.payment_method_details` + * Add support for new value `klarna` on enum `Dispute.payment_method_details.type` + * Add support for `archived` and `lookup_key` on `Entitlements.FeatureListParams` + * Change `FinancialConnections.SessionCreateParams.filters.countries` to be optional + * Add support for `no_valid_authorization` on `Issuing.Dispute.evidence`, `Issuing.DisputeCreateParams.evidence`, and `Issuing.DisputeUpdateParams.evidence` + * Add support for new value `no_valid_authorization` on enums `Issuing.Dispute.evidence.reason`, `Issuing.DisputeCreateParams.evidence.reason`, and `Issuing.DisputeUpdateParams.evidence.reason` + * Add support for `loss_reason` on `Issuing.Dispute` + * Add support for `routing` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` + * Add support for `application_fee_amount` and `application_fee` on `Payout` + * Add support for `stripe_s700` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` + * Change `Treasury.OutboundPayment.tracking_details` and `Treasury.OutboundTransfer.tracking_details` to be required + +## 15.6.0 - 2024-05-09 +* [#2086](https://github.com/stripe/stripe-node/pull/2086) Update generated code + * Remove support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` +* [#2080](https://github.com/stripe/stripe-node/pull/2080) Update generated code + * Add support for `update` test helper method on resources `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` + * Add support for `allow_redisplay` on `ConfirmationToken.payment_method_preview` and `PaymentMethod` + * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enum `Event.type` + * Add support for `preview_mode` on `InvoiceCreatePreviewParams`, `InvoiceUpcomingLinesParams`, and `InvoiceUpcomingParams` + * Add support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` + * Add support for `tracking_details` on `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` + * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#2085](https://github.com/stripe/stripe-node/pull/2085) Remove unnecessary pointer to description in deprecation message + +## 15.5.0 - 2024-05-02 +* [#2072](https://github.com/stripe/stripe-node/pull/2072) Update generated code + * Add support for new value `shipping_address_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Fix properties incorrectly marked as required in the OpenAPI spec. + * Change `Apps.Secret.payload`, `BillingPortal.Configuration.features.subscription_update.products`, `Charge.refunds`, `ConfirmationToken.payment_method_preview.klarna.dob`, `Identity.VerificationReport.document.dob`, `Identity.VerificationReport.document.expiration_date`, `Identity.VerificationReport.document.number`, `Identity.VerificationReport.id_number.dob`, `Identity.VerificationReport.id_number.id_number`, `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.dob`, `Identity.VerificationSession.verified_outputs.id_number`, `Identity.VerificationSession.verified_outputs`, `Issuing.Dispute.balance_transactions`, `Issuing.Transaction.purchase_details`, `PaymentMethod.klarna.dob`, `Tax.Calculation.line_items`, `Tax.CalculationLineItem.tax_breakdown`, `Tax.Transaction.line_items`, `Treasury.FinancialAccount.financial_addresses[].aba.account_number`, `Treasury.ReceivedCredit.linked_flows.source_flow_details`, `Treasury.Transaction.entries`, `Treasury.Transaction.flow_details`, and `Treasury.TransactionEntry.flow_details` to be optional + * Add support for `paypal` on `Dispute.payment_method_details` + * Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')` + * Change type of `Entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` + * Add support for `payment_method_types` on `PaymentIntentConfirmParams` + * Add support for `ship_from_details` on `Tax.CalculationCreateParams`, `Tax.Calculation`, and `Tax.Transaction` + * Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` +* [#2077](https://github.com/stripe/stripe-node/pull/2077) Deprecate Node methods and params based on OpenAPI spec + - Mark as deprecated the `approve` and `decline` methods on `Issuing.Authorization`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). + - Mark as deprecated the `persistent_token` property on `ConfirmationToken.PaymentMethodPreview.Link`, `PaymentIntent.PaymentMethodOptions.Link`, `PaymentIntentResource.PaymentMethodOptions.Link`, `PaymentMethod.Link.persistent_token`. `SetupIntents.PaymentMethodOptions.Card.Link.persistent_token`, `SetupIntentsResource.persistent_token`. This is a legacy parameter that no longer has any function. +* [#2074](https://github.com/stripe/stripe-node/pull/2074) Add a more explicit comment on `limit` param in `autoPagingToArray` + +## 15.4.0 - 2024-04-25 +* [#2071](https://github.com/stripe/stripe-node/pull/2071) Update generated code + * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay` + * Change type of `Entitlements.ActiveEntitlement.feature` from `string` to `expandable(Entitlements.Feature)` + * Remove support for inadvertently released identity verification features `email` and `phone` on `Identity.VerificationSessionCreateParams.options` and `Identity.VerificationSessionUpdateParams.options` + * Change `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.email`, and `Identity.VerificationSession.verified_outputs.phone` to be required + * Add support for new values `amazon_pay` and `revolut_pay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for `amazon_pay` and `revolut_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details` + * Add support for `ending_before`, `limit`, and `starting_after` on `PaymentMethodConfigurationListParams` + * Add support for `mobilepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +* [#2061](https://github.com/stripe/stripe-node/pull/2061) Make cloudflare package export + +## 15.3.0 - 2024-04-18 +* [#2069](https://github.com/stripe/stripe-node/pull/2069) Update generated code + * Add support for `create_preview` method on resource `Invoice` + * Add support for `payment_method_data` on `Checkout.SessionCreateParams` + * Add support for `saved_payment_method_options` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `mobilepay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for new value `mobilepay` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `allow_redisplay` on `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerListPaymentMethodsParams`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `schedule_details` and `subscription_details` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Add support for new value `other` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` + +## 15.2.0 - 2024-04-16 +* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code + * Add support for new resource `Entitlements.ActiveEntitlementSummary` + * Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required + * Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional + * Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard` + * Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type` + * Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API. + * Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay` + * Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 15.1.0 - 2024-04-11 +* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code + * Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features` + * Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Change `Billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `Billing.MeterEventAdjustmentCreateParams.cancel` to be optional + * Change `Billing.MeterEventAdjustmentCreateParams.type` to be required + * Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `BillingMeterResourceBillingMeterEventAdjustmentCancel | null` + * Add support for `amazon_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for new value `ownership` on enums `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` + * Add support for new value `amazon_pay` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `amazon_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `amazon_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh` + * Add support for new value `ownership` on enums `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` and `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` + +## 15.0.0 - 2024-04-10 +* [#2057](https://github.com/stripe/stripe-node/pull/2057) + + * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading. + + ### āš ļø Breaking changes + + * Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent` + * Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent` + * Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`. + + #### āš ļø Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API + + * Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated. + * `BillingPortal.Configuration.Features` + * `BillingPortal.ConfigurationCreateParams.Features` + * `BillingPortal.ConfigurationUpdateParams.Features` + * Remove the below deprecated values for the type `BalanceTransaction.Type` + * `obligation_inbound` + * `obligation_payout` + * `obligation_payout_failure` + * `'obligation_reversal_outbound'` + * Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway` + * Remove deprecated events + * `invoiceitem.updated` + * `order.created` + * `recipient.created` + * `recipient.deleted` + * `recipient.updated` + * `sku.created` + * `sku.deleted` + * `sku.updated` + * Remove types for the deprecated events + * `InvoiceItemUpdatedEvent` + * `OrderCreatedEvent` + * `RecipientCreatedEvent` + * `RecipientDeletedEvent` + * `RecipientUpdatedEvent` + * `SKUCreatedEvent` + * `SKUDeletedEvent` + * Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior` + * Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData` + * Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent` + * Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration` + * Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory` + * Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure` + * Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead. + +## 14.25.0 - 2024-04-09 +* [#2059](https://github.com/stripe/stripe-node/pull/2059) Update generated code + * Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature` + * Add support for `list` and `retrieve` methods on resource `ActiveEntitlement` + * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature` + * Add support for `controller` on `AccountCreateParams` + * Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller` + * Add support for new value `none` on enum `Account.type` + * Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment` + * Add support for `cancel` and `type` on `Billing.MeterEventAdjustment` + + +## 14.24.0 - 2024-04-04 +* [#2053](https://github.com/stripe/stripe-node/pull/2053) Update generated code + * Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required + * Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string` + * Add support for `subscription_item` on `Discount` + * Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options` + * Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession` + * Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type` + * Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession` + * Change `Identity.VerificationSessionCreateParams.type` to be optional + * Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code` + * Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]` + * Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription` + * Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))` + * Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls` + * Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for `offline` on `SetupAttempt.payment_method_details.card_present` + * Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` + +## 14.23.0 - 2024-03-28 +* [#2046](https://github.com/stripe/stripe-node/pull/2046) Update generated code + * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter` + * Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter` + * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent` + * Add support for `amazon_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new value `verification_failed_representative_authority` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for `destination_on_behalf_of_charge_management` on `AccountSession.components.payment_details.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.payment_details.features`, and `AccountSessionCreateParams.components.payments.features` + * Add support for `mandate` on `Charge.payment_method_details.us_bank_account`, `Treasury.InboundTransfer.origin_payment_method_details.us_bank_account`, `Treasury.OutboundPayment.destination_payment_method_details.us_bank_account`, and `Treasury.OutboundTransfer.destination_payment_method_details.us_bank_account` + * Add support for `second_line` on `Issuing.CardCreateParams` + * Add support for `meter` on `PlanCreateParams`, `Plan`, `Price.recurring`, `PriceCreateParams.recurring`, and `PriceListParams.recurring` +* [#2045](https://github.com/stripe/stripe-node/pull/2045) esbuild test project fixes + +## 14.22.0 - 2024-03-21 +* [#2040](https://github.com/stripe/stripe-node/pull/2040) Update generated code + * Add support for new resources `ConfirmationToken` and `Forwarding.Request` + * Add support for `retrieve` method on resource `ConfirmationToken` + * Add support for `create`, `list`, and `retrieve` methods on resource `Request` + * Add support for `mobilepay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new values `forwarding_api_inactive`, `forwarding_api_invalid_parameter`, `forwarding_api_upstream_connection_error`, and `forwarding_api_upstream_connection_timeout` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `mobilepay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `payment_reference` on `Charge.payment_method_details.us_bank_account` + * Add support for new value `mobilepay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for `confirmation_token` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `SetupIntentConfirmParams`, and `SetupIntentCreateParams` + * Add support for new value `mobilepay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `mobilepay` on enum `PaymentMethod.type` + * Add support for `name` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` + * Add support for `payout` on `Treasury.ReceivedDebit.linked_flows` +* [#2043](https://github.com/stripe/stripe-node/pull/2043) Don't mutate error.type during minification + +## 14.21.0 - 2024-03-14 +* [#2035](https://github.com/stripe/stripe-node/pull/2035) Update generated code + * Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle` + * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign` + * Add support for `list` and `retrieve` methods on resource `PhysicalBundle` + * Add support for `personalization_design` on `Issuing.CardCreateParams`, `Issuing.CardListParams`, `Issuing.CardUpdateParams`, and `Issuing.Card` + * Change type of `SubscriptionCreateParams.application_fee_percent` and `SubscriptionUpdateParams.application_fee_percent` from `number` to `emptyStringable(number)` + * Add support for `sepa_debit` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + +## 14.20.0 - 2024-03-07 +* [#2033](https://github.com/stripe/stripe-node/pull/2033) Update generated code + * Add support for `documents` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Add support for `request_three_d_secure` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card` + * Add support for `created` on `CreditNoteListParams` + * Add support for `sepa_debit` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, and `InvoiceUpdateParams.payment_settings.payment_method_options` + +## 14.19.0 - 2024-02-29 +* [#2029](https://github.com/stripe/stripe-node/pull/2029) Update generated code + * Change `Identity.VerificationReport.type`, `SubscriptionSchedule.default_settings.invoice_settings.account_tax_ids`, `SubscriptionSchedule.phases[].invoice_settings.account_tax_ids`, and `TaxId.owner` to be required + * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number') | null` to `enum('document'|'id_number')` + * Add support for `number` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for `enable_customer_cancellation` on `Terminal.Reader.action.process_payment_intent.process_config`, `Terminal.Reader.action.process_setup_intent.process_config`, `Terminal.ReaderProcessPaymentIntentParams.process_config`, and `Terminal.ReaderProcessSetupIntentParams.process_config` + * Add support for `refund_payment_config` on `Terminal.Reader.action.refund_payment` and `Terminal.ReaderRefundPaymentParams` + * Add support for `payment_method` on `TokenCreateParams.bank_account` +* [#2027](https://github.com/stripe/stripe-node/pull/2027) vscode settings: true -> "explicit" + +## 14.18.0 - 2024-02-22 +* [#2022](https://github.com/stripe/stripe-node/pull/2022) Update generated code + * Add support for `client_reference_id` on `Identity.VerificationReportListParams`, `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` + * Add support for `created` on `Treasury.OutboundPaymentListParams` +* [#2025](https://github.com/stripe/stripe-node/pull/2025) Standardize parameter interface names + - `CapabilityListParams` renamed to `AccountListCapabilitiesParams` + - `CapabilityRetrieveParams` renamed to `AccountRetrieveCapabilityParams` + - `CapabilityUpdateParams` renamed to `AccountUpdateCapabilityParams` + - `CashBalanceRetrieveParams` renamed to `CustomerRetrieveCashBalanceParams` + - `CashBalanceUpdateParams` renamed to `CustomerUpdateCashBalanceParams` + - `CreditNoteLineItemListParams` renamed to `CreditNoteListLineItemsParams` + - `CustomerBalanceTransactionCreateParams` renamed to `CustomerCreateBalanceTransactionParams` + - `CustomerBalanceTransactionListParams` renamed to `CustomerListBalanceTransactionsParams` + - `CustomerBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveBalanceTransactionParams` + - `CustomerBalanceTransactionUpdateParams` renamed to `CustomerUpdateBalanceTransactionParams` + - `CustomerCashBalanceTransactionListParams` renamed to `CustomerListCashBalanceTransactionsParams` + - `CustomerCashBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveCashBalanceTransactionParams` + - `CustomerSourceCreateParams` renamed to `CustomerCreateSourceParams` + - `CustomerSourceDeleteParams` renamed to `CustomerDeleteSourceParams` + - `CustomerSourceListParams` renamed to `CustomerListSourcesParams` + - `CustomerSourceRetrieveParams` renamed to `CustomerRetrieveSourceParams` + - `CustomerSourceUpdateParams` renamed to `CustomerUpdateSourceParams` + - `CustomerSourceVerifyParams` renamed to `CustomerVerifySourceParams` + - `ExternalAccountCreateParams` renamed to `AccountCreateExternalAccountParams` + - `ExternalAccountDeleteParams` renamed to `AccountDeleteExternalAccountParams` + - `ExternalAccountListParams` renamed to `AccountListExternalAccountsParams` + - `ExternalAccountRetrieveParams` renamed to `AccountRetrieveExternalAccountParams` + - `ExternalAccountUpdateParams` renamed to `AccountUpdateExternalAccountParams` + - `FeeRefundCreateParams` renamed to `ApplicationFeeCreateRefundParams` + - `FeeRefundListParams` renamed to `ApplicationFeeListRefundsParams` + - `FeeRefundRetrieveParams` renamed to `ApplicationFeeRetrieveRefundParams` + - `FeeRefundUpdateParams` renamed to `ApplicationFeeUpdateRefundParams` + - `InvoiceLineItemListParams` renamed to `InvoiceListLineItemsParams` + - `InvoiceLineItemUpdateParams` renamed to `InvoiceUpdateLineItemParams` + - `LoginLinkCreateParams` renamed to `AccountCreateLoginLinkParams` + - `PersonCreateParams` renamed to `AccountCreatePersonParams` + - `PersonDeleteParams` renamed to `AccountDeletePersonParams` + - `PersonListParams` renamed to `AccountListPersonsParams` + - `PersonRetrieveParams` renamed to `AccountRetrievePersonParams` + - `PersonUpdateParams` renamed to `AccountUpdatePersonParams` + - `TaxIdCreateParams` renamed to `CustomerCreateTaxIdParams` + - `TaxIdDeleteParams` renamed to `CustomerDeleteTaxIdParams` + - `TaxIdListParams` renamed to `CustomerListTaxIdsParams` + - `TaxIdRetrieveParams` renamed to `CustomerRetrieveTaxIdParams` + - `TransferReversalCreateParams` renamed to `TransferCreateReversalParams` + - `TransferReversalListParams` renamed to `TransferListReversalsParams` + - `TransferReversalRetrieveParams` renamed to `TransferRetrieveReversalParams` + - `TransferReversalUpdateParams` renamed to `TransferUpdateReversalParams` + - `UsageRecordCreateParams` renamed to `SubscriptionItemCreateUsageRecordParams` + - `UsageRecordSummaryListParams` renamed to `SubscriptionItemListUsageRecordSummariesParams` + + Old names will still work but are deprecated and will be removed in future versions. +* [#2021](https://github.com/stripe/stripe-node/pull/2021) Add TaxIds API + * Add support for `create`, `del`, `list`, and `retrieve` methods on resource `TaxId` + +## 14.17.0 - 2024-02-15 +* [#2018](https://github.com/stripe/stripe-node/pull/2018) Update generated code + * Add support for `networks` on `Card`, `PaymentMethodCreateParams.card`, `PaymentMethodUpdateParams.card`, and `TokenCreateParams.card` + * Add support for new value `no_voec` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `no_voec` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type` + * Add support for `display_brand` on `PaymentMethod.card` + * Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 14.16.0 - 2024-02-08 +* [#2012](https://github.com/stripe/stripe-node/pull/2012) Update generated code + * Add support for `invoices` on `Account.settings` and `AccountUpdateParams.settings` + * Add support for new value `velobank` on enums `Charge.payment_method_details.p24.bank`, `PaymentIntentConfirmParams.payment_method_data.p24.bank`, `PaymentIntentCreateParams.payment_method_data.p24.bank`, `PaymentIntentUpdateParams.payment_method_data.p24.bank`, `PaymentMethod.p24.bank`, `PaymentMethodCreateParams.p24.bank`, `SetupIntentConfirmParams.payment_method_data.p24.bank`, `SetupIntentCreateParams.payment_method_data.p24.bank`, and `SetupIntentUpdateParams.payment_method_data.p24.bank` + * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.blik`, `PaymentIntentConfirmParams.payment_method_options.blik`, `PaymentIntentCreateParams.payment_method_options.blik`, and `PaymentIntentUpdateParams.payment_method_options.blik` + * Add support for `require_cvc_recollection` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `account_tax_ids` on `SubscriptionCreateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, `SubscriptionScheduleUpdateParams.phases[].invoice_settings`, and `SubscriptionUpdateParams.invoice_settings` + +## 14.15.0 - 2024-02-05 +* [#2001](https://github.com/stripe/stripe-node/pull/2001) Update generated code + * Add support for `swish` payment method throughout the API + * Add support for `relationship` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, and `TokenCreateParams.account.individual` + * Add support for `jurisdiction_level` on `TaxRate` + * Change type of `Terminal.Reader.status` from `string` to `enum('offline'|'online')` +* [#2009](https://github.com/stripe/stripe-node/pull/2009) Remove https check for *.stripe.com + * Stops throwing exceptions if `protocol: 'http'` is set for requests to `api.stripe.com`. + +## 14.14.0 - 2024-01-25 +* [#1998](https://github.com/stripe/stripe-node/pull/1998) Update generated code + * Add support for `annual_revenue` and `estimated_worker_count` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` + * Add support for new value `registered_charity` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` + * Add support for `collection_options` on `AccountLinkCreateParams` + * Add support for `liability` on `Checkout.Session.automatic_tax`, `Checkout.SessionCreateParams.automatic_tax`, `PaymentLink.automatic_tax`, `PaymentLinkCreateParams.automatic_tax`, `PaymentLinkUpdateParams.automatic_tax`, `Quote.automatic_tax`, `QuoteCreateParams.automatic_tax`, `QuoteUpdateParams.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, `SubscriptionSchedule.phases[].automatic_tax`, `SubscriptionScheduleCreateParams.default_settings.automatic_tax`, `SubscriptionScheduleCreateParams.phases[].automatic_tax`, `SubscriptionScheduleUpdateParams.default_settings.automatic_tax`, and `SubscriptionScheduleUpdateParams.phases[].automatic_tax` + * Add support for `issuer` on `Checkout.Session.invoice_creation.invoice_data`, `Checkout.SessionCreateParams.invoice_creation.invoice_data`, `PaymentLink.invoice_creation.invoice_data`, `PaymentLinkCreateParams.invoice_creation.invoice_data`, `PaymentLinkUpdateParams.invoice_creation.invoice_data`, `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings` + * Add support for `invoice_settings` on `Checkout.SessionCreateParams.subscription_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` + * Add support for new value `challenge` on enums `Invoice.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `Subscription.payment_settings.payment_method_options.card.request_three_d_secure`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure` + * Add support for `promotion_code` on `InvoiceUpcomingLinesParams.discounts[]`, `InvoiceUpcomingLinesParams.invoice_items[].discounts[]`, `InvoiceUpcomingParams.discounts[]`, and `InvoiceUpcomingParams.invoice_items[].discounts[]` + * Add support for `account_type` on `PaymentMethodUpdateParams.us_bank_account` +* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code + * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` + * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required + * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` + * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Add support for `pin` on `Issuing.CardCreateParams` + * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` + * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` +* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding + +## 14.13.0 - 2024-01-18 +* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code + * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` + * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required + * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` + * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Add support for `pin` on `Issuing.CardCreateParams` + * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` + * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` +* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding + +## 14.12.0 - 2024-01-12 +* [#1990](https://github.com/stripe/stripe-node/pull/1990) Update generated code + * Add support for new resource `CustomerSession` + * Add support for `create` method on resource `CustomerSession` + * Remove support for values `obligation_inbound`, `obligation_payout_failure`, `obligation_payout`, and `obligation_reversal_outbound` from enum `BalanceTransaction.type` + * Add support for new values `eps` and `p24` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Remove support for value `obligation` from enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + * Add support for `billing_cycle_anchor_config` on `SubscriptionCreateParams` and `Subscription` + +## 14.11.0 - 2024-01-04 +* [#1985](https://github.com/stripe/stripe-node/pull/1985) Update generated code + * Add support for `retrieve` method on resource `Tax.Registration` + * Change `AccountSession.components.payment_details.features`, `AccountSession.components.payment_details`, `AccountSession.components.payments.features`, `AccountSession.components.payments`, `AccountSession.components.payouts.features`, `AccountSession.components.payouts`, `PaymentLink.inactive_message`, and `PaymentLink.restrictions` to be required + * Change type of `SubscriptionSchedule.default_settings.invoice_settings` from `InvoiceSettingSubscriptionScheduleSetting | null` to `InvoiceSettingSubscriptionScheduleSetting` +* [#1987](https://github.com/stripe/stripe-node/pull/1987) Update docstrings to indicate removal of deprecated event types + +## 14.10.0 - 2023-12-22 +* [#1979](https://github.com/stripe/stripe-node/pull/1979) Update generated code + * Add support for `collection_method` on `Mandate.payment_method_details.us_bank_account` + * Add support for `mandate_options` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` +* [#1976](https://github.com/stripe/stripe-node/pull/1976) Update generated code + * Add support for new resource `FinancialConnections.Transaction` + * Add support for `list` and `retrieve` methods on resource `Transaction` + * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account` + * Add support for `features` on `AccountSessionCreateParams.components.payouts` + * Add support for `edit_payout_schedule`, `instant_payouts`, and `standard_payouts` on `AccountSession.components.payouts.features` + * Change type of `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` from `literal('balances')` to `enum('balances'|'transactions')` + * Add support for new value `financial_connections.account.refreshed_transactions` on enum `Event.type` + * Add support for new value `transactions` on enum `FinancialConnections.AccountRefreshParams.features[]` + * Add support for `subscriptions` and `transaction_refresh` on `FinancialConnections.Account` + * Add support for `next_refresh_available_at` on `FinancialConnections.Account.balance_refresh` + * Add support for new value `transactions` on enums `FinancialConnections.Session.prefetch[]` and `FinancialConnections.SessionCreateParams.prefetch[]` + * Add support for new value `unknown` on enums `Issuing.Authorization.verification_data.authentication_exemption.type` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data.authentication_exemption.type` + * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure`, `PaymentIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentCreateParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentUpdateParams.payment_method_options.card.request_three_d_secure`, `SetupIntent.payment_method_options.card.request_three_d_secure`, `SetupIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `SetupIntentCreateParams.payment_method_options.card.request_three_d_secure`, and `SetupIntentUpdateParams.payment_method_options.card.request_three_d_secure` + * Add support for `revolut_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Change type of `Quote.invoice_settings` from `InvoiceSettingQuoteSetting | null` to `InvoiceSettingQuoteSetting` + * Add support for `destination_details` on `Refund` + * Add support for new value `financial_connections.account.refreshed_transactions` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 14.9.0 - 2023-12-14 +* [#1973](https://github.com/stripe/stripe-node/pull/1973) Add `usage` to X-Stripe-Client-Telemetry +* [#1971](https://github.com/stripe/stripe-node/pull/1971) Update generated code + * Add support for `payment_method_reuse_agreement` on `Checkout.Session.consent_collection`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` + * Add support for `after_submit` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` + * Add support for `created` on `Radar.EarlyFraudWarningListParams` + +## 14.8.0 - 2023-12-07 +* [#1968](https://github.com/stripe/stripe-node/pull/1968) Update generated code + * Add support for `payment_details`, `payments`, and `payouts` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Add support for `features` on `AccountSession.components.account_onboarding` and `AccountSessionCreateParams.components.account_onboarding` + * Add support for new values `customer_tax_location_invalid` and `financial_connections_no_successful_transaction_refresh` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for new values `payment_network_reserve_hold` and `payment_network_reserve_release` on enum `BalanceTransaction.type` + * Change `Climate.Product.metric_tons_available` to be required + * Remove support for value `various` from enum `Climate.Supplier.removal_pathway` + * Remove support for values `challenge_only` and `challenge` from enum `PaymentIntent.payment_method_options.card.request_three_d_secure` + * Add support for `inactive_message` and `restrictions` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for `transfer_group` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` + * Add support for `trial_settings` on `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` + +## 14.7.0 - 2023-11-30 +* [#1965](https://github.com/stripe/stripe-node/pull/1965) Update generated code + * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier` + * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `Order` + * Add support for `list` and `retrieve` methods on resources `Product` and `Supplier` + * Add support for new value `financial_connections_account_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `BalanceTransaction.type` + * Add support for `created` on `Checkout.SessionListParams` + * Add support for `validate_location` on `CustomerCreateParams.tax` and `CustomerUpdateParams.tax` + * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enum `Event.type` + * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure` and `SetupIntent.payment_method_options.card.request_three_d_secure` + * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 14.6.0 - 2023-11-21 +* [#1961](https://github.com/stripe/stripe-node/pull/1961) Update generated code + * Add support for `electronic_commerce_indicator` on `Charge.payment_method_details.card.three_d_secure` and `SetupAttempt.payment_method_details.card.three_d_secure` + * Add support for `exemption_indicator_applied` and `exemption_indicator` on `Charge.payment_method_details.card.three_d_secure` + * Add support for `transaction_id` on `Charge.payment_method_details.card.three_d_secure`, `Issuing.Authorization.network_data`, `Issuing.Transaction.network_data`, and `SetupAttempt.payment_method_details.card.three_d_secure` + * Add support for `offline` on `Charge.payment_method_details.card_present` + * Add support for `system_trace_audit_number` on `Issuing.Authorization.network_data` + * Add support for `network_risk_score` on `Issuing.Authorization.pending_request` and `Issuing.Authorization.request_history[]` + * Add support for `requested_at` on `Issuing.Authorization.request_history[]` + * Add support for `authorization_code` on `Issuing.Transaction.network_data` + * Add support for `three_d_secure` on `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, and `SetupIntentUpdateParams.payment_method_options.card` + +## 14.5.0 - 2023-11-16 +* [#1957](https://github.com/stripe/stripe-node/pull/1957) Update generated code + * Add support for `bacs_debit_payments` on `AccountCreateParams.settings` and `AccountUpdateParams.settings` + * Add support for `service_user_number` on `Account.settings.bacs_debit_payments` + * Change type of `Account.settings.bacs_debit_payments.display_name` from `string` to `string | null` + * Add support for `capture_before` on `Charge.payment_method_details.card` + * Add support for `paypal` on `Checkout.Session.payment_method_options` + * Add support for `tax_amounts` on `CreditNoteCreateParams.lines[]`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]` + * Add support for `network_data` on `Issuing.Transaction` +* [#1960](https://github.com/stripe/stripe-node/pull/1960) Update generated code + * Add support for `status` on `Checkout.SessionListParams` +* [#1958](https://github.com/stripe/stripe-node/pull/1958) Move Webhooks instance to static field +* [#1952](https://github.com/stripe/stripe-node/pull/1952) Use AbortController for native fetch cancellation when available + +## 14.4.0 - 2023-11-09 +* [#1947](https://github.com/stripe/stripe-node/pull/1947) Update generated code + * Add support for new value `terminal_reader_hardware_fault` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Change `Charge.payment_method_details.card.amount_authorized`, `Checkout.Session.payment_method_configuration_details`, `PaymentIntent.latest_charge`, `PaymentIntent.payment_method_configuration_details`, and `SetupIntent.payment_method_configuration_details` to be required + * Change `Product.features[].name` to be optional + * Add support for `metadata` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, and `QuoteUpdateParams.subscription_data` + +## 14.3.0 - 2023-11-02 +* [#1943](https://github.com/stripe/stripe-node/pull/1943) Update generated code + * Add support for new resource `Tax.Registration` + * Add support for `create`, `list`, and `update` methods on resource `Registration` + * Add support for `revolut_pay_payments` on `Account` APIs. + * Add support for new value `token_card_network_invalid` on error code enums. + * Add support for new value `payment_unreconciled` on enum `BalanceTransaction.type` + * Add support for `revolut_pay` throughout the API. + * Change `.paypal.payer_email` to be required in several locations. + * Add support for `aba` and `swift` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` + * Add support for new values `ach`, `domestic_wire_us`, and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` + * Add support for new values `aba` and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` + * Add support for `url` on `Issuing.Authorization.merchant_data`, `Issuing.AuthorizationCreateParams.testHelpers.merchant_data`, `Issuing.Transaction.merchant_data`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.merchant_data`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.merchant_data` + * Add support for `authentication_exemption` and `three_d_secure` on `Issuing.Authorization.verification_data` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data` + * Add support for `description` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` + * Add support for new value `unreconciled_customer_funds` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + +## 14.2.0 - 2023-10-26 +* [#1939](https://github.com/stripe/stripe-node/pull/1939) Update generated code + * Add support for new value `balance_invalid_parameter` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Change `Issuing.Cardholder.individual.card_issuing` to be optional +* [#1940](https://github.com/stripe/stripe-node/pull/1940) Do not require passing apiVersion + +## 14.1.0 - 2023-10-17 +* [#1933](https://github.com/stripe/stripe-node/pull/1933) Update generated code + * Add support for new value `invalid_dob_age_under_minimum` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Change `Checkout.Session.client_secret` and `Checkout.Session.ui_mode` to be required + +## 14.0.0 - 2023-10-16 +* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe` package. +* [#1932](https://github.com/stripe/stripe-node/pull/1932) Update generated code + * Add support for `legal_guardian` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship` + * Add support for new values `invalid_address_highway_contract_box`, `invalid_address_private_mailbox`, `invalid_business_profile_name_denylisted`, `invalid_business_profile_name`, `invalid_company_name_denylisted`, `invalid_dob_age_over_maximum`, `invalid_product_description_length`, `invalid_product_description_url_match`, `invalid_statement_descriptor_business_mismatch`, `invalid_statement_descriptor_denylisted`, `invalid_statement_descriptor_length`, `invalid_statement_descriptor_prefix_denylisted`, `invalid_statement_descriptor_prefix_mismatch`, `invalid_tax_id_format`, `invalid_tax_id`, `invalid_url_denylisted`, `invalid_url_format`, `invalid_url_length`, `invalid_url_web_presence_detected`, `invalid_url_website_business_information_mismatch`, `invalid_url_website_empty`, `invalid_url_website_inaccessible_geoblocked`, `invalid_url_website_inaccessible_password_protected`, `invalid_url_website_inaccessible`, `invalid_url_website_incomplete_cancellation_policy`, `invalid_url_website_incomplete_customer_service_details`, `invalid_url_website_incomplete_legal_restrictions`, `invalid_url_website_incomplete_refund_policy`, `invalid_url_website_incomplete_return_policy`, `invalid_url_website_incomplete_terms_and_conditions`, `invalid_url_website_incomplete_under_construction`, `invalid_url_website_incomplete`, and `invalid_url_website_other` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for `additional_tos_acceptances` on `TokenCreateParams.person` + * Add support for new value `2023-10-16` on enum `WebhookEndpointCreateParams.api_version` + +## 13.11.0 - 2023-10-16 +* [#1924](https://github.com/stripe/stripe-node/pull/1924) Update generated code + * Add support for new values `issuing_token.created` and `issuing_token.updated` on enum `Event.type` + * Add support for new values `issuing_token.created` and `issuing_token.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1926](https://github.com/stripe/stripe-node/pull/1926) Add named unions for all polymorphic types +* [#1921](https://github.com/stripe/stripe-node/pull/1921) Add event types + +## 13.10.0 - 2023-10-11 +* [#1920](https://github.com/stripe/stripe-node/pull/1920) Update generated code + * Add support for `redirect_on_completion`, `return_url`, and `ui_mode` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Change `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.success_url`, `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, and `PaymentLink.custom_fields[].text` to be optional + * Add support for `client_secret` on `Checkout.Session` + * Change type of `Checkout.Session.custom_fields[].dropdown` from `PaymentPagesCheckoutSessionCustomFieldsDropdown | null` to `PaymentPagesCheckoutSessionCustomFieldsDropdown` + * Change type of `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` from `PaymentPagesCheckoutSessionCustomFieldsNumeric | null` to `PaymentPagesCheckoutSessionCustomFieldsNumeric` + * Add support for `postal_code` on `Issuing.Authorization.verification_data` + * Change type of `PaymentLink.custom_fields[].dropdown` from `PaymentLinksResourceCustomFieldsDropdown | null` to `PaymentLinksResourceCustomFieldsDropdown` + * Change type of `PaymentLink.custom_fields[].numeric` and `PaymentLink.custom_fields[].text` from `PaymentLinksResourceCustomFieldsNumeric | null` to `PaymentLinksResourceCustomFieldsNumeric` + * Add support for `offline` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` +* [#1914](https://github.com/stripe/stripe-node/pull/1914) Bump get-func-name from 2.0.0 to 2.0.2 + +## 13.9.0 - 2023-10-05 +* [#1916](https://github.com/stripe/stripe-node/pull/1916) Update generated code + * Add support for new resource `Issuing.Token` + * Add support for `list`, `retrieve`, and `update` methods on resource `Token` + * Add support for `amount_authorized`, `extended_authorization`, `incremental_authorization`, `multicapture`, and `overcapture` on `Charge.payment_method_details.card` + * Add support for `token` on `Issuing.Authorization` and `Issuing.Transaction` + * Add support for `authorization_code` on `Issuing.Authorization.request_history[]` + * Add support for `request_extended_authorization`, `request_multicapture`, and `request_overcapture` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `request_incremental_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `final_capture` on `PaymentIntentCaptureParams` + * Add support for `metadata` on `PaymentLink.payment_intent_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkCreateParams.subscription_data` + * Add support for `statement_descriptor_suffix` and `statement_descriptor` on `PaymentLink.payment_intent_data` and `PaymentLinkCreateParams.payment_intent_data` + * Add support for `payment_intent_data` and `subscription_data` on `PaymentLinkUpdateParams` + +## 13.8.0 - 2023-09-28 +* [#1911](https://github.com/stripe/stripe-node/pull/1911) Update generated code + * Add support for `rendering` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` + * Change `PaymentMethod.us_bank_account.financial_connections_account` and `PaymentMethod.us_bank_account.status_details` to be required + +## 13.7.0 - 2023-09-21 +* [#1907](https://github.com/stripe/stripe-node/pull/1907) Update generated code + * Add support for `terms_of_service_acceptance` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` + +## 13.6.0 - 2023-09-14 +* [#1905](https://github.com/stripe/stripe-node/pull/1905) Update generated code + * Add support for new resource `PaymentMethodConfiguration` + * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration` + * Add support for `payment_method_configuration` on `Checkout.SessionCreateParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` + * Add support for `payment_method_configuration_details` on `Checkout.Session`, `PaymentIntent`, and `SetupIntent` +* [#1897](https://github.com/stripe/stripe-node/pull/1897) Update generated code + * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization` + * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction` + * Add support for new value `stripe_tax_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `nonce` on `EphemeralKeyCreateParams` + * Add support for `cashback_amount` on `Issuing.Authorization.amount_details`, `Issuing.Authorization.pending_request.amount_details`, `Issuing.Authorization.request_history[].amount_details`, and `Issuing.Transaction.amount_details` + * Add support for `serial_number` on `Terminal.ReaderListParams` +* [#1895](https://github.com/stripe/stripe-node/pull/1895) feat: webhook signing Nestjs +* [#1878](https://github.com/stripe/stripe-node/pull/1878) Use src/apiVersion.ts, not API_VERSION as source of truth + +## 13.5.0 - 2023-09-07 +* [#1893](https://github.com/stripe/stripe-node/pull/1893) Update generated code + * Add support for new resource `PaymentMethodDomain` + * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain` + * Add support for new value `n26` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `NTSBDEB1` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Add support for new values `treasury.credit_reversal.created`, `treasury.credit_reversal.posted`, `treasury.debit_reversal.completed`, `treasury.debit_reversal.created`, `treasury.debit_reversal.initial_credit_granted`, `treasury.financial_account.closed`, `treasury.financial_account.created`, `treasury.financial_account.features_status_updated`, `treasury.inbound_transfer.canceled`, `treasury.inbound_transfer.created`, `treasury.inbound_transfer.failed`, `treasury.inbound_transfer.succeeded`, `treasury.outbound_payment.canceled`, `treasury.outbound_payment.created`, `treasury.outbound_payment.expected_arrival_date_updated`, `treasury.outbound_payment.failed`, `treasury.outbound_payment.posted`, `treasury.outbound_payment.returned`, `treasury.outbound_transfer.canceled`, `treasury.outbound_transfer.created`, `treasury.outbound_transfer.expected_arrival_date_updated`, `treasury.outbound_transfer.failed`, `treasury.outbound_transfer.posted`, `treasury.outbound_transfer.returned`, `treasury.received_credit.created`, `treasury.received_credit.failed`, `treasury.received_credit.succeeded`, and `treasury.received_debit.created` on enum `Event.type` + * Remove support for value `invoiceitem.updated` from enum `Event.type` + * Add support for `features` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` + * Remove support for value `invoiceitem.updated` from enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 13.4.0 - 2023-08-31 +* [#1884](https://github.com/stripe/stripe-node/pull/1884) Update generated code + * Add support for new resource `AccountSession` + * Add support for `create` method on resource `AccountSession` + * Add support for new values `obligation_inbound`, `obligation_outbound`, `obligation_payout_failure`, `obligation_payout`, `obligation_reversal_inbound`, and `obligation_reversal_outbound` on enum `BalanceTransaction.type` + * Change type of `Event.type` from `string` to `enum` + * Add support for `application` on `PaymentLink` + * Add support for new value `obligation` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + +## 13.3.0 - 2023-08-24 +* [#1879](https://github.com/stripe/stripe-node/pull/1879) Update generated code + * Add support for `retention` on `BillingPortal.Session.flow.subscription_cancel` and `BillingPortal.SessionCreateParams.flow_data.subscription_cancel` + * Add support for `prefetch` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections`, `FinancialConnections.SessionCreateParams`, `FinancialConnections.Session`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` + * Add support for `payment_method_details` on `Dispute` + * Change type of `PaymentIntentCreateParams.mandate_data` and `SetupIntentCreateParams.mandate_data` from `secret_key_param` to `emptyStringable(secret_key_param)` + * Change type of `PaymentIntentConfirmParams.mandate_data` and `SetupIntentConfirmParams.mandate_data` from `secret_key_param | client_key_param` to `emptyStringable(secret_key_param | client_key_param)` + * Add support for `balance_transaction` on `CustomerCashBalanceTransaction.adjusted_for_overdraft` +* [#1882](https://github.com/stripe/stripe-node/pull/1882) Update v13.0.0 CHANGELOG.md +* [#1880](https://github.com/stripe/stripe-node/pull/1880) Improved `maxNetworkRetries` options JSDoc + +## 13.2.0 - 2023-08-17 +* [#1876](https://github.com/stripe/stripe-node/pull/1876) Update generated code + * Add support for `flat_amount` on `Tax.TransactionCreateReversalParams` + +## 13.1.0 - 2023-08-17 +* [#1875](https://github.com/stripe/stripe-node/pull/1875) Update Typescript types to support version `2023-08-16`. + +## 13.0.0 - 2023-08-16 +* This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-node`. +* More information is available in the [stripe-node v13 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v13) + +"āš ļø" symbol highlights breaking changes. + +* āš ļø[#1803](https://github.com/stripe/stripe-node/pull/1803) Change the default behavior to perform 1 reattempt on retryable request failures (previously the default was 0). +* [#1808](https://github.com/stripe/stripe-node/pull/1808) Allow request-level options to disable retries. +* āš ļøRemove deprecated `del` method on `Subscriptions`. Please use the `cancel` method instead, which was introduced in [v9.14.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#9140---2022-07-18): +* [#1872](https://github.com/stripe/stripe-node/pull/1872) Update generated code + * āš ļøAdd support for new values `verification_directors_mismatch`, `verification_document_directors_mismatch`, `verification_extraneous_directors`, and `verification_missing_directors` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * āš ļøRemove support for values `custom_account_update` and `custom_account_verification` from enum `AccountLinkCreateParams.type` + * These values are not fully operational. Please use `account_update` and `account_onboarding` instead (see [API reference](https://stripe.com/docs/api/account_links/create#create_account_link-type)). + * āš ļøRemove support for `available_on` on `BalanceTransactionListParams` + * Use of this parameter is discouraged. Suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. + * āš ļøRemove support for `alternate_statement_descriptors` and `dispute` on `Charge` + * Use of these fields is discouraged. + * āš ļøRemove support for `destination` on `Charge` + * Please use `transfer_data` or `on_behalf_of` instead. + * āš ļøRemove support for `shipping_rates` on `Checkout.SessionCreateParams` + * Please use `shipping_options` instead. + * āš ļøRemove support for `coupon` and `trial_from_plan` on `Checkout.SessionCreateParams.subscription_data` + * Please [migrate to the Prices API](https://stripe.com/docs/billing/migration/migrating-prices), or suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. + * āš ļøRemove support for value `card_present` from enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * This value was not fully operational. + * āš ļøRemove support for value `charge_refunded` from enum `Dispute.status` + * This value was not fully operational. + * āš ļøRemove support for `blik` on `Mandate.payment_method_details`, `PaymentMethodUpdateParams`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * These fields were mistakenly released. + * āš ļøRemove support for `acss_debit`, `affirm`, `au_becs_debit`, `bacs_debit`, `cashapp`, `sepa_debit`, and `zip` on `PaymentMethodUpdateParams` + * These fields are empty. + * āš ļøRemove support for `country` on `PaymentMethod.link` + * This field was not fully operational. + * āš ļøRemove support for `recurring` on `PriceUpdateParams` + * This property should be set on create only. + * āš ļøRemove support for `attributes`, `caption`, and `deactivate_on` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` + * These fields are not fully operational. + * āš ļøAdd support for new value `2023-08-16` on enum `WebhookEndpointCreateParams.api_version` + +## 12.18.0 - 2023-08-10 +* [#1867](https://github.com/stripe/stripe-node/pull/1867) Update generated code + * Add support for new values `incorporated_partnership` and `unincorporated_partnership` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` + * Add support for new value `payment_reversal` on enum `BalanceTransaction.type` + * Change `Invoice.subscription_details.metadata` and `Invoice.subscription_details` to be required + +## 12.17.0 - 2023-08-03 +* [#1863](https://github.com/stripe/stripe-node/pull/1863) Update generated code + * Change many types from `string` to `emptyStringable(string)` + * Add support for `subscription_details` on `Invoice` + * Add support for `preferred_settlement_speed` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, and `PaymentIntentUpdateParams.payment_method_options.us_bank_account` + * Add support for new values `sepa_debit_fingerprint` and `us_bank_account_fingerprint` on enums `Radar.ValueList.item_type` and `Radar.ValueListCreateParams.item_type` +* [#1866](https://github.com/stripe/stripe-node/pull/1866) Allow monkey patching http / https + +## 12.16.0 - 2023-07-27 +* [#1853](https://github.com/stripe/stripe-node/pull/1853) Update generated code + * Add support for `monthly_estimated_revenue` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` +* [#1859](https://github.com/stripe/stripe-node/pull/1859) Revert "import * as http -> import http from 'http'" + +## 12.15.0 - 2023-07-27 (DEPRECATED āš ļø ) +* This version included a breaking change [#1859](https://github.com/stripe/stripe-node/pull/1859) that we should not have released. It has been deprecated on npmjs.org. Please do not use this version. + +## 12.14.0 - 2023-07-20 +* [#1842](https://github.com/stripe/stripe-node/pull/1842) Update generated code + * Add support for new value `ro_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, and `Tax.Transaction.customer_details.tax_ids[].type` + * Remove support for values `excluded_territory`, `jurisdiction_unsupported`, and `vat_exempt` from enums `Checkout.Session.shipping_cost.taxes[].taxability_reason`, `Checkout.Session.total_details.breakdown.taxes[].taxability_reason`, `CreditNote.shipping_cost.taxes[].taxability_reason`, `Invoice.shipping_cost.taxes[].taxability_reason`, `LineItem.taxes[].taxability_reason`, `Quote.computed.recurring.total_details.breakdown.taxes[].taxability_reason`, `Quote.computed.upfront.total_details.breakdown.taxes[].taxability_reason`, and `Quote.total_details.breakdown.taxes[].taxability_reason` + * Add support for new value `ro_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `Tax.CalculationCreateParams.customer_details.tax_ids[].type` + * Add support for `use_stripe_sdk` on `SetupIntentConfirmParams` and `SetupIntentCreateParams` + * Add support for new value `service_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` +* [#1849](https://github.com/stripe/stripe-node/pull/1849) Changelog: fix delimiterless namespaced param types +* [#1848](https://github.com/stripe/stripe-node/pull/1848) Changelog: `CheckoutSessionCreateParams` -> `Checkout.SessionCreateParams` + +## 12.13.0 - 2023-07-13 +* [#1838](https://github.com/stripe/stripe-node/pull/1838) Update generated code + * Add support for new resource `Tax.Settings` + * Add support for `retrieve` and `update` methods on resource `Settings` + * Add support for new value `invalid_tax_location` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `order_id` on `Charge.payment_method_details.afterpay_clearpay` + * Add support for `allow_redirects` on `PaymentIntent.automatic_payment_methods`, `PaymentIntentCreateParams.automatic_payment_methods`, `SetupIntent.automatic_payment_methods`, and `SetupIntentCreateParams.automatic_payment_methods` + * Add support for new values `amusement_tax` and `communications_tax` on enums `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, and `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type` + * Add support for `product` on `Tax.TransactionLineItem` + * Add support for new value `tax.settings.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 12.12.0 - 2023-07-06 +* [#1831](https://github.com/stripe/stripe-node/pull/1831) Update generated code + * Add support for `numeric` and `text` on `PaymentLink.custom_fields[]` + * Add support for `automatic_tax` on `SubscriptionListParams` + +## 12.11.0 - 2023-06-29 +* [#1823](https://github.com/stripe/stripe-node/pull/1823) Update generated code + * Add support for new value `application_fees_not_allowed` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for new tax IDs `ad_nrt`, `ar_cuit`, `bo_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, and `vn_tin` + * Add support for `effective_at` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` +* [#1828](https://github.com/stripe/stripe-node/pull/1828) Better CryptoProvider error + +## 12.10.0 - 2023-06-22 +* [#1820](https://github.com/stripe/stripe-node/pull/1820) Update generated code + * Add support for `on_behalf_of` on `Mandate` +* [#1817](https://github.com/stripe/stripe-node/pull/1817) Update README.md +* [#1819](https://github.com/stripe/stripe-node/pull/1819) Update generated code + * Release specs are identical. +* [#1813](https://github.com/stripe/stripe-node/pull/1813) Update generated code + * Change type of `Checkout.Session.success_url` from `string` to `string | null` + * Change type of `FileCreateParams.file` from `string` to `file` +* [#1815](https://github.com/stripe/stripe-node/pull/1815) Generate FileCreateParams + +## 12.9.0 - 2023-06-08 +* [#1809](https://github.com/stripe/stripe-node/pull/1809) Update generated code + * Change `Charge.payment_method_details.cashapp.buyer_id`, `Charge.payment_method_details.cashapp.cashtag`, `PaymentMethod.cashapp.buyer_id`, and `PaymentMethod.cashapp.cashtag` to be required + * Add support for `taxability_reason` on `Tax.Calculation.tax_breakdown[]` +* [#1812](https://github.com/stripe/stripe-node/pull/1812) More helpful error when signing secrets contain whitespace + +## 12.8.0 - 2023-06-01 +* [#1799](https://github.com/stripe/stripe-node/pull/1799) Update generated code + * Add support for `numeric` and `text` on `Checkout.SessionCreateParams.custom_fields[]`, `PaymentLinkCreateParams.custom_fields[]`, and `PaymentLinkUpdateParams.custom_fields[]` + * Add support for new values `aba` and `swift` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` + * Add support for new value `us_bank_transfer` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.type`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.type`, `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` + * Add support for `maximum_length` and `minimum_length` on `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` + * Add support for `preferred_locales` on `Issuing.Cardholder`, `Issuing.CardholderCreateParams`, and `Issuing.CardholderUpdateParams` + * Add support for `description`, `iin`, and `issuer` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` + * Add support for `payer_email` on `PaymentMethod.paypal` + +## 12.7.0 - 2023-05-25 +* [#1797](https://github.com/stripe/stripe-node/pull/1797) Update generated code + * Add support for `zip_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Change type of `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` from `string` to `enum` + * Add support for `zip` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `zip` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` + * Add support for new value `zip` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `zip` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `zip` on enum `PaymentMethod.type` + +## 12.6.0 - 2023-05-19 +* [#1787](https://github.com/stripe/stripe-node/pull/1787) Update generated code + * Add support for `subscription_update_confirm` and `subscription_update` on `BillingPortal.Session.flow` and `BillingPortal.SessionCreateParams.flow_data` + * Add support for new values `subscription_update_confirm` and `subscription_update` on enums `BillingPortal.Session.flow.type` and `BillingPortal.SessionCreateParams.flow_data.type` + * Add support for `link` on `Charge.payment_method_details.card.wallet` and `PaymentMethod.card.wallet` + * Add support for `buyer_id` and `cashtag` on `Charge.payment_method_details.cashapp` and `PaymentMethod.cashapp` + * Add support for new values `amusement_tax` and `communications_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + +## 12.5.0 - 2023-05-11 +* [#1785](https://github.com/stripe/stripe-node/pull/1785) Update generated code + * Add support for `paypal` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for `network_token` on `Charge.payment_method_details.card` + * Add support for new value `paypal` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` + * Add support for `taxability_reason` and `taxable_amount` on `Checkout.Session.shipping_cost.taxes[]`, `Checkout.Session.total_details.breakdown.taxes[]`, `CreditNote.shipping_cost.taxes[]`, `CreditNote.tax_amounts[]`, `Invoice.shipping_cost.taxes[]`, `Invoice.total_tax_amounts[]`, `LineItem.taxes[]`, `Quote.computed.recurring.total_details.breakdown.taxes[]`, `Quote.computed.upfront.total_details.breakdown.taxes[]`, and `Quote.total_details.breakdown.taxes[]` + * Add support for new value `paypal` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `paypal` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `paypal` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `eftpos_au` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` + * Add support for new value `paypal` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `brand`, `cardholder_name`, `country`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `last4`, `networks`, and `read_method` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` + * Add support for `preferred_locales` on `PaymentMethod.interac_present` + * Add support for new value `paypal` on enum `PaymentMethod.type` + * Add support for `effective_percentage` on `TaxRate` + * Add support for `gb_bank_transfer` and `jp_bank_transfer` on `CustomerCashBalanceTransaction.Funded.BankTransfer` + +## 12.4.0 - 2023-05-04 +* [#1774](https://github.com/stripe/stripe-node/pull/1774) Update generated code + * Add support for `link` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for `brand`, `country`, `description`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `iin`, `issuer`, `last4`, `network`, and `wallet` on `SetupAttempt.payment_method_details.card` +* [#1782](https://github.com/stripe/stripe-node/pull/1782) Let user supply a timestamp when verifying webhooks + +## 12.3.0 - 2023-04-27 +* [#1770](https://github.com/stripe/stripe-node/pull/1770) Update generated code + * Add support for `billing_cycle_anchor` and `proration_behavior` on `Checkout.SessionCreateParams.subscription_data` + * Add support for `terminal_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` + * Add support for `metadata` on `PaymentIntentCaptureParams` + * Add support for `checks` on `SetupAttempt.payment_method_details.card` + * Add support for `tax_breakdown` on `Tax.Calculation.shipping_cost` and `Tax.Transaction.shipping_cost` + +## 12.2.0 - 2023-04-20 +* [#1759](https://github.com/stripe/stripe-node/pull/1759) Update generated code + * Change `Checkout.Session.currency_conversion` to be required + * Change `Identity.VerificationReport.options` and `Identity.VerificationReport.type` to be optional + * Change type of `Identity.VerificationSession.options` from `VerificationSessionOptions` to `VerificationSessionOptions | null` + * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number')` to `enum('document'|'id_number') | null` +* [#1762](https://github.com/stripe/stripe-node/pull/1762) Add Deno webhook signing example +* [#1761](https://github.com/stripe/stripe-node/pull/1761) Add Deno usage instructions in README + +## 12.1.1 - 2023-04-13 +No product changes. + +## 12.1.0 - 2023-04-13 +* [#1754](https://github.com/stripe/stripe-node/pull/1754) Update generated code + * Add support for new value `REVOIE23` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` +* [#1749](https://github.com/stripe/stripe-node/pull/1749) Type extend and ResourceNamespace better + +## 12.0.0 - 2023-04-06 +* [#1743](https://github.com/stripe/stripe-node/pull/1743) Remove `Stripe.default` and `Stripe.Stripe` +This was added to maintain backwards compatibility during the transition of stripe-node to a dual ES module / CommonJS package, and should not be functionally necessary. +* [#1742](https://github.com/stripe/stripe-node/pull/1743) Pin latest API version as the default + **āš ļø ACTION REQUIRED: the breaking change in this release likely affects you āš ļø** + + In this release, Stripe API Version `2022-11-15` (the latest at time of release) will be sent by default on all requests. + The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). + + To successfully upgrade to stripe-node v12, you must either + + 1. **(Recommended) Upgrade your integration to be compatible with API Version `2022-11-15`.** + + Please read the API Changelog carefully for each API Version from `2022-11-15` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production. + + You can read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more detailed instructions. + 2. **(Alternative option) Specify a version other than `2022-11-15` when initializing `stripe-node`.** + + If you were previously initializing stripe-node without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example: + + ```diff + - const stripe = require('stripe')('sk_test_...'); + + const stripe = require('stripe')('sk_test_...', { + + apiVersion: 'YYYY-MM-DD' // Determine your default version from https://dashboard.stripe.com/developers + + }) + ``` + + If you were already initializing stripe-node with an explicit API Version, upgrading to v12 will not affect your integration. + + Read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more details. + + Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release. + That is, instead of upgrading stripe-node and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-node, you should also upgrade your integration to be compatible with the latest Stripe API version. + +## 11.18.0 - 2023-04-06 +* [#1738](https://github.com/stripe/stripe-node/pull/1738) Update generated code + * Add support for new value `link` on enums `Charge.payment_method_details.card.wallet.type` and `PaymentMethod.card.wallet.type` + * Change `Issuing.CardholderCreateParams.type` to be optional + * Add support for `country` on `PaymentMethod.link` + * Add support for `status_details` on `PaymentMethod.us_bank_account` +* [#1747](https://github.com/stripe/stripe-node/pull/1747) (Typescript) remove deprecated properties + +## 11.17.0 - 2023-03-30 +* [#1734](https://github.com/stripe/stripe-node/pull/1734) Update generated code + * Remove support for `create` method on resource `Tax.Transaction` + * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `createFromCalculation` method. + * Add support for `export_license_id` and `export_purpose_code` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company` + * Remove support for value `deleted` from enum `Invoice.status` + * This is not a breaking change, as `deleted` was never returned or accepted as input. + * Add support for `amount_tip` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` + +## 11.16.0 - 2023-03-23 +* [#1730](https://github.com/stripe/stripe-node/pull/1730) Update generated code + * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction` + * Add support for `create` and `list_line_items` methods on resource `Calculation` + * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction` + * Add support for new value `link` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `currency_conversion` on `Checkout.Session` + * Add support for new value `link` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `automatic_payment_methods` on `SetupIntentCreateParams` and `SetupIntent` +* [#1726](https://github.com/stripe/stripe-node/pull/1726) Add Deno entry point + +## 11.15.0 - 2023-03-16 +* [#1714](https://github.com/stripe/stripe-node/pull/1714) API Updates + * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new value `cashapp` as a new `type` throughout the API. + * Add support for `future_requirements` and `requirements` on `BankAccount` + * Add support for `country` on `Charge.payment_method_details.link` + * Add support for new value `automatic_async` on enums `Checkout.SessionCreateParams.payment_intent_data.capture_method`, `PaymentIntent.capture_method`, `PaymentIntentConfirmParams.capture_method`, `PaymentIntentCreateParams.capture_method`, `PaymentIntentUpdateParams.capture_method`, `PaymentLink.payment_intent_data.capture_method`, and `PaymentLinkCreateParams.payment_intent_data.capture_method` + + * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, + * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` + * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1709](https://github.com/stripe/stripe-node/pull/1709) Add ES module package entry point + * Add support for ES modules by defining a separate ESM entry point. This updates stripe-node to be a [dual CommonJS / ES module package](https://nodejs.org/api/packages.html#dual-commonjses-module-packages). +* [#1704](https://github.com/stripe/stripe-node/pull/1704) Configure 2 TypeScript compile targets for ESM and CJS +* [#1710](https://github.com/stripe/stripe-node/pull/1710) Update generated code (new) + * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `cashapp` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `cashapp` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new value `cashapp` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `cashapp` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `cashapp` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, `PaymentIntentConfirmParams.payment_method_options.affirm`, `PaymentIntentCreateParams.payment_method_options.affirm`, and `PaymentIntentUpdateParams.payment_method_options.affirm` + * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` + * Add support for new value `cashapp` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for new value `cashapp` on enum `PaymentMethodCreateParams.type` + * Add support for new value `cashapp` on enum `PaymentMethod.type` + * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 11.14.0 - 2023-03-09 +* [#1703](https://github.com/stripe/stripe-node/pull/1703) API Updates + * Add support for `card_issuing` on `Issuing.CardholderCreateParams.individual` and `Issuing.CardholderUpdateParams.individual` + * Add support for new value `requirements.past_due` on enum `Issuing.Cardholder.requirements.disabled_reason` + * Add support for new values `individual.card_issuing.user_terms_acceptance.date` and `individual.card_issuing.user_terms_acceptance.ip` on enum `Issuing.Cardholder.requirements.past_due[]` + * Add support for `cancellation_details` on `SubscriptionCancelParams`, `SubscriptionUpdateParams`, and `Subscription` +* [#1701](https://github.com/stripe/stripe-node/pull/1701) Change httpProxy to httpAgent in README example +* [#1695](https://github.com/stripe/stripe-node/pull/1695) Migrate generated files to ES module syntax +* [#1699](https://github.com/stripe/stripe-node/pull/1699) Remove extra test directory + +## 11.13.0 - 2023-03-02 +* [#1696](https://github.com/stripe/stripe-node/pull/1696) API Updates + * Add support for new values `electric_vehicle_charging`, `emergency_services_gcas_visa_use_only`, `government_licensed_horse_dog_racing_us_region_only`, `government_licensed_online_casions_online_gambling_us_region_only`, `government_owned_lotteries_non_us_region`, `government_owned_lotteries_us_region_only`, and `marketplaces` on spending control categories. + * Add support for `reconciliation_status` on `Payout` + * Add support for new value `lease_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + +* [#1689](https://github.com/stripe/stripe-node/pull/1689) Update v11.8.0 changelog with breaking change disclaimer + +## 11.12.0 - 2023-02-23 +* [#1688](https://github.com/stripe/stripe-node/pull/1688) API Updates + * Add support for new value `yoursafe` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `BITSNL2A` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Add support for new value `igst` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` +* [#1687](https://github.com/stripe/stripe-node/pull/1687) Convert TypeScript files to use ES modules + +## 11.11.0 - 2023-02-16 +* [#1681](https://github.com/stripe/stripe-node/pull/1681) API Updates + * Add support for `refund_payment` method on resource `Terminal.Reader` + * Add support for new value `name` on enums `BillingPortal.Configuration.features.customer_update.allowed_updates[]`, `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates[]`, and `BillingPortal.ConfigurationUpdateParams.features.customer_update.allowed_updates[]` + * Add support for `custom_fields` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Change `Subscription.trial_settings.end_behavior` and `Subscription.trial_settings` to be required + * Add support for `interac_present` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` + * Change type of `Terminal.ReaderPresentPaymentMethodParams.testHelpers.type` from `literal('card_present')` to `enum('card_present'|'interac_present')` + * Add support for `refund_payment` on `Terminal.Reader.action` + * Add support for new value `refund_payment` on enum `Terminal.Reader.action.type` +* [#1683](https://github.com/stripe/stripe-node/pull/1683) Add NextJS webhook sample +* [#1685](https://github.com/stripe/stripe-node/pull/1685) Add more webhook parsing checks +* [#1684](https://github.com/stripe/stripe-node/pull/1684) Add infrastructure for mocked tests + +## 11.10.0 - 2023-02-09 +* [#1679](https://github.com/stripe/stripe-node/pull/1679) Enable library to work in worker environments without extra configuration. + +## 11.9.1 - 2023-02-03 +* [#1672](https://github.com/stripe/stripe-node/pull/1672) Update main entrypoint on package.json + +## 11.9.0 - 2023-02-02 +* [#1669](https://github.com/stripe/stripe-node/pull/1669) API Updates + * Add support for `resume` method on resource `Subscription` + * Add support for `payment_link` on `Checkout.SessionListParams` + * Add support for `trial_settings` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` + * Add support for `shipping_cost` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `amount_shipping` on `CreditNote` and `Invoice` + * Add support for `shipping_details` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `subscription_resume_at` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Change `Issuing.CardholderCreateParams.individual.first_name`, `Issuing.CardholderCreateParams.individual.last_name`, `Issuing.CardholderUpdateParams.individual.first_name`, and `Issuing.CardholderUpdateParams.individual.last_name` to be optional + * Change type of `Issuing.Cardholder.individual.first_name` and `Issuing.Cardholder.individual.last_name` from `string` to `string | null` + * Add support for `invoice_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for new value `America/Ciudad_Juarez` on enum `Reporting.ReportRunCreateParams.parameters.timezone` + * Add support for new value `paused` on enum `SubscriptionListParams.status` + * Add support for new value `paused` on enum `Subscription.status` + * Add support for new values `customer.subscription.paused` and `customer.subscription.resumed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + * Add support for new value `funding_reversed` on enum `CustomerCashBalanceTransaction.type` + +* [#1670](https://github.com/stripe/stripe-node/pull/1670) Change default entrypoint to stripe.node +* [#1668](https://github.com/stripe/stripe-node/pull/1668) Use EventTarget in worker / browser runtimes +* [#1667](https://github.com/stripe/stripe-node/pull/1667) fix: added support for TypeScript "NodeNext" module resolution + +## 11.8.0 - 2023-01-26 +* [#1665](https://github.com/stripe/stripe-node/pull/1665) API Updates + * Add support for new value `BE` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, and `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country` + * Add support for new values `cs-CZ`, `el-GR`, `en-CZ`, and `en-GR` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` +* [#1660](https://github.com/stripe/stripe-node/pull/1660) Introduce separate entry point for worker environments + * This is technically a breaking change that explicitly defines package entry points and was mistakenly released in a minor version. If your application previously imported other internal files from stripe-node and this change breaks it, please open an issue detailing your use case. + +## 11.7.0 - 2023-01-19 +* [#1661](https://github.com/stripe/stripe-node/pull/1661) API Updates + * Add support for `verification_session` on `EphemeralKeyCreateParams` + * Add support for new values `refund.created` and `refund.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1647](https://github.com/stripe/stripe-node/pull/1647) Bump json5 from 2.2.1 to 2.2.3 + +## 11.6.0 - 2023-01-05 +* [#1646](https://github.com/stripe/stripe-node/pull/1646) API Updates + * Add support for `card_issuing` on `Issuing.Cardholder.individual` + +## 11.5.0 - 2022-12-22 +* [#1642](https://github.com/stripe/stripe-node/pull/1642) API Updates + * Add support for new value `merchant_default` on enums `CashBalanceUpdateParams.settings.reconciliation_mode`, `CustomerCreateParams.cash_balance.settings.reconciliation_mode`, and `CustomerUpdateParams.cash_balance.settings.reconciliation_mode` + * Add support for `using_merchant_default` on `CashBalance.settings` + * Change `Checkout.SessionCreateParams.cancel_url` to be optional + * Change type of `Checkout.Session.cancel_url` from `string` to `string | null` + +## 11.4.0 - 2022-12-15 +* [#1639](https://github.com/stripe/stripe-node/pull/1639) API Updates + * Add support for new value `invoice_overpaid` on enum `CustomerBalanceTransaction.type` +* [#1637](https://github.com/stripe/stripe-node/pull/1637) Update packages in examples/webhook-signing + +## 11.3.0 - 2022-12-08 +* [#1634](https://github.com/stripe/stripe-node/pull/1634) API Updates + * Change `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` to be optional + +## 11.2.0 - 2022-12-06 +* [#1632](https://github.com/stripe/stripe-node/pull/1632) API Updates + * Add support for `flow_data` on `BillingPortal.SessionCreateParams` + * Add support for `flow` on `BillingPortal.Session` +* [#1631](https://github.com/stripe/stripe-node/pull/1631) API Updates + * Add support for `india_international_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `invoice_creation` on `Checkout.Session` and `Checkout.SessionCreateParams` + * Add support for `invoice` on `Checkout.Session` + * Add support for `metadata` on `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]` +* [#1630](https://github.com/stripe/stripe-node/pull/1630) Remove BASIC_METHODS from TS definitions +* [#1629](https://github.com/stripe/stripe-node/pull/1629) Narrower type for stripe.invoices.retrieveUpcoming() +* [#1627](https://github.com/stripe/stripe-node/pull/1627) remove unneeded IIFE +* [#1625](https://github.com/stripe/stripe-node/pull/1625) Remove API version from the path +* [#1626](https://github.com/stripe/stripe-node/pull/1626) Move child resource method params next to method declarations +* [#1624](https://github.com/stripe/stripe-node/pull/1624) Split resource and service types + +## 11.1.0 - 2022-11-17 +* [#1623](https://github.com/stripe/stripe-node/pull/1623) API Updates + * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code` +* [#1622](https://github.com/stripe/stripe-node/pull/1622) API Updates + * Add support for `custom_text` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code` + + +## 11.0.0 - 2022-11-16 + +This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-11-15 + +"āš ļø" symbol highlights breaking changes. + +* [#1608](https://github.com/stripe/stripe-node/pull/1608) Next major release changes +* [#1619](https://github.com/stripe/stripe-node/pull/1619) Annotate prototypes with types +* [#1612](https://github.com/stripe/stripe-node/pull/1612) Add type information here and there +* [#1615](https://github.com/stripe/stripe-node/pull/1615) API Updates + * āš ļø Remove support for `tos_shown_and_accepted` on `Checkout.SessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked. + +### āš ļø Changed +* Drop support for Node.js 8 and 10. We now support Node.js 12+. ((#1579) +* Change `StripeSignatureVerificationError` to have `header` and `payload` fields instead of `detail`. To access these properties, use `err.header` and `err.payload` instead of `err.detail.header` and `err.detail.payload`. (#1574) + +### āš ļø Removed +* Remove `Orders` resource. (#1580) +* Remove `SKU` resource (#1583) +* Remove deprecated `Checkout.SessionCreateParams.subscription_data.items`. (#1580) +* Remove deprecated configuration setter methods (`setHost`, `setProtocol`, `setPort`, `setApiVersion`, `setApiKey`, `setTimeout`, `setAppInfo`, `setHttpAgent`, `setMaxNetworkRetries`, and `setTelemetryEnabled`). (#1597) + + Use the config object to set these options instead, for example: + ```typescript + const stripe = Stripe('sk_test_...', { + apiVersion: '2019-08-08', + maxNetworkRetries: 1, + httpAgent: new ProxyAgent(process.env.http_proxy), + timeout: 1000, + host: 'api.example.com', + port: 123, + telemetry: true, + }); + ``` +* Remove deprecated basic method definitions. (#1600) + Use basic methods defined on the resource instead. + ```typescript + // Before + basicMethods: true + + // After + create: stripeMethod({ + method: 'POST', + fullPath: '/v1/resource', + }), + list: stripeMethod({ + method: 'GET', + methodType: 'list', + fullPath: '/v1/resource', + }), + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/resource/{id}', + }), + update: stripeMethod({ + method: 'POST', + fullPath: '/v1/resource/{id}', + }), + // Avoid 'delete' keyword in JS + del: stripeMethod({ + method: 'DELETE', + fullPath: '/v1/resource/{id}', + }), + ``` +* Remove deprecated option names. Use the following option names instead (`OLD`->`NEW`): `api_key`->`apiKey`, `idempotency_key`->`idempotencyKey`, `stripe_account`->`stripeAccount`, `stripe_version`->`apiVersion`, `stripeVersion`->`apiVersion`. (#1600) +* Remove `charges` field on `PaymentIntent` and replace it with `latest_charge`. (#1614 ) +* Remove deprecated `amount` field on `Checkout.Session.LineItem`. (#1614 ) +* Remove support for `tos_shown_and_accepted` on `Checkout.Session.PaymentMethodOptions.Paynow`. (#1614 ) + +## 10.17.0 - 2022-11-08 +* [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates + * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `reason_message` on `Issuing.Authorization.request_history[]` + * Add support for new value `webhook_error` on enum `Issuing.Authorization.request_history[].reason` + +## 10.16.0 - 2022-11-03 +* [#1596](https://github.com/stripe/stripe-node/pull/1596) API Updates + * Add support for `on_behalf_of` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription` + * Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]` + +## 10.15.0 - 2022-10-20 +* [#1588](https://github.com/stripe/stripe-node/pull/1588) API Updates + * Add support for new values `jp_trn` and `ke_pin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `jp_trn` and `ke_pin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `tipping` on `Terminal.Reader.action.process_payment_intent.process_config` and `Terminal.ReaderProcessPaymentIntentParams.process_config` +* [#1585](https://github.com/stripe/stripe-node/pull/1585) use native UUID method if available + +## 10.14.0 - 2022-10-13 +* [#1582](https://github.com/stripe/stripe-node/pull/1582) API Updates + * Add support for new values `invalid_representative_country` and `verification_failed_residential_address` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` + * Add support for `request_log_url` on `StripeError` objects + * Add support for `network_data` on `Issuing.Authorization` + * āš ļø Remove `currency`, `description`, `images`, and `name` from `Checkout.SessionCreateParams`. These properties do not work on the latest API version. (fixes #1575) + +## 10.13.0 - 2022-10-06 +* [#1571](https://github.com/stripe/stripe-node/pull/1571) API Updates + * Add support for new value `invalid_dob_age_under_18` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` + * Add support for new value `bank_of_china` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethod.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank` + * Add support for new values `America/Nuuk`, `Europe/Kyiv`, and `Pacific/Kanton` on enum `Reporting.ReportRunCreateParams.parameters.timezone` + * Add support for `klarna` on `SetupAttempt.payment_method_details` +* [#1570](https://github.com/stripe/stripe-node/pull/1570) Update node-fetch to 2.6.7 +* [#1568](https://github.com/stripe/stripe-node/pull/1568) Upgrade dependencies +* [#1567](https://github.com/stripe/stripe-node/pull/1567) Fix release tag calculation + +## 10.12.0 - 2022-09-29 +* [#1564](https://github.com/stripe/stripe-node/pull/1564) API Updates + * Change type of `Charge.payment_method_details.card_present.incremental_authorization_supported` and `Charge.payment_method_details.card_present.overcapture_supported` from `boolean | null` to `boolean` + * Add support for `created` on `Checkout.Session` + * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix` + * Deprecate `Checkout.SessionCreateParams.subscription_data.items` (use the `line_items` param instead). This will be removed in the next major version. +* [#1563](https://github.com/stripe/stripe-node/pull/1563) Migrate other Stripe infrastructure to TS +* [#1562](https://github.com/stripe/stripe-node/pull/1562) Restore lib after generating +* [#1551](https://github.com/stripe/stripe-node/pull/1551) Re-introduce Typescript changes + +## 10.11.0 - 2022-09-22 +* [#1560](https://github.com/stripe/stripe-node/pull/1560) API Updates + * Add support for `terms_of_service` on `Checkout.Session.consent_collection`, `Checkout.Session.consent`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` + * āš ļø Remove support for `plan` on `Checkout.SessionCreateParams.payment_method_options.card.installments`. The property was mistakenly released and never worked. + * Add support for `statement_descriptor` on `PaymentIntentIncrementAuthorizationParams` + * Change `SubscriptionSchedule.phases[].currency` to be required + + +## 10.10.0 - 2022-09-15 +* [#1552](https://github.com/stripe/stripe-node/pull/1552) API Updates + * Add support for `pix` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `pix` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new value `pix` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for `from_invoice` on `InvoiceCreateParams` and `Invoice` + * Add support for `latest_revision` on `Invoice` + * Add support for `amount` on `Issuing.DisputeCreateParams` and `Issuing.DisputeUpdateParams` + * Add support for new value `pix` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for `pix_display_qr_code` on `PaymentIntent.next_action` + * Add support for new value `pix` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for new value `pix` on enum `PaymentMethodCreateParams.type` + * Add support for new value `pix` on enum `PaymentMethod.type` + * Add support for `created` on `Treasury.CreditReversal` and `Treasury.DebitReversal` + +## 10.9.0 - 2022-09-09 +* [#1549](https://github.com/stripe/stripe-node/pull/1549) API Updates + * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` + * Add support for `require_signature` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` + +## 10.8.0 - 2022-09-07 +* [#1544](https://github.com/stripe/stripe-node/pull/1544) API Updates + * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` + +## 10.7.0 - 2022-08-31 +* [#1540](https://github.com/stripe/stripe-node/pull/1540) API Updates + * Add support for new values `de-CH`, `en-CH`, `en-PL`, `en-PT`, `fr-CH`, `it-CH`, `pl-PL`, and `pt-PT` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + * Add support for `description` on `PaymentLink.subscription_data` and `PaymentLinkCreateParams.subscription_data` + +## 10.6.0 - 2022-08-26 +* [#1534](https://github.com/stripe/stripe-node/pull/1534) API Updates + * Change `Account.company.name`, `Charge.refunds`, `PaymentIntent.charges`, `Product.caption`, `Product.statement_descriptor`, `Product.unit_label`, `Terminal.Configuration.tipping.aud.fixed_amounts`, `Terminal.Configuration.tipping.aud.percentages`, `Terminal.Configuration.tipping.cad.fixed_amounts`, `Terminal.Configuration.tipping.cad.percentages`, `Terminal.Configuration.tipping.chf.fixed_amounts`, `Terminal.Configuration.tipping.chf.percentages`, `Terminal.Configuration.tipping.czk.fixed_amounts`, `Terminal.Configuration.tipping.czk.percentages`, `Terminal.Configuration.tipping.dkk.fixed_amounts`, `Terminal.Configuration.tipping.dkk.percentages`, `Terminal.Configuration.tipping.eur.fixed_amounts`, `Terminal.Configuration.tipping.eur.percentages`, `Terminal.Configuration.tipping.gbp.fixed_amounts`, `Terminal.Configuration.tipping.gbp.percentages`, `Terminal.Configuration.tipping.hkd.fixed_amounts`, `Terminal.Configuration.tipping.hkd.percentages`, `Terminal.Configuration.tipping.myr.fixed_amounts`, `Terminal.Configuration.tipping.myr.percentages`, `Terminal.Configuration.tipping.nok.fixed_amounts`, `Terminal.Configuration.tipping.nok.percentages`, `Terminal.Configuration.tipping.nzd.fixed_amounts`, `Terminal.Configuration.tipping.nzd.percentages`, `Terminal.Configuration.tipping.sek.fixed_amounts`, `Terminal.Configuration.tipping.sek.percentages`, `Terminal.Configuration.tipping.sgd.fixed_amounts`, `Terminal.Configuration.tipping.sgd.percentages`, `Terminal.Configuration.tipping.usd.fixed_amounts`, `Terminal.Configuration.tipping.usd.percentages`, `Treasury.FinancialAccount.active_features`, `Treasury.FinancialAccount.pending_features`, `Treasury.FinancialAccount.platform_restrictions`, and `Treasury.FinancialAccount.restricted_features` to be optional + * This is a bug fix. These fields were all actually optional and not guaranteed to be returned by the Stripe API, however the type annotations did not correctly reflect this. + * Fixes https://github.com/stripe/stripe-node/issues/1518. + * Add support for `login_page` on `BillingPortal.Configuration`, `BillingPortal.ConfigurationCreateParams`, and `BillingPortal.ConfigurationUpdateParams` + * Add support for new value `deutsche_bank_ag` on enums `Charge.payment_method_details.eps.bank`, `PaymentIntentConfirmParams.payment_method_data.eps.bank`, `PaymentIntentCreateParams.payment_method_data.eps.bank`, `PaymentIntentUpdateParams.payment_method_data.eps.bank`, `PaymentMethod.eps.bank`, `PaymentMethodCreateParams.eps.bank`, `SetupIntentConfirmParams.payment_method_data.eps.bank`, `SetupIntentCreateParams.payment_method_data.eps.bank`, and `SetupIntentUpdateParams.payment_method_data.eps.bank` + * Add support for `customs` and `phone_number` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` + * Add support for `description` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `QuoteUpdateParams.subscription_data`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, and `SubscriptionScheduleUpdateParams.phases[]` + +* [#1532](https://github.com/stripe/stripe-node/pull/1532) Update coveralls step to run for one node version, remove finish step +* [#1531](https://github.com/stripe/stripe-node/pull/1531) Regen yarn.lock. + +## 10.5.0 - 2022-08-24 +* [#1527](https://github.com/stripe/stripe-node/pull/1527) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests. +* [#1528](https://github.com/stripe/stripe-node/pull/1528) Update README.md to use a new NOTE notation +* [#1526](https://github.com/stripe/stripe-node/pull/1526) Add test coverage using Coveralls + +## 10.4.0 - 2022-08-23 +* [#1520](https://github.com/stripe/stripe-node/pull/1520) Add beta readme.md section +* [#1524](https://github.com/stripe/stripe-node/pull/1524) API Updates + * Change `Terminal.Reader.action` to be required + * Change `Treasury.OutboundTransferCreateParams.destination_payment_method` to be optional + * Change type of `Treasury.OutboundTransfer.destination_payment_method` from `string` to `string | null` + * Change the return type of `Customer.fundCashBalance` test helper from `CustomerBalanceTransaction` to `CustomerCashBalanceTransaction`. + * This would generally be considered a breaking change, but we've worked with all existing users to migrate and are comfortable releasing this as a minor as it is solely a test helper method. This was essentially broken prior to this change. + + +## 10.3.0 - 2022-08-19 +* [#1516](https://github.com/stripe/stripe-node/pull/1516) API Updates + * Add support for new resource `CustomerCashBalanceTransaction` + * Remove support for value `paypal` from enums `Order.payment.settings.payment_method_types[]`, `OrderCreateParams.payment.settings.payment_method_types[]`, and `OrderUpdateParams.payment.settings.payment_method_types[]` + * Add support for `currency` on `PaymentLink` + * Add support for `network` on `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `Subscription.payment_settings.payment_method_options.card`, `SubscriptionCreateParams.payment_settings.payment_method_options.card`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card` + * Change `Subscription.currency` to be required + * Change type of `Topup.source` from `Source` to `Source | null` + * Add support for new value `customer_cash_balance_transaction.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1515](https://github.com/stripe/stripe-node/pull/1515) Add a support section to the readme + +## 10.2.0 - 2022-08-11 +* [#1510](https://github.com/stripe/stripe-node/pull/1510) API Updates + * Add support for `payment_method_collection` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + + +## 10.1.0 - 2022-08-09 +* [#1506](https://github.com/stripe/stripe-node/pull/1506) API Updates + * Add support for `process_config` on `Terminal.Reader.action.process_payment_intent` +* [#1505](https://github.com/stripe/stripe-node/pull/1505) Simplify AddressParam definitions + - Rename `AddressParam` to `ShippingAddressParam`, and change type of `Source.source_order.shipping.address`, `SourceUpdateParams.SourceOrder.Shipping.address`, and `SessionCreateParams.PaymentIntentData.Shipping.address` to `ShippingAddressParam` + - Rename `AccountAddressParam` go `AddressParam`, and change type of `AccountCreateParams.BusinessProfile.support_address`, `AccountCreateParams.Company.address`, `AccountCreateParams.Individual.address `, `AccountCreateParams.Individual.registered_address`, `AccountUpdateParams.BusinessProfile.support_address`, `AccountUpdateParams.Company.address`, `AccountUpdateParams.Individual.address`, `AccountUpdateParams.Individual.registered_address`, `ChargeCreateParams.Shipping.address`, `ChargeUpdateParams.Shipping.address`, `CustomerCreateParams.Shipping.address`, `CustomerUpdateParams.Shipping.address`, `CustomerSourceUpdateParams.Owner.address`, `InvoiceListUpcomingLinesParams.CustomerDetails.Shipping.address`, `InvoiceRetrieveUpcomingParams.CustomerDetails.Shipping.address`, `OrderCreateParams.BillingDetails.address`, `OrderCreateParams.ShippingDetails.address`, `OrderUpdateParams.BillingDetails.address`, `OrderUpdateParams.ShippingDetails.address`, `PaymentIntentCreateParams.Shipping.address`, `PaymentIntentUpdateParams.Shipping.address`, `PaymentIntentConfirmParams.Shipping.address`, `PersonCreateParams.address`, `PersonCreateParams.registered_address`, `PersonUpdateParams.address`, `PersonUpdateParams.registered_address`, `SourceCreateParams.Owner.address`, `SourceUpdateParams.Owner.address`, `TokenCreateParams.Account.Company.address`, `TokenCreateParams.Account.Individual.address`, `TokenCreateParams.Account.Individual.registered_address`, `TokenCreateParams.Person.address`, `TokenCreateParams.Person.registered_address`, and `Terminal.LocationUpdateParams.address` to `AddressParam` +* [#1503](https://github.com/stripe/stripe-node/pull/1503) API Updates + * Add support for `expires_at` on `Apps.Secret` and `Apps.SecretCreateParams` + +## 10.0.0 - 2022-08-02 + +This release includes breaking changes resulting from: + +* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-08-01 +* Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v10. + +"āš ļø" symbol highlights breaking changes. + +* [#1497](https://github.com/stripe/stripe-node/pull/1497) API Updates +* [#1493](https://github.com/stripe/stripe-node/pull/1493) Next major release changes + +### Added +* Add support for new value `invalid_tos_acceptance` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` +* Add support for `shipping_cost` and `shipping_details` on `Checkout.Session` + +### āš ļø Changed +* Change type of `business_profile`, `business_type`, `country`, `default_currency`, and `settings` properties on `Account` resource to be nullable. +* Change type of `currency` property on `Checkout.Session` resource from `string` to `'cad' | 'usd'`. +* Change location of TypeScript definitions for `CreditNoteLineItemListPreviewParams`, `CreditNoteLineItemListPreviewParams.Line`, `CreditNoteLineItemListPreviewParams.Line.Type`, and `CreditNoteLineItemListPreviewParams.Line.Reason` interfaces from `CreditNoteLineItems.d.ts` to `CreditNotes.d.ts`. +* Change type of `address`, `currency`, `delinquent`, `discount`, `invoice_prefix`, `name`, `phone`, and `preferred_locales` properties on `Customer` resource to be nullable. +* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. + +### āš ļø Removed +* Remove for `AlipayAccount`, `DeletedAlipayAccount`, `BitcoinReceiver`, `DeletedBitcoinReceiver`, `BitcoinTransaction`, and `BitcoinTransactionListParams` definitions. +* Remove `AlipayAccount` and `BitcoinReceiver` from `CustomerSource`. +* Remove `Stripe.DeletedAlipayAccount` and `Stripe.DeletedBitcoinReceiver` from possible values of `source` property in `PaymentIntent`. +* Remove `IssuerFraudRecord`, `IssuerFraudRecordRetrieveParams`, `IssuerFraudRecordListParams`, and `IssuerFraudRecordsResource`, definitions. +* Remove `treasury.received_credit.reversed` webhook event constant. Please use `treasury.received_credit.returned` instead. +* Remove `order.payment_failed`, `transfer.failed`, and `transfer.paid`. The events were deprecated. +* Remove `retrieveDetails` method from `Issuing.Card` resource. The method was unsupported. Read more at https://stripe.com/docs/issuing/cards/virtual. +* Remove `Issuing.CardDetails` and `CardRetrieveDetailsParams` definition. +* Remove `IssuerFraudRecords` resource. +* Remove `Recipient` resource and`recipient` property from `Card` resource. +* Remove `InvoiceMarkUncollectibleParams` definition. +* Remove deprecated `Stripe.Errors` and `StripeError` (and derived `StripeCardError`, `StripeInvalidRequestError`, `StripeAPIError`, `StripeAuthenticationError`, `StripePermissionError`, `StripeRateLimitError`, `StripeConnectionError`, `StripeSignatureVerificationError`, `StripeIdempotencyError`, and `StripeInvalidGrantError`) definitions. +* Remove `redirect_url` from `LoginLinks` definition. The property is no longer supported. +* Remove `LineItemListParams` definition. The interface was no longer in use. + +### āš ļø Renamed +* Rename `listUpcomingLineItems` method on `Invoice` resource to `listUpcomingLines`. +* Rename `InvoiceLineItemListUpcomingParams` to `InvoiceListUpcomingLinesParams`. +* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. + +## 9.16.0 - 2022-07-26 +* [#1492](https://github.com/stripe/stripe-node/pull/1492) API Updates + * Add support for new value `exempted` on enums `Charge.payment_method_details.card.three_d_secure.result` and `SetupAttempt.payment_method_details.card.three_d_secure.result` + * Add support for `customer_balance` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for new value `customer_balance` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new values `en-CA` and `fr-CA` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + +## 9.15.0 - 2022-07-25 +* [#1486](https://github.com/stripe/stripe-node/pull/1486) API Updates + * Add support for `installments` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `Invoice.payment_settings.payment_method_options.card`, `InvoiceCreateParams.payment_settings.payment_method_options.card`, and `InvoiceUpdateParams.payment_settings.payment_method_options.card` + * Add support for `default_currency` and `invoice_credit_balance` on `Customer` + * Add support for `currency` on `InvoiceCreateParams` + * Add support for `default_mandate` on `Invoice.payment_settings`, `InvoiceCreateParams.payment_settings`, and `InvoiceUpdateParams.payment_settings` + * Add support for `mandate` on `InvoicePayParams` + * Add support for `product_data` on `OrderCreateParams.line_items[]` and `OrderUpdateParams.line_items[]` + + +## 9.14.0 - 2022-07-18 +* [#1477](https://github.com/stripe/stripe-node/pull/1477) API Updates + * Add support for `blik_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `blik` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Change type of `Checkout.Session.consent_collection.promotions`, `Checkout.SessionCreateParams.consent_collection.promotions`, `PaymentLink.consent_collection.promotions`, and `PaymentLinkCreateParams.consent_collection.promotions` from `literal('auto')` to `enum('auto'|'none')` + * Add support for new value `blik` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new value `blik` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `blik` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `blik` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for new value `blik` on enum `PaymentMethodCreateParams.type` + * Add support for new value `blik` on enum `PaymentMethod.type` + * Add support for `cancel` method on `Subscriptions` resource. This has the same functionality as the `del` method - if you are on a version less than 9.14.0, please use `del`. +* [#1476](https://github.com/stripe/stripe-node/pull/1476) fix: Include trailing slash when passing empty query parameters. +* [#1475](https://github.com/stripe/stripe-node/pull/1475) Move @types/node to devDependencies + +## 9.13.0 - 2022-07-12 +* [#1473](https://github.com/stripe/stripe-node/pull/1473) API Updates + * Add support for `customer_details` on `Checkout.SessionListParams` + * Change `LineItem.amount_discount` and `LineItem.amount_tax` to be required + * Change `Transfer.source_type` to be optional and not nullable +* [#1471](https://github.com/stripe/stripe-node/pull/1471) Update readme to include a note on beta packages + +## 9.12.0 - 2022-07-07 +* [#1468](https://github.com/stripe/stripe-node/pull/1468) API Updates + * Add support for `currency` on `Checkout.SessionCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `PaymentLinkCreateParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `Subscription` + * Add support for `currency_options` on `Checkout.SessionCreateParams.shipping_options[].shipping_rate_data.fixed_amount`, `CouponCreateParams`, `CouponUpdateParams`, `Coupon`, `OrderCreateParams.shipping_cost.shipping_rate_data.fixed_amount`, `OrderUpdateParams.shipping_cost.shipping_rate_data.fixed_amount`, `PriceCreateParams`, `PriceUpdateParams`, `Price`, `ProductCreateParams.default_price_data`, `PromotionCode.restrictions`, `PromotionCodeCreateParams.restrictions`, `ShippingRate.fixed_amount`, and `ShippingRateCreateParams.fixed_amount` + * Add support for `restrictions` on `PromotionCodeUpdateParams` + * Add support for `fixed_amount` and `tax_behavior` on `ShippingRateUpdateParams` +* [#1467](https://github.com/stripe/stripe-node/pull/1467) API Updates + * Add support for `customer` on `Checkout.SessionListParams` and `RefundCreateParams` + * Add support for `currency` and `origin` on `RefundCreateParams` + * Add support for new values `financial_connections.account.created`, `financial_connections.account.deactivated`, `financial_connections.account.disconnected`, `financial_connections.account.reactivated`, and `financial_connections.account.refreshed_balance` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 9.11.0 - 2022-06-29 +* [#1462](https://github.com/stripe/stripe-node/pull/1462) API Updates + * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card` + * Change type of `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` from `literal('card')` to `enum` + * Add support for `hosted_regulatory_receipt_url` on `Treasury.ReceivedCredit` and `Treasury.ReceivedDebit` + +## 9.10.0 - 2022-06-23 +* [#1459](https://github.com/stripe/stripe-node/pull/1459) API Updates + * Add support for `capture_method` on `PaymentIntentConfirmParams` and `PaymentIntentUpdateParams` +* [#1458](https://github.com/stripe/stripe-node/pull/1458) API Updates + * Add support for `promptpay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `promptpay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `promptpay` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `subtotal_excluding_tax` on `CreditNote` and `Invoice` + * Add support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem` + * Add support for new value `promptpay` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for `rendering_options` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for new value `promptpay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for `total_excluding_tax` on `Invoice` + * Add support for `automatic_payment_methods` on `Order.payment.settings` + * Add support for new value `promptpay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for `promptpay_display_qr_code` on `PaymentIntent.next_action` + * Add support for new value `promptpay` on enum `PaymentMethodCreateParams.type` + * Add support for new value `promptpay` on enum `PaymentMethod.type` +* [#1455](https://github.com/stripe/stripe-node/pull/1455) fix: Stop using path.join to create URLs. + +## 9.9.0 - 2022-06-17 +* [#1453](https://github.com/stripe/stripe-node/pull/1453) API Updates + * Add support for `fund_cash_balance` test helper method on resource `Customer` + * Add support for `statement_descriptor_prefix_kana` and `statement_descriptor_prefix_kanji` on `Account.settings.card_payments`, `Account.settings.payments`, `AccountCreateParams.settings.card_payments`, and `AccountUpdateParams.settings.card_payments` + * Add support for `statement_descriptor_suffix_kana` and `statement_descriptor_suffix_kanji` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `total_excluding_tax` on `CreditNote` + * Change type of `CustomerCreateParams.invoice_settings.rendering_options` and `CustomerUpdateParams.invoice_settings.rendering_options` from `rendering_options_param` to `emptyStringable(rendering_options_param)` + * Add support for `rendering_options` on `Customer.invoice_settings` and `Invoice` +* [#1452](https://github.com/stripe/stripe-node/pull/1452) Fix non-conforming changelog entries and port the Makefile fix +* [#1450](https://github.com/stripe/stripe-node/pull/1450) Only publish stable version to the latest tag + +## 9.8.0 - 2022-06-09 +* [#1448](https://github.com/stripe/stripe-node/pull/1448) Add types for extra request options +* [#1446](https://github.com/stripe/stripe-node/pull/1446) API Updates + * Add support for `treasury` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings` + * Add support for `rendering_options` on `CustomerCreateParams.invoice_settings` and `CustomerUpdateParams.invoice_settings` + * Add support for `eu_bank_transfer` on `CustomerCreateFundingInstructionsParams.bank_transfer`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer`, `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer`, `SubscriptionCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer` + * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum('iban'|'sort_code'|'spei'|'zengin')` + * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` from `literal('jp_bank_transfer')` to `enum('eu_bank_transfer'|'gb_bank_transfer'|'jp_bank_transfer'|'mx_bank_transfer')` + * Add support for `iban`, `sort_code`, and `spei` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` + * Add support for new values `bacs`, `fps`, and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` + * Add support for new values `sort_code` and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` + * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum` + * Add support for `custom_unit_amount` on `PriceCreateParams` and `Price` + +## 9.7.0 - 2022-06-08 +* [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates + * Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.SessionCreateParams.payment_method_options` + * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.*` and `Checkout.SessionCreateParams.payment_method_options.*`, + * Change `PaymentMethod.us_bank_account.networks` and `SetupIntent.flow_directions` to be required + * Add support for `attach_to_self` on `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, and `SetupIntentUpdateParams` + * Add support for `flow_directions` on `SetupAttempt`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` + +## 9.6.0 - 2022-06-01 +* [#1439](https://github.com/stripe/stripe-node/pull/1439) API Updates + * Add support for `radar_options` on `ChargeCreateParams`, `Charge`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `account_holder_name`, `account_number`, `account_type`, `bank_code`, `bank_name`, `branch_code`, and `branch_name` on `FundingInstructions.bank_transfer.financial_addresses[].zengin` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin` + * Add support for new values `en-AU` and `en-NZ` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type` and `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type` from `enum` to `literal('jp_bank_transfer')` + * This is technically breaking in Typescript, but now accurately represents the behavior that was allowed by the server. We haven't historically treated breaking Typescript changes as requiring a major. + * Change `PaymentIntent.next_action.display_bank_transfer_instructions.hosted_instructions_url` to be required + * Add support for `network` on `SetupIntent.payment_method_options.card` + * Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` + + +## 9.5.0 - 2022-05-26 +* [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates + * Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` + * Add support for new value `affirm` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions` + * Add support for `id_number_secondary_provided` on `Person` + * Add support for `card_issuing` on `Treasury.FinancialAccountCreateParams.features`, `Treasury.FinancialAccountUpdateFeaturesParams`, and `Treasury.FinancialAccountUpdateParams.features` + +* [#1432](https://github.com/stripe/stripe-node/pull/1432) docs: Update HttpClient documentation to remove experimental status. + +## 9.4.0 - 2022-05-23 +* [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates + * Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + +## 9.3.0 - 2022-05-23 +* [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates + * Add support for new resource `Apps.Secret` + * Add support for `affirm` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `link` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `OrderCreateParams.payment.settings.payment_method_options`, `OrderUpdateParams.payment.settings.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `link` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new values `affirm` and `link` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type` + * Add support for new values `affirm` and `link` on enum `PaymentMethod.type` + +## 9.2.0 - 2022-05-19 +* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates + * Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction` + * Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `Issuing.DisputeCreateParams` + * Add support for `retrieve_payment_method` method on resource `Customer` + * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account` + * Change `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates` to be optional + * Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)` + * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.Session.payment_method_options` + * Add support for `financial_account` on `Issuing.Card` and `Issuing.CardCreateParams` + * Add support for `client_secret` on `Order` + * Add support for `networks` on `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `PaymentMethod.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` + * Add support for `attach_to_self` and `flow_directions` on `SetupIntent` + * Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings` + * Add support for `czk` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` + +## 9.1.0 - 2022-05-11 +* [#1420](https://github.com/stripe/stripe-node/pull/1420) API Updates + * Add support for `description` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` + * Add support for `consent_collection`, `payment_intent_data`, `shipping_options`, `submit_type`, and `tax_id_collection` on `PaymentLinkCreateParams` and `PaymentLink` + * Add support for `customer_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for `metadata` on `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]` + * Add support for new value `billing_portal.session.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 9.0.0 - 2022-05-09 +Major version release - The [migration guide](https://github.com/stripe/stripe-node/wiki/Migration-Guide-for-v9) contains a detailed list of backwards-incompatible changes with upgrade instructions. +(āš ļø = breaking changes): +* āš ļø[#1336](https://github.com/stripe/stripe-node/pull/1336) feat(http-client): retry closed connection errors +* [#1415](https://github.com/stripe/stripe-node/pull/1415) [#1417](https://github.com/stripe/stripe-node/pull/1417) API Updates + * āš ļø Replace the legacy `Order` API with the new `Order` API. + * Resource modified: `Order`. + * New methods: `cancel`, `list_line_items`, `reopen`, and `submit` + * Removed methods: `pay` and `return_order` + * Removed resources: `OrderItem` and `OrderReturn` + * Removed references from other resources: `Charge.order` + * Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem` + * Change type of `Charge.shipping.name`, `Checkout.Session.shipping.name`, `Customer.shipping.name`, `Invoice.customer_shipping.name`, `PaymentIntent.shipping.name`, `ShippingDetails.name`, and `Source.source_order.shipping.name` from `nullable(string)` to `string` + +## 8.222.0 - 2022-05-05 +* [#1414](https://github.com/stripe/stripe-node/pull/1414) API Updates + * Add support for `default_price_data` on `ProductCreateParams` + * Add support for `default_price` on `ProductUpdateParams` and `Product` + * Add support for `instructions_email` on `RefundCreateParams` and `Refund` + + +## 8.221.0 - 2022-05-05 +* [#1413](https://github.com/stripe/stripe-node/pull/1413) API Updates + * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` + * Add support for `financial_connections` on `Checkout.Session.payment_method_options.us_bank_account`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, `SetupIntentUpdateParams.payment_method_options.us_bank_account`, `Subscription.payment_settings.payment_method_options.us_bank_account`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account` + * Add support for `financial_connections_account` on `PaymentIntentConfirmParams.payment_method_data.us_bank_account`, `PaymentIntentCreateParams.payment_method_data.us_bank_account`, `PaymentIntentUpdateParams.payment_method_data.us_bank_account`, `PaymentMethod.us_bank_account`, `PaymentMethodCreateParams.us_bank_account`, `SetupIntentConfirmParams.payment_method_data.us_bank_account`, `SetupIntentCreateParams.payment_method_data.us_bank_account`, and `SetupIntentUpdateParams.payment_method_data.us_bank_account` + +* [#1410](https://github.com/stripe/stripe-node/pull/1410) API Updates + * Add support for `registered_address` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` + * Change type of `PaymentIntent.amount_details.tip.amount` from `nullable(integer)` to `integer` + * Change `PaymentIntent.amount_details.tip.amount` to be optional + * Add support for `payment_method_data` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` +* [#1409](https://github.com/stripe/stripe-node/pull/1409) Update autoPagination tests to be hermetic. +* [#1411](https://github.com/stripe/stripe-node/pull/1411) Enable CI on beta branch + +## 8.220.0 - 2022-05-03 +* [#1407](https://github.com/stripe/stripe-node/pull/1407) API Updates + * Add support for new resource `CashBalance` + * Change type of `BillingPortal.Configuration.application` from `$Application` to `deletable($Application)` + * Add support for `alipay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Change type of `Checkout.SessionCreateParams.payment_method_options.konbini.expires_after_days` from `emptyStringable(integer)` to `integer` + * Add support for new value `eu_oss_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new value `eu_oss_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `cash_balance` on `Customer` + * Add support for `application` on `Invoice`, `Quote`, `SubscriptionSchedule`, and `Subscription` +* [#1403](https://github.com/stripe/stripe-node/pull/1403) Add tests for specifying a custom host on StripeMethod. + +## 8.219.0 - 2022-04-21 +* [#1398](https://github.com/stripe/stripe-node/pull/1398) API Updates + * Add support for `expire` test helper method on resource `Refund` + * Change type of `BillingPortal.Configuration.application` from `string` to `expandable($Application)` + * Change `Issuing.DisputeCreateParams.transaction` to be optional + +## 8.218.0 - 2022-04-18 +* [#1396](https://github.com/stripe/stripe-node/pull/1396) API Updates + * Add support for new resources `FundingInstructions` and `Terminal.Configuration` + * Add support for `create_funding_instructions` method on resource `Customer` + * Add support for new value `customer_balance` as a payment method `type`. + * Add support for `customer_balance` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` + * Add support for `cash_balance` on `CustomerCreateParams` and `CustomerUpdateParams` + * Add support for `amount_details` on `PaymentIntent` + * Add support for `display_bank_transfer_instructions` on `PaymentIntent.next_action` + * Add support for `configuration_overrides` on `Terminal.Location`, `Terminal.LocationCreateParams`, and `Terminal.LocationUpdateParams` + +## 8.217.0 - 2022-04-13 +* [#1395](https://github.com/stripe/stripe-node/pull/1395) API Updates + * Add support for `increment_authorization` method on resource `PaymentIntent` + * Add support for `incremental_authorization_supported` on `Charge.payment_method_details.card_present` + * Add support for `request_incremental_authorization_support` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` + +## 8.216.0 - 2022-04-08 +* [#1391](https://github.com/stripe/stripe-node/pull/1391) API Updates + * Add support for `apply_customer_balance` method on resource `PaymentIntent` + * Add support for new value `cash_balance.funds_available` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 8.215.0 - 2022-04-01 +* [#1389](https://github.com/stripe/stripe-node/pull/1389) API Updates + * Add support for `bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `capture_before` on `Charge.payment_method_details.card_present` + * Add support for `address` and `name` on `Checkout.Session.customer_details` + * Add support for `customer_balance` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + * Add support for new value `customer_balance` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for `request_extended_authorization` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` + * Add support for new values `payment_intent.partially_funded`, `terminal.reader.action_failed`, and `terminal.reader.action_succeeded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +* [#1388](https://github.com/stripe/stripe-node/pull/1388) Stop sending Content-Length header for verbs which don't have bodies. + * Fixes https://github.com/stripe/stripe-node/issues/1360. + +## 8.214.0 - 2022-03-30 +* [#1386](https://github.com/stripe/stripe-node/pull/1386) API Updates + * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader` + * Change `Charge.failure_balance_transaction`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.next_action.verify_with_microdeposits.microdeposit_type`, `SetupIntent.next_action.verify_with_microdeposits.microdeposit_type`, and `Subscription.payment_settings.payment_method_options.us_bank_account` to be required + * Add support for `action` on `Terminal.Reader` + +## 8.213.0 - 2022-03-28 +* [#1383](https://github.com/stripe/stripe-node/pull/1383) API Updates + * Add support for Search API + * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription` +* [#1384](https://github.com/stripe/stripe-node/pull/1384) Bump qs package to latest. + +## 8.212.0 - 2022-03-25 +* [#1381](https://github.com/stripe/stripe-node/pull/1381) API Updates + * Add support for PayNow and US Bank Accounts Debits payments + * **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details)) + * Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details` + * **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type)) + * Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type` + * **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options)) + * Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * Add support for `paynow_display_qr_code` on `PaymentIntent.next_action` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options)) + * Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams` + * **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details)) + * Add support for `us_bank_account` on `SetupAttempt.payment_method_details` + * **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow)) + * Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams` + * Add support for `us_bank_account` on `PaymentMethodUpdateParams` + * Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type` + * **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types)) + * Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `Checkout.SessionCreateParams` + * Add support for new values `paynow` and `us_bank_account` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types)) + * Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` + * **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types)) + * Add support for `us_bank_account` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams` + * **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities)) + * Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams` + * Add support for `failure_balance_transaction` on `Charge` + * Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on + `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options-afterpay_clearpay-capture_method)) + * Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits)) + * Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent` + * Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams` + * Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock)) +* [#1375](https://github.com/stripe/stripe-node/pull/1375) Update error types to be namespaced under Stripe.error +* [#1380](https://github.com/stripe/stripe-node/pull/1380) Force update minimist dependency + +## 8.211.0 - 2022-03-23 +* [#1377](https://github.com/stripe/stripe-node/pull/1377) API Updates + * Add support for `cancel` method on resource `Refund` + * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Change `InvoiceCreateParams.customer` to be optional + * Add support for `test_clock` on `QuoteListParams` + * Add support for new values `test_helpers.test_clock.advancing`, `test_helpers.test_clock.created`, `test_helpers.test_clock.deleted`, `test_helpers.test_clock.internal_failure`, and `test_helpers.test_clock.ready` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 8.210.0 - 2022-03-18 +* [#1372](https://github.com/stripe/stripe-node/pull/1372) API Updates + * Add support for `status` on `Card` + +## 8.209.0 - 2022-03-11 +* [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates + * Add support for `mandate` on `Charge.payment_method_details.card` + * Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card` + * Add support for `card_await_notification` on `PaymentIntent.next_action` + * Add support for `customer_notification` on `PaymentIntent.processing.card` + * Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams` + +* [#1364](https://github.com/stripe/stripe-node/pull/1364) Update search pagination to use page param instead of next_page. + +## 8.208.0 - 2022-03-09 +* [#1366](https://github.com/stripe/stripe-node/pull/1366) API Updates + * Add support for `test_clock` on `CustomerListParams` + * Change `Invoice.test_clock`, `InvoiceItem.test_clock`, `Quote.test_clock`, `Subscription.test_clock`, and `SubscriptionSchedule.test_clock` to be required + +## 8.207.0 - 2022-03-02 +* [#1363](https://github.com/stripe/stripe-node/pull/1363) API Updates + * Add support for new resources `CreditedItems` and `ProrationDetails` + * Add support for `proration_details` on `InvoiceLineItem` + +## 8.206.0 - 2022-03-01 +* [#1361](https://github.com/stripe/stripe-node/pull/1361) [#1362](https://github.com/stripe/stripe-node/pull/1362) API Updates + * Add support for new resource `TestHelpers.TestClock` + * Add support for `test_clock` on `CustomerCreateParams`, `Customer`, `Invoice`, `InvoiceItem`, `QuoteCreateParams`, `Quote`, `Subscription`, and `SubscriptionSchedule` + * Add support for `pending_invoice_items_behavior` on `InvoiceCreateParams` + * Change type of `ProductUpdateParams.url` from `string` to `emptyStringable(string)` + * Add support for `next_action` on `Refund` + +## 8.205.0 - 2022-02-25 +* [#1098](https://github.com/stripe/stripe-node/pull/1098) Typescript: add declaration for `onDone` on `autoPagingEach` +* [#1357](https://github.com/stripe/stripe-node/pull/1357) Properly handle API errors with unknown error types +* [#1359](https://github.com/stripe/stripe-node/pull/1359) API Updates + * Change `BillingPortal.Configuration` `.business_profile.privacy_policy_url` and `.business_profile.terms_of_service_url` to be optional on requests and responses + + * Add support for `konbini_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` + * Add support for `konbini` on `Charge.payment_method_details`, + * Add support for `.payment_method_options.konbini` and `.payment_method_data.konbini` on the `PaymentIntent` API. + * Add support for `.payment_settings.payment_method_options.konbini` on the `Invoice` API. + * Add support for `.payment_method_options.konbini` on the `Subscription` API + * Add support for `.payment_method_options.konbini` on the `Checkout.Session` API + * Add support for `konbini` on the `PaymentMethod` API. + * Add support for `konbini_display_details` on `PaymentIntent.next_action` +* [#1311](https://github.com/stripe/stripe-node/pull/1311) update documentation to use appInfo + +## 8.204.0 - 2022-02-23 +* [#1354](https://github.com/stripe/stripe-node/pull/1354) API Updates + * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.*` + * Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` + * Add support for `object` on `ExternalAccountListParams` (fixes #1351) + +## 8.203.0 - 2022-02-15 +* [#1350](https://github.com/stripe/stripe-node/pull/1350) API Updates + * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent` + * Add support for new value `grabpay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` +* [#1348](https://github.com/stripe/stripe-node/pull/1348) API Updates + * Add support for `pin` on `Issuing.CardUpdateParams` + +## 8.202.0 - 2022-02-03 +* [#1344](https://github.com/stripe/stripe-node/pull/1344) API Updates + * Add support for new value `au_becs_debit` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Change type of `Refund.reason` from `string` to `enum('duplicate'|'expired_uncaptured_charge'|'fraudulent'|'requested_by_customer')` + +## 8.201.0 - 2022-01-28 +* [#1342](https://github.com/stripe/stripe-node/pull/1342) Bump nanoid from 3.1.20 to 3.2.0. +* [#1335](https://github.com/stripe/stripe-node/pull/1335) Fix StripeResource to successfully import TIMEOUT_ERROR_CODE. +* [#1339](https://github.com/stripe/stripe-node/pull/1339) Bump node-fetch from 2.6.2 to 2.6.7 + +## 8.200.0 - 2022-01-25 +* [#1338](https://github.com/stripe/stripe-node/pull/1338) API Updates + * Change `Checkout.Session.payment_link` to be required + * Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink` + * Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + * Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new value `is_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + +* [#1333](https://github.com/stripe/stripe-node/pull/1333) Customer tax_ids is not included by default + +## 8.199.0 - 2022-01-20 +* [#1332](https://github.com/stripe/stripe-node/pull/1332) API Updates + * Add support for new resource `PaymentLink` + * Add support for `payment_link` on `Checkout.Session` + +## 8.198.0 - 2022-01-19 +* [#1331](https://github.com/stripe/stripe-node/pull/1331) API Updates + * Change type of `Charge.status` from `string` to `enum('failed'|'pending'|'succeeded')` + * Add support for `bacs_debit` and `eps` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Add support for `image_url_png` and `image_url_svg` on `PaymentIntent.next_action.wechat_pay_display_qr_code` + +## 8.197.0 - 2022-01-13 +* [#1329](https://github.com/stripe/stripe-node/pull/1329) API Updates + * Add support for `paid_out_of_band` on `Invoice` + +## 8.196.0 - 2022-01-12 +* [#1328](https://github.com/stripe/stripe-node/pull/1328) API Updates + * Add support for `customer_creation` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `fpx` and `grabpay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` +* [#1315](https://github.com/stripe/stripe-node/pull/1315) API Updates + * Add support for `mandate_options` on `SubscriptionCreateParams.payment_settings.payment_method_options.card`, `SubscriptionUpdateParams.payment_settings.payment_method_options.card`, and `Subscription.payment_settings.payment_method_options.card` +* [#1327](https://github.com/stripe/stripe-node/pull/1327) Remove DOM type references. +* [#1325](https://github.com/stripe/stripe-node/pull/1325) Add comment documenting makeRequest#headers type. + +## 8.195.0 - 2021-12-22 +* [#1314](https://github.com/stripe/stripe-node/pull/1314) API Updates + * Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Change type of `PaymentIntent.processing.type` from `string` to `literal('card')`. This is not considered a breaking change as the field was added in the same release. +* [#1313](https://github.com/stripe/stripe-node/pull/1313) API Updates + * Add support for new values `en-FR`, `es-US`, and `fr-FR` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` + * Add support for `boleto` on `SetupAttempt.payment_method_details` + +* [#1312](https://github.com/stripe/stripe-node/pull/1312) API Updates + * Add support for `processing` on `PaymentIntent` + +## 8.194.0 - 2021-12-15 +* [#1309](https://github.com/stripe/stripe-node/pull/1309) API Updates + * Add support for new resource `PaymentIntentTypeSpecificPaymentMethodOptionsClient` + * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, and `PaymentIntent.payment_method_options.card` + +## 8.193.0 - 2021-12-09 +* [#1308](https://github.com/stripe/stripe-node/pull/1308) API Updates + * Add support for `metadata` on `BillingPortal.ConfigurationCreateParams`, `BillingPortal.ConfigurationUpdateParams`, and `BillingPortal.Configuration` + +## 8.192.0 - 2021-12-09 +* [#1307](https://github.com/stripe/stripe-node/pull/1307) API Updates + * Add support for new values `ge_vat` and `ua_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new values `ge_vat` and `ua_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Change type of `PaymentIntentCreateParams.payment_method_data.billing_details.email`, `PaymentIntentUpdateParams.payment_method_data.billing_details.email`, `PaymentIntentConfirmParams.payment_method_data.billing_details.email`, `PaymentMethodCreateParams.billing_details.email`, and `PaymentMethodUpdateParams.billing_details.email` from `string` to `emptyStringable(string)` + * Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Add support for new value `en-IE` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` +* [#1301](https://github.com/stripe/stripe-node/pull/1301) Remove coveralls from package.json +* [#1300](https://github.com/stripe/stripe-node/pull/1300) Fix broken link in docstring + +## 8.191.0 - 2021-11-19 +* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates + * Add support for `wallets` on `Issuing.Card` + +* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates + * Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` + +## 8.190.0 - 2021-11-17 +* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates + * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent` + + +## 8.189.0 - 2021-11-16 +* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates + * Add support for new resource `ShippingRate` + * Add support for `shipping_options` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `shipping_rate` on `Checkout.Session` + +## 8.188.0 - 2021-11-12 +* [#1293](https://github.com/stripe/stripe-node/pull/1293) API Updates + * Add support for new value `agrobank` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, and `PaymentMethod.fpx.bank` + +## 8.187.0 - 2021-11-11 +* [#1292](https://github.com/stripe/stripe-node/pull/1292) API Updates + * Add support for `expire` method on resource `Checkout.Session` + * Add support for `status` on `Checkout.Session` +* [#1288](https://github.com/stripe/stripe-node/pull/1288) Add SubtleCryptoProvider and update Webhooks to allow async crypto. +* [#1291](https://github.com/stripe/stripe-node/pull/1291) Better types in `lib.d.ts` + +## 8.186.1 - 2021-11-04 +* [#1284](https://github.com/stripe/stripe-node/pull/1284) API Updates + * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused. + * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company` + + +## 8.186.0 - 2021-11-01 +* [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates + * Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company` + * Add support for `proof_of_registration` on `AccountUpdateParams.documents` and `AccountCreateParams.documents` + * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account` + +## 8.185.0 - 2021-11-01 +* [#1282](https://github.com/stripe/stripe-node/pull/1282) API Updates + * Change type of `AccountUpdateParams.individual.full_name_aliases`, `AccountCreateParams.individual.full_name_aliases`, `PersonCreateParams.full_name_aliases`, `PersonUpdateParams.full_name_aliases`, `TokenCreateParams.account.individual.full_name_aliases`, and `TokenCreateParams.person.full_name_aliases` from `array(string)` to `emptyStringable(array(string))` + * Add support for new values `en-BE`, `en-ES`, and `en-IT` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` + +## 8.184.0 - 2021-10-20 +* [#1276](https://github.com/stripe/stripe-node/pull/1276) API Updates + * Change `Account.controller.type` to be required + * Add support for `buyer_id` on `Charge.payment_method_details.alipay` +* [#1273](https://github.com/stripe/stripe-node/pull/1273) Add typed createFetchHttpClient function. + +## 8.183.0 - 2021-10-15 +* [#1272](https://github.com/stripe/stripe-node/pull/1272) API Updates + * Change type of `UsageRecordCreateParams.timestamp` from `integer` to `literal('now') | integer` + * Change `UsageRecordCreateParams.timestamp` to be optional + +## 8.182.0 - 2021-10-14 +* [#1271](https://github.com/stripe/stripe-node/pull/1271) API Updates + * Change `Charge.payment_method_details.klarna.payment_method_category`, `Charge.payment_method_details.klarna.preferred_locale`, `Checkout.Session.customer_details.phone`, and `PaymentMethod.klarna.dob` to be required + * Add support for new value `klarna` on enum `Checkout.SessionCreateParams.payment_method_types[]` + +## 8.181.0 - 2021-10-11 +* [#1269](https://github.com/stripe/stripe-node/pull/1269) API Updates + * Add support for `payment_method_category` and `preferred_locale` on `Charge.payment_method_details.klarna` + * Add support for new value `klarna` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for `klarna` on `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` + * Add support for new value `klarna` on enums `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, and `PaymentIntentConfirmParams.payment_method_data.type` + * Add support for new value `klarna` on enum `PaymentMethodCreateParams.type` + * Add support for new value `klarna` on enum `PaymentMethod.type` + +## 8.180.0 - 2021-10-11 +* [#1266](https://github.com/stripe/stripe-node/pull/1266) API Updates + * Add support for `list_payment_methods` method on resource `Customer` + +## 8.179.0 - 2021-10-07 +* [#1265](https://github.com/stripe/stripe-node/pull/1265) API Updates + * Add support for `phone_number_collection` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `phone` on `Checkout.Session.customer_details` + * Change `PaymentMethodListParams.customer` to be optional + * Add support for new value `customer_id` on enums `Radar.ValueListCreateParams.item_type` and `Radar.ValueList.item_type` + * Add support for new value `bbpos_wisepos_e` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` + +## 8.178.0 - 2021-09-29 +* [#1261](https://github.com/stripe/stripe-node/pull/1261) API Updates + * Add support for `klarna_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` + +## 8.177.0 - 2021-09-28 +* [#1257](https://github.com/stripe/stripe-node/pull/1257) API Updates + * Add support for `amount_authorized` and `overcapture_supported` on `Charge.payment_method_details.card_present` +* [#1256](https://github.com/stripe/stripe-node/pull/1256) Bump up ansi-regex version to 5.0.1. +* [#1253](https://github.com/stripe/stripe-node/pull/1253) Update FetchHttpClient to make fetch function optional. + +## 8.176.0 - 2021-09-16 +* [#1248](https://github.com/stripe/stripe-node/pull/1248) API Updates + * Add support for `full_name_aliases` on `AccountUpdateParams.individual`, `AccountCreateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` +* [#1247](https://github.com/stripe/stripe-node/pull/1247) Update README.md +* [#1245](https://github.com/stripe/stripe-node/pull/1245) Fix StripeResource.extend type + +## 8.175.0 - 2021-09-15 +* [#1242](https://github.com/stripe/stripe-node/pull/1242) API Updates + * Change `BillingPortal.Configuration.features.subscription_cancel.cancellation_reason` to be required + * Add support for `default_for` on `Checkout.SessionCreateParams.payment_method_options.acss_debit.mandate_options`, `Checkout.Session.payment_method_options.acss_debit.mandate_options`, `Mandate.payment_method_details.acss_debit`, `SetupIntentCreateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.acss_debit.mandate_options`, and `SetupIntent.payment_method_options.acss_debit.mandate_options` + * Add support for `acss_debit` on `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Invoice.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, `SubscriptionUpdateParams.payment_settings.payment_method_options`, and `Subscription.payment_settings.payment_method_options` + * Add support for new value `acss_debit` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` + * Add support for `livemode` on `Reporting.ReportType` +* [#1235](https://github.com/stripe/stripe-node/pull/1235) API Updates + * Change `Account.future_requirements.alternatives`, `Account.requirements.alternatives`, `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Checkout.Session.after_expiration`, `Checkout.Session.consent`, `Checkout.Session.consent_collection`, `Checkout.Session.expires_at`, `Checkout.Session.recovered_from`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` to be required + * Change type of `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` from `array(AccountRequirementsAlternative)` to `nullable(array(AccountRequirementsAlternative))` + * Add support for new value `rst` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` + * Add support for new value `checkout.session.expired` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1237](https://github.com/stripe/stripe-node/pull/1237) Add a CryptoProvider interface and NodeCryptoProvider implementation. +* [#1236](https://github.com/stripe/stripe-node/pull/1236) Add an HTTP client which uses fetch. + +## 8.174.0 - 2021-09-01 +* [#1231](https://github.com/stripe/stripe-node/pull/1231) API Updates + * Add support for `future_requirements` on `Account`, `Capability`, and `Person` + * Add support for `alternatives` on `Account.requirements`, `Capability.requirements`, and `Person.requirements` + +## 8.173.0 - 2021-09-01 +* [#1230](https://github.com/stripe/stripe-node/pull/1230) [#1228](https://github.com/stripe/stripe-node/pull/1228) API Updates + * Add support for `after_expiration`, `consent_collection`, and `expires_at` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `consent` and `recovered_from` on `Checkout.Session` + +## 8.172.0 - 2021-08-31 +* [#1198](https://github.com/stripe/stripe-node/pull/1198) Add support for paginting SearchResult objects. + +## 8.171.0 - 2021-08-27 +* [#1226](https://github.com/stripe/stripe-node/pull/1226) API Updates + * Add support for `cancellation_reason` on `BillingPortal.ConfigurationCreateParams.features.subscription_cancel`, `BillingPortal.ConfigurationUpdateParams.features.subscription_cancel`, and `BillingPortal.Configuration.features.subscription_cancel` + +## 8.170.0 - 2021-08-19 +* [#1223](https://github.com/stripe/stripe-node/pull/1223) API Updates + * Add support for new value `fil` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` + * Add support for new value `au_arn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new value `au_arn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` +* [#1221](https://github.com/stripe/stripe-node/pull/1221) Add client name property to HttpClient. +* [#1219](https://github.com/stripe/stripe-node/pull/1219) Update user agent computation to handle environments without process. +* [#1218](https://github.com/stripe/stripe-node/pull/1218) Add an HttpClient interface and NodeHttpClient implementation. +* [#1217](https://github.com/stripe/stripe-node/pull/1217) Update nock. + +## 8.169.0 - 2021-08-11 +* [#1215](https://github.com/stripe/stripe-node/pull/1215) API Updates + * Add support for `locale` on `BillingPortal.SessionCreateParams` and `BillingPortal.Session` + * Change type of `Invoice.collection_method` and `Subscription.collection_method` from `nullable(enum('charge_automatically'|'send_invoice'))` to `enum('charge_automatically'|'send_invoice')` + +## 8.168.0 - 2021-08-04 +* [#1211](https://github.com/stripe/stripe-node/pull/1211) API Updates + * Change type of `PaymentIntentCreateParams.payment_method_options.sofort.preferred_language`, `PaymentIntentUpdateParams.payment_method_options.sofort.preferred_language`, and `PaymentIntentConfirmParams.payment_method_options.sofort.preferred_language` from `enum` to `emptyStringable(enum)` + * Change `Price.tax_behavior`, `Product.tax_code`, `Quote.automatic_tax`, and `TaxRate.tax_type` to be required + +## 8.167.0 - 2021-07-28 +* [#1206](https://github.com/stripe/stripe-node/pull/1206) Fix Typescript definition for `StripeResource.LastResponse.headers` +* [#1205](https://github.com/stripe/stripe-node/pull/1205) Prevent concurrent initial `uname` invocations +* [#1199](https://github.com/stripe/stripe-node/pull/1199) Explicitly define basic method specs +* [#1200](https://github.com/stripe/stripe-node/pull/1200) Add support for `fullPath` on method specs + +## 8.166.0 - 2021-07-28 +* [#1203](https://github.com/stripe/stripe-node/pull/1203) API Updates + * Bugfix: add missing autopagination methods to `Quote.listLineItems` and `Quote.listComputedUpfrontLineItems` + * Add support for `account_type` on `BankAccount`, `ExternalAccountUpdateParams`, and `TokenCreateParams.bank_account` + * Add support for `category_code` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` + * Add support for new value `redacted` on enum `Review.closed_reason` + * Remove duplicate type definition for `Account.retrieve`. + * Fix some `attributes` fields mistakenly defined as `Stripe.Metadata` +* [#1097](https://github.com/stripe/stripe-node/pull/1097) fix error arguments + +## 8.165.0 - 2021-07-22 +* [#1197](https://github.com/stripe/stripe-node/pull/1197) API Updates + * Add support for new values `hr`, `ko`, and `vi` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` + * Add support for `payment_settings` on `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` + +## 8.164.0 - 2021-07-20 +* [#1196](https://github.com/stripe/stripe-node/pull/1196) API Updates + * Remove support for values `api_connection_error`, `authentication_error`, and `rate_limit_error` from enums `StripeError.type`, `StripeErrorResponse.error.type`, `Invoice.last_finalization_error.type`, `PaymentIntent.last_payment_error.type`, `SetupAttempt.setup_error.type`, and `SetupIntent.last_setup_error.type` + * Add support for `wallet` on `Issuing.Transaction` + * Add support for `ideal` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + + +## 8.163.0 - 2021-07-15 +* [#1102](https://github.com/stripe/stripe-node/pull/1102), [#1191](https://github.com/stripe/stripe-node/pull/1191) Add support for `stripeAccount` when initializing the client + +## 8.162.0 - 2021-07-14 +* [#1194](https://github.com/stripe/stripe-node/pull/1194) API Updates + * Add support for `quote.accepted`, `quote.canceled`, `quote.created`, and `quote.finalized` events. +* [#1190](https://github.com/stripe/stripe-node/pull/1190) API Updates + * Add support for `list_computed_upfront_line_items` method on resource `Quote` +* [#1192](https://github.com/stripe/stripe-node/pull/1192) Update links to Stripe.js docs + +## 8.161.0 - 2021-07-09 +* [#1188](https://github.com/stripe/stripe-node/pull/1188) API Updates + * Add support for new resource `Quote` + * Add support for `quote` on `Invoice` + * Add support for new value `quote_accept` on enum `Invoice.billing_reason` + * Changed type of `Charge.payment_method_details.card.three_d_secure.result`, `SetupAttempt.payment_method_details.card.three_d_secure.result`, `Charge.payment_method_details.card.three_d_secure.version`, and `SetupAttempt.payment_method_details.card.three_d_secure.version` to be nullable. + +* [#1187](https://github.com/stripe/stripe-node/pull/1187) Bugfix in binary streaming support + +## 8.160.0 - 2021-06-30 +* [#1182](https://github.com/stripe/stripe-node/pull/1182) API Updates + * Add support for new value `boleto` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, and `Invoice.payment_settings.payment_method_types[]`. + +## 8.159.0 - 2021-06-30 +* [#1180](https://github.com/stripe/stripe-node/pull/1180) API Updates + * Add support for `wechat_pay` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` + * Add support for new value `wechat_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentMethodCreateParams.type`, `PaymentMethodListParams.type`, and `PaymentMethod.type` + * Add support for `wechat_pay_display_qr_code`, `wechat_pay_redirect_to_android_app`, and `wechat_pay_redirect_to_ios_app` on `PaymentIntent.next_action` + +## 8.158.0 - 2021-06-29 +* [#1179](https://github.com/stripe/stripe-node/pull/1179) API Updates + * Added support for `boleto_payments` on `Account.capabilities` + * Added support for `boleto` and `oxxo` on `Checkout.SessionCreateParams.payment_method_options` and `Checkout.Session.payment_method_options` + * Added support for `boleto` and `oxxo` as members of the `type` enum inside `Checkout.SessionCreateParams.payment_method_types[]`. + +## 8.157.0 - 2021-06-25 +* [#1177](https://github.com/stripe/stripe-node/pull/1177) API Updates + * Added support for `boleto` on `PaymentMethodCreateParams`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `Charge.payment_method_details` and `PaymentMethod` + * `PaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentCreataParams.payment_method_data.type` and `PaymentMethod.type` added new enum members: `boleto` + * Added support for `boleto_display_details` on `PaymentIntent.next_action` + * `TaxIdCreateParams.type`, `Invoice.customer_tax_ids[].type`, `InvoiceLineItemListUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `CustomerCreateParams.tax_id_data[].type`, `Checkout.Session.customer_details.tax_ids[].type` and `TaxId.type` added new enum members: `il_vat`. +* [#1157](https://github.com/stripe/stripe-node/pull/1157) Add support for streaming requests + +## 8.156.0 - 2021-06-18 +* [#1175](https://github.com/stripe/stripe-node/pull/1175) API Updates + * Add support for new TaxId types: `ca_pst_mb`, `ca_pst_bc`, `ca_gst_hst`, and `ca_pst_sk`. + +## 8.155.0 - 2021-06-16 +* [#1173](https://github.com/stripe/stripe-node/pull/1173) API Updates + * Add support for `url` on Checkout `Session`. + +## 8.154.0 - 2021-06-07 +* [#1170](https://github.com/stripe/stripe-node/pull/1170) API Updates + * Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams` + * Update `Terminal.Reader.location` to be expandable (TypeScript breaking change) + +## 8.153.0 - 2021-06-04 +* [#1168](https://github.com/stripe/stripe-node/pull/1168) API Updates + * Add support for `controller` on `Account`. + +## 8.152.0 - 2021-06-04 +* [#1167](https://github.com/stripe/stripe-node/pull/1167) API Updates + * Add support for new resource `TaxCode`. + * Add support for `tax_code` on `Product`, `ProductCreateParams`, `ProductUpdateParams`, `PriceCreateParams.product_data`, `PlanCreateParams.product`, and Checkout `SessionCreateParams.line_items[].price_data.product_data`. + * Add support for `tax` to `Customer`, `CustomerCreateParams`, `CustomerUpdateParams`. + * Add support for `default_settings[automatic_tax]` and `phases[].automatic_tax` on `SubscriptionSchedule`, `SubscriptionScheduleCreateParams`, and `SubscriptionScheduleUpdateParams`. + * Add support for `automatic_tax` on `Subscription`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`; `Invoice`, `InvoiceCreateParams`, `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`; Checkout `Session` and Checkout `SessionCreateParams`. + * Add support for `tax_behavior` to `Price`, `PriceCreateParams`, `PriceUpdateParams` and to the many Param objects that contain `price_data`: + - `SubscriptionScheduleCreateParams` and `SubscriptionScheduleUpdateParams`, beneath `phases[].add_invoice_items[]` and `phases[].items[]` + - `SubscriptionItemCreateParams` and `SubscriptionItemUpdateParams`, on the top-level + - `SubscriptionCreateParams` create and `UpdateCreateParams`, beneath `items[]` and `add_invoice_items[]` + - `InvoiceItemCreateParams` and `InvoiceItemUpdateParams`, on the top-level + - `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams` beneath `subscription_items[]` and `invoice_items[]`. + - Checkout `SessionCreateParams`, beneath `line_items[]`. + * Add support for `customer_update` to Checkout `SessionCreateParams`. + * Add support for `customer_details` to `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`. + * Add support for `tax_type` to `TaxRate`, `TaxRateCreateParams`, and `TaxRateUpdateParams`. + +## 8.151.0 - 2021-06-02 +* [#1166](https://github.com/stripe/stripe-node/pull/1166) API Updates + * Added support for `llc`, `free_zone_llc`, `free_zone_establishment` and `sole_establishment` to the `structure` enum on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company` and `TokenCreateParams.account.company`. + +## 8.150.0 - 2021-05-26 +* [#1163](https://github.com/stripe/stripe-node/pull/1163) API Updates + * Added support for `documents` on `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` + +## 8.149.0 - 2021-05-19 +* [#1159](https://github.com/stripe/stripe-node/pull/1159) API Updates + * Add support for Identity VerificationSupport and VerificationReport APIs + * Update Typescript for `CouponCreateParams.duration` and `CouponCreateParams.products` to be optional. +* [#1158](https://github.com/stripe/stripe-node/pull/1158) API Updates + * `AccountUpdateParams.business_profile.support_url` and `AccountCreatParams.business_profile.support_url` changed from `string` to `Stripe.Emptyable` + * `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query` + +## 8.148.0 - 2021-05-06 +* [#1154](https://github.com/stripe/stripe-node/pull/1154) API Updates + * Added support for `reference` on `Charge.payment_method_details.afterpay_clearpay` + * Added support for `afterpay_clearpay` on `PaymentIntent.payment_method_options`. + +## 8.147.0 - 2021-05-05 +* [#1153](https://github.com/stripe/stripe-node/pull/1153) API Updates + * Add support for `payment_intent` on `Radar.EarlyFraudWarning` + +## 8.146.0 - 2021-05-04 +* Add support for `card_present` on `PaymentIntent#confirm.payment_method_options`, `PaymentIntent#update.payment_method_options`, `PaymentIntent#create.payment_method_options` and `PaymentIntent.payment_method_options` +* `SubscriptionItem#create.payment_behavior`, `Subscription#update.payment_behavior`, `Subscription#create.payment_behavior` and `SubscriptionItem#update.payment_behavior` added new enum members: `default_incomplete` + +## 8.145.0 - 2021-04-21 +* [#1143](https://github.com/stripe/stripe-node/pull/1143) API Updates + * Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members: + * Add support for `dhl` and `royal_mail` as enum members of `Issuing.Card.shipping.carrier`. +* [#1142](https://github.com/stripe/stripe-node/pull/1142) Improve type definition for for `AccountCreateParams.external_account` + +## 8.144.0 - 2021-04-16 +* [#1140](https://github.com/stripe/stripe-node/pull/1140) API Updates + * Add support for `currency` on `Checkout.Session.PaymentMethodOptions.AcssDebit` + +## 8.143.0 - 2021-04-12 +* [#1139](https://github.com/stripe/stripe-node/pull/1139) API Updates + * Add support for `acss_debit_payments` on `Account.capabilities` + * Add support for `payment_method_options` on `Checkout.Session` + * Add support for `acss_debit` on `SetupIntent.payment_method_options`, `SetupAttempt.payment_method_details`, `PaymentMethod`, `PaymentIntent.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `Mandate.payment_method_details` and `SetupIntent.payment_method_options` + * Add support for `verify_with_microdeposits` on `PaymentIntent.next_action` and `SetupIntent.next_action` + * Add support for `acss_debit` as member of the `type` enum on `PaymentMethod` and `PaymentIntent`, and inside `Checkout.SessionCreateParams.payment_method_types[]`. + +## 8.142.0 - 2021-04-02 +* [#1138](https://github.com/stripe/stripe-node/pull/1138) API Updates + * Add support for `subscription_pause` on `BillingPortal.ConfigurationUpdateParams.features`, `BillingPortal.ConfigurationCreateParams.features` and `BillingPortal.Configuration.features` + +## 8.141.0 - 2021-03-31 +* [#1137](https://github.com/stripe/stripe-node/pull/1137) API Updates + * Add support for `transfer_data` on `SessionCreateParams.subscription_data` +* [#1134](https://github.com/stripe/stripe-node/pull/1134) API Updates + * Added support for `card_issuing` on `AccountUpdateParams.settings` and `Account.settings` + +## 8.140.0 - 2021-03-25 +* [#1133](https://github.com/stripe/stripe-node/pull/1133) API Updates + * `Capability.requirements.errors[].code`, `Account.requirements.errors[].code` and `Person.requirements.errors[].code` added new enum members: `verification_missing_owners, verification_missing_executives and verification_requires_additional_memorandum_of_associations` + * `SessionCreateParams.locale` and `Checkout.Session.locale` added new enum members: `th` + +## 8.139.0 - 2021-03-22 +* [#1132](https://github.com/stripe/stripe-node/pull/1132) API Updates + * Added support for `shipping_rates` on `SessionCreateOptions` + * Added support for `amount_shipping` on `Checkout.SessionTotalDetails` +* [#1131](https://github.com/stripe/stripe-node/pull/1131) types: export StripeRawError type + +## 8.138.0 - 2021-03-10 +* [#1124](https://github.com/stripe/stripe-node/pull/1124) API Updates + * Added support for `BillingPortal.Configuration` API. + * `Terminal.LocationUpdateParams.country` is now optional. + +## 8.137.0 - 2021-02-17 +* [#1123](https://github.com/stripe/stripe-node/pull/1123) API Updates + * Add support for on_behalf_of to Invoice + * Add support for enum member revolut on PaymentIntent.payment_method_data.ideal.bank, PaymentMethod.ideal.bank, Charge.payment_method_details.ideal.bank and SetupAttempt.payment_method_details.ideal.bank + * Added support for enum member REVOLT21 on PaymentMethod.ideal.bic, Charge.payment_method_details.ideal.bic and SetupAttempt.payment_method_details.ideal.bic + +## 8.136.0 - 2021-02-16 +* [#1122](https://github.com/stripe/stripe-node/pull/1122) API Updates + * Add support for `afterpay_clearpay` on `PaymentMethod`, `PaymentIntent.payment_method_data`, and `Charge.payment_method_details`. + * Add support for `afterpay_clearpay` as a payment method type on `PaymentMethod`, `PaymentIntent` and `Checkout.Session` + * Add support for `adjustable_quantity` on `SessionCreateParams.LineItem` + * Add support for `bacs_debit`, `au_becs_debit` and `sepa_debit` on `SetupAttempt.payment_method_details` + +## 8.135.0 - 2021-02-08 +* [#1119](https://github.com/stripe/stripe-node/pull/1119) API Updates + * Add support for `afterpay_clearpay_payments` on `Account.capabilities` + * Add support for `payment_settings` on `Invoice` + +## 8.134.0 - 2021-02-05 +* [#1118](https://github.com/stripe/stripe-node/pull/1118) API Updates + * `LineItem.amount_subtotal` and `LineItem.amount_total` changed from `nullable(integer)` to `integer` + * Improve error message for `EphemeralKeys.create` + +## 8.133.0 - 2021-02-03 +* [#1115](https://github.com/stripe/stripe-node/pull/1115) API Updates + * Added support for `nationality` on `Person`, `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` + * Added `gb_vat` to `TaxId.type` enum. + +## 8.132.0 - 2021-01-21 +* [#1112](https://github.com/stripe/stripe-node/pull/1112) API Updates + * `Issuing.Transaction.type` dropped enum members: 'dispute' + * `LineItem.price` can now be null. + +## 8.131.1 - 2021-01-15 +* [#1104](https://github.com/stripe/stripe-node/pull/1104) Make request timeout errors eligible for retry + +## 8.131.0 - 2021-01-14 +* [#1108](https://github.com/stripe/stripe-node/pull/1108) Multiple API Changes + * Added support for `dynamic_tax_rates` on `Checkout.SessionCreateParams.line_items` + * Added support for `customer_details` on `Checkout.Session` + * Added support for `type` on `Issuing.TransactionListParams` + * Added support for `country` and `state` on `TaxRateUpdateParams`, `TaxRateCreateParams` and `TaxRate` +* [#1107](https://github.com/stripe/stripe-node/pull/1107) More consistent type definitions + +## 8.130.0 - 2021-01-07 +* [#1105](https://github.com/stripe/stripe-node/pull/1105) API Updates + * Added support for `company_registration_verification`, `company_ministerial_decree`, `company_memorandum_of_association`, `company_license` and `company_tax_id_verification` on AccountUpdateParams.documents and AccountCreateParams.documents +* [#1100](https://github.com/stripe/stripe-node/pull/1100) implement/fix reverse iteration when iterating with ending_before +* [#1096](https://github.com/stripe/stripe-node/pull/1096) typo receieved -> received + +## 8.129.0 - 2020-12-15 +* [#1093](https://github.com/stripe/stripe-node/pull/1093) API Updates + * Added support for card_present on SetupAttempt.payment_method_details + +## 8.128.0 - 2020-12-10 +* [#1088](https://github.com/stripe/stripe-node/pull/1088) Multiple API changes + * Add newlines for consistency. + * Prefix deleted references with `Stripe.` for consistency. + * Add support for `bank` on `PaymentMethod[eps]`. + * Add support for `tos_shown_and_accepted` to `payment_method_options[p24]` on `PaymentMethod`. + +## 8.127.0 - 2020-12-03 +* [#1084](https://github.com/stripe/stripe-node/pull/1084) Add support for `documents` on `Account` create and update +* [#1080](https://github.com/stripe/stripe-node/pull/1080) fixed promises example + +## 8.126.0 - 2020-11-24 +* [#1079](https://github.com/stripe/stripe-node/pull/1079) Multiple API changes + * Add support for `account_tax_ids` on `Invoice` + * Add support for `payment_method_options[sepa_debit]` on `PaymentIntent` + +## 8.125.0 - 2020-11-20 +* [#1075](https://github.com/stripe/stripe-node/pull/1075) Add support for `capabilities[grabpay_payments]` on `Account` + +## 8.124.0 - 2020-11-19 +* [#1074](https://github.com/stripe/stripe-node/pull/1074) + * Add support for mandate_options on SetupIntent.payment_method_options.sepa_debit. + * Add support for card_present and interact_present as values for PaymentMethod.type. +* [#1073](https://github.com/stripe/stripe-node/pull/1073) More consistent namespacing for shared types + +## 8.123.0 - 2020-11-18 +* [#1072](https://github.com/stripe/stripe-node/pull/1072) Add support for `grabpay` on `PaymentMethod` + +## 8.122.1 - 2020-11-17 +* Identical to 8.122.0. Published to resolve a release issue. + +## 8.122.0 - 2020-11-17 +* [#1070](https://github.com/stripe/stripe-node/pull/1070) + * Add support for `sepa_debit` on `SetupIntent.PaymentMethodOptions` + * `Invoice.tax_amounts` and `InvoiceLineItem.tax_rates` are no longer nullable + * `Invoice.default_tax_rates` and `InvoiceLineItem.tax_amounts` are no longer nullable + +## 8.121.0 - 2020-11-09 +* [#1064](https://github.com/stripe/stripe-node/pull/1064) Add `invoice.finalization_error` as a `type` on `Event` +* [#1063](https://github.com/stripe/stripe-node/pull/1063) Multiple API changes + * Add support for `last_finalization_error` on `Invoice` + * Add support for deserializing Issuing `Dispute` as a `source` on `BalanceTransaction` + * Add support for `payment_method_type` on `StripeError` used by other API resources + +## 8.120.0 - 2020-11-04 +* [#1061](https://github.com/stripe/stripe-node/pull/1061) Add support for `company[registration_number]` on `Account` + +## 8.119.0 - 2020-10-27 +* [#1056](https://github.com/stripe/stripe-node/pull/1056) Add `payment_method_details[interac_present][preferred_locales]` on `Charge` +* [#1057](https://github.com/stripe/stripe-node/pull/1057) Standardize on CRULD order for method definitions +* [#1055](https://github.com/stripe/stripe-node/pull/1055) Added requirements to README + +## 8.118.0 - 2020-10-26 +* [#1053](https://github.com/stripe/stripe-node/pull/1053) Multiple API changes + * Improving Typescript types for nullable parameters and introduced `Stripe.Emptyable` as a type + * Add support for `payment_method_options[card][cvc_token]` on `PaymentIntent` + * Add support for `cvc_update[cvc]` on `Token` creation +* [#1052](https://github.com/stripe/stripe-node/pull/1052) Add Stripe.Emptyable type definition + +## 8.117.0 - 2020-10-23 +* [#1050](https://github.com/stripe/stripe-node/pull/1050) Add support for passing `p24[bank]` for P24 on `PaymentIntent` or `PaymentMethod` + +## 8.116.0 - 2020-10-22 +* [#1049](https://github.com/stripe/stripe-node/pull/1049) Support passing `tax_rates` when creating invoice items through `Subscription` or `SubscriptionSchedule` + +## 8.115.0 - 2020-10-20 +* [#1048](https://github.com/stripe/stripe-node/pull/1048) Add support for `jp_rn` and `ru_kpp` as a `type` on `TaxId` +* [#1046](https://github.com/stripe/stripe-node/pull/1046) chore: replace recommended extension sublime babel with babel javascript + +## 8.114.0 - 2020-10-15 +* [#1045](https://github.com/stripe/stripe-node/pull/1045) Make `original_payout` and `reversed_by` not optional anymore + +## 8.113.0 - 2020-10-14 +* [#1044](https://github.com/stripe/stripe-node/pull/1044) Add support for `discounts` on `Session.create` + +## 8.112.0 - 2020-10-14 +* [#1042](https://github.com/stripe/stripe-node/pull/1042) Add support for the Payout Reverse API +* [#1041](https://github.com/stripe/stripe-node/pull/1041) Do not mutate user-supplied opts + +## 8.111.0 - 2020-10-12 +* [#1038](https://github.com/stripe/stripe-node/pull/1038) Add support for `description`, `iin` and `issuer` in `payment_method_details[card_present]` and `payment_method_details[interac_present]` on `Charge` + +## 8.110.0 - 2020-10-12 +* [#1035](https://github.com/stripe/stripe-node/pull/1035) Add support for `setup_intent.requires_action` on Event + +## 8.109.0 - 2020-10-09 +* [#1033](https://github.com/stripe/stripe-node/pull/1033) Add support for internal-only `description`, `iin`, and `issuer` for `card_present` and `interac_present` on `Charge.payment_method_details` + +## 8.108.0 - 2020-10-08 +* [#1028](https://github.com/stripe/stripe-node/pull/1028) Add support for `Bancontact/iDEAL/Sofort -> SEPA` + * Add support for `generated_sepa_debit` and `generated_sepa_debit_mandate` on `Charge.payment_method_details.ideal`, `Charge.payment_method_details.bancontact` and `Charge.payment_method_details.sofort` + * Add support for `generated_from` on `PaymentMethod.sepa_debit` + * Add support for `ideal`, `bancontact` and `sofort` on `SetupAttempt.payment_method_details` + +## 8.107.0 - 2020-10-02 +* [#1026](https://github.com/stripe/stripe-node/pull/1026) Add support for `tos_acceptance[service_agreement]` on `Account` +* [#1025](https://github.com/stripe/stripe-node/pull/1025) Add support for new payments capabilities on `Account` + +## 8.106.0 - 2020-09-29 +* [#1024](https://github.com/stripe/stripe-node/pull/1024) Add support for the `SetupAttempt` resource and List API + +## 8.105.0 - 2020-09-29 +* [#1023](https://github.com/stripe/stripe-node/pull/1023) Add support for `contribution` in `reporting_category` on `ReportRun` + +## 8.104.0 - 2020-09-28 +* [#1022](https://github.com/stripe/stripe-node/pull/1022) Add support for `oxxo_payments` capability on `Account` + +## 8.103.0 - 2020-09-28 +* [#1021](https://github.com/stripe/stripe-node/pull/1021) Add VERSION constant to instantiated Stripe client. + +## 8.102.0 - 2020-09-25 +* [#1019](https://github.com/stripe/stripe-node/pull/1019) Add support for `oxxo` as a valid `type` on the List PaymentMethod API + +## 8.101.0 - 2020-09-25 +* [#1018](https://github.com/stripe/stripe-node/pull/1018) More idiomatic types + +## 8.100.0 - 2020-09-24 +* [#1016](https://github.com/stripe/stripe-node/pull/1016) Multiple API changes + * Add support for OXXO on `PaymentMethod` and `PaymentIntent` + * Add support for `contribution` on `BalanceTransaction` + +## 8.99.0 - 2020-09-24 +* [#1011](https://github.com/stripe/stripe-node/pull/1011) Add type definition for Stripe.StripeResource + +## 8.98.0 - 2020-09-23 +* [#1014](https://github.com/stripe/stripe-node/pull/1014) Multiple API changes + * Add support for `issuing_dispute.closed` and `issuing_dispute.submitted` events + * Add support for `instant_available` on `Balance` + +## 8.97.0 - 2020-09-21 +* [#1012](https://github.com/stripe/stripe-node/pull/1012) Multiple API changes + * `metadata` is now always nullable on all resources + * Add support for `amount_captured` on `Charge` + * Add `checkout_session` on `Discount` + +## 8.96.0 - 2020-09-13 +* [#1003](https://github.com/stripe/stripe-node/pull/1003) Add support for `promotion_code.created` and `promotion_code.updated` on `Event` + +## 8.95.0 - 2020-09-10 +* [#999](https://github.com/stripe/stripe-node/pull/999) Add support for SEPA debit on Checkout + +## 8.94.0 - 2020-09-09 +* [#998](https://github.com/stripe/stripe-node/pull/998) Multiple API changes + * Add support for `sofort` as a `type` on the List PaymentMethods API + * Add back support for `invoice.payment_succeeded` + +## 8.93.0 - 2020-09-08 +* [#995](https://github.com/stripe/stripe-node/pull/995) Add support for Sofort on `PaymentMethod` and `PaymentIntent` + +## 8.92.0 - 2020-09-02 +* [#993](https://github.com/stripe/stripe-node/pull/993) Multiple API changes + * Add support for the Issuing `Dispute` submit API + * Add support for evidence details on Issuing `Dispute` creation, update and the resource. + * Add `available_payout_methods` on `BankAccount` + * Add `payment_status` on Checkout `Session` + +## 8.91.0 - 2020-08-31 +* [#992](https://github.com/stripe/stripe-node/pull/992) Add support for `payment_method.automatically_updated` on `WebhookEndpoint` + +## 8.90.0 - 2020-08-28 +* [#991](https://github.com/stripe/stripe-node/pull/991) Multiple API changes +* [#990](https://github.com/stripe/stripe-node/pull/990) Typescript: add 'lastResponse' to return types + +## 8.89.0 - 2020-08-19 +* [#988](https://github.com/stripe/stripe-node/pull/988) Multiple API changes + * `tax_ids` on `Customer` can now be nullable + * Added support for `expires_at` on `File` + +## 8.88.0 - 2020-08-17 +* [#987](https://github.com/stripe/stripe-node/pull/987) Add support for `amount_details` on Issuing `Authorization` and `Transaction` + +## 8.87.0 - 2020-08-17 +* [#984](https://github.com/stripe/stripe-node/pull/984) Multiple API changes + * Add `alipay` on `type` for the List PaymentMethods API + * Add `payment_intent.requires_action` as a new `type` on `Event` + +## 8.86.0 - 2020-08-13 +* [#981](https://github.com/stripe/stripe-node/pull/981) Add support for Alipay on Checkout `Session` + +## 8.85.0 - 2020-08-13 +* [#980](https://github.com/stripe/stripe-node/pull/980) [codegen] Multiple API Changes + * Added support for bank_name on `Charge.payment_method_details.acss_debit` + * `Issuing.dispute.balance_transactions` is now nullable. + +## 8.84.0 - 2020-08-07 +* [#975](https://github.com/stripe/stripe-node/pull/975) Add support for Alipay on `PaymentMethod` and `PaymentIntent` + +## 8.83.0 - 2020-08-05 +* [#973](https://github.com/stripe/stripe-node/pull/973) Multiple API changes + * Add support for the `PromotionCode` resource and APIs + * Add support for `allow_promotion_codes` on Checkout `Session` + * Add support for `applies_to[products]` on `Coupon` + * Add support for `promotion_code` on `Customer` and `Subscription` + * Add support for `promotion_code` on `Discount` + +## 8.82.0 - 2020-08-04 +* [#972](https://github.com/stripe/stripe-node/pull/972) Multiple API changes + * Add `zh-HK` and `zh-TW` as `locale` on Checkout `Session` + * Add `payment_method_details[card_present][receipt][account_type]` on `Charge` + +## 8.81.0 - 2020-07-30 +* [#970](https://github.com/stripe/stripe-node/pull/970) Improve types for `customer` on `CreditNote` to support `DeletedCustomer` + +## 8.80.0 - 2020-07-29 +* [#969](https://github.com/stripe/stripe-node/pull/969) Multiple API changes + * Add support for `id`, `invoice` and `invoice_item` on `Discount` and `DeletedDiscount` + * Add support for `discount_amounts` on `CreditNote`, `CreditNoteLineItem`, `InvoiceLineItem` + * Add support for `discounts` on `InvoiceItem`, `InvoiceLineItem` and `Invoice` + * Add support for `total_discount_amounts` on `Invoice` + * Make `customer` and `verification` on `TaxId` optional as the resource will be re-used for `Account` in the future. + +## 8.79.0 - 2020-07-24 +* [#967](https://github.com/stripe/stripe-node/pull/967) Multiple API changes + * Make all properties from `Discount` available on `DeletedDiscount` + * Add `capabilities[fpx_payments]` on `Account` create and update + +## 8.78.0 - 2020-07-22 +* [#965](https://github.com/stripe/stripe-node/pull/965) Add support for `cartes_bancaires_payments` as a `Capability` + +## 8.77.0 - 2020-07-20 +* [#963](https://github.com/stripe/stripe-node/pull/963) Add support for `capabilities` as a parameter on `Account` create and update + +## 8.76.0 - 2020-07-17 +* [#962](https://github.com/stripe/stripe-node/pull/962) Add support for `political_exposure` on `Person` + +## 8.75.0 - 2020-07-16 +* [#961](https://github.com/stripe/stripe-node/pull/961) Add support for `account_onboarding` and `account_update` as `type` on `AccountLink` + +## 8.74.0 - 2020-07-16 +* [#959](https://github.com/stripe/stripe-node/pull/959) Refactor remaining 'var' to 'let/const' usages +* [#960](https://github.com/stripe/stripe-node/pull/960) Use strict equality check for 'protocol' field for consistency +* [#952](https://github.com/stripe/stripe-node/pull/952) Add new fields to lastResponse: apiVersion, stripeAccount, idempotencyKey + +## 8.73.0 - 2020-07-15 +* [#958](https://github.com/stripe/stripe-node/pull/958) Multiple API changes + * Add support for `en-GB`, `fr-CA` and `id` as `locale` on Checkout `Session` + * Move `purpose` to an enum on `File` +* [#957](https://github.com/stripe/stripe-node/pull/957) Bump lodash from 4.17.15 to 4.17.19 + +## 8.72.0 - 2020-07-15 +* [#956](https://github.com/stripe/stripe-node/pull/956) Add support for `amount_total`, `amount_subtotal`, `currency` and `total_details` on Checkout `Session` + +## 8.71.0 - 2020-07-14 +* [#955](https://github.com/stripe/stripe-node/pull/955) Change from string to enum value for `billing_address_collection` on Checkout `Session` + +## 8.70.0 - 2020-07-13 +* [#953](https://github.com/stripe/stripe-node/pull/953) Multiple API changes + * Adds `es-419` as a `locale` to Checkout `Session` + * Adds `billing_cycle_anchor` to `default_settings` and `phases` for `SubscriptionSchedule` + +## 8.69.0 - 2020-07-06 +* [#946](https://github.com/stripe/stripe-node/pull/946) Fix `assert_capabilities` type definition +* [#920](https://github.com/stripe/stripe-node/pull/920) Expose StripeResource on instance + +## 8.68.0 - 2020-07-01 +* [#940](https://github.com/stripe/stripe-node/pull/940) Document but discourage `protocol` config option +* [#933](https://github.com/stripe/stripe-node/pull/933) Fix tests for `Plan` and `Price` to not appear as amount can be updated. + +## 8.67.0 - 2020-06-24 +* [#929](https://github.com/stripe/stripe-node/pull/929) Add support for `invoice.paid` event + +## 8.66.0 - 2020-06-23 +* [#927](https://github.com/stripe/stripe-node/pull/927) Add support for `payment_method_data` on `PaymentIntent` + +## 8.65.0 - 2020-06-23 +* [#926](https://github.com/stripe/stripe-node/pull/926) Multiple API changes + * Add `discounts` on `LineItem` + * Add `document_provider_identity_document` as a `purpose` on `File` + * Support nullable `metadata` on Issuing `Dispute` + * Add `klarna[shipping_delay]` on `Source` + +## 8.64.0 - 2020-06-18 +* [#924](https://github.com/stripe/stripe-node/pull/924) Multiple API changes + * Add support for `refresh_url` and `return_url` on `AccountLink` + * Add support for `issuing_dispute.*` events + +## 8.63.0 - 2020-06-11 +* [#919](https://github.com/stripe/stripe-node/pull/919) Multiple API changes + * Add `transaction` on Issuing `Dispute` + * Add `payment_method_details[acss_debit][mandate]` on `Charge` + +## 8.62.0 - 2020-06-10 +* [#918](https://github.com/stripe/stripe-node/pull/918) Add support for Cartes Bancaires payments on `PaymentIntent` and `Payā€¦ + +## 8.61.0 - 2020-06-09 +* [#917](https://github.com/stripe/stripe-node/pull/917) Add support for `id_npwp` and `my_frp` as `type` on `TaxId` + +## 8.60.0 - 2020-06-03 +* [#911](https://github.com/stripe/stripe-node/pull/911) Add support for `payment_intent_data[transfer_group]` on Checkout `Session` + +## 8.59.0 - 2020-06-03 +* [#910](https://github.com/stripe/stripe-node/pull/910) Add support for Bancontact, EPS, Giropay and P24 on Checkout `Session` + +## 8.58.0 - 2020-06-03 +* [#909](https://github.com/stripe/stripe-node/pull/909) Multiple API changes + * Add `bacs_debit_payments` as a `Capability` + * Add support for BACS Debit on Checkout `Session` + * Add support for `checkout.session.async_payment_failed` and `checkout.session.async_payment_succeeded` as `type` on `Event` + +## 8.57.0 - 2020-06-03 +* [#908](https://github.com/stripe/stripe-node/pull/908) Multiple API changes + * Add support for bg, cs, el, et, hu, lt, lv, mt, ro, ru, sk, sl and tr as new locale on Checkout `Session` + * Add `settings[sepa_debit_payments][creditor_id]` on `Account` + * Add support for Bancontact, EPS, Giropay and P24 on `PaymentMethod`, `PaymentIntent` and `SetupIntent` + * Add support for `order_item[parent]` on `Source` for Klarna +* [#905](https://github.com/stripe/stripe-node/pull/905) Add support for BACS Debit as a `PaymentMethod` + +## 8.56.0 - 2020-05-28 +* [#904](https://github.com/stripe/stripe-node/pull/904) Multiple API changes + * Add `payment_method_details[card][three_d_secure][authentication_flow]` on `Charge` + * Add `line_items[][price_data][product_data]` on Checkout `Session` creation + +## 8.55.0 - 2020-05-22 +* [#899](https://github.com/stripe/stripe-node/pull/899) Multiple API changes + * Add support for `ae_trn`, `cl_tin` and `sa_vat` as `type` on `TaxId` + * Add `result` and `result_reason` inside `payment_method_details[card][three_d_secure]` on `Charge` + +## 8.54.0 - 2020-05-20 +* [#897](https://github.com/stripe/stripe-node/pull/897) Multiple API changes + * Add `anticipation_repayment` as a `type` on `BalanceTransaction` + * Add `interac_present` as a `type` on `PaymentMethod` + * Add `payment_method_details[interac_present]` on `Charge` + * Add `transfer_data` on `SubscriptionSchedule` + +## 8.53.0 - 2020-05-18 +* [#895](https://github.com/stripe/stripe-node/pull/895) Multiple API changes + * Add support for `issuing_dispute` as a `type` on `BalanceTransaction` + * Add `balance_transactions` as an array of `BalanceTransaction` on Issuing `Dispute` + * Add `fingerprint` and `transaction_id` in `payment_method_details[alipay]` on `Charge` + * Add `transfer_data[amount]` on `Invoice` + * Add `transfer_data[amount_percent]` on `Subscription` + * Add `price.created`, `price.deleted` and `price.updated` on `Event` + +## 8.52.0 - 2020-05-13 +* [#891](https://github.com/stripe/stripe-node/pull/891) Add support for `purchase_details` on Issuing `Transaction` + +## 8.51.0 - 2020-05-11 +* [#890](https://github.com/stripe/stripe-node/pull/890) Add support for the `LineItem` resource and APIs + +## 8.50.0 - 2020-05-07 +* [#888](https://github.com/stripe/stripe-node/pull/888) Multiple API changes + * Remove parameters in `price_data[recurring]` across APIs as they were never supported + * Move `payment_method_details[card][three_d_secure]` to a list of enum values on `Charge` + * Add support for for `business_profile[support_adress]` on `Account` create and update + +## 8.49.0 - 2020-05-01 +* [#883](https://github.com/stripe/stripe-node/pull/883) Multiple API changes + * Add `issuing` on `Balance` + * Add `br_cnpj` and `br_cpf` as `type` on `TaxId` + * Add `price` support in phases on `SubscriptionSchedule` + * Make `quantity` nullable on `SubscriptionSchedule` for upcoming API version change + +## 8.48.0 - 2020-04-29 +* [#881](https://github.com/stripe/stripe-node/pull/881) Add support for the `Price` resource and APIs + +## 8.47.1 - 2020-04-28 +* [#880](https://github.com/stripe/stripe-node/pull/880) Make `display_items` on Checkout `Session` optional + +## 8.47.0 - 2020-04-24 +* [#876](https://github.com/stripe/stripe-node/pull/876) Add support for `jcb_payments` as a `Capability` + +## 8.46.0 - 2020-04-22 +* [#875](https://github.com/stripe/stripe-node/pull/875) Add support for `coupon` when for subscriptions on Checkout + +## 8.45.0 - 2020-04-22 +* [#874](https://github.com/stripe/stripe-node/pull/874) Add support for `billingPortal` namespace and `session` resource and APIs + +## 8.44.0 - 2020-04-17 +* [#873](https://github.com/stripe/stripe-node/pull/873) Multiple API changes + * Add support for `cardholder_name` in `payment_method_details[card_present]` on `Charge` + * Add new enum values for `company.structure` on `Account` + +## 8.43.0 - 2020-04-16 +* [#868](https://github.com/stripe/stripe-node/pull/868) Multiple API changes + +## 8.42.0 - 2020-04-15 +* [#867](https://github.com/stripe/stripe-node/pull/867) Clean up deprecated features in our Typescript definitions for Issuing and other resources + +## 8.41.0 - 2020-04-14 +* [#866](https://github.com/stripe/stripe-node/pull/866) Add support for `settings[branding][secondary_color]` on `Account` + +## 8.40.0 - 2020-04-13 +* [#865](https://github.com/stripe/stripe-node/pull/865) Add support for `description` on `WebhookEndpoint` + +## 8.39.2 - 2020-04-10 +* [#864](https://github.com/stripe/stripe-node/pull/864) Multiple API changes + * Make `payment_intent` expandable on `Charge` + * Add support for `sg_gst` as a value for `type` on `TaxId` and related APIs + * Add `cancellation_reason` and new enum values for `replacement_reason` on Issuing `Card` + +## 8.39.1 - 2020-04-08 +* [#848](https://github.com/stripe/stripe-node/pull/848) Fix TS return type for autoPagingEach + +## 8.39.0 - 2020-04-03 +* [#859](https://github.com/stripe/stripe-node/pull/859) Add support for `calculatedStatementDescriptor` on `Charge` + +## 8.38.0 - 2020-03-27 + +- [#853](https://github.com/stripe/stripe-node/pull/853) Improve StripeError.generate() + - Add `doc_url` field to StripeError. + - Expose `Stripe.errors.generate()` as a convenience for `Stripe.errors.StripeError.generate()`. + - Fix several TS types related to StripeErrors. + - Add types for `StripeInvalidGrantError`. + - Add support for `authentication_error` and `rate_limit_error` in `.generate()`. + +## 8.37.0 - 2020-03-26 + +- [#851](https://github.com/stripe/stripe-node/pull/851) Add support for `spending_controls` on Issuing `Card` and `Cardholder` + +## 8.36.0 - 2020-03-25 + +- [#850](https://github.com/stripe/stripe-node/pull/850) Multiple API changes + - Add support for `pt-BR` as a `locale` on Checkout `Session` + - Add support for `company` as a `type` on Issuing `Cardholder` + +## 8.35.0 - 2020-03-24 + +- [#849](https://github.com/stripe/stripe-node/pull/849) Add support for `pause_collection` on `Subscription` + +## 8.34.0 - 2020-03-24 + +- [#847](https://github.com/stripe/stripe-node/pull/847) Add new capabilities for AU Becs Debit and tax reporting + +## 8.33.0 - 2020-03-20 + +- [#842](https://github.com/stripe/stripe-node/pull/842) Multiple API changes for Issuing: + - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` on `Authorization` + - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` inside `request_history` on `Authorization` + - Add `pending_request` on `Authorization` + - Add `amount` when approving an `Authorization` + - Add `replaced_by` on `Card` + +## 8.32.0 - 2020-03-13 + +- [#836](https://github.com/stripe/stripe-node/pull/836) Multiple API changes for Issuing: + - Rename `speed` to `service` on Issuing `Card` + - Rename `wallet_provider` to `wallet` and `address_zip_check` to `address_postal_code_check` on Issuing `Authorization` + - Mark `is_default` as deprecated on Issuing `Cardholder` + +## 8.31.0 - 2020-03-12 + +- [#835](https://github.com/stripe/stripe-node/pull/835) Add support for `shipping` and `shipping_address_collection` on Checkout `Session` + +## 8.30.0 - 2020-03-12 + +- [#834](https://github.com/stripe/stripe-node/pull/834) Add support for `ThreeDSecure` on Issuing `Authorization` + +## 8.29.0 - 2020-03-05 + +- [#833](https://github.com/stripe/stripe-node/pull/833) Make metadata nullable in many endpoints + +## 8.28.1 - 2020-03-05 + +- [#827](https://github.com/stripe/stripe-node/pull/827) Allow `null`/`undefined` to be passed for `options` arg. + +## 8.28.0 - 2020-03-04 + +- [#830](https://github.com/stripe/stripe-node/pull/830) Add support for `metadata` on `WebhookEndpoint` + +## 8.27.0 - 2020-03-04 + +- [#829](https://github.com/stripe/stripe-node/pull/829) Multiple API changes + - Add support for `account` as a parameter on `Token` to create Account tokens + - Add support for `verification_data.expiry_check` on Issuing `Authorization` + - Add support for `incorrect_cvc` and `incorrect_expiry` as a value for `request_history.reason` on Issuing `Authorization` + +## 8.26.0 - 2020-03-04 + +- [#828](https://github.com/stripe/stripe-node/pull/828) Multiple API changes + - Add support for `errors` in `requirements` on `Account`, `Capability` and `Person` + - Add support for `payment_intent.processing` as a new `type` on `Event`. + +## 8.25.0 - 2020-03-03 + +āš ļø This is a breaking change for TypeScript users. + +- [#826](https://github.com/stripe/stripe-node/pull/826) Multiple API changes: + - āš ļø Types are now for the API version `2020-03-02`. This is a breaking change for TypeScript users + - Remove `uob_regional` as a value on `bank` for FPX as this is deprecated and was never used + - Add support for `next_invoice_sequence` on `Customer` + - Add support for `proration_behavior` on `SubscriptionItem` delete + +## 8.24.1 - 2020-03-02 + +- [#824](https://github.com/stripe/stripe-node/pull/824) Update type for StripeError to extend Error + +## 8.24.0 - 2020-02-28 + +- [#822](https://github.com/stripe/stripe-node/pull/822) Add `my_sst` as a valid value for `type` on `TaxId` + +## 8.23.0 - 2020-02-27 + +- [#821](https://github.com/stripe/stripe-node/pull/821) Make `type` on `AccountLink` an enum + +## 8.22.0 - 2020-02-24 + +- [#820](https://github.com/stripe/stripe-node/pull/820) Add new enum values in `reason` for Issuing `Dispute` creation + +## 8.21.0 - 2020-02-24 + +- [#819](https://github.com/stripe/stripe-node/pull/819) Add support for listing Checkout `Session` and passing tax rate information + +## 8.20.0 - 2020-02-21 + +- [#813](https://github.com/stripe/stripe-node/pull/813) Multiple API changes + - Add support for `timezone` on `ReportRun` + - Add support for `proration_behavior` on `SubscriptionSchedule` + +## 8.19.0 - 2020-02-18 + +- [#807](https://github.com/stripe/stripe-node/pull/807) Change timeout default to constant 80000 instead Node default + +## 8.18.0 - 2020-02-14 + +- [#802](https://github.com/stripe/stripe-node/pull/802) TS Fixes + - Correctly type `Array` + - More consistently describe nullable fields as `| null`, vs `| ''`. + +## 8.17.0 - 2020-02-12 + +- [#804](https://github.com/stripe/stripe-node/pull/804) Add support for `payment_intent_data[transfer_data][amount]` on Checkout `Session` + +## 8.16.0 - 2020-02-12 + +- [#803](https://github.com/stripe/stripe-node/pull/803) Multiple API changes reflect in Typescript definitions + - Add `fpx` as a valid `source_type` on `Balance`, `Payout` and `Transfer` + - Add `fpx` support on Checkout `Session` + - Fields inside `verification_data` on Issuing `Authorization` are now enums + - Support updating `payment_method_options` on `PaymentIntent` and `SetupIntent` + +## 8.15.0 - 2020-02-10 + +- [#801](https://github.com/stripe/stripe-node/pull/801) Multiple API changes + - Add support for new `type` values for `TaxId`. + - Add support for `payment_intent_data[statement_descriptor_suffix]` on Checkout `Session`. + +## 8.14.0 - 2020-02-04 + +- [#793](https://github.com/stripe/stripe-node/pull/793) Rename `sort_code` to `sender_sort_code` on `SourceTransaction` for BACS debit. + +## 8.13.0 - 2020-02-03 + +- [#792](https://github.com/stripe/stripe-node/pull/792) Multiple API changes + - Add new `purpose` for `File`: `additional_verification` + - Add `error_on_requires_action` as a parameter for `PaymentIntent` creation and confirmation + +## 8.12.0 - 2020-01-31 + +- [#790](https://github.com/stripe/stripe-node/pull/790) Add new type of `TaxId` + +## 8.11.0 - 2020-01-30 + +- [#789](https://github.com/stripe/stripe-node/pull/789) Add support for `company.structure` on `Account` and other docs changes + +## 8.10.0 - 2020-01-30 + +- [#788](https://github.com/stripe/stripe-node/pull/788) Make typescript param optional + +## 8.9.0 - 2020-01-30 + +- [#787](https://github.com/stripe/stripe-node/pull/787) Add support for FPX as a `PaymentMethod` +- [#769](https://github.com/stripe/stripe-node/pull/769) Fix Typescript definition on `Token` creation for bank accounts + +## 8.8.2 - 2020-01-30 + +- [#785](https://github.com/stripe/stripe-node/pull/785) Fix file uploads with nested params + +## 8.8.1 - 2020-01-29 + +- [#784](https://github.com/stripe/stripe-node/pull/784) Allow @types/node 8.1 + +## 8.8.0 - 2020-01-28 + +- [#780](https://github.com/stripe/stripe-node/pull/780) Add new type for `TaxId` and `sender_account_name` on `SourceTransaction` + +## 8.7.0 - 2020-01-24 + +- [#777](https://github.com/stripe/stripe-node/pull/777) Add support for `shipping[speed]` on Issuing `Card` + +## 8.6.0 - 2020-01-23 + +- [#775](https://github.com/stripe/stripe-node/pull/775) Gracefully handle a missing `subprocess` module + +## 8.5.0 - 2020-01-23 + +- [#776](https://github.com/stripe/stripe-node/pull/776) Add support for new `type` on `CustomerTaxId` + +## 8.4.1 - 2020-01-21 + +- [#774](https://github.com/stripe/stripe-node/pull/774) Improve docstrings for many properties and parameters + +## 8.4.0 - 2020-01-17 + +- [#771](https://github.com/stripe/stripe-node/pull/771) Add `metadata` on Checkout `Session` and remove deprecated features +- [#764](https://github.com/stripe/stripe-node/pull/764) Added typescript webhook example + +## 8.3.0 - 2020-01-15 + +- [#767](https://github.com/stripe/stripe-node/pull/767) Adding missing events for pending updates on `Subscription` + +## 8.2.0 - 2020-01-15 + +- [#765](https://github.com/stripe/stripe-node/pull/765) Add support for `pending_update` on `Subscription` to the Typescript definitions + +## 8.1.0 - 2020-01-14 + +- [#763](https://github.com/stripe/stripe-node/pull/763) Add support for listing line items on a `CreditNote` +- [#762](https://github.com/stripe/stripe-node/pull/762) Improve docs for core fields such as `metadata` on Typescript definitions + +## 8.0.1 - 2020-01-09 + +- [#757](https://github.com/stripe/stripe-node/pull/757) [bugfix] Add types dir to npmignore whitelist and stop warning when instantiating stripe with no args + +## 8.0.0 - 2020-01-09 + +Major version release, adding TypeScript definitions and dropping support for Node 6. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v8) contains a detailed list of backwards-incompatible changes with upgrade instructions. + +Major pull requests included in this release (cf. [#742](https://github.com/stripe/stripe-node/pull/742)) (āš ļø = breaking changes): + +- [#736](https://github.com/stripe/stripe-node/pull/736) Add TypeScript definitions +- [#744](https://github.com/stripe/stripe-node/pull/744) Remove deprecated resources and methods +- [#752](https://github.com/stripe/stripe-node/pull/752) Deprecate many library api's, unify others + +## 7.63.1 - 2020-11-17 +- Identical to 7.15.0. + +## 7.63.0 - 2020-11-17 +- Published in error. Do not use. This is identical to 8.122.0. + +## 7.15.0 - 2019-12-30 + +- [#745](https://github.com/stripe/stripe-node/pull/745) Bump handlebars from 4.1.2 to 4.5.3 +- [#737](https://github.com/stripe/stripe-node/pull/737) Fix flows test + +## 7.14.0 - 2019-11-26 + +- [#732](https://github.com/stripe/stripe-node/pull/732) Add support for CreditNote preview + +## 7.13.1 - 2019-11-22 + +- [#728](https://github.com/stripe/stripe-node/pull/728) Remove duplicate export + +## 7.13.0 - 2019-11-06 + +- [#703](https://github.com/stripe/stripe-node/pull/703) New config object + +## 7.12.0 - 2019-11-05 + +- [#724](https://github.com/stripe/stripe-node/pull/724) Add support for `Mandate` + +## 7.11.0 - 2019-10-31 + +- [#719](https://github.com/stripe/stripe-node/pull/719) Define 'type' as a property on errors rather than a getter +- [#709](https://github.com/stripe/stripe-node/pull/709) README: imply context of stripe-node +- [#717](https://github.com/stripe/stripe-node/pull/717) Contributor Convenant + +## 7.10.0 - 2019-10-08 + +- [#699](https://github.com/stripe/stripe-node/pull/699) Add request-specific fields from raw error to top level error + +## 7.9.1 - 2019-09-17 + +- [#692](https://github.com/stripe/stripe-node/pull/692) Retry based on `Stripe-Should-Retry` and `Retry-After` headers + +## 7.9.0 - 2019-09-09 + +- [#691](https://github.com/stripe/stripe-node/pull/691) GET and DELETE requests data: body->queryParams +- [#684](https://github.com/stripe/stripe-node/pull/684) Bump eslint-utils from 1.3.1 to 1.4.2 + +## 7.8.0 - 2019-08-12 + +- [#678](https://github.com/stripe/stripe-node/pull/678) Add `subscriptionItems.createUsageRecord()` method + +## 7.7.0 - 2019-08-09 + +- [#675](https://github.com/stripe/stripe-node/pull/675) Remove subscription schedule revisions + - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused. + +## 7.6.2 - 2019-08-09 + +- [#674](https://github.com/stripe/stripe-node/pull/674) Refactor requestDataProcessor for File out into its own file + +## 7.6.1 - 2019-08-08 + +- [#673](https://github.com/stripe/stripe-node/pull/673) Add request start and end time to request and response events + +## 7.6.0 - 2019-08-02 + +- [#661](https://github.com/stripe/stripe-node/pull/661) Refactor errors to ES6 classes. +- [#672](https://github.com/stripe/stripe-node/pull/672) Refinements to error ES6 classes. + +## 7.5.5 - 2019-08-02 + +- [#665](https://github.com/stripe/stripe-node/pull/665) Remove `lodash.isplainobject`. + +## 7.5.4 - 2019-08-01 + +- [#671](https://github.com/stripe/stripe-node/pull/671) Include a prefix in generated idempotency keys and remove uuid dependency. + +## 7.5.3 - 2019-07-31 + +- [#667](https://github.com/stripe/stripe-node/pull/667) Refactor request headers, allowing any header to be overridden. + +## 7.5.2 - 2019-07-30 + +- [#664](https://github.com/stripe/stripe-node/pull/664) Expose and use `once` + +## 7.5.1 - 2019-07-30 + +- [#662](https://github.com/stripe/stripe-node/pull/662) Remove `safe-buffer` dependency +- [#666](https://github.com/stripe/stripe-node/pull/666) Bump lodash from 4.17.11 to 4.17.15 +- [#668](https://github.com/stripe/stripe-node/pull/668) Move Balance History to /v1/balance_transactions + +## 7.5.0 - 2019-07-24 + +- [#660](https://github.com/stripe/stripe-node/pull/660) Interpret any string in args as API Key instead of a regex + - āš ļø Careful: passing strings which are not API Keys as as the final argument to a request previously would have ignored those strings, and would now result in the request failing with an authentication error. + - āš ļø Careful: The private api `utils.isAuthKey` was removed. +- [#658](https://github.com/stripe/stripe-node/pull/658) Update README retry code sample to use two retries +- [#653](https://github.com/stripe/stripe-node/pull/653) Reorder customer methods + +## 7.4.0 - 2019-06-27 + +- [#652](https://github.com/stripe/stripe-node/pull/652) Add support for the `SetupIntent` resource and APIs + +## 7.3.0 - 2019-06-24 + +- [#649](https://github.com/stripe/stripe-node/pull/649) Enable request latency telemetry by default + +## 7.2.0 - 2019-06-17 + +- [#608](https://github.com/stripe/stripe-node/pull/608) Add support for `CustomerBalanceTransaction` resource and APIs + +## 7.1.0 - 2019-05-23 + +- [#632](https://github.com/stripe/stripe-node/pull/632) Add support for `radar.early_fraud_warning` resource + +## 7.0.1 - 2019-05-22 + +- [#631](https://github.com/stripe/stripe-node/pull/631) Make autopagination functions work for `listLineItems` and `listUpcomingLineItems` + +## 7.0.0 - 2019-05-14 + +Major version release. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v7) contains a detailed list of backwards-incompatible changes with upgrade instructions. + +Pull requests included in this release (cf. [#606](https://github.com/stripe/stripe-node/pull/606)) (āš ļø = breaking changes): + +- āš ļø Drop support for Node 4, 5 and 7 ([#606](https://github.com/stripe/stripe-node/pull/606)) +- Prettier formatting ([#604](https://github.com/stripe/stripe-node/pull/604)) +- Alphabetize ā€œbasicā€ methods ([#610](https://github.com/stripe/stripe-node/pull/610)) +- Use `id` for single positional arguments ([#611](https://github.com/stripe/stripe-node/pull/611)) +- Modernize ES5 to ES6 with lebab ([#607](https://github.com/stripe/stripe-node/pull/607)) +- āš ļø Remove deprecated methods ([#613](https://github.com/stripe/stripe-node/pull/613)) +- Add VSCode and EditorConfig files ([#620](https://github.com/stripe/stripe-node/pull/620)) +- āš ļø Drop support for Node 9 and bump dependencies to latest versions ([#614](https://github.com/stripe/stripe-node/pull/614)) +- Misc. manual formatting ([#623](https://github.com/stripe/stripe-node/pull/623)) +- āš ļø Remove legacy parameter support in `invoices.retrieveUpcoming()` ([#621](https://github.com/stripe/stripe-node/pull/621)) +- āš ļø Remove curried urlData and manually specified urlParams ([#625](https://github.com/stripe/stripe-node/pull/625)) +- Extract resources file ([#626](https://github.com/stripe/stripe-node/pull/626)) + +## 6.36.0 - 2019-05-14 + +- [#622](https://github.com/stripe/stripe-node/pull/622) Add support for the `Capability` resource and APIs + +## 6.35.0 - 2019-05-14 + +- [#627](https://github.com/stripe/stripe-node/pull/627) Add `listLineItems` and `listUpcomingLineItems` methods to `Invoice` + +## 6.34.0 - 2019-05-08 + +- [#619](https://github.com/stripe/stripe-node/pull/619) Move `generateTestHeaderString` to stripe.webhooks (fixes a bug in 6.33.0) + +## 6.33.0 - 2019-05-08 + +**Important**: This version is non-functional and has been yanked in favor of 6.32.0. + +- [#609](https://github.com/stripe/stripe-node/pull/609) Add `generateWebhookHeaderString` to make it easier to mock webhook events + +## 6.32.0 - 2019-05-07 + +- [#612](https://github.com/stripe/stripe-node/pull/612) Add `balanceTransactions` resource + +## 6.31.2 - 2019-05-03 + +- [#602](https://github.com/stripe/stripe-node/pull/602) Handle errors from the oauth/token endpoint + +## 6.31.1 - 2019-04-26 + +- [#600](https://github.com/stripe/stripe-node/pull/600) Fix encoding of nested parameters in multipart requests + +## 6.31.0 - 2019-04-24 + +- [#588](https://github.com/stripe/stripe-node/pull/588) Add support for the `TaxRate` resource and APIs + +## 6.30.0 - 2019-04-22 + +- [#589](https://github.com/stripe/stripe-node/pull/589) Add support for the `TaxId` resource and APIs +- [#593](https://github.com/stripe/stripe-node/pull/593) `retrieveUpcoming` on `Invoice` can now take one hash as parameter instead of requiring a customer id. + +## 6.29.0 - 2019-04-18 + +- [#585](https://github.com/stripe/stripe-node/pull/585) Add support for the `CreditNote` resource and APIs + +## 6.28.0 - 2019-03-18 + +- [#570](https://github.com/stripe/stripe-node/pull/570) Add support for the `PaymentMethod` resource and APIs +- [#578](https://github.com/stripe/stripe-node/pull/578) Add support for retrieving a Checkout `Session` + +## 6.27.0 - 2019-03-15 + +- [#581](https://github.com/stripe/stripe-node/pull/581) Add support for deleting Terminal `Location` and `Reader` + +## 6.26.1 - 2019-03-14 + +- [#580](https://github.com/stripe/stripe-node/pull/580) Fix support for HTTPS proxies + +## 6.26.0 - 2019-03-11 + +- [#574](https://github.com/stripe/stripe-node/pull/574) Encode `Date`s as Unix timestamps + +## 6.25.1 - 2019-02-14 + +- [#565](https://github.com/stripe/stripe-node/pull/565) Always encode arrays as integer-indexed hashes + +## 6.25.0 - 2019-02-13 + +- [#559](https://github.com/stripe/stripe-node/pull/559) Add `stripe.setMaxNetworkRetries(n)` for automatic network retries + +## 6.24.0 - 2019-02-12 + +- [#562](https://github.com/stripe/stripe-node/pull/562) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision` + +## 6.23.1 - 2019-02-04 + +- [#560](https://github.com/stripe/stripe-node/pull/560) Enable persistent connections by default + +## 6.23.0 - 2019-01-30 + +- [#557](https://github.com/stripe/stripe-node/pull/557) Add configurable telemetry to gather information on client-side request latency + +## 6.22.0 - 2019-01-25 + +- [#555](https://github.com/stripe/stripe-node/pull/555) Add support for OAuth methods + +## 6.21.0 - 2019-01-23 + +- [#551](https://github.com/stripe/stripe-node/pull/551) Rename `CheckoutSession` to `Session` and move it under the `checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach. + +## 6.20.1 - 2019-01-17 + +- [#552](https://github.com/stripe/stripe-node/pull/552) Fix `Buffer` deprecation warnings + +## 6.20.0 - 2018-12-21 + +- [#539](https://github.com/stripe/stripe-node/pull/539) Add support for the `CheckoutSession` resource + +## 6.19.0 - 2018-12-10 + +- [#535](https://github.com/stripe/stripe-node/pull/535) Add support for account links + +## 6.18.1 - 2018-12-07 + +- [#534](https://github.com/stripe/stripe-node/pull/534) Fix iterating on `files.list` method + +## 6.18.0 - 2018-12-06 + +- [#530](https://github.com/stripe/stripe-node/pull/530) Export errors on root Stripe object + +## 6.17.0 - 2018-11-28 + +- [#527](https://github.com/stripe/stripe-node/pull/527) Add support for the `Review` APIs + +## 6.16.0 - 2018-11-27 + +- [#515](https://github.com/stripe/stripe-node/pull/515) Add support for `ValueLists` and `ValueListItems` for Radar + +## 6.15.2 - 2018-11-26 + +- [#526](https://github.com/stripe/stripe-node/pull/526) Fixes an accidental mutation of input in rare cases + +## 6.15.1 - 2018-11-23 + +- [#523](https://github.com/stripe/stripe-node/pull/523) Handle `Buffer` instances in `Webhook.constructEvent` + +## 6.15.0 - 2018-11-12 + +- [#474](https://github.com/stripe/stripe-node/pull/474) Add support for `partner_id` in `setAppInfo` + +## 6.14.0 - 2018-11-09 + +- [#509](https://github.com/stripe/stripe-node/pull/509) Add support for new `Invoice` methods + +## 6.13.0 - 2018-10-30 + +- [#507](https://github.com/stripe/stripe-node/pull/507) Add support for persons +- [#510](https://github.com/stripe/stripe-node/pull/510) Add support for webhook endpoints + +## 6.12.1 - 2018-09-24 + +- [#502](https://github.com/stripe/stripe-node/pull/502) Fix test suite + +## 6.12.0 - 2018-09-24 + +- [#498](https://github.com/stripe/stripe-node/pull/498) Add support for Stripe Terminal +- [#500](https://github.com/stripe/stripe-node/pull/500) Rename `FileUploads` to `Files`. For backwards compatibility, `Files` is aliased to `FileUploads`. `FileUploads` is deprecated and will be removed from the next major version. + +## 6.11.0 - 2018-09-18 + +- [#496](https://github.com/stripe/stripe-node/pull/496) Add auto-pagination + +## 6.10.0 - 2018-09-05 + +- [#491](https://github.com/stripe/stripe-node/pull/491) Add support for usage record summaries + +## 6.9.0 - 2018-09-05 + +- [#493](https://github.com/stripe/stripe-node/pull/493) Add support for reporting resources + +## 6.8.0 - 2018-08-27 + +- [#488](https://github.com/stripe/stripe-node/pull/488) Remove support for `BitcoinReceivers` write-actions + +## 6.7.0 - 2018-08-03 + +- [#485](https://github.com/stripe/stripe-node/pull/485) Add support for `cancel` on topups + +## 6.6.0 - 2018-08-02 + +- [#483](https://github.com/stripe/stripe-node/pull/483) Add support for file links + +## 6.5.0 - 2018-07-28 + +- [#482](https://github.com/stripe/stripe-node/pull/482) Add support for Sigma scheduled query runs + +## 6.4.0 - 2018-07-26 + +- [#481](https://github.com/stripe/stripe-node/pull/481) Add support for Stripe Issuing + +## 6.3.0 - 2018-07-18 + +- [#471](https://github.com/stripe/stripe-node/pull/471) Add support for streams in file uploads + +## 6.2.1 - 2018-07-03 + +- [#475](https://github.com/stripe/stripe-node/pull/475) Fixes array encoding of subscription items for the upcoming invoices endpoint. + +## 6.2.0 - 2018-06-28 + +- [#473](https://github.com/stripe/stripe-node/pull/473) Add support for payment intents + +## 6.1.1 - 2018-06-07 + +- [#469](https://github.com/stripe/stripe-node/pull/469) Add `.npmignore` to create a lighter package (minus examples and tests) + +## 6.1.0 - 2018-06-01 + +- [#465](https://github.com/stripe/stripe-node/pull/465) Warn when unknown options are passed to functions + +## 6.0.0 - 2018-05-14 + +- [#453](https://github.com/stripe/stripe-node/pull/453) Re-implement usage record's `create` so that it correctly passes all arguments (this is a very minor breaking change) + +## 5.10.0 - 2018-05-14 + +- [#459](https://github.com/stripe/stripe-node/pull/459) Export error types on `stripe.errors` so that errors can be matched with `instanceof` instead of comparing the strings generated by `type` + +## 5.9.0 - 2018-05-09 + +- [#456](https://github.com/stripe/stripe-node/pull/456) Add support for issuer fraud records + +## 5.8.0 - 2018-04-04 + +- [#444](https://github.com/stripe/stripe-node/pull/444) Introduce flexible billing primitives for subscriptions + +## 5.7.0 - 2018-04-02 + +- [#441](https://github.com/stripe/stripe-node/pull/441) Write directly to a connection that's known to be still open + +## 5.6.1 - 2018-03-25 + +- [#437](https://github.com/stripe/stripe-node/pull/437) Fix error message when passing invalid parameters to some API methods + +## 5.6.0 - 2018-03-24 + +- [#439](https://github.com/stripe/stripe-node/pull/439) Drop Bluebird dependency and use native ES6 promises + +## 5.5.0 - 2018-02-21 + +- [#425](https://github.com/stripe/stripe-node/pull/425) Add support for topups + +## 5.4.0 - 2017-12-05 + +- [#412](https://github.com/stripe/stripe-node/pull/412) Add `StripeIdempotencyError` type for new kind of stripe error + +## 5.3.0 - 2017-10-31 + +- [#405](https://github.com/stripe/stripe-node/pull/405) Support for exchange rates APIs + +## 5.2.0 - 2017-10-26 + +- [#404](https://github.com/stripe/stripe-node/pull/404) Support for listing source transactions + +## 5.1.1 - 2017-10-04 + +- [#394](https://github.com/stripe/stripe-node/pull/394) Fix improper warning for requests that have options but no parameters + +## 5.1.0 - 2017-09-25 + +- Add check for when options are accidentally included in an arguments object +- Use safe-buffer package instead of building our own code +- Remove dependency on object-assign package +- Bump required versions of bluebird and qs + +## 5.0.0 - 2017-09-12 + +- Drop support for Node 0.x (minimum required version is now >= 4) + +## 4.25.0 - 2017-09-05 + +- Switch to Bearer token authentication on API requests + +## 4.24.1 - 2017-08-25 + +- Specify UTF-8 encoding when verifying HMAC-SHA256 payloads + +## 4.24.0 - 2017-08-10 + +- Support informational events with `Stripe.on` (see README for details) + +## 4.23.2 - 2017-08-03 + +- Handle `Buffer.from` incompatibility for Node versions prior to 4.5.x + +## 4.23.1 - 2017-06-24 + +- Properly encode subscription items when retrieving upcoming invoice + +## 4.23.0 - 2017-06-20 + +- Add support for ephemeral keys + +## 4.22.1 - 2017-06-20 + +- Fix usage of hasOwnProperty in utils + +## 4.22.0 - 2017-05-25 + +- Make response headers accessible on error objects + +## 4.21.0 - 2017-05-25 + +- Add support for account login links + +## 4.20.0 - 2017-05-24 + +- Add `stripe.setAppInfo` for plugin authors to register app information + +## 4.19.1 - 2017-05-18 + +- Tweak class initialization for compatibility with divergent JS engines + +## 4.19.0 - 2017-05-11 + +- Support for checking webhook signatures + +## 4.18.0 - 2017-04-12 + +- Reject ID parameters that don't look like strings + +## 4.17.1 - 2017-04-05 + +- Fix paths in error messages on bad arguments + +## 4.17.0 - 2017-03-31 + +- Add support for payouts + +## 4.16.1 - 2017-03-30 + +- Fix bad reference to `requestId` when initializing errors + +## 4.16.0 - 2017-03-22 + +- Make `requestId` available on resource `lastResponse` objects + +## 4.15.1 - 2017-03-08 + +- Update required version of "qs" dependency to 6.0.4+ + +## 4.15.0 - 2017-01-18 + +- Add support for updating sources + +## 4.14.0 - 2016-12-01 + +- Add support for verifying sources + +## 4.13.0 - 2016-11-21 + +- Add retrieve method for 3-D Secure resources + +## 4.12.0 - 2016-10-18 + +- Support for 403 status codes (permission denied) + +## 4.11.0 - 2016-09-16 + +- Add support for Apple Pay domains + +## 4.10.0 - 2016-08-29 + +- Refactor deprecated uses of Bluebird's `Promise.defer` + +## 4.9.1 - 2016-08-22 + +- URI-encode unames for Stripe user agents so we don't fail on special characters + +## 4.9.0 - 2016-07-19 + +- Add `Source` model for generic payment sources support (experimental) + +## 4.8.0 - 2016-07-14 + +- Add `ThreeDSecure` model for 3-D secure payments + +## 4.7.0 - 2016-05-25 + +- Add support for returning Relay orders + +## 4.6.0 - 2016-05-04 + +- Add `update`, `create`, `retrieve`, `list` and `del` methods to `stripe.subscriptions` + +## 4.5.0 - 2016-03-15 + +- Add `reject` on `Account` to support the new API feature + +## 4.4.0 - 2016-02-08 + +- Add `CountrySpec` model for looking up country payment information + +## 4.3.0 - 2016-01-26 + +- Add support for deleting Relay SKUs and products + +## 4.2.0 - 2016-01-13 + +- Add `lastResponse` property on `StripeResource` objects +- Return usage errors of `stripeMethod` through callback instead of raising +- Use latest year for expiry years in tests to avoid new year problems + +## 4.1.0 - 2015-12-02 + +- Add a verification routine for external accounts + +## 4.0.0 - 2015-09-17 + +- Remove ability for API keys to be passed as 1st param to acct.retrieve +- Rename StripeInvalidRequest to StripeInvalidRequestError + +## 3.9.0 - 2015-09-14 + +- Add Relay resources: Products, SKUs, and Orders + +## 3.8.0 - 2015-09-11 + +- Added rate limiting responses + +## 3.7.1 - 2015-08-17 + +- Added refund object with listing, retrieval, updating, and creation. + +## 3.7.0 - 2015-08-03 + +- Added managed account deletion +- Added dispute listing and retrieval + +## 3.6.0 - 2015-07-07 + +- Added request IDs to all Stripe errors + +## 3.5.2 - 2015-06-30 + +- [BUGFIX] Fixed issue with uploading binary files (Gabriel Chagas Marques) + +## 3.5.1 - 2015-06-30 + +- [BUGFIX] Fixed issue with passing arrays of objects + +## 3.5.0 - 2015-06-11 + +- Added support for optional parameters when retrieving an upcoming invoice + (Matthew Arkin) + +## 3.4.0 - 2015-06-10 + +- Added support for bank accounts and debit cards in managed accounts + +## 3.3.4 - 2015-04-02 + +- Remove SSL revocation tests and check + +## 3.3.3 - 2015-03-31 + +- [BUGFIX] Fix support for both stripe.account and stripe.accounts + +## 3.3.2 - 2015-02-24 + +- Support transfer reversals. + +## 3.3.1 - 2015-02-21 + +- [BUGFIX] Fix passing in only a callback to the Account resource. (Matthew Arkin) + +## 3.3.0 - 2015-02-19 + +- Support BitcoinReceiver update & delete actions +- Add methods for manipulating customer sources as per 2015-02-18 API version +- The Account resource will now take an account ID. However, legacy use of the resource (without an account ID) will still work. + +## 3.2.0 - 2015-02-05 + +- [BUGFIX] Fix incorrect failing tests for headers support +- Update all dependencies (remove mocha-as-promised) +- Switch to bluebird for promises + +## 3.1.0 - 2015-01-21 + +- Support making bitcoin charges through BitcoinReceiver source object + +## 3.0.3 - 2014-12-23 + +- Adding file uploads as a resource. + +## 3.0.2 - 2014-11-26 + +- [BUGFIX] Fix issue where multiple expand params were not getting passed through (#130) + +## 3.0.1 - 2014-11-26 + +- (Version skipped due to npm mishap) + +## 3.0.0 - 2014-11-18 + +- [BUGFIX] Fix `stringifyRequestData` to deal with nested objs correctly +- Bump MAJOR as we're no longer supporting Node 0.8 + +## 2.9.0 - 2014-11-12 + +- Allow setting of HTTP agent (proxy) (issue #124) +- Add stack traces to all Stripe Errors + +## 2.8.0 - 2014-07-26 + +- Make application fee refunds a list instead of array + +## 2.7.4 - 2014-07-17 + +- [BUGFIX] Fix lack of subscription param in `invoices#retrieveUpcoming` method +- Add support for an `optional!` annotation on `urlParams` + +## 2.7.3 - 2014-06-17 + +- Add metadata to disputes and refunds + +## 2.6.3 - 2014-05-21 + +- Support cards for recipients. + +## 2.5.3 - 2014-05-16 + +- Allow the `update` method on coupons for metadata changes + +## 2.5.2 - 2014-04-28 + +- [BUGFIX] Fix when.js version string in package.json to support older npm versions + +## 2.5.1 - 2014-04-25 + +- [BUGFIX] Fix revoked-ssl check +- Upgrade when.js to 3.1.0 + +## 2.5.0 - 2014-04-09 + +- Ensure we prevent requests using revoked SSL certs + +## 2.4.5 - 2014-04-08 + +- Add better checks for incorrect arguments (throw exceptions accordingly). +- Validate the Connect Auth key, if passed + +## 2.4.4 - 2014-03-27 + +- [BUGFIX] Fix URL encoding issue (not encoding interpolated URL params, see issue #93) + +## 2.4.3 - 2014-03-27 + +- Add more debug information to the case of a failed `JSON.parse()` + +## 2.4.2 - 2014-02-20 + +- Add binding for `transfers/{tr_id}/transactions` endpoint + +## 2.4.1 - 2014-02-07 + +- Ensure raw error object is accessible on the generated StripeError + +## 2.4.0 - 2014-01-29 + +- Support multiple subscriptions per customer + +## 2.3.4 - 2014-01-11 + +- [BUGFIX] Fix #76, pass latest as version to api & fix constructor arg signature + +## 2.3.3 - 2014-01-10 + +- Document cancelSubscription method params and add specs for `at_period_end` + +## 2.3.2 - 2013-12-02 + +- Add application fees API + +## 2.2.2 - 2013-11-20 + +- [BUGFIX] Fix incorrect deleteDiscount method & related spec(s) + +### 2.2.1 - 2013-12-01 + +- [BUGFIX] Fix user-agent header issue (see issue #75) + +## 2.2.0 - 2013-11-09 + +- Add support for setTimeout +- Add specs for invoice-item listing/querying via timestamp + +## 2.1.0 - 2013-11-07 + +- Support single key/value setting on setMetadata method +- [BUGFIX] Fix Windows url-path issue +- Add missing stripe.charges.update method +- Support setting auth_token per request (useful in Connect) +- Remove global 'resources' variable + +## 2.0.0 - 2013-10-18 + +- API overhaul and refactor, including addition of promises. +- Release of version 2.0.0 + +## 1.3.0 - 2013-01-30 + +- Requests return Javascript Errors (Guillaume Flandre) + +## 1.2.0 - 2012-08-03 + +- Added events API (Jonathan Hollinger) +- Added plans update API (Pavan Kumar Sunkara) +- Various test fixes, node 0.8.x tweaks (Jan Lehnardt) + +## 1.1.0 - 2012-02-01 + +- Add Coupons API (Ryan) +- Pass a more robust error object to the callback (Ryan) +- Fix duplicate callbacks from some functions when called incorrectly (bug #24, reported by Kishore Nallan) + +## 1.0.0 - 2011-12-06 + +- Add APIs and tests for Plans and "Invoice Items" + (both changes by Ryan Ettipio) + +## 0.0.5 - 2011-11-26 + +- Add Subscription API (John Ku, #3) +- Add Invoices API (Chris Winn, #6) +- [BUGFIX] Fix a bug where callback could be called twice, if the callback() threw an error itself (Peteris Krumins) +- [BUGFIX] Fix bug in tokens.retrieve API (Xavi) +- Change documentation links (Stripe changed their URL structure) +- Make tests pass again (error in callback is null instead of 0 if all is well) +- Amount in stripe.charges.refund is optional (Branko Vukelic) +- Various documentation fixes (Xavi) +- Only require node 0.4.0 + +## 0.0.3 - 2011-10-05 + +- Add Charges API (issue #1, brackishlake) +- Add customers.list API + +## 0.0.2 - 2011-09-28 + +- Initial release with customers and tokens APIs From 035c5f89744d7231d95544f5145dc08ab3a55d9a Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 3 Oct 2024 10:06:33 -0700 Subject: [PATCH 07/27] Update generated code (#2199) Update generated code for v1268 Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> --- types/InvoiceLineItems.d.ts | 5 ---- types/Invoices.d.ts | 5 ---- types/Margins.d.ts | 56 ------------------------------------- types/index.d.ts | 1 - 4 files changed, 67 deletions(-) delete mode 100644 types/Margins.d.ts diff --git a/types/InvoiceLineItems.d.ts b/types/InvoiceLineItems.d.ts index 31a5f894e0..53569a3951 100644 --- a/types/InvoiceLineItems.d.ts +++ b/types/InvoiceLineItems.d.ts @@ -177,11 +177,6 @@ declare module 'stripe' { */ discount?: string | Stripe.Discount | Stripe.DeletedDiscount; - /** - * The margin that was applied to get this pretax credit amount. - */ - margin?: string | Stripe.Margin; - /** * Type of the pretax credit amount referenced. */ diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index ed832e9a84..2658214f37 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -1419,11 +1419,6 @@ declare module 'stripe' { */ discount?: string | Stripe.Discount | Stripe.DeletedDiscount; - /** - * The margin that was applied to get this pretax credit amount. - */ - margin?: string | Stripe.Margin; - /** * Type of the pretax credit amount referenced. */ diff --git a/types/Margins.d.ts b/types/Margins.d.ts deleted file mode 100644 index deb8ef1eb7..0000000000 --- a/types/Margins.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - /** - * A (partner) margin represents a specific discount distributed in partner reseller programs to business partners who - * resell products and services and earn a discount (margin) for doing so. - */ - interface Margin { - /** - * Unique identifier for the object. - */ - id: string; - - /** - * String representing the object's type. Objects of the same type share the same value. - */ - object: 'margin'; - - /** - * Whether the margin can be applied to invoices, invoice items, or invoice line items. Defaults to `true`. - */ - active: boolean; - - /** - * Time at which the object was created. Measured in seconds since the Unix epoch. - */ - created: number; - - /** - * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. - */ - livemode: boolean; - - /** - * 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; - - /** - * Name of the margin that's displayed on, for example, invoices. - */ - name: string | null; - - /** - * Percent that will be taken off the subtotal before tax (after all other discounts and promotions) of any invoice to which the margin is applied. - */ - percent_off: number; - - /** - * Time at which the object was last updated. Measured in seconds since the Unix epoch. - */ - updated: number; - } - } -} diff --git a/types/index.d.ts b/types/index.d.ts index 7a83f51811..fa1585e7a1 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -215,7 +215,6 @@ /// /// /// -/// /// /// /// From 64238dde1ea209e769ea9a2c8c78e1a5b82f30fc Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Thu, 3 Oct 2024 15:48:52 -0700 Subject: [PATCH 08/27] Bump version to 17.1.0 --- CHANGELOG.md | 7417 ++++++++++++++++++++++---------------------- VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 3713 insertions(+), 3710 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ed747b9bb..6e1ff1cb51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3707 +1,3710 @@ -# Changelog - -## 17.0.0 - 2024-10-01 -* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia - - This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading. - - ### āš ļø Breaking changes due to changes in the Stripe API - - Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert` - - Remove support for `filter` on `Billing.AlertCreateParams` and `Billing.Alert`. Use the filters on the `usage_threshold` instead - - Remove support for `customer_consent_collected` on `Terminal.ReaderProcessSetupIntentParams`. - - ### āš ļø Other Breaking changes in the SDK - - Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are: - - max retries: `1` -> `2` - - max timeout (seconds): `2` -> `5` - - - ### Additions - * Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data` - * Add support for `allow_redisplay` on `Terminal.ReaderProcessPaymentIntentParams.process_config` and `Terminal.ReaderProcessSetupIntentParams` - * Add support for new value `international_transaction` on enum `Treasury.ReceivedCredit.failure_code` - * Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version` - * Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview) - * Add method `parseThinEvent()` on the `Stripe` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview). - * Add method [rawRequest()](https://github.com/stripe/stripe-node/tree/master?tab=readme-ov-file#custom-requests) on the `Stripe` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. - - ### Changes - * Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional - -## 16.12.0 - 2024-09-18 -* [#2177](https://github.com/stripe/stripe-node/pull/2177) Update generated code - * Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code` -* [#2175](https://github.com/stripe/stripe-node/pull/2175) Update generated code - * Add support for new value `verification_supportability` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for new value `terminal_reader_invalid_location_for_activation` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `payer_details` on `Charge.payment_method_details.klarna` - * Add support for `amazon_pay` on `Dispute.payment_method_details` - * Add support for new value `amazon_pay` on enum `Dispute.payment_method_details.type` - * Add support for `automatically_finalizes_at` on `Invoice` - * Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us` - -## 16.11.0 - 2024-09-12 -* [#2171](https://github.com/stripe/stripe-node/pull/2171) Update generated code - * Add support for new resource `InvoiceRenderingTemplate` - * Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate` - * Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection` - * Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` - * Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` - * Add support for new value `submitted` on enum `Issuing.Card.shipping.status` - * Change `TestHelpers.TestClock.status_details` to be required - -## 16.10.0 - 2024-09-05 -* [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code - * Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter` - * Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional - -## 16.9.0 - 2024-08-29 -* [#2163](https://github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230 - * Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional - * Add support for new value `hr_oib` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `hr_oib` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for new value `issuing_regulatory_reporting` on enums `File.purpose` and `FileListParams.purpose` - * Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose` - * Change `Issuing.Card.shipping.address_validation` to be required - * Add support for `status_details` on `TestHelpers.TestClock` - -## 16.8.0 - 2024-08-15 -* [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code - * Add support for `authorization_code` on `Charge.payment_method_details.card` - * Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` - * Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit` - * Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire` - * Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null` - -## 16.7.0 - 2024-08-08 -* [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code - * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert` - * Add support for `retrieve` method on resource `Tax.Calculation` - * Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline` - * Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present` - * Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` - * Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional - * Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` - * Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]` - -## 16.6.0 - 2024-08-01 -* [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code - * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert` - * Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * āš ļø Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week. - * Add support for new value `billing.alert.triggered` on enum `Event.type` - * Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 16.5.0 - 2024-07-25 -* [#2143](https://github.com/stripe/stripe-node/pull/2143) Update generated code - * Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components` -* [#2140](https://github.com/stripe/stripe-node/pull/2140) Update generated code - * Add support for `update` method on resource `Checkout.Session` - * Add support for `transaction_id` on `Charge.payment_method_details.affirm` - * Add support for `buyer_id` on `Charge.payment_method_details.blik` - * Add support for `authorization_code` on `Charge.payment_method_details.card` - * Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` - * Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present` - * Add support for `case_type` on `Dispute.payment_method_details.card` - * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type` - * Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 16.4.0 - 2024-07-18 -* [#2138](https://github.com/stripe/stripe-node/pull/2138) Update generated code - * Add support for `customer` on `ConfirmationToken.payment_method_preview` - * Add support for new value `issuing_dispute.funds_rescinded` on enum `Event.type` - * Add support for new value `multibanco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` - * Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#2136](https://github.com/stripe/stripe-node/pull/2136) Update changelog - -## 16.3.0 - 2024-07-11 -* [#2130](https://github.com/stripe/stripe-node/pull/2130) Update generated code - * āš ļø Remove support for values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` from enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`. - * āš ļø Remove support for value `payment_intent_fx_quote_invalid` from enum `StripeError.code`. The was mistakenly released last week. - * Add support for `payment_method_options` on `ConfirmationToken` - * Add support for `payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components` - * Add support for `address_validation` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` - * Add support for `shipping` on `Issuing.CardUpdateParams` - * Change `Plan.meter` and `Price.recurring.meter` to be required -* [#2133](https://github.com/stripe/stripe-node/pull/2133) update node versions in CI -* [#2132](https://github.com/stripe/stripe-node/pull/2132) check `hasOwnProperty` when using `for..in` -* [#2048](https://github.com/stripe/stripe-node/pull/2048) Add generateTestHeaderStringAsync function to Webhooks.ts - -## 16.2.0 - 2024-07-05 -* [#2125](https://github.com/stripe/stripe-node/pull/2125) Update generated code - * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice` - * Add support for new value `payment_intent_fx_quote_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `posted_at` on `Tax.TransactionCreateFromCalculationParams` and `Tax.Transaction` - -## 16.1.0 - 2024-06-27 -* [#2120](https://github.com/stripe/stripe-node/pull/2120) Update generated code - * Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` - * Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams` - * Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters` - * Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` - -## 16.0.0 - 2024-06-24 -* [#2113](https://github.com/stripe/stripe-node/pull/2113) - - This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading. - - ### āš ļø Breaking changes - - * Remove the unused resource `PlatformTaxFee` - * Rename `volume_decimal` to `quantity_decimal` on - * `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, - * `Issuing.Transaction.purchase_details.fuel`, - * `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and - * `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` - * `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values - * `other` - * `paused.inactivity` - * `pending.onboarding` - * `pending.review` - * `platform_disabled` - * `platform_paused` - * `rejected.inactivity` - * `rejected.other` - * `rejected.unsupported_business` - * `requirements.fields_needed` - - ### Additions - - * Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` - * Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason` - * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization` - * Add support for new value `ch_uid` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details` - * Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization` - * Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` - * Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version` -* [#2118](https://github.com/stripe/stripe-node/pull/2118) Use worker module in Bun - -## 15.12.0 - 2024-06-17 -* [#2109](https://github.com/stripe/stripe-node/pull/2109) Update generated code - * Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `tax_id_collection` on `PaymentLinkUpdateParams` -* [#2111](https://github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names - * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 - * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2 - * Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 - -## 15.11.0 - 2024-06-13 -* [#2102](https://github.com/stripe/stripe-node/pull/2102) Update generated code - * Add support for `multibanco_payments` and `twint_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `twint` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `multibanco` on `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new values `multibanco` and `twint` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for new value `de_stn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `multibanco` and `twint` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new values `multibanco` and `twint` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - * Add support for new value `de_stn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `multibanco_display_details` on `PaymentIntent.next_action` - * Add support for `invoice_settings` on `Subscription` - -## 15.10.0 - 2024-06-06 -* [#2101](https://github.com/stripe/stripe-node/pull/2101) Update generated code - * Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, and `us_bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new value `swish` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - -## 15.9.0 - 2024-05-30 -* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code - * Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text` - * Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card` - * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type` - * Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required - * Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 15.8.0 - 2024-05-23 -* [#2092](https://github.com/stripe/stripe-node/pull/2092) Update generated code - * Add support for `external_account_collection` on `AccountSession.components.balances.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.balances.features`, and `AccountSessionCreateParams.components.payouts.features` - * Add support for new value `terminal_reader_invalid_location_for_payment` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `payment_method_remove` on `Checkout.Session.saved_payment_method_options` - -## 15.7.0 - 2024-05-16 -* [#2088](https://github.com/stripe/stripe-node/pull/2088) Update generated code - * Add support for `fee_source` on `ApplicationFee` - * Add support for `net_available` on `Balance.instant_available[]` - * Add support for `preferred_locales` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, and `PaymentMethod.card_present` - * Add support for `klarna` on `Dispute.payment_method_details` - * Add support for new value `klarna` on enum `Dispute.payment_method_details.type` - * Add support for `archived` and `lookup_key` on `Entitlements.FeatureListParams` - * Change `FinancialConnections.SessionCreateParams.filters.countries` to be optional - * Add support for `no_valid_authorization` on `Issuing.Dispute.evidence`, `Issuing.DisputeCreateParams.evidence`, and `Issuing.DisputeUpdateParams.evidence` - * Add support for new value `no_valid_authorization` on enums `Issuing.Dispute.evidence.reason`, `Issuing.DisputeCreateParams.evidence.reason`, and `Issuing.DisputeUpdateParams.evidence.reason` - * Add support for `loss_reason` on `Issuing.Dispute` - * Add support for `routing` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` - * Add support for `application_fee_amount` and `application_fee` on `Payout` - * Add support for `stripe_s700` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` - * Change `Treasury.OutboundPayment.tracking_details` and `Treasury.OutboundTransfer.tracking_details` to be required - -## 15.6.0 - 2024-05-09 -* [#2086](https://github.com/stripe/stripe-node/pull/2086) Update generated code - * Remove support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` -* [#2080](https://github.com/stripe/stripe-node/pull/2080) Update generated code - * Add support for `update` test helper method on resources `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` - * Add support for `allow_redisplay` on `ConfirmationToken.payment_method_preview` and `PaymentMethod` - * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enum `Event.type` - * Add support for `preview_mode` on `InvoiceCreatePreviewParams`, `InvoiceUpcomingLinesParams`, and `InvoiceUpcomingParams` - * Add support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` - * Add support for `tracking_details` on `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` - * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#2085](https://github.com/stripe/stripe-node/pull/2085) Remove unnecessary pointer to description in deprecation message - -## 15.5.0 - 2024-05-02 -* [#2072](https://github.com/stripe/stripe-node/pull/2072) Update generated code - * Add support for new value `shipping_address_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Fix properties incorrectly marked as required in the OpenAPI spec. - * Change `Apps.Secret.payload`, `BillingPortal.Configuration.features.subscription_update.products`, `Charge.refunds`, `ConfirmationToken.payment_method_preview.klarna.dob`, `Identity.VerificationReport.document.dob`, `Identity.VerificationReport.document.expiration_date`, `Identity.VerificationReport.document.number`, `Identity.VerificationReport.id_number.dob`, `Identity.VerificationReport.id_number.id_number`, `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.dob`, `Identity.VerificationSession.verified_outputs.id_number`, `Identity.VerificationSession.verified_outputs`, `Issuing.Dispute.balance_transactions`, `Issuing.Transaction.purchase_details`, `PaymentMethod.klarna.dob`, `Tax.Calculation.line_items`, `Tax.CalculationLineItem.tax_breakdown`, `Tax.Transaction.line_items`, `Treasury.FinancialAccount.financial_addresses[].aba.account_number`, `Treasury.ReceivedCredit.linked_flows.source_flow_details`, `Treasury.Transaction.entries`, `Treasury.Transaction.flow_details`, and `Treasury.TransactionEntry.flow_details` to be optional - * Add support for `paypal` on `Dispute.payment_method_details` - * Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')` - * Change type of `Entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` - * Add support for `payment_method_types` on `PaymentIntentConfirmParams` - * Add support for `ship_from_details` on `Tax.CalculationCreateParams`, `Tax.Calculation`, and `Tax.Transaction` - * Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` -* [#2077](https://github.com/stripe/stripe-node/pull/2077) Deprecate Node methods and params based on OpenAPI spec - - Mark as deprecated the `approve` and `decline` methods on `Issuing.Authorization`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). - - Mark as deprecated the `persistent_token` property on `ConfirmationToken.PaymentMethodPreview.Link`, `PaymentIntent.PaymentMethodOptions.Link`, `PaymentIntentResource.PaymentMethodOptions.Link`, `PaymentMethod.Link.persistent_token`. `SetupIntents.PaymentMethodOptions.Card.Link.persistent_token`, `SetupIntentsResource.persistent_token`. This is a legacy parameter that no longer has any function. -* [#2074](https://github.com/stripe/stripe-node/pull/2074) Add a more explicit comment on `limit` param in `autoPagingToArray` - -## 15.4.0 - 2024-04-25 -* [#2071](https://github.com/stripe/stripe-node/pull/2071) Update generated code - * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay` - * Change type of `Entitlements.ActiveEntitlement.feature` from `string` to `expandable(Entitlements.Feature)` - * Remove support for inadvertently released identity verification features `email` and `phone` on `Identity.VerificationSessionCreateParams.options` and `Identity.VerificationSessionUpdateParams.options` - * Change `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.email`, and `Identity.VerificationSession.verified_outputs.phone` to be required - * Add support for new values `amazon_pay` and `revolut_pay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for `amazon_pay` and `revolut_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details` - * Add support for `ending_before`, `limit`, and `starting_after` on `PaymentMethodConfigurationListParams` - * Add support for `mobilepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` -* [#2061](https://github.com/stripe/stripe-node/pull/2061) Make cloudflare package export - -## 15.3.0 - 2024-04-18 -* [#2069](https://github.com/stripe/stripe-node/pull/2069) Update generated code - * Add support for `create_preview` method on resource `Invoice` - * Add support for `payment_method_data` on `Checkout.SessionCreateParams` - * Add support for `saved_payment_method_options` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `mobilepay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for new value `mobilepay` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `allow_redisplay` on `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerListPaymentMethodsParams`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `schedule_details` and `subscription_details` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Add support for new value `other` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` - -## 15.2.0 - 2024-04-16 -* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code - * Add support for new resource `Entitlements.ActiveEntitlementSummary` - * Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required - * Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional - * Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard` - * Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type` - * Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API. - * Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay` - * Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 15.1.0 - 2024-04-11 -* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code - * Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features` - * Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Change `Billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `Billing.MeterEventAdjustmentCreateParams.cancel` to be optional - * Change `Billing.MeterEventAdjustmentCreateParams.type` to be required - * Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `BillingMeterResourceBillingMeterEventAdjustmentCancel | null` - * Add support for `amazon_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for new value `ownership` on enums `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` - * Add support for new value `amazon_pay` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `amazon_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `amazon_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh` - * Add support for new value `ownership` on enums `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` and `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` - -## 15.0.0 - 2024-04-10 -* [#2057](https://github.com/stripe/stripe-node/pull/2057) - - * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading. - - ### āš ļø Breaking changes - - * Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent` - * Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent` - * Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`. - - #### āš ļø Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API - - * Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated. - * `BillingPortal.Configuration.Features` - * `BillingPortal.ConfigurationCreateParams.Features` - * `BillingPortal.ConfigurationUpdateParams.Features` - * Remove the below deprecated values for the type `BalanceTransaction.Type` - * `obligation_inbound` - * `obligation_payout` - * `obligation_payout_failure` - * `'obligation_reversal_outbound'` - * Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway` - * Remove deprecated events - * `invoiceitem.updated` - * `order.created` - * `recipient.created` - * `recipient.deleted` - * `recipient.updated` - * `sku.created` - * `sku.deleted` - * `sku.updated` - * Remove types for the deprecated events - * `InvoiceItemUpdatedEvent` - * `OrderCreatedEvent` - * `RecipientCreatedEvent` - * `RecipientDeletedEvent` - * `RecipientUpdatedEvent` - * `SKUCreatedEvent` - * `SKUDeletedEvent` - * Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior` - * Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData` - * Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent` - * Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration` - * Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory` - * Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure` - * Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead. - -## 14.25.0 - 2024-04-09 -* [#2059](https://github.com/stripe/stripe-node/pull/2059) Update generated code - * Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature` - * Add support for `list` and `retrieve` methods on resource `ActiveEntitlement` - * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature` - * Add support for `controller` on `AccountCreateParams` - * Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller` - * Add support for new value `none` on enum `Account.type` - * Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment` - * Add support for `cancel` and `type` on `Billing.MeterEventAdjustment` - - -## 14.24.0 - 2024-04-04 -* [#2053](https://github.com/stripe/stripe-node/pull/2053) Update generated code - * Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required - * Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string` - * Add support for `subscription_item` on `Discount` - * Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options` - * Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession` - * Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type` - * Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession` - * Change `Identity.VerificationSessionCreateParams.type` to be optional - * Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code` - * Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]` - * Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription` - * Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))` - * Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls` - * Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for `offline` on `SetupAttempt.payment_method_details.card_present` - * Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` - -## 14.23.0 - 2024-03-28 -* [#2046](https://github.com/stripe/stripe-node/pull/2046) Update generated code - * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter` - * Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter` - * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent` - * Add support for `amazon_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new value `verification_failed_representative_authority` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for `destination_on_behalf_of_charge_management` on `AccountSession.components.payment_details.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.payment_details.features`, and `AccountSessionCreateParams.components.payments.features` - * Add support for `mandate` on `Charge.payment_method_details.us_bank_account`, `Treasury.InboundTransfer.origin_payment_method_details.us_bank_account`, `Treasury.OutboundPayment.destination_payment_method_details.us_bank_account`, and `Treasury.OutboundTransfer.destination_payment_method_details.us_bank_account` - * Add support for `second_line` on `Issuing.CardCreateParams` - * Add support for `meter` on `PlanCreateParams`, `Plan`, `Price.recurring`, `PriceCreateParams.recurring`, and `PriceListParams.recurring` -* [#2045](https://github.com/stripe/stripe-node/pull/2045) esbuild test project fixes - -## 14.22.0 - 2024-03-21 -* [#2040](https://github.com/stripe/stripe-node/pull/2040) Update generated code - * Add support for new resources `ConfirmationToken` and `Forwarding.Request` - * Add support for `retrieve` method on resource `ConfirmationToken` - * Add support for `create`, `list`, and `retrieve` methods on resource `Request` - * Add support for `mobilepay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new values `forwarding_api_inactive`, `forwarding_api_invalid_parameter`, `forwarding_api_upstream_connection_error`, and `forwarding_api_upstream_connection_timeout` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `mobilepay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `payment_reference` on `Charge.payment_method_details.us_bank_account` - * Add support for new value `mobilepay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for `confirmation_token` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `SetupIntentConfirmParams`, and `SetupIntentCreateParams` - * Add support for new value `mobilepay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `mobilepay` on enum `PaymentMethod.type` - * Add support for `name` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` - * Add support for `payout` on `Treasury.ReceivedDebit.linked_flows` -* [#2043](https://github.com/stripe/stripe-node/pull/2043) Don't mutate error.type during minification - -## 14.21.0 - 2024-03-14 -* [#2035](https://github.com/stripe/stripe-node/pull/2035) Update generated code - * Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle` - * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign` - * Add support for `list` and `retrieve` methods on resource `PhysicalBundle` - * Add support for `personalization_design` on `Issuing.CardCreateParams`, `Issuing.CardListParams`, `Issuing.CardUpdateParams`, and `Issuing.Card` - * Change type of `SubscriptionCreateParams.application_fee_percent` and `SubscriptionUpdateParams.application_fee_percent` from `number` to `emptyStringable(number)` - * Add support for `sepa_debit` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` - -## 14.20.0 - 2024-03-07 -* [#2033](https://github.com/stripe/stripe-node/pull/2033) Update generated code - * Add support for `documents` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Add support for `request_three_d_secure` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card` - * Add support for `created` on `CreditNoteListParams` - * Add support for `sepa_debit` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, and `InvoiceUpdateParams.payment_settings.payment_method_options` - -## 14.19.0 - 2024-02-29 -* [#2029](https://github.com/stripe/stripe-node/pull/2029) Update generated code - * Change `Identity.VerificationReport.type`, `SubscriptionSchedule.default_settings.invoice_settings.account_tax_ids`, `SubscriptionSchedule.phases[].invoice_settings.account_tax_ids`, and `TaxId.owner` to be required - * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number') | null` to `enum('document'|'id_number')` - * Add support for `number` on `InvoiceCreateParams` and `InvoiceUpdateParams` - * Add support for `enable_customer_cancellation` on `Terminal.Reader.action.process_payment_intent.process_config`, `Terminal.Reader.action.process_setup_intent.process_config`, `Terminal.ReaderProcessPaymentIntentParams.process_config`, and `Terminal.ReaderProcessSetupIntentParams.process_config` - * Add support for `refund_payment_config` on `Terminal.Reader.action.refund_payment` and `Terminal.ReaderRefundPaymentParams` - * Add support for `payment_method` on `TokenCreateParams.bank_account` -* [#2027](https://github.com/stripe/stripe-node/pull/2027) vscode settings: true -> "explicit" - -## 14.18.0 - 2024-02-22 -* [#2022](https://github.com/stripe/stripe-node/pull/2022) Update generated code - * Add support for `client_reference_id` on `Identity.VerificationReportListParams`, `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` - * Add support for `created` on `Treasury.OutboundPaymentListParams` -* [#2025](https://github.com/stripe/stripe-node/pull/2025) Standardize parameter interface names - - `CapabilityListParams` renamed to `AccountListCapabilitiesParams` - - `CapabilityRetrieveParams` renamed to `AccountRetrieveCapabilityParams` - - `CapabilityUpdateParams` renamed to `AccountUpdateCapabilityParams` - - `CashBalanceRetrieveParams` renamed to `CustomerRetrieveCashBalanceParams` - - `CashBalanceUpdateParams` renamed to `CustomerUpdateCashBalanceParams` - - `CreditNoteLineItemListParams` renamed to `CreditNoteListLineItemsParams` - - `CustomerBalanceTransactionCreateParams` renamed to `CustomerCreateBalanceTransactionParams` - - `CustomerBalanceTransactionListParams` renamed to `CustomerListBalanceTransactionsParams` - - `CustomerBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveBalanceTransactionParams` - - `CustomerBalanceTransactionUpdateParams` renamed to `CustomerUpdateBalanceTransactionParams` - - `CustomerCashBalanceTransactionListParams` renamed to `CustomerListCashBalanceTransactionsParams` - - `CustomerCashBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveCashBalanceTransactionParams` - - `CustomerSourceCreateParams` renamed to `CustomerCreateSourceParams` - - `CustomerSourceDeleteParams` renamed to `CustomerDeleteSourceParams` - - `CustomerSourceListParams` renamed to `CustomerListSourcesParams` - - `CustomerSourceRetrieveParams` renamed to `CustomerRetrieveSourceParams` - - `CustomerSourceUpdateParams` renamed to `CustomerUpdateSourceParams` - - `CustomerSourceVerifyParams` renamed to `CustomerVerifySourceParams` - - `ExternalAccountCreateParams` renamed to `AccountCreateExternalAccountParams` - - `ExternalAccountDeleteParams` renamed to `AccountDeleteExternalAccountParams` - - `ExternalAccountListParams` renamed to `AccountListExternalAccountsParams` - - `ExternalAccountRetrieveParams` renamed to `AccountRetrieveExternalAccountParams` - - `ExternalAccountUpdateParams` renamed to `AccountUpdateExternalAccountParams` - - `FeeRefundCreateParams` renamed to `ApplicationFeeCreateRefundParams` - - `FeeRefundListParams` renamed to `ApplicationFeeListRefundsParams` - - `FeeRefundRetrieveParams` renamed to `ApplicationFeeRetrieveRefundParams` - - `FeeRefundUpdateParams` renamed to `ApplicationFeeUpdateRefundParams` - - `InvoiceLineItemListParams` renamed to `InvoiceListLineItemsParams` - - `InvoiceLineItemUpdateParams` renamed to `InvoiceUpdateLineItemParams` - - `LoginLinkCreateParams` renamed to `AccountCreateLoginLinkParams` - - `PersonCreateParams` renamed to `AccountCreatePersonParams` - - `PersonDeleteParams` renamed to `AccountDeletePersonParams` - - `PersonListParams` renamed to `AccountListPersonsParams` - - `PersonRetrieveParams` renamed to `AccountRetrievePersonParams` - - `PersonUpdateParams` renamed to `AccountUpdatePersonParams` - - `TaxIdCreateParams` renamed to `CustomerCreateTaxIdParams` - - `TaxIdDeleteParams` renamed to `CustomerDeleteTaxIdParams` - - `TaxIdListParams` renamed to `CustomerListTaxIdsParams` - - `TaxIdRetrieveParams` renamed to `CustomerRetrieveTaxIdParams` - - `TransferReversalCreateParams` renamed to `TransferCreateReversalParams` - - `TransferReversalListParams` renamed to `TransferListReversalsParams` - - `TransferReversalRetrieveParams` renamed to `TransferRetrieveReversalParams` - - `TransferReversalUpdateParams` renamed to `TransferUpdateReversalParams` - - `UsageRecordCreateParams` renamed to `SubscriptionItemCreateUsageRecordParams` - - `UsageRecordSummaryListParams` renamed to `SubscriptionItemListUsageRecordSummariesParams` - - Old names will still work but are deprecated and will be removed in future versions. -* [#2021](https://github.com/stripe/stripe-node/pull/2021) Add TaxIds API - * Add support for `create`, `del`, `list`, and `retrieve` methods on resource `TaxId` - -## 14.17.0 - 2024-02-15 -* [#2018](https://github.com/stripe/stripe-node/pull/2018) Update generated code - * Add support for `networks` on `Card`, `PaymentMethodCreateParams.card`, `PaymentMethodUpdateParams.card`, and `TokenCreateParams.card` - * Add support for new value `no_voec` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new value `no_voec` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type` - * Add support for `display_brand` on `PaymentMethod.card` - * Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 14.16.0 - 2024-02-08 -* [#2012](https://github.com/stripe/stripe-node/pull/2012) Update generated code - * Add support for `invoices` on `Account.settings` and `AccountUpdateParams.settings` - * Add support for new value `velobank` on enums `Charge.payment_method_details.p24.bank`, `PaymentIntentConfirmParams.payment_method_data.p24.bank`, `PaymentIntentCreateParams.payment_method_data.p24.bank`, `PaymentIntentUpdateParams.payment_method_data.p24.bank`, `PaymentMethod.p24.bank`, `PaymentMethodCreateParams.p24.bank`, `SetupIntentConfirmParams.payment_method_data.p24.bank`, `SetupIntentCreateParams.payment_method_data.p24.bank`, and `SetupIntentUpdateParams.payment_method_data.p24.bank` - * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.blik`, `PaymentIntentConfirmParams.payment_method_options.blik`, `PaymentIntentCreateParams.payment_method_options.blik`, and `PaymentIntentUpdateParams.payment_method_options.blik` - * Add support for `require_cvc_recollection` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `account_tax_ids` on `SubscriptionCreateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, `SubscriptionScheduleUpdateParams.phases[].invoice_settings`, and `SubscriptionUpdateParams.invoice_settings` - -## 14.15.0 - 2024-02-05 -* [#2001](https://github.com/stripe/stripe-node/pull/2001) Update generated code - * Add support for `swish` payment method throughout the API - * Add support for `relationship` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, and `TokenCreateParams.account.individual` - * Add support for `jurisdiction_level` on `TaxRate` - * Change type of `Terminal.Reader.status` from `string` to `enum('offline'|'online')` -* [#2009](https://github.com/stripe/stripe-node/pull/2009) Remove https check for *.stripe.com - * Stops throwing exceptions if `protocol: 'http'` is set for requests to `api.stripe.com`. - -## 14.14.0 - 2024-01-25 -* [#1998](https://github.com/stripe/stripe-node/pull/1998) Update generated code - * Add support for `annual_revenue` and `estimated_worker_count` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` - * Add support for new value `registered_charity` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` - * Add support for `collection_options` on `AccountLinkCreateParams` - * Add support for `liability` on `Checkout.Session.automatic_tax`, `Checkout.SessionCreateParams.automatic_tax`, `PaymentLink.automatic_tax`, `PaymentLinkCreateParams.automatic_tax`, `PaymentLinkUpdateParams.automatic_tax`, `Quote.automatic_tax`, `QuoteCreateParams.automatic_tax`, `QuoteUpdateParams.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, `SubscriptionSchedule.phases[].automatic_tax`, `SubscriptionScheduleCreateParams.default_settings.automatic_tax`, `SubscriptionScheduleCreateParams.phases[].automatic_tax`, `SubscriptionScheduleUpdateParams.default_settings.automatic_tax`, and `SubscriptionScheduleUpdateParams.phases[].automatic_tax` - * Add support for `issuer` on `Checkout.Session.invoice_creation.invoice_data`, `Checkout.SessionCreateParams.invoice_creation.invoice_data`, `PaymentLink.invoice_creation.invoice_data`, `PaymentLinkCreateParams.invoice_creation.invoice_data`, `PaymentLinkUpdateParams.invoice_creation.invoice_data`, `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings` - * Add support for `invoice_settings` on `Checkout.SessionCreateParams.subscription_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` - * Add support for new value `challenge` on enums `Invoice.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `Subscription.payment_settings.payment_method_options.card.request_three_d_secure`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure` - * Add support for `promotion_code` on `InvoiceUpcomingLinesParams.discounts[]`, `InvoiceUpcomingLinesParams.invoice_items[].discounts[]`, `InvoiceUpcomingParams.discounts[]`, and `InvoiceUpcomingParams.invoice_items[].discounts[]` - * Add support for `account_type` on `PaymentMethodUpdateParams.us_bank_account` -* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code - * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` - * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required - * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` - * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Add support for `pin` on `Issuing.CardCreateParams` - * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` - * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` -* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding - -## 14.13.0 - 2024-01-18 -* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code - * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` - * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required - * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` - * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Add support for `pin` on `Issuing.CardCreateParams` - * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` - * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` -* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding - -## 14.12.0 - 2024-01-12 -* [#1990](https://github.com/stripe/stripe-node/pull/1990) Update generated code - * Add support for new resource `CustomerSession` - * Add support for `create` method on resource `CustomerSession` - * Remove support for values `obligation_inbound`, `obligation_payout_failure`, `obligation_payout`, and `obligation_reversal_outbound` from enum `BalanceTransaction.type` - * Add support for new values `eps` and `p24` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Remove support for value `obligation` from enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - * Add support for `billing_cycle_anchor_config` on `SubscriptionCreateParams` and `Subscription` - -## 14.11.0 - 2024-01-04 -* [#1985](https://github.com/stripe/stripe-node/pull/1985) Update generated code - * Add support for `retrieve` method on resource `Tax.Registration` - * Change `AccountSession.components.payment_details.features`, `AccountSession.components.payment_details`, `AccountSession.components.payments.features`, `AccountSession.components.payments`, `AccountSession.components.payouts.features`, `AccountSession.components.payouts`, `PaymentLink.inactive_message`, and `PaymentLink.restrictions` to be required - * Change type of `SubscriptionSchedule.default_settings.invoice_settings` from `InvoiceSettingSubscriptionScheduleSetting | null` to `InvoiceSettingSubscriptionScheduleSetting` -* [#1987](https://github.com/stripe/stripe-node/pull/1987) Update docstrings to indicate removal of deprecated event types - -## 14.10.0 - 2023-12-22 -* [#1979](https://github.com/stripe/stripe-node/pull/1979) Update generated code - * Add support for `collection_method` on `Mandate.payment_method_details.us_bank_account` - * Add support for `mandate_options` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` -* [#1976](https://github.com/stripe/stripe-node/pull/1976) Update generated code - * Add support for new resource `FinancialConnections.Transaction` - * Add support for `list` and `retrieve` methods on resource `Transaction` - * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account` - * Add support for `features` on `AccountSessionCreateParams.components.payouts` - * Add support for `edit_payout_schedule`, `instant_payouts`, and `standard_payouts` on `AccountSession.components.payouts.features` - * Change type of `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` from `literal('balances')` to `enum('balances'|'transactions')` - * Add support for new value `financial_connections.account.refreshed_transactions` on enum `Event.type` - * Add support for new value `transactions` on enum `FinancialConnections.AccountRefreshParams.features[]` - * Add support for `subscriptions` and `transaction_refresh` on `FinancialConnections.Account` - * Add support for `next_refresh_available_at` on `FinancialConnections.Account.balance_refresh` - * Add support for new value `transactions` on enums `FinancialConnections.Session.prefetch[]` and `FinancialConnections.SessionCreateParams.prefetch[]` - * Add support for new value `unknown` on enums `Issuing.Authorization.verification_data.authentication_exemption.type` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data.authentication_exemption.type` - * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure`, `PaymentIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentCreateParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentUpdateParams.payment_method_options.card.request_three_d_secure`, `SetupIntent.payment_method_options.card.request_three_d_secure`, `SetupIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `SetupIntentCreateParams.payment_method_options.card.request_three_d_secure`, and `SetupIntentUpdateParams.payment_method_options.card.request_three_d_secure` - * Add support for `revolut_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - * Change type of `Quote.invoice_settings` from `InvoiceSettingQuoteSetting | null` to `InvoiceSettingQuoteSetting` - * Add support for `destination_details` on `Refund` - * Add support for new value `financial_connections.account.refreshed_transactions` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 14.9.0 - 2023-12-14 -* [#1973](https://github.com/stripe/stripe-node/pull/1973) Add `usage` to X-Stripe-Client-Telemetry -* [#1971](https://github.com/stripe/stripe-node/pull/1971) Update generated code - * Add support for `payment_method_reuse_agreement` on `Checkout.Session.consent_collection`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` - * Add support for `after_submit` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` - * Add support for `created` on `Radar.EarlyFraudWarningListParams` - -## 14.8.0 - 2023-12-07 -* [#1968](https://github.com/stripe/stripe-node/pull/1968) Update generated code - * Add support for `payment_details`, `payments`, and `payouts` on `AccountSession.components` and `AccountSessionCreateParams.components` - * Add support for `features` on `AccountSession.components.account_onboarding` and `AccountSessionCreateParams.components.account_onboarding` - * Add support for new values `customer_tax_location_invalid` and `financial_connections_no_successful_transaction_refresh` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for new values `payment_network_reserve_hold` and `payment_network_reserve_release` on enum `BalanceTransaction.type` - * Change `Climate.Product.metric_tons_available` to be required - * Remove support for value `various` from enum `Climate.Supplier.removal_pathway` - * Remove support for values `challenge_only` and `challenge` from enum `PaymentIntent.payment_method_options.card.request_three_d_secure` - * Add support for `inactive_message` and `restrictions` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for `transfer_group` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` - * Add support for `trial_settings` on `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` - -## 14.7.0 - 2023-11-30 -* [#1965](https://github.com/stripe/stripe-node/pull/1965) Update generated code - * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier` - * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `Order` - * Add support for `list` and `retrieve` methods on resources `Product` and `Supplier` - * Add support for new value `financial_connections_account_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `BalanceTransaction.type` - * Add support for `created` on `Checkout.SessionListParams` - * Add support for `validate_location` on `CustomerCreateParams.tax` and `CustomerUpdateParams.tax` - * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enum `Event.type` - * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure` and `SetupIntent.payment_method_options.card.request_three_d_secure` - * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 14.6.0 - 2023-11-21 -* [#1961](https://github.com/stripe/stripe-node/pull/1961) Update generated code - * Add support for `electronic_commerce_indicator` on `Charge.payment_method_details.card.three_d_secure` and `SetupAttempt.payment_method_details.card.three_d_secure` - * Add support for `exemption_indicator_applied` and `exemption_indicator` on `Charge.payment_method_details.card.three_d_secure` - * Add support for `transaction_id` on `Charge.payment_method_details.card.three_d_secure`, `Issuing.Authorization.network_data`, `Issuing.Transaction.network_data`, and `SetupAttempt.payment_method_details.card.three_d_secure` - * Add support for `offline` on `Charge.payment_method_details.card_present` - * Add support for `system_trace_audit_number` on `Issuing.Authorization.network_data` - * Add support for `network_risk_score` on `Issuing.Authorization.pending_request` and `Issuing.Authorization.request_history[]` - * Add support for `requested_at` on `Issuing.Authorization.request_history[]` - * Add support for `authorization_code` on `Issuing.Transaction.network_data` - * Add support for `three_d_secure` on `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, and `SetupIntentUpdateParams.payment_method_options.card` - -## 14.5.0 - 2023-11-16 -* [#1957](https://github.com/stripe/stripe-node/pull/1957) Update generated code - * Add support for `bacs_debit_payments` on `AccountCreateParams.settings` and `AccountUpdateParams.settings` - * Add support for `service_user_number` on `Account.settings.bacs_debit_payments` - * Change type of `Account.settings.bacs_debit_payments.display_name` from `string` to `string | null` - * Add support for `capture_before` on `Charge.payment_method_details.card` - * Add support for `paypal` on `Checkout.Session.payment_method_options` - * Add support for `tax_amounts` on `CreditNoteCreateParams.lines[]`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]` - * Add support for `network_data` on `Issuing.Transaction` -* [#1960](https://github.com/stripe/stripe-node/pull/1960) Update generated code - * Add support for `status` on `Checkout.SessionListParams` -* [#1958](https://github.com/stripe/stripe-node/pull/1958) Move Webhooks instance to static field -* [#1952](https://github.com/stripe/stripe-node/pull/1952) Use AbortController for native fetch cancellation when available - -## 14.4.0 - 2023-11-09 -* [#1947](https://github.com/stripe/stripe-node/pull/1947) Update generated code - * Add support for new value `terminal_reader_hardware_fault` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Change `Charge.payment_method_details.card.amount_authorized`, `Checkout.Session.payment_method_configuration_details`, `PaymentIntent.latest_charge`, `PaymentIntent.payment_method_configuration_details`, and `SetupIntent.payment_method_configuration_details` to be required - * Change `Product.features[].name` to be optional - * Add support for `metadata` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, and `QuoteUpdateParams.subscription_data` - -## 14.3.0 - 2023-11-02 -* [#1943](https://github.com/stripe/stripe-node/pull/1943) Update generated code - * Add support for new resource `Tax.Registration` - * Add support for `create`, `list`, and `update` methods on resource `Registration` - * Add support for `revolut_pay_payments` on `Account` APIs. - * Add support for new value `token_card_network_invalid` on error code enums. - * Add support for new value `payment_unreconciled` on enum `BalanceTransaction.type` - * Add support for `revolut_pay` throughout the API. - * Change `.paypal.payer_email` to be required in several locations. - * Add support for `aba` and `swift` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` - * Add support for new values `ach`, `domestic_wire_us`, and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` - * Add support for new values `aba` and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` - * Add support for `url` on `Issuing.Authorization.merchant_data`, `Issuing.AuthorizationCreateParams.testHelpers.merchant_data`, `Issuing.Transaction.merchant_data`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.merchant_data`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.merchant_data` - * Add support for `authentication_exemption` and `three_d_secure` on `Issuing.Authorization.verification_data` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data` - * Add support for `description` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` - * Add support for new value `unreconciled_customer_funds` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - -## 14.2.0 - 2023-10-26 -* [#1939](https://github.com/stripe/stripe-node/pull/1939) Update generated code - * Add support for new value `balance_invalid_parameter` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Change `Issuing.Cardholder.individual.card_issuing` to be optional -* [#1940](https://github.com/stripe/stripe-node/pull/1940) Do not require passing apiVersion - -## 14.1.0 - 2023-10-17 -* [#1933](https://github.com/stripe/stripe-node/pull/1933) Update generated code - * Add support for new value `invalid_dob_age_under_minimum` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Change `Checkout.Session.client_secret` and `Checkout.Session.ui_mode` to be required - -## 14.0.0 - 2023-10-16 -* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe` package. -* [#1932](https://github.com/stripe/stripe-node/pull/1932) Update generated code - * Add support for `legal_guardian` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship` - * Add support for new values `invalid_address_highway_contract_box`, `invalid_address_private_mailbox`, `invalid_business_profile_name_denylisted`, `invalid_business_profile_name`, `invalid_company_name_denylisted`, `invalid_dob_age_over_maximum`, `invalid_product_description_length`, `invalid_product_description_url_match`, `invalid_statement_descriptor_business_mismatch`, `invalid_statement_descriptor_denylisted`, `invalid_statement_descriptor_length`, `invalid_statement_descriptor_prefix_denylisted`, `invalid_statement_descriptor_prefix_mismatch`, `invalid_tax_id_format`, `invalid_tax_id`, `invalid_url_denylisted`, `invalid_url_format`, `invalid_url_length`, `invalid_url_web_presence_detected`, `invalid_url_website_business_information_mismatch`, `invalid_url_website_empty`, `invalid_url_website_inaccessible_geoblocked`, `invalid_url_website_inaccessible_password_protected`, `invalid_url_website_inaccessible`, `invalid_url_website_incomplete_cancellation_policy`, `invalid_url_website_incomplete_customer_service_details`, `invalid_url_website_incomplete_legal_restrictions`, `invalid_url_website_incomplete_refund_policy`, `invalid_url_website_incomplete_return_policy`, `invalid_url_website_incomplete_terms_and_conditions`, `invalid_url_website_incomplete_under_construction`, `invalid_url_website_incomplete`, and `invalid_url_website_other` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * Add support for `additional_tos_acceptances` on `TokenCreateParams.person` - * Add support for new value `2023-10-16` on enum `WebhookEndpointCreateParams.api_version` - -## 13.11.0 - 2023-10-16 -* [#1924](https://github.com/stripe/stripe-node/pull/1924) Update generated code - * Add support for new values `issuing_token.created` and `issuing_token.updated` on enum `Event.type` - * Add support for new values `issuing_token.created` and `issuing_token.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1926](https://github.com/stripe/stripe-node/pull/1926) Add named unions for all polymorphic types -* [#1921](https://github.com/stripe/stripe-node/pull/1921) Add event types - -## 13.10.0 - 2023-10-11 -* [#1920](https://github.com/stripe/stripe-node/pull/1920) Update generated code - * Add support for `redirect_on_completion`, `return_url`, and `ui_mode` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Change `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.success_url`, `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, and `PaymentLink.custom_fields[].text` to be optional - * Add support for `client_secret` on `Checkout.Session` - * Change type of `Checkout.Session.custom_fields[].dropdown` from `PaymentPagesCheckoutSessionCustomFieldsDropdown | null` to `PaymentPagesCheckoutSessionCustomFieldsDropdown` - * Change type of `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` from `PaymentPagesCheckoutSessionCustomFieldsNumeric | null` to `PaymentPagesCheckoutSessionCustomFieldsNumeric` - * Add support for `postal_code` on `Issuing.Authorization.verification_data` - * Change type of `PaymentLink.custom_fields[].dropdown` from `PaymentLinksResourceCustomFieldsDropdown | null` to `PaymentLinksResourceCustomFieldsDropdown` - * Change type of `PaymentLink.custom_fields[].numeric` and `PaymentLink.custom_fields[].text` from `PaymentLinksResourceCustomFieldsNumeric | null` to `PaymentLinksResourceCustomFieldsNumeric` - * Add support for `offline` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` -* [#1914](https://github.com/stripe/stripe-node/pull/1914) Bump get-func-name from 2.0.0 to 2.0.2 - -## 13.9.0 - 2023-10-05 -* [#1916](https://github.com/stripe/stripe-node/pull/1916) Update generated code - * Add support for new resource `Issuing.Token` - * Add support for `list`, `retrieve`, and `update` methods on resource `Token` - * Add support for `amount_authorized`, `extended_authorization`, `incremental_authorization`, `multicapture`, and `overcapture` on `Charge.payment_method_details.card` - * Add support for `token` on `Issuing.Authorization` and `Issuing.Transaction` - * Add support for `authorization_code` on `Issuing.Authorization.request_history[]` - * Add support for `request_extended_authorization`, `request_multicapture`, and `request_overcapture` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `request_incremental_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `final_capture` on `PaymentIntentCaptureParams` - * Add support for `metadata` on `PaymentLink.payment_intent_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkCreateParams.subscription_data` - * Add support for `statement_descriptor_suffix` and `statement_descriptor` on `PaymentLink.payment_intent_data` and `PaymentLinkCreateParams.payment_intent_data` - * Add support for `payment_intent_data` and `subscription_data` on `PaymentLinkUpdateParams` - -## 13.8.0 - 2023-09-28 -* [#1911](https://github.com/stripe/stripe-node/pull/1911) Update generated code - * Add support for `rendering` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` - * Change `PaymentMethod.us_bank_account.financial_connections_account` and `PaymentMethod.us_bank_account.status_details` to be required - -## 13.7.0 - 2023-09-21 -* [#1907](https://github.com/stripe/stripe-node/pull/1907) Update generated code - * Add support for `terms_of_service_acceptance` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` - -## 13.6.0 - 2023-09-14 -* [#1905](https://github.com/stripe/stripe-node/pull/1905) Update generated code - * Add support for new resource `PaymentMethodConfiguration` - * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration` - * Add support for `payment_method_configuration` on `Checkout.SessionCreateParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` - * Add support for `payment_method_configuration_details` on `Checkout.Session`, `PaymentIntent`, and `SetupIntent` -* [#1897](https://github.com/stripe/stripe-node/pull/1897) Update generated code - * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization` - * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction` - * Add support for new value `stripe_tax_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `nonce` on `EphemeralKeyCreateParams` - * Add support for `cashback_amount` on `Issuing.Authorization.amount_details`, `Issuing.Authorization.pending_request.amount_details`, `Issuing.Authorization.request_history[].amount_details`, and `Issuing.Transaction.amount_details` - * Add support for `serial_number` on `Terminal.ReaderListParams` -* [#1895](https://github.com/stripe/stripe-node/pull/1895) feat: webhook signing Nestjs -* [#1878](https://github.com/stripe/stripe-node/pull/1878) Use src/apiVersion.ts, not API_VERSION as source of truth - -## 13.5.0 - 2023-09-07 -* [#1893](https://github.com/stripe/stripe-node/pull/1893) Update generated code - * Add support for new resource `PaymentMethodDomain` - * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain` - * Add support for new value `n26` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `NTSBDEB1` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Add support for new values `treasury.credit_reversal.created`, `treasury.credit_reversal.posted`, `treasury.debit_reversal.completed`, `treasury.debit_reversal.created`, `treasury.debit_reversal.initial_credit_granted`, `treasury.financial_account.closed`, `treasury.financial_account.created`, `treasury.financial_account.features_status_updated`, `treasury.inbound_transfer.canceled`, `treasury.inbound_transfer.created`, `treasury.inbound_transfer.failed`, `treasury.inbound_transfer.succeeded`, `treasury.outbound_payment.canceled`, `treasury.outbound_payment.created`, `treasury.outbound_payment.expected_arrival_date_updated`, `treasury.outbound_payment.failed`, `treasury.outbound_payment.posted`, `treasury.outbound_payment.returned`, `treasury.outbound_transfer.canceled`, `treasury.outbound_transfer.created`, `treasury.outbound_transfer.expected_arrival_date_updated`, `treasury.outbound_transfer.failed`, `treasury.outbound_transfer.posted`, `treasury.outbound_transfer.returned`, `treasury.received_credit.created`, `treasury.received_credit.failed`, `treasury.received_credit.succeeded`, and `treasury.received_debit.created` on enum `Event.type` - * Remove support for value `invoiceitem.updated` from enum `Event.type` - * Add support for `features` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` - * Remove support for value `invoiceitem.updated` from enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 13.4.0 - 2023-08-31 -* [#1884](https://github.com/stripe/stripe-node/pull/1884) Update generated code - * Add support for new resource `AccountSession` - * Add support for `create` method on resource `AccountSession` - * Add support for new values `obligation_inbound`, `obligation_outbound`, `obligation_payout_failure`, `obligation_payout`, `obligation_reversal_inbound`, and `obligation_reversal_outbound` on enum `BalanceTransaction.type` - * Change type of `Event.type` from `string` to `enum` - * Add support for `application` on `PaymentLink` - * Add support for new value `obligation` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` - -## 13.3.0 - 2023-08-24 -* [#1879](https://github.com/stripe/stripe-node/pull/1879) Update generated code - * Add support for `retention` on `BillingPortal.Session.flow.subscription_cancel` and `BillingPortal.SessionCreateParams.flow_data.subscription_cancel` - * Add support for `prefetch` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections`, `FinancialConnections.SessionCreateParams`, `FinancialConnections.Session`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` - * Add support for `payment_method_details` on `Dispute` - * Change type of `PaymentIntentCreateParams.mandate_data` and `SetupIntentCreateParams.mandate_data` from `secret_key_param` to `emptyStringable(secret_key_param)` - * Change type of `PaymentIntentConfirmParams.mandate_data` and `SetupIntentConfirmParams.mandate_data` from `secret_key_param | client_key_param` to `emptyStringable(secret_key_param | client_key_param)` - * Add support for `balance_transaction` on `CustomerCashBalanceTransaction.adjusted_for_overdraft` -* [#1882](https://github.com/stripe/stripe-node/pull/1882) Update v13.0.0 CHANGELOG.md -* [#1880](https://github.com/stripe/stripe-node/pull/1880) Improved `maxNetworkRetries` options JSDoc - -## 13.2.0 - 2023-08-17 -* [#1876](https://github.com/stripe/stripe-node/pull/1876) Update generated code - * Add support for `flat_amount` on `Tax.TransactionCreateReversalParams` - -## 13.1.0 - 2023-08-17 -* [#1875](https://github.com/stripe/stripe-node/pull/1875) Update Typescript types to support version `2023-08-16`. - -## 13.0.0 - 2023-08-16 -* This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-node`. -* More information is available in the [stripe-node v13 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v13) - -"āš ļø" symbol highlights breaking changes. - -* āš ļø[#1803](https://github.com/stripe/stripe-node/pull/1803) Change the default behavior to perform 1 reattempt on retryable request failures (previously the default was 0). -* [#1808](https://github.com/stripe/stripe-node/pull/1808) Allow request-level options to disable retries. -* āš ļøRemove deprecated `del` method on `Subscriptions`. Please use the `cancel` method instead, which was introduced in [v9.14.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#9140---2022-07-18): -* [#1872](https://github.com/stripe/stripe-node/pull/1872) Update generated code - * āš ļøAdd support for new values `verification_directors_mismatch`, `verification_document_directors_mismatch`, `verification_extraneous_directors`, and `verification_missing_directors` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - * āš ļøRemove support for values `custom_account_update` and `custom_account_verification` from enum `AccountLinkCreateParams.type` - * These values are not fully operational. Please use `account_update` and `account_onboarding` instead (see [API reference](https://stripe.com/docs/api/account_links/create#create_account_link-type)). - * āš ļøRemove support for `available_on` on `BalanceTransactionListParams` - * Use of this parameter is discouraged. Suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. - * āš ļøRemove support for `alternate_statement_descriptors` and `dispute` on `Charge` - * Use of these fields is discouraged. - * āš ļøRemove support for `destination` on `Charge` - * Please use `transfer_data` or `on_behalf_of` instead. - * āš ļøRemove support for `shipping_rates` on `Checkout.SessionCreateParams` - * Please use `shipping_options` instead. - * āš ļøRemove support for `coupon` and `trial_from_plan` on `Checkout.SessionCreateParams.subscription_data` - * Please [migrate to the Prices API](https://stripe.com/docs/billing/migration/migrating-prices), or suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. - * āš ļøRemove support for value `card_present` from enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * This value was not fully operational. - * āš ļøRemove support for value `charge_refunded` from enum `Dispute.status` - * This value was not fully operational. - * āš ļøRemove support for `blik` on `Mandate.payment_method_details`, `PaymentMethodUpdateParams`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` - * These fields were mistakenly released. - * āš ļøRemove support for `acss_debit`, `affirm`, `au_becs_debit`, `bacs_debit`, `cashapp`, `sepa_debit`, and `zip` on `PaymentMethodUpdateParams` - * These fields are empty. - * āš ļøRemove support for `country` on `PaymentMethod.link` - * This field was not fully operational. - * āš ļøRemove support for `recurring` on `PriceUpdateParams` - * This property should be set on create only. - * āš ļøRemove support for `attributes`, `caption`, and `deactivate_on` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` - * These fields are not fully operational. - * āš ļøAdd support for new value `2023-08-16` on enum `WebhookEndpointCreateParams.api_version` - -## 12.18.0 - 2023-08-10 -* [#1867](https://github.com/stripe/stripe-node/pull/1867) Update generated code - * Add support for new values `incorporated_partnership` and `unincorporated_partnership` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` - * Add support for new value `payment_reversal` on enum `BalanceTransaction.type` - * Change `Invoice.subscription_details.metadata` and `Invoice.subscription_details` to be required - -## 12.17.0 - 2023-08-03 -* [#1863](https://github.com/stripe/stripe-node/pull/1863) Update generated code - * Change many types from `string` to `emptyStringable(string)` - * Add support for `subscription_details` on `Invoice` - * Add support for `preferred_settlement_speed` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, and `PaymentIntentUpdateParams.payment_method_options.us_bank_account` - * Add support for new values `sepa_debit_fingerprint` and `us_bank_account_fingerprint` on enums `Radar.ValueList.item_type` and `Radar.ValueListCreateParams.item_type` -* [#1866](https://github.com/stripe/stripe-node/pull/1866) Allow monkey patching http / https - -## 12.16.0 - 2023-07-27 -* [#1853](https://github.com/stripe/stripe-node/pull/1853) Update generated code - * Add support for `monthly_estimated_revenue` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` -* [#1859](https://github.com/stripe/stripe-node/pull/1859) Revert "import * as http -> import http from 'http'" - -## 12.15.0 - 2023-07-27 (DEPRECATED āš ļø ) -* This version included a breaking change [#1859](https://github.com/stripe/stripe-node/pull/1859) that we should not have released. It has been deprecated on npmjs.org. Please do not use this version. - -## 12.14.0 - 2023-07-20 -* [#1842](https://github.com/stripe/stripe-node/pull/1842) Update generated code - * Add support for new value `ro_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, and `Tax.Transaction.customer_details.tax_ids[].type` - * Remove support for values `excluded_territory`, `jurisdiction_unsupported`, and `vat_exempt` from enums `Checkout.Session.shipping_cost.taxes[].taxability_reason`, `Checkout.Session.total_details.breakdown.taxes[].taxability_reason`, `CreditNote.shipping_cost.taxes[].taxability_reason`, `Invoice.shipping_cost.taxes[].taxability_reason`, `LineItem.taxes[].taxability_reason`, `Quote.computed.recurring.total_details.breakdown.taxes[].taxability_reason`, `Quote.computed.upfront.total_details.breakdown.taxes[].taxability_reason`, and `Quote.total_details.breakdown.taxes[].taxability_reason` - * Add support for new value `ro_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `Tax.CalculationCreateParams.customer_details.tax_ids[].type` - * Add support for `use_stripe_sdk` on `SetupIntentConfirmParams` and `SetupIntentCreateParams` - * Add support for new value `service_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` -* [#1849](https://github.com/stripe/stripe-node/pull/1849) Changelog: fix delimiterless namespaced param types -* [#1848](https://github.com/stripe/stripe-node/pull/1848) Changelog: `CheckoutSessionCreateParams` -> `Checkout.SessionCreateParams` - -## 12.13.0 - 2023-07-13 -* [#1838](https://github.com/stripe/stripe-node/pull/1838) Update generated code - * Add support for new resource `Tax.Settings` - * Add support for `retrieve` and `update` methods on resource `Settings` - * Add support for new value `invalid_tax_location` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for `order_id` on `Charge.payment_method_details.afterpay_clearpay` - * Add support for `allow_redirects` on `PaymentIntent.automatic_payment_methods`, `PaymentIntentCreateParams.automatic_payment_methods`, `SetupIntent.automatic_payment_methods`, and `SetupIntentCreateParams.automatic_payment_methods` - * Add support for new values `amusement_tax` and `communications_tax` on enums `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, and `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type` - * Add support for `product` on `Tax.TransactionLineItem` - * Add support for new value `tax.settings.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 12.12.0 - 2023-07-06 -* [#1831](https://github.com/stripe/stripe-node/pull/1831) Update generated code - * Add support for `numeric` and `text` on `PaymentLink.custom_fields[]` - * Add support for `automatic_tax` on `SubscriptionListParams` - -## 12.11.0 - 2023-06-29 -* [#1823](https://github.com/stripe/stripe-node/pull/1823) Update generated code - * Add support for new value `application_fees_not_allowed` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - * Add support for new tax IDs `ad_nrt`, `ar_cuit`, `bo_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, and `vn_tin` - * Add support for `effective_at` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` -* [#1828](https://github.com/stripe/stripe-node/pull/1828) Better CryptoProvider error - -## 12.10.0 - 2023-06-22 -* [#1820](https://github.com/stripe/stripe-node/pull/1820) Update generated code - * Add support for `on_behalf_of` on `Mandate` -* [#1817](https://github.com/stripe/stripe-node/pull/1817) Update README.md -* [#1819](https://github.com/stripe/stripe-node/pull/1819) Update generated code - * Release specs are identical. -* [#1813](https://github.com/stripe/stripe-node/pull/1813) Update generated code - * Change type of `Checkout.Session.success_url` from `string` to `string | null` - * Change type of `FileCreateParams.file` from `string` to `file` -* [#1815](https://github.com/stripe/stripe-node/pull/1815) Generate FileCreateParams - -## 12.9.0 - 2023-06-08 -* [#1809](https://github.com/stripe/stripe-node/pull/1809) Update generated code - * Change `Charge.payment_method_details.cashapp.buyer_id`, `Charge.payment_method_details.cashapp.cashtag`, `PaymentMethod.cashapp.buyer_id`, and `PaymentMethod.cashapp.cashtag` to be required - * Add support for `taxability_reason` on `Tax.Calculation.tax_breakdown[]` -* [#1812](https://github.com/stripe/stripe-node/pull/1812) More helpful error when signing secrets contain whitespace - -## 12.8.0 - 2023-06-01 -* [#1799](https://github.com/stripe/stripe-node/pull/1799) Update generated code - * Add support for `numeric` and `text` on `Checkout.SessionCreateParams.custom_fields[]`, `PaymentLinkCreateParams.custom_fields[]`, and `PaymentLinkUpdateParams.custom_fields[]` - * Add support for new values `aba` and `swift` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` - * Add support for new value `us_bank_transfer` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.type`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.type`, `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` - * Add support for `maximum_length` and `minimum_length` on `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` - * Add support for `preferred_locales` on `Issuing.Cardholder`, `Issuing.CardholderCreateParams`, and `Issuing.CardholderUpdateParams` - * Add support for `description`, `iin`, and `issuer` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` - * Add support for `payer_email` on `PaymentMethod.paypal` - -## 12.7.0 - 2023-05-25 -* [#1797](https://github.com/stripe/stripe-node/pull/1797) Update generated code - * Add support for `zip_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Change type of `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` from `string` to `enum` - * Add support for `zip` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `zip` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` - * Add support for new value `zip` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `zip` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `zip` on enum `PaymentMethod.type` - -## 12.6.0 - 2023-05-19 -* [#1787](https://github.com/stripe/stripe-node/pull/1787) Update generated code - * Add support for `subscription_update_confirm` and `subscription_update` on `BillingPortal.Session.flow` and `BillingPortal.SessionCreateParams.flow_data` - * Add support for new values `subscription_update_confirm` and `subscription_update` on enums `BillingPortal.Session.flow.type` and `BillingPortal.SessionCreateParams.flow_data.type` - * Add support for `link` on `Charge.payment_method_details.card.wallet` and `PaymentMethod.card.wallet` - * Add support for `buyer_id` and `cashtag` on `Charge.payment_method_details.cashapp` and `PaymentMethod.cashapp` - * Add support for new values `amusement_tax` and `communications_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` - -## 12.5.0 - 2023-05-11 -* [#1785](https://github.com/stripe/stripe-node/pull/1785) Update generated code - * Add support for `paypal` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for `network_token` on `Charge.payment_method_details.card` - * Add support for new value `paypal` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` - * Add support for `taxability_reason` and `taxable_amount` on `Checkout.Session.shipping_cost.taxes[]`, `Checkout.Session.total_details.breakdown.taxes[]`, `CreditNote.shipping_cost.taxes[]`, `CreditNote.tax_amounts[]`, `Invoice.shipping_cost.taxes[]`, `Invoice.total_tax_amounts[]`, `LineItem.taxes[]`, `Quote.computed.recurring.total_details.breakdown.taxes[]`, `Quote.computed.upfront.total_details.breakdown.taxes[]`, and `Quote.total_details.breakdown.taxes[]` - * Add support for new value `paypal` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `paypal` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `paypal` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `eftpos_au` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` - * Add support for new value `paypal` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `brand`, `cardholder_name`, `country`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `last4`, `networks`, and `read_method` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` - * Add support for `preferred_locales` on `PaymentMethod.interac_present` - * Add support for new value `paypal` on enum `PaymentMethod.type` - * Add support for `effective_percentage` on `TaxRate` - * Add support for `gb_bank_transfer` and `jp_bank_transfer` on `CustomerCashBalanceTransaction.Funded.BankTransfer` - -## 12.4.0 - 2023-05-04 -* [#1774](https://github.com/stripe/stripe-node/pull/1774) Update generated code - * Add support for `link` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for `brand`, `country`, `description`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `iin`, `issuer`, `last4`, `network`, and `wallet` on `SetupAttempt.payment_method_details.card` -* [#1782](https://github.com/stripe/stripe-node/pull/1782) Let user supply a timestamp when verifying webhooks - -## 12.3.0 - 2023-04-27 -* [#1770](https://github.com/stripe/stripe-node/pull/1770) Update generated code - * Add support for `billing_cycle_anchor` and `proration_behavior` on `Checkout.SessionCreateParams.subscription_data` - * Add support for `terminal_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` - * Add support for `metadata` on `PaymentIntentCaptureParams` - * Add support for `checks` on `SetupAttempt.payment_method_details.card` - * Add support for `tax_breakdown` on `Tax.Calculation.shipping_cost` and `Tax.Transaction.shipping_cost` - -## 12.2.0 - 2023-04-20 -* [#1759](https://github.com/stripe/stripe-node/pull/1759) Update generated code - * Change `Checkout.Session.currency_conversion` to be required - * Change `Identity.VerificationReport.options` and `Identity.VerificationReport.type` to be optional - * Change type of `Identity.VerificationSession.options` from `VerificationSessionOptions` to `VerificationSessionOptions | null` - * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number')` to `enum('document'|'id_number') | null` -* [#1762](https://github.com/stripe/stripe-node/pull/1762) Add Deno webhook signing example -* [#1761](https://github.com/stripe/stripe-node/pull/1761) Add Deno usage instructions in README - -## 12.1.1 - 2023-04-13 -No product changes. - -## 12.1.0 - 2023-04-13 -* [#1754](https://github.com/stripe/stripe-node/pull/1754) Update generated code - * Add support for new value `REVOIE23` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` -* [#1749](https://github.com/stripe/stripe-node/pull/1749) Type extend and ResourceNamespace better - -## 12.0.0 - 2023-04-06 -* [#1743](https://github.com/stripe/stripe-node/pull/1743) Remove `Stripe.default` and `Stripe.Stripe` -This was added to maintain backwards compatibility during the transition of stripe-node to a dual ES module / CommonJS package, and should not be functionally necessary. -* [#1742](https://github.com/stripe/stripe-node/pull/1743) Pin latest API version as the default - **āš ļø ACTION REQUIRED: the breaking change in this release likely affects you āš ļø** - - In this release, Stripe API Version `2022-11-15` (the latest at time of release) will be sent by default on all requests. - The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). - - To successfully upgrade to stripe-node v12, you must either - - 1. **(Recommended) Upgrade your integration to be compatible with API Version `2022-11-15`.** - - Please read the API Changelog carefully for each API Version from `2022-11-15` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production. - - You can read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more detailed instructions. - 2. **(Alternative option) Specify a version other than `2022-11-15` when initializing `stripe-node`.** - - If you were previously initializing stripe-node without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example: - - ```diff - - const stripe = require('stripe')('sk_test_...'); - + const stripe = require('stripe')('sk_test_...', { - + apiVersion: 'YYYY-MM-DD' // Determine your default version from https://dashboard.stripe.com/developers - + }) - ``` - - If you were already initializing stripe-node with an explicit API Version, upgrading to v12 will not affect your integration. - - Read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more details. - - Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release. - That is, instead of upgrading stripe-node and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-node, you should also upgrade your integration to be compatible with the latest Stripe API version. - -## 11.18.0 - 2023-04-06 -* [#1738](https://github.com/stripe/stripe-node/pull/1738) Update generated code - * Add support for new value `link` on enums `Charge.payment_method_details.card.wallet.type` and `PaymentMethod.card.wallet.type` - * Change `Issuing.CardholderCreateParams.type` to be optional - * Add support for `country` on `PaymentMethod.link` - * Add support for `status_details` on `PaymentMethod.us_bank_account` -* [#1747](https://github.com/stripe/stripe-node/pull/1747) (Typescript) remove deprecated properties - -## 11.17.0 - 2023-03-30 -* [#1734](https://github.com/stripe/stripe-node/pull/1734) Update generated code - * Remove support for `create` method on resource `Tax.Transaction` - * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `createFromCalculation` method. - * Add support for `export_license_id` and `export_purpose_code` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company` - * Remove support for value `deleted` from enum `Invoice.status` - * This is not a breaking change, as `deleted` was never returned or accepted as input. - * Add support for `amount_tip` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` - -## 11.16.0 - 2023-03-23 -* [#1730](https://github.com/stripe/stripe-node/pull/1730) Update generated code - * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction` - * Add support for `create` and `list_line_items` methods on resource `Calculation` - * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction` - * Add support for new value `link` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `currency_conversion` on `Checkout.Session` - * Add support for new value `link` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `automatic_payment_methods` on `SetupIntentCreateParams` and `SetupIntent` -* [#1726](https://github.com/stripe/stripe-node/pull/1726) Add Deno entry point - -## 11.15.0 - 2023-03-16 -* [#1714](https://github.com/stripe/stripe-node/pull/1714) API Updates - * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for new value `cashapp` as a new `type` throughout the API. - * Add support for `future_requirements` and `requirements` on `BankAccount` - * Add support for `country` on `Charge.payment_method_details.link` - * Add support for new value `automatic_async` on enums `Checkout.SessionCreateParams.payment_intent_data.capture_method`, `PaymentIntent.capture_method`, `PaymentIntentConfirmParams.capture_method`, `PaymentIntentCreateParams.capture_method`, `PaymentIntentUpdateParams.capture_method`, `PaymentLink.payment_intent_data.capture_method`, and `PaymentLinkCreateParams.payment_intent_data.capture_method` - - * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, - * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` - * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1709](https://github.com/stripe/stripe-node/pull/1709) Add ES module package entry point - * Add support for ES modules by defining a separate ESM entry point. This updates stripe-node to be a [dual CommonJS / ES module package](https://nodejs.org/api/packages.html#dual-commonjses-module-packages). -* [#1704](https://github.com/stripe/stripe-node/pull/1704) Configure 2 TypeScript compile targets for ESM and CJS -* [#1710](https://github.com/stripe/stripe-node/pull/1710) Update generated code (new) - * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `cashapp` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `cashapp` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new value `cashapp` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `cashapp` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `cashapp` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, `PaymentIntentConfirmParams.payment_method_options.affirm`, `PaymentIntentCreateParams.payment_method_options.affirm`, and `PaymentIntentUpdateParams.payment_method_options.affirm` - * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` - * Add support for new value `cashapp` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for new value `cashapp` on enum `PaymentMethodCreateParams.type` - * Add support for new value `cashapp` on enum `PaymentMethod.type` - * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 11.14.0 - 2023-03-09 -* [#1703](https://github.com/stripe/stripe-node/pull/1703) API Updates - * Add support for `card_issuing` on `Issuing.CardholderCreateParams.individual` and `Issuing.CardholderUpdateParams.individual` - * Add support for new value `requirements.past_due` on enum `Issuing.Cardholder.requirements.disabled_reason` - * Add support for new values `individual.card_issuing.user_terms_acceptance.date` and `individual.card_issuing.user_terms_acceptance.ip` on enum `Issuing.Cardholder.requirements.past_due[]` - * Add support for `cancellation_details` on `SubscriptionCancelParams`, `SubscriptionUpdateParams`, and `Subscription` -* [#1701](https://github.com/stripe/stripe-node/pull/1701) Change httpProxy to httpAgent in README example -* [#1695](https://github.com/stripe/stripe-node/pull/1695) Migrate generated files to ES module syntax -* [#1699](https://github.com/stripe/stripe-node/pull/1699) Remove extra test directory - -## 11.13.0 - 2023-03-02 -* [#1696](https://github.com/stripe/stripe-node/pull/1696) API Updates - * Add support for new values `electric_vehicle_charging`, `emergency_services_gcas_visa_use_only`, `government_licensed_horse_dog_racing_us_region_only`, `government_licensed_online_casions_online_gambling_us_region_only`, `government_owned_lotteries_non_us_region`, `government_owned_lotteries_us_region_only`, and `marketplaces` on spending control categories. - * Add support for `reconciliation_status` on `Payout` - * Add support for new value `lease_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` - -* [#1689](https://github.com/stripe/stripe-node/pull/1689) Update v11.8.0 changelog with breaking change disclaimer - -## 11.12.0 - 2023-02-23 -* [#1688](https://github.com/stripe/stripe-node/pull/1688) API Updates - * Add support for new value `yoursafe` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` - * Add support for new value `BITSNL2A` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` - * Add support for new value `igst` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` -* [#1687](https://github.com/stripe/stripe-node/pull/1687) Convert TypeScript files to use ES modules - -## 11.11.0 - 2023-02-16 -* [#1681](https://github.com/stripe/stripe-node/pull/1681) API Updates - * Add support for `refund_payment` method on resource `Terminal.Reader` - * Add support for new value `name` on enums `BillingPortal.Configuration.features.customer_update.allowed_updates[]`, `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates[]`, and `BillingPortal.ConfigurationUpdateParams.features.customer_update.allowed_updates[]` - * Add support for `custom_fields` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Change `Subscription.trial_settings.end_behavior` and `Subscription.trial_settings` to be required - * Add support for `interac_present` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` - * Change type of `Terminal.ReaderPresentPaymentMethodParams.testHelpers.type` from `literal('card_present')` to `enum('card_present'|'interac_present')` - * Add support for `refund_payment` on `Terminal.Reader.action` - * Add support for new value `refund_payment` on enum `Terminal.Reader.action.type` -* [#1683](https://github.com/stripe/stripe-node/pull/1683) Add NextJS webhook sample -* [#1685](https://github.com/stripe/stripe-node/pull/1685) Add more webhook parsing checks -* [#1684](https://github.com/stripe/stripe-node/pull/1684) Add infrastructure for mocked tests - -## 11.10.0 - 2023-02-09 -* [#1679](https://github.com/stripe/stripe-node/pull/1679) Enable library to work in worker environments without extra configuration. - -## 11.9.1 - 2023-02-03 -* [#1672](https://github.com/stripe/stripe-node/pull/1672) Update main entrypoint on package.json - -## 11.9.0 - 2023-02-02 -* [#1669](https://github.com/stripe/stripe-node/pull/1669) API Updates - * Add support for `resume` method on resource `Subscription` - * Add support for `payment_link` on `Checkout.SessionListParams` - * Add support for `trial_settings` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` - * Add support for `shipping_cost` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `amount_shipping` on `CreditNote` and `Invoice` - * Add support for `shipping_details` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` - * Add support for `subscription_resume_at` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` - * Change `Issuing.CardholderCreateParams.individual.first_name`, `Issuing.CardholderCreateParams.individual.last_name`, `Issuing.CardholderUpdateParams.individual.first_name`, and `Issuing.CardholderUpdateParams.individual.last_name` to be optional - * Change type of `Issuing.Cardholder.individual.first_name` and `Issuing.Cardholder.individual.last_name` from `string` to `string | null` - * Add support for `invoice_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for new value `America/Ciudad_Juarez` on enum `Reporting.ReportRunCreateParams.parameters.timezone` - * Add support for new value `paused` on enum `SubscriptionListParams.status` - * Add support for new value `paused` on enum `Subscription.status` - * Add support for new values `customer.subscription.paused` and `customer.subscription.resumed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - * Add support for new value `funding_reversed` on enum `CustomerCashBalanceTransaction.type` - -* [#1670](https://github.com/stripe/stripe-node/pull/1670) Change default entrypoint to stripe.node -* [#1668](https://github.com/stripe/stripe-node/pull/1668) Use EventTarget in worker / browser runtimes -* [#1667](https://github.com/stripe/stripe-node/pull/1667) fix: added support for TypeScript "NodeNext" module resolution - -## 11.8.0 - 2023-01-26 -* [#1665](https://github.com/stripe/stripe-node/pull/1665) API Updates - * Add support for new value `BE` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, and `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country` - * Add support for new values `cs-CZ`, `el-GR`, `en-CZ`, and `en-GR` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` -* [#1660](https://github.com/stripe/stripe-node/pull/1660) Introduce separate entry point for worker environments - * This is technically a breaking change that explicitly defines package entry points and was mistakenly released in a minor version. If your application previously imported other internal files from stripe-node and this change breaks it, please open an issue detailing your use case. - -## 11.7.0 - 2023-01-19 -* [#1661](https://github.com/stripe/stripe-node/pull/1661) API Updates - * Add support for `verification_session` on `EphemeralKeyCreateParams` - * Add support for new values `refund.created` and `refund.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1647](https://github.com/stripe/stripe-node/pull/1647) Bump json5 from 2.2.1 to 2.2.3 - -## 11.6.0 - 2023-01-05 -* [#1646](https://github.com/stripe/stripe-node/pull/1646) API Updates - * Add support for `card_issuing` on `Issuing.Cardholder.individual` - -## 11.5.0 - 2022-12-22 -* [#1642](https://github.com/stripe/stripe-node/pull/1642) API Updates - * Add support for new value `merchant_default` on enums `CashBalanceUpdateParams.settings.reconciliation_mode`, `CustomerCreateParams.cash_balance.settings.reconciliation_mode`, and `CustomerUpdateParams.cash_balance.settings.reconciliation_mode` - * Add support for `using_merchant_default` on `CashBalance.settings` - * Change `Checkout.SessionCreateParams.cancel_url` to be optional - * Change type of `Checkout.Session.cancel_url` from `string` to `string | null` - -## 11.4.0 - 2022-12-15 -* [#1639](https://github.com/stripe/stripe-node/pull/1639) API Updates - * Add support for new value `invoice_overpaid` on enum `CustomerBalanceTransaction.type` -* [#1637](https://github.com/stripe/stripe-node/pull/1637) Update packages in examples/webhook-signing - -## 11.3.0 - 2022-12-08 -* [#1634](https://github.com/stripe/stripe-node/pull/1634) API Updates - * Change `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` to be optional - -## 11.2.0 - 2022-12-06 -* [#1632](https://github.com/stripe/stripe-node/pull/1632) API Updates - * Add support for `flow_data` on `BillingPortal.SessionCreateParams` - * Add support for `flow` on `BillingPortal.Session` -* [#1631](https://github.com/stripe/stripe-node/pull/1631) API Updates - * Add support for `india_international_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `invoice_creation` on `Checkout.Session` and `Checkout.SessionCreateParams` - * Add support for `invoice` on `Checkout.Session` - * Add support for `metadata` on `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]` -* [#1630](https://github.com/stripe/stripe-node/pull/1630) Remove BASIC_METHODS from TS definitions -* [#1629](https://github.com/stripe/stripe-node/pull/1629) Narrower type for stripe.invoices.retrieveUpcoming() -* [#1627](https://github.com/stripe/stripe-node/pull/1627) remove unneeded IIFE -* [#1625](https://github.com/stripe/stripe-node/pull/1625) Remove API version from the path -* [#1626](https://github.com/stripe/stripe-node/pull/1626) Move child resource method params next to method declarations -* [#1624](https://github.com/stripe/stripe-node/pull/1624) Split resource and service types - -## 11.1.0 - 2022-11-17 -* [#1623](https://github.com/stripe/stripe-node/pull/1623) API Updates - * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code` -* [#1622](https://github.com/stripe/stripe-node/pull/1622) API Updates - * Add support for `custom_text` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code` - - -## 11.0.0 - 2022-11-16 - -This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-11-15 - -"āš ļø" symbol highlights breaking changes. - -* [#1608](https://github.com/stripe/stripe-node/pull/1608) Next major release changes -* [#1619](https://github.com/stripe/stripe-node/pull/1619) Annotate prototypes with types -* [#1612](https://github.com/stripe/stripe-node/pull/1612) Add type information here and there -* [#1615](https://github.com/stripe/stripe-node/pull/1615) API Updates - * āš ļø Remove support for `tos_shown_and_accepted` on `Checkout.SessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked. - -### āš ļø Changed -* Drop support for Node.js 8 and 10. We now support Node.js 12+. ((#1579) -* Change `StripeSignatureVerificationError` to have `header` and `payload` fields instead of `detail`. To access these properties, use `err.header` and `err.payload` instead of `err.detail.header` and `err.detail.payload`. (#1574) - -### āš ļø Removed -* Remove `Orders` resource. (#1580) -* Remove `SKU` resource (#1583) -* Remove deprecated `Checkout.SessionCreateParams.subscription_data.items`. (#1580) -* Remove deprecated configuration setter methods (`setHost`, `setProtocol`, `setPort`, `setApiVersion`, `setApiKey`, `setTimeout`, `setAppInfo`, `setHttpAgent`, `setMaxNetworkRetries`, and `setTelemetryEnabled`). (#1597) - - Use the config object to set these options instead, for example: - ```typescript - const stripe = Stripe('sk_test_...', { - apiVersion: '2019-08-08', - maxNetworkRetries: 1, - httpAgent: new ProxyAgent(process.env.http_proxy), - timeout: 1000, - host: 'api.example.com', - port: 123, - telemetry: true, - }); - ``` -* Remove deprecated basic method definitions. (#1600) - Use basic methods defined on the resource instead. - ```typescript - // Before - basicMethods: true - - // After - create: stripeMethod({ - method: 'POST', - fullPath: '/v1/resource', - }), - list: stripeMethod({ - method: 'GET', - methodType: 'list', - fullPath: '/v1/resource', - }), - retrieve: stripeMethod({ - method: 'GET', - fullPath: '/v1/resource/{id}', - }), - update: stripeMethod({ - method: 'POST', - fullPath: '/v1/resource/{id}', - }), - // Avoid 'delete' keyword in JS - del: stripeMethod({ - method: 'DELETE', - fullPath: '/v1/resource/{id}', - }), - ``` -* Remove deprecated option names. Use the following option names instead (`OLD`->`NEW`): `api_key`->`apiKey`, `idempotency_key`->`idempotencyKey`, `stripe_account`->`stripeAccount`, `stripe_version`->`apiVersion`, `stripeVersion`->`apiVersion`. (#1600) -* Remove `charges` field on `PaymentIntent` and replace it with `latest_charge`. (#1614 ) -* Remove deprecated `amount` field on `Checkout.Session.LineItem`. (#1614 ) -* Remove support for `tos_shown_and_accepted` on `Checkout.Session.PaymentMethodOptions.Paynow`. (#1614 ) - -## 10.17.0 - 2022-11-08 -* [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates - * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `reason_message` on `Issuing.Authorization.request_history[]` - * Add support for new value `webhook_error` on enum `Issuing.Authorization.request_history[].reason` - -## 10.16.0 - 2022-11-03 -* [#1596](https://github.com/stripe/stripe-node/pull/1596) API Updates - * Add support for `on_behalf_of` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription` - * Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]` - -## 10.15.0 - 2022-10-20 -* [#1588](https://github.com/stripe/stripe-node/pull/1588) API Updates - * Add support for new values `jp_trn` and `ke_pin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `jp_trn` and `ke_pin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `tipping` on `Terminal.Reader.action.process_payment_intent.process_config` and `Terminal.ReaderProcessPaymentIntentParams.process_config` -* [#1585](https://github.com/stripe/stripe-node/pull/1585) use native UUID method if available - -## 10.14.0 - 2022-10-13 -* [#1582](https://github.com/stripe/stripe-node/pull/1582) API Updates - * Add support for new values `invalid_representative_country` and `verification_failed_residential_address` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` - * Add support for `request_log_url` on `StripeError` objects - * Add support for `network_data` on `Issuing.Authorization` - * āš ļø Remove `currency`, `description`, `images`, and `name` from `Checkout.SessionCreateParams`. These properties do not work on the latest API version. (fixes #1575) - -## 10.13.0 - 2022-10-06 -* [#1571](https://github.com/stripe/stripe-node/pull/1571) API Updates - * Add support for new value `invalid_dob_age_under_18` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` - * Add support for new value `bank_of_china` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethod.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank` - * Add support for new values `America/Nuuk`, `Europe/Kyiv`, and `Pacific/Kanton` on enum `Reporting.ReportRunCreateParams.parameters.timezone` - * Add support for `klarna` on `SetupAttempt.payment_method_details` -* [#1570](https://github.com/stripe/stripe-node/pull/1570) Update node-fetch to 2.6.7 -* [#1568](https://github.com/stripe/stripe-node/pull/1568) Upgrade dependencies -* [#1567](https://github.com/stripe/stripe-node/pull/1567) Fix release tag calculation - -## 10.12.0 - 2022-09-29 -* [#1564](https://github.com/stripe/stripe-node/pull/1564) API Updates - * Change type of `Charge.payment_method_details.card_present.incremental_authorization_supported` and `Charge.payment_method_details.card_present.overcapture_supported` from `boolean | null` to `boolean` - * Add support for `created` on `Checkout.Session` - * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix` - * Deprecate `Checkout.SessionCreateParams.subscription_data.items` (use the `line_items` param instead). This will be removed in the next major version. -* [#1563](https://github.com/stripe/stripe-node/pull/1563) Migrate other Stripe infrastructure to TS -* [#1562](https://github.com/stripe/stripe-node/pull/1562) Restore lib after generating -* [#1551](https://github.com/stripe/stripe-node/pull/1551) Re-introduce Typescript changes - -## 10.11.0 - 2022-09-22 -* [#1560](https://github.com/stripe/stripe-node/pull/1560) API Updates - * Add support for `terms_of_service` on `Checkout.Session.consent_collection`, `Checkout.Session.consent`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` - * āš ļø Remove support for `plan` on `Checkout.SessionCreateParams.payment_method_options.card.installments`. The property was mistakenly released and never worked. - * Add support for `statement_descriptor` on `PaymentIntentIncrementAuthorizationParams` - * Change `SubscriptionSchedule.phases[].currency` to be required - - -## 10.10.0 - 2022-09-15 -* [#1552](https://github.com/stripe/stripe-node/pull/1552) API Updates - * Add support for `pix` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `pix` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new value `pix` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for `from_invoice` on `InvoiceCreateParams` and `Invoice` - * Add support for `latest_revision` on `Invoice` - * Add support for `amount` on `Issuing.DisputeCreateParams` and `Issuing.DisputeUpdateParams` - * Add support for new value `pix` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for `pix_display_qr_code` on `PaymentIntent.next_action` - * Add support for new value `pix` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for new value `pix` on enum `PaymentMethodCreateParams.type` - * Add support for new value `pix` on enum `PaymentMethod.type` - * Add support for `created` on `Treasury.CreditReversal` and `Treasury.DebitReversal` - -## 10.9.0 - 2022-09-09 -* [#1549](https://github.com/stripe/stripe-node/pull/1549) API Updates - * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` - * Add support for `require_signature` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` - -## 10.8.0 - 2022-09-07 -* [#1544](https://github.com/stripe/stripe-node/pull/1544) API Updates - * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` - -## 10.7.0 - 2022-08-31 -* [#1540](https://github.com/stripe/stripe-node/pull/1540) API Updates - * Add support for new values `de-CH`, `en-CH`, `en-PL`, `en-PT`, `fr-CH`, `it-CH`, `pl-PL`, and `pt-PT` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - * Add support for `description` on `PaymentLink.subscription_data` and `PaymentLinkCreateParams.subscription_data` - -## 10.6.0 - 2022-08-26 -* [#1534](https://github.com/stripe/stripe-node/pull/1534) API Updates - * Change `Account.company.name`, `Charge.refunds`, `PaymentIntent.charges`, `Product.caption`, `Product.statement_descriptor`, `Product.unit_label`, `Terminal.Configuration.tipping.aud.fixed_amounts`, `Terminal.Configuration.tipping.aud.percentages`, `Terminal.Configuration.tipping.cad.fixed_amounts`, `Terminal.Configuration.tipping.cad.percentages`, `Terminal.Configuration.tipping.chf.fixed_amounts`, `Terminal.Configuration.tipping.chf.percentages`, `Terminal.Configuration.tipping.czk.fixed_amounts`, `Terminal.Configuration.tipping.czk.percentages`, `Terminal.Configuration.tipping.dkk.fixed_amounts`, `Terminal.Configuration.tipping.dkk.percentages`, `Terminal.Configuration.tipping.eur.fixed_amounts`, `Terminal.Configuration.tipping.eur.percentages`, `Terminal.Configuration.tipping.gbp.fixed_amounts`, `Terminal.Configuration.tipping.gbp.percentages`, `Terminal.Configuration.tipping.hkd.fixed_amounts`, `Terminal.Configuration.tipping.hkd.percentages`, `Terminal.Configuration.tipping.myr.fixed_amounts`, `Terminal.Configuration.tipping.myr.percentages`, `Terminal.Configuration.tipping.nok.fixed_amounts`, `Terminal.Configuration.tipping.nok.percentages`, `Terminal.Configuration.tipping.nzd.fixed_amounts`, `Terminal.Configuration.tipping.nzd.percentages`, `Terminal.Configuration.tipping.sek.fixed_amounts`, `Terminal.Configuration.tipping.sek.percentages`, `Terminal.Configuration.tipping.sgd.fixed_amounts`, `Terminal.Configuration.tipping.sgd.percentages`, `Terminal.Configuration.tipping.usd.fixed_amounts`, `Terminal.Configuration.tipping.usd.percentages`, `Treasury.FinancialAccount.active_features`, `Treasury.FinancialAccount.pending_features`, `Treasury.FinancialAccount.platform_restrictions`, and `Treasury.FinancialAccount.restricted_features` to be optional - * This is a bug fix. These fields were all actually optional and not guaranteed to be returned by the Stripe API, however the type annotations did not correctly reflect this. - * Fixes https://github.com/stripe/stripe-node/issues/1518. - * Add support for `login_page` on `BillingPortal.Configuration`, `BillingPortal.ConfigurationCreateParams`, and `BillingPortal.ConfigurationUpdateParams` - * Add support for new value `deutsche_bank_ag` on enums `Charge.payment_method_details.eps.bank`, `PaymentIntentConfirmParams.payment_method_data.eps.bank`, `PaymentIntentCreateParams.payment_method_data.eps.bank`, `PaymentIntentUpdateParams.payment_method_data.eps.bank`, `PaymentMethod.eps.bank`, `PaymentMethodCreateParams.eps.bank`, `SetupIntentConfirmParams.payment_method_data.eps.bank`, `SetupIntentCreateParams.payment_method_data.eps.bank`, and `SetupIntentUpdateParams.payment_method_data.eps.bank` - * Add support for `customs` and `phone_number` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` - * Add support for `description` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `QuoteUpdateParams.subscription_data`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, and `SubscriptionScheduleUpdateParams.phases[]` - -* [#1532](https://github.com/stripe/stripe-node/pull/1532) Update coveralls step to run for one node version, remove finish step -* [#1531](https://github.com/stripe/stripe-node/pull/1531) Regen yarn.lock. - -## 10.5.0 - 2022-08-24 -* [#1527](https://github.com/stripe/stripe-node/pull/1527) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests. -* [#1528](https://github.com/stripe/stripe-node/pull/1528) Update README.md to use a new NOTE notation -* [#1526](https://github.com/stripe/stripe-node/pull/1526) Add test coverage using Coveralls - -## 10.4.0 - 2022-08-23 -* [#1520](https://github.com/stripe/stripe-node/pull/1520) Add beta readme.md section -* [#1524](https://github.com/stripe/stripe-node/pull/1524) API Updates - * Change `Terminal.Reader.action` to be required - * Change `Treasury.OutboundTransferCreateParams.destination_payment_method` to be optional - * Change type of `Treasury.OutboundTransfer.destination_payment_method` from `string` to `string | null` - * Change the return type of `Customer.fundCashBalance` test helper from `CustomerBalanceTransaction` to `CustomerCashBalanceTransaction`. - * This would generally be considered a breaking change, but we've worked with all existing users to migrate and are comfortable releasing this as a minor as it is solely a test helper method. This was essentially broken prior to this change. - - -## 10.3.0 - 2022-08-19 -* [#1516](https://github.com/stripe/stripe-node/pull/1516) API Updates - * Add support for new resource `CustomerCashBalanceTransaction` - * Remove support for value `paypal` from enums `Order.payment.settings.payment_method_types[]`, `OrderCreateParams.payment.settings.payment_method_types[]`, and `OrderUpdateParams.payment.settings.payment_method_types[]` - * Add support for `currency` on `PaymentLink` - * Add support for `network` on `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `Subscription.payment_settings.payment_method_options.card`, `SubscriptionCreateParams.payment_settings.payment_method_options.card`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card` - * Change `Subscription.currency` to be required - * Change type of `Topup.source` from `Source` to `Source | null` - * Add support for new value `customer_cash_balance_transaction.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1515](https://github.com/stripe/stripe-node/pull/1515) Add a support section to the readme - -## 10.2.0 - 2022-08-11 -* [#1510](https://github.com/stripe/stripe-node/pull/1510) API Updates - * Add support for `payment_method_collection` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - - -## 10.1.0 - 2022-08-09 -* [#1506](https://github.com/stripe/stripe-node/pull/1506) API Updates - * Add support for `process_config` on `Terminal.Reader.action.process_payment_intent` -* [#1505](https://github.com/stripe/stripe-node/pull/1505) Simplify AddressParam definitions - - Rename `AddressParam` to `ShippingAddressParam`, and change type of `Source.source_order.shipping.address`, `SourceUpdateParams.SourceOrder.Shipping.address`, and `SessionCreateParams.PaymentIntentData.Shipping.address` to `ShippingAddressParam` - - Rename `AccountAddressParam` go `AddressParam`, and change type of `AccountCreateParams.BusinessProfile.support_address`, `AccountCreateParams.Company.address`, `AccountCreateParams.Individual.address `, `AccountCreateParams.Individual.registered_address`, `AccountUpdateParams.BusinessProfile.support_address`, `AccountUpdateParams.Company.address`, `AccountUpdateParams.Individual.address`, `AccountUpdateParams.Individual.registered_address`, `ChargeCreateParams.Shipping.address`, `ChargeUpdateParams.Shipping.address`, `CustomerCreateParams.Shipping.address`, `CustomerUpdateParams.Shipping.address`, `CustomerSourceUpdateParams.Owner.address`, `InvoiceListUpcomingLinesParams.CustomerDetails.Shipping.address`, `InvoiceRetrieveUpcomingParams.CustomerDetails.Shipping.address`, `OrderCreateParams.BillingDetails.address`, `OrderCreateParams.ShippingDetails.address`, `OrderUpdateParams.BillingDetails.address`, `OrderUpdateParams.ShippingDetails.address`, `PaymentIntentCreateParams.Shipping.address`, `PaymentIntentUpdateParams.Shipping.address`, `PaymentIntentConfirmParams.Shipping.address`, `PersonCreateParams.address`, `PersonCreateParams.registered_address`, `PersonUpdateParams.address`, `PersonUpdateParams.registered_address`, `SourceCreateParams.Owner.address`, `SourceUpdateParams.Owner.address`, `TokenCreateParams.Account.Company.address`, `TokenCreateParams.Account.Individual.address`, `TokenCreateParams.Account.Individual.registered_address`, `TokenCreateParams.Person.address`, `TokenCreateParams.Person.registered_address`, and `Terminal.LocationUpdateParams.address` to `AddressParam` -* [#1503](https://github.com/stripe/stripe-node/pull/1503) API Updates - * Add support for `expires_at` on `Apps.Secret` and `Apps.SecretCreateParams` - -## 10.0.0 - 2022-08-02 - -This release includes breaking changes resulting from: - -* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-08-01 -* Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v10. - -"āš ļø" symbol highlights breaking changes. - -* [#1497](https://github.com/stripe/stripe-node/pull/1497) API Updates -* [#1493](https://github.com/stripe/stripe-node/pull/1493) Next major release changes - -### Added -* Add support for new value `invalid_tos_acceptance` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` -* Add support for `shipping_cost` and `shipping_details` on `Checkout.Session` - -### āš ļø Changed -* Change type of `business_profile`, `business_type`, `country`, `default_currency`, and `settings` properties on `Account` resource to be nullable. -* Change type of `currency` property on `Checkout.Session` resource from `string` to `'cad' | 'usd'`. -* Change location of TypeScript definitions for `CreditNoteLineItemListPreviewParams`, `CreditNoteLineItemListPreviewParams.Line`, `CreditNoteLineItemListPreviewParams.Line.Type`, and `CreditNoteLineItemListPreviewParams.Line.Reason` interfaces from `CreditNoteLineItems.d.ts` to `CreditNotes.d.ts`. -* Change type of `address`, `currency`, `delinquent`, `discount`, `invoice_prefix`, `name`, `phone`, and `preferred_locales` properties on `Customer` resource to be nullable. -* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. - -### āš ļø Removed -* Remove for `AlipayAccount`, `DeletedAlipayAccount`, `BitcoinReceiver`, `DeletedBitcoinReceiver`, `BitcoinTransaction`, and `BitcoinTransactionListParams` definitions. -* Remove `AlipayAccount` and `BitcoinReceiver` from `CustomerSource`. -* Remove `Stripe.DeletedAlipayAccount` and `Stripe.DeletedBitcoinReceiver` from possible values of `source` property in `PaymentIntent`. -* Remove `IssuerFraudRecord`, `IssuerFraudRecordRetrieveParams`, `IssuerFraudRecordListParams`, and `IssuerFraudRecordsResource`, definitions. -* Remove `treasury.received_credit.reversed` webhook event constant. Please use `treasury.received_credit.returned` instead. -* Remove `order.payment_failed`, `transfer.failed`, and `transfer.paid`. The events were deprecated. -* Remove `retrieveDetails` method from `Issuing.Card` resource. The method was unsupported. Read more at https://stripe.com/docs/issuing/cards/virtual. -* Remove `Issuing.CardDetails` and `CardRetrieveDetailsParams` definition. -* Remove `IssuerFraudRecords` resource. -* Remove `Recipient` resource and`recipient` property from `Card` resource. -* Remove `InvoiceMarkUncollectibleParams` definition. -* Remove deprecated `Stripe.Errors` and `StripeError` (and derived `StripeCardError`, `StripeInvalidRequestError`, `StripeAPIError`, `StripeAuthenticationError`, `StripePermissionError`, `StripeRateLimitError`, `StripeConnectionError`, `StripeSignatureVerificationError`, `StripeIdempotencyError`, and `StripeInvalidGrantError`) definitions. -* Remove `redirect_url` from `LoginLinks` definition. The property is no longer supported. -* Remove `LineItemListParams` definition. The interface was no longer in use. - -### āš ļø Renamed -* Rename `listUpcomingLineItems` method on `Invoice` resource to `listUpcomingLines`. -* Rename `InvoiceLineItemListUpcomingParams` to `InvoiceListUpcomingLinesParams`. -* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. - -## 9.16.0 - 2022-07-26 -* [#1492](https://github.com/stripe/stripe-node/pull/1492) API Updates - * Add support for new value `exempted` on enums `Charge.payment_method_details.card.three_d_secure.result` and `SetupAttempt.payment_method_details.card.three_d_secure.result` - * Add support for `customer_balance` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for new value `customer_balance` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new values `en-CA` and `fr-CA` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - -## 9.15.0 - 2022-07-25 -* [#1486](https://github.com/stripe/stripe-node/pull/1486) API Updates - * Add support for `installments` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `Invoice.payment_settings.payment_method_options.card`, `InvoiceCreateParams.payment_settings.payment_method_options.card`, and `InvoiceUpdateParams.payment_settings.payment_method_options.card` - * Add support for `default_currency` and `invoice_credit_balance` on `Customer` - * Add support for `currency` on `InvoiceCreateParams` - * Add support for `default_mandate` on `Invoice.payment_settings`, `InvoiceCreateParams.payment_settings`, and `InvoiceUpdateParams.payment_settings` - * Add support for `mandate` on `InvoicePayParams` - * Add support for `product_data` on `OrderCreateParams.line_items[]` and `OrderUpdateParams.line_items[]` - - -## 9.14.0 - 2022-07-18 -* [#1477](https://github.com/stripe/stripe-node/pull/1477) API Updates - * Add support for `blik_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `blik` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Change type of `Checkout.Session.consent_collection.promotions`, `Checkout.SessionCreateParams.consent_collection.promotions`, `PaymentLink.consent_collection.promotions`, and `PaymentLinkCreateParams.consent_collection.promotions` from `literal('auto')` to `enum('auto'|'none')` - * Add support for new value `blik` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for new value `blik` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `blik` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new value `blik` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for new value `blik` on enum `PaymentMethodCreateParams.type` - * Add support for new value `blik` on enum `PaymentMethod.type` - * Add support for `cancel` method on `Subscriptions` resource. This has the same functionality as the `del` method - if you are on a version less than 9.14.0, please use `del`. -* [#1476](https://github.com/stripe/stripe-node/pull/1476) fix: Include trailing slash when passing empty query parameters. -* [#1475](https://github.com/stripe/stripe-node/pull/1475) Move @types/node to devDependencies - -## 9.13.0 - 2022-07-12 -* [#1473](https://github.com/stripe/stripe-node/pull/1473) API Updates - * Add support for `customer_details` on `Checkout.SessionListParams` - * Change `LineItem.amount_discount` and `LineItem.amount_tax` to be required - * Change `Transfer.source_type` to be optional and not nullable -* [#1471](https://github.com/stripe/stripe-node/pull/1471) Update readme to include a note on beta packages - -## 9.12.0 - 2022-07-07 -* [#1468](https://github.com/stripe/stripe-node/pull/1468) API Updates - * Add support for `currency` on `Checkout.SessionCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `PaymentLinkCreateParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `Subscription` - * Add support for `currency_options` on `Checkout.SessionCreateParams.shipping_options[].shipping_rate_data.fixed_amount`, `CouponCreateParams`, `CouponUpdateParams`, `Coupon`, `OrderCreateParams.shipping_cost.shipping_rate_data.fixed_amount`, `OrderUpdateParams.shipping_cost.shipping_rate_data.fixed_amount`, `PriceCreateParams`, `PriceUpdateParams`, `Price`, `ProductCreateParams.default_price_data`, `PromotionCode.restrictions`, `PromotionCodeCreateParams.restrictions`, `ShippingRate.fixed_amount`, and `ShippingRateCreateParams.fixed_amount` - * Add support for `restrictions` on `PromotionCodeUpdateParams` - * Add support for `fixed_amount` and `tax_behavior` on `ShippingRateUpdateParams` -* [#1467](https://github.com/stripe/stripe-node/pull/1467) API Updates - * Add support for `customer` on `Checkout.SessionListParams` and `RefundCreateParams` - * Add support for `currency` and `origin` on `RefundCreateParams` - * Add support for new values `financial_connections.account.created`, `financial_connections.account.deactivated`, `financial_connections.account.disconnected`, `financial_connections.account.reactivated`, and `financial_connections.account.refreshed_balance` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 9.11.0 - 2022-06-29 -* [#1462](https://github.com/stripe/stripe-node/pull/1462) API Updates - * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card` - * Change type of `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` from `literal('card')` to `enum` - * Add support for `hosted_regulatory_receipt_url` on `Treasury.ReceivedCredit` and `Treasury.ReceivedDebit` - -## 9.10.0 - 2022-06-23 -* [#1459](https://github.com/stripe/stripe-node/pull/1459) API Updates - * Add support for `capture_method` on `PaymentIntentConfirmParams` and `PaymentIntentUpdateParams` -* [#1458](https://github.com/stripe/stripe-node/pull/1458) API Updates - * Add support for `promptpay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `promptpay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new value `promptpay` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `subtotal_excluding_tax` on `CreditNote` and `Invoice` - * Add support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem` - * Add support for new value `promptpay` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for `rendering_options` on `InvoiceCreateParams` and `InvoiceUpdateParams` - * Add support for new value `promptpay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for `total_excluding_tax` on `Invoice` - * Add support for `automatic_payment_methods` on `Order.payment.settings` - * Add support for new value `promptpay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for `promptpay_display_qr_code` on `PaymentIntent.next_action` - * Add support for new value `promptpay` on enum `PaymentMethodCreateParams.type` - * Add support for new value `promptpay` on enum `PaymentMethod.type` -* [#1455](https://github.com/stripe/stripe-node/pull/1455) fix: Stop using path.join to create URLs. - -## 9.9.0 - 2022-06-17 -* [#1453](https://github.com/stripe/stripe-node/pull/1453) API Updates - * Add support for `fund_cash_balance` test helper method on resource `Customer` - * Add support for `statement_descriptor_prefix_kana` and `statement_descriptor_prefix_kanji` on `Account.settings.card_payments`, `Account.settings.payments`, `AccountCreateParams.settings.card_payments`, and `AccountUpdateParams.settings.card_payments` - * Add support for `statement_descriptor_suffix_kana` and `statement_descriptor_suffix_kanji` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` - * Add support for `total_excluding_tax` on `CreditNote` - * Change type of `CustomerCreateParams.invoice_settings.rendering_options` and `CustomerUpdateParams.invoice_settings.rendering_options` from `rendering_options_param` to `emptyStringable(rendering_options_param)` - * Add support for `rendering_options` on `Customer.invoice_settings` and `Invoice` -* [#1452](https://github.com/stripe/stripe-node/pull/1452) Fix non-conforming changelog entries and port the Makefile fix -* [#1450](https://github.com/stripe/stripe-node/pull/1450) Only publish stable version to the latest tag - -## 9.8.0 - 2022-06-09 -* [#1448](https://github.com/stripe/stripe-node/pull/1448) Add types for extra request options -* [#1446](https://github.com/stripe/stripe-node/pull/1446) API Updates - * Add support for `treasury` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings` - * Add support for `rendering_options` on `CustomerCreateParams.invoice_settings` and `CustomerUpdateParams.invoice_settings` - * Add support for `eu_bank_transfer` on `CustomerCreateFundingInstructionsParams.bank_transfer`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer`, `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer`, `SubscriptionCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer` - * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum('iban'|'sort_code'|'spei'|'zengin')` - * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` from `literal('jp_bank_transfer')` to `enum('eu_bank_transfer'|'gb_bank_transfer'|'jp_bank_transfer'|'mx_bank_transfer')` - * Add support for `iban`, `sort_code`, and `spei` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` - * Add support for new values `bacs`, `fps`, and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` - * Add support for new values `sort_code` and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` - * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum` - * Add support for `custom_unit_amount` on `PriceCreateParams` and `Price` - -## 9.7.0 - 2022-06-08 -* [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates - * Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.SessionCreateParams.payment_method_options` - * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.*` and `Checkout.SessionCreateParams.payment_method_options.*`, - * Change `PaymentMethod.us_bank_account.networks` and `SetupIntent.flow_directions` to be required - * Add support for `attach_to_self` on `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, and `SetupIntentUpdateParams` - * Add support for `flow_directions` on `SetupAttempt`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` - -## 9.6.0 - 2022-06-01 -* [#1439](https://github.com/stripe/stripe-node/pull/1439) API Updates - * Add support for `radar_options` on `ChargeCreateParams`, `Charge`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `account_holder_name`, `account_number`, `account_type`, `bank_code`, `bank_name`, `branch_code`, and `branch_name` on `FundingInstructions.bank_transfer.financial_addresses[].zengin` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin` - * Add support for new values `en-AU` and `en-NZ` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` - * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type` and `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type` from `enum` to `literal('jp_bank_transfer')` - * This is technically breaking in Typescript, but now accurately represents the behavior that was allowed by the server. We haven't historically treated breaking Typescript changes as requiring a major. - * Change `PaymentIntent.next_action.display_bank_transfer_instructions.hosted_instructions_url` to be required - * Add support for `network` on `SetupIntent.payment_method_options.card` - * Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` - - -## 9.5.0 - 2022-05-26 -* [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates - * Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` - * Add support for new value `affirm` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions` - * Add support for `id_number_secondary_provided` on `Person` - * Add support for `card_issuing` on `Treasury.FinancialAccountCreateParams.features`, `Treasury.FinancialAccountUpdateFeaturesParams`, and `Treasury.FinancialAccountUpdateParams.features` - -* [#1432](https://github.com/stripe/stripe-node/pull/1432) docs: Update HttpClient documentation to remove experimental status. - -## 9.4.0 - 2022-05-23 -* [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates - * Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - -## 9.3.0 - 2022-05-23 -* [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates - * Add support for new resource `Apps.Secret` - * Add support for `affirm` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `link` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `OrderCreateParams.payment.settings.payment_method_options`, `OrderUpdateParams.payment.settings.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` - * Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for new value `link` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new values `affirm` and `link` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type` - * Add support for new values `affirm` and `link` on enum `PaymentMethod.type` - -## 9.2.0 - 2022-05-19 -* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates - * Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction` - * Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `Issuing.DisputeCreateParams` - * Add support for `retrieve_payment_method` method on resource `Customer` - * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account` - * Change `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates` to be optional - * Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)` - * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.Session.payment_method_options` - * Add support for `financial_account` on `Issuing.Card` and `Issuing.CardCreateParams` - * Add support for `client_secret` on `Order` - * Add support for `networks` on `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `PaymentMethod.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` - * Add support for `attach_to_self` and `flow_directions` on `SetupIntent` - * Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings` - * Add support for `czk` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` - -## 9.1.0 - 2022-05-11 -* [#1420](https://github.com/stripe/stripe-node/pull/1420) API Updates - * Add support for `description` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` - * Add support for `consent_collection`, `payment_intent_data`, `shipping_options`, `submit_type`, and `tax_id_collection` on `PaymentLinkCreateParams` and `PaymentLink` - * Add support for `customer_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` - * Add support for `metadata` on `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]` - * Add support for new value `billing_portal.session.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 9.0.0 - 2022-05-09 -Major version release - The [migration guide](https://github.com/stripe/stripe-node/wiki/Migration-Guide-for-v9) contains a detailed list of backwards-incompatible changes with upgrade instructions. -(āš ļø = breaking changes): -* āš ļø[#1336](https://github.com/stripe/stripe-node/pull/1336) feat(http-client): retry closed connection errors -* [#1415](https://github.com/stripe/stripe-node/pull/1415) [#1417](https://github.com/stripe/stripe-node/pull/1417) API Updates - * āš ļø Replace the legacy `Order` API with the new `Order` API. - * Resource modified: `Order`. - * New methods: `cancel`, `list_line_items`, `reopen`, and `submit` - * Removed methods: `pay` and `return_order` - * Removed resources: `OrderItem` and `OrderReturn` - * Removed references from other resources: `Charge.order` - * Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem` - * Change type of `Charge.shipping.name`, `Checkout.Session.shipping.name`, `Customer.shipping.name`, `Invoice.customer_shipping.name`, `PaymentIntent.shipping.name`, `ShippingDetails.name`, and `Source.source_order.shipping.name` from `nullable(string)` to `string` - -## 8.222.0 - 2022-05-05 -* [#1414](https://github.com/stripe/stripe-node/pull/1414) API Updates - * Add support for `default_price_data` on `ProductCreateParams` - * Add support for `default_price` on `ProductUpdateParams` and `Product` - * Add support for `instructions_email` on `RefundCreateParams` and `Refund` - - -## 8.221.0 - 2022-05-05 -* [#1413](https://github.com/stripe/stripe-node/pull/1413) API Updates - * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` - * Add support for `financial_connections` on `Checkout.Session.payment_method_options.us_bank_account`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, `SetupIntentUpdateParams.payment_method_options.us_bank_account`, `Subscription.payment_settings.payment_method_options.us_bank_account`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account` - * Add support for `financial_connections_account` on `PaymentIntentConfirmParams.payment_method_data.us_bank_account`, `PaymentIntentCreateParams.payment_method_data.us_bank_account`, `PaymentIntentUpdateParams.payment_method_data.us_bank_account`, `PaymentMethod.us_bank_account`, `PaymentMethodCreateParams.us_bank_account`, `SetupIntentConfirmParams.payment_method_data.us_bank_account`, `SetupIntentCreateParams.payment_method_data.us_bank_account`, and `SetupIntentUpdateParams.payment_method_data.us_bank_account` - -* [#1410](https://github.com/stripe/stripe-node/pull/1410) API Updates - * Add support for `registered_address` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` - * Change type of `PaymentIntent.amount_details.tip.amount` from `nullable(integer)` to `integer` - * Change `PaymentIntent.amount_details.tip.amount` to be optional - * Add support for `payment_method_data` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` -* [#1409](https://github.com/stripe/stripe-node/pull/1409) Update autoPagination tests to be hermetic. -* [#1411](https://github.com/stripe/stripe-node/pull/1411) Enable CI on beta branch - -## 8.220.0 - 2022-05-03 -* [#1407](https://github.com/stripe/stripe-node/pull/1407) API Updates - * Add support for new resource `CashBalance` - * Change type of `BillingPortal.Configuration.application` from `$Application` to `deletable($Application)` - * Add support for `alipay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` - * Change type of `Checkout.SessionCreateParams.payment_method_options.konbini.expires_after_days` from `emptyStringable(integer)` to `integer` - * Add support for new value `eu_oss_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new value `eu_oss_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `cash_balance` on `Customer` - * Add support for `application` on `Invoice`, `Quote`, `SubscriptionSchedule`, and `Subscription` -* [#1403](https://github.com/stripe/stripe-node/pull/1403) Add tests for specifying a custom host on StripeMethod. - -## 8.219.0 - 2022-04-21 -* [#1398](https://github.com/stripe/stripe-node/pull/1398) API Updates - * Add support for `expire` test helper method on resource `Refund` - * Change type of `BillingPortal.Configuration.application` from `string` to `expandable($Application)` - * Change `Issuing.DisputeCreateParams.transaction` to be optional - -## 8.218.0 - 2022-04-18 -* [#1396](https://github.com/stripe/stripe-node/pull/1396) API Updates - * Add support for new resources `FundingInstructions` and `Terminal.Configuration` - * Add support for `create_funding_instructions` method on resource `Customer` - * Add support for new value `customer_balance` as a payment method `type`. - * Add support for `customer_balance` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` - * Add support for `cash_balance` on `CustomerCreateParams` and `CustomerUpdateParams` - * Add support for `amount_details` on `PaymentIntent` - * Add support for `display_bank_transfer_instructions` on `PaymentIntent.next_action` - * Add support for `configuration_overrides` on `Terminal.Location`, `Terminal.LocationCreateParams`, and `Terminal.LocationUpdateParams` - -## 8.217.0 - 2022-04-13 -* [#1395](https://github.com/stripe/stripe-node/pull/1395) API Updates - * Add support for `increment_authorization` method on resource `PaymentIntent` - * Add support for `incremental_authorization_supported` on `Charge.payment_method_details.card_present` - * Add support for `request_incremental_authorization_support` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` - -## 8.216.0 - 2022-04-08 -* [#1391](https://github.com/stripe/stripe-node/pull/1391) API Updates - * Add support for `apply_customer_balance` method on resource `PaymentIntent` - * Add support for new value `cash_balance.funds_available` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 8.215.0 - 2022-04-01 -* [#1389](https://github.com/stripe/stripe-node/pull/1389) API Updates - * Add support for `bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `capture_before` on `Charge.payment_method_details.card_present` - * Add support for `address` and `name` on `Checkout.Session.customer_details` - * Add support for `customer_balance` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` - * Add support for new value `customer_balance` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for `request_extended_authorization` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` - * Add support for new values `payment_intent.partially_funded`, `terminal.reader.action_failed`, and `terminal.reader.action_succeeded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -* [#1388](https://github.com/stripe/stripe-node/pull/1388) Stop sending Content-Length header for verbs which don't have bodies. - * Fixes https://github.com/stripe/stripe-node/issues/1360. - -## 8.214.0 - 2022-03-30 -* [#1386](https://github.com/stripe/stripe-node/pull/1386) API Updates - * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader` - * Change `Charge.failure_balance_transaction`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.next_action.verify_with_microdeposits.microdeposit_type`, `SetupIntent.next_action.verify_with_microdeposits.microdeposit_type`, and `Subscription.payment_settings.payment_method_options.us_bank_account` to be required - * Add support for `action` on `Terminal.Reader` - -## 8.213.0 - 2022-03-28 -* [#1383](https://github.com/stripe/stripe-node/pull/1383) API Updates - * Add support for Search API - * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription` -* [#1384](https://github.com/stripe/stripe-node/pull/1384) Bump qs package to latest. - -## 8.212.0 - 2022-03-25 -* [#1381](https://github.com/stripe/stripe-node/pull/1381) API Updates - * Add support for PayNow and US Bank Accounts Debits payments - * **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details)) - * Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details` - * **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type)) - * Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type` - * **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options)) - * Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` - * Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` - * Add support for `paynow_display_qr_code` on `PaymentIntent.next_action` - * Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` - * **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options)) - * Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams` - * **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details)) - * Add support for `us_bank_account` on `SetupAttempt.payment_method_details` - * **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow)) - * Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams` - * Add support for `us_bank_account` on `PaymentMethodUpdateParams` - * Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type` - * **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types)) - * Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `Checkout.SessionCreateParams` - * Add support for new values `paynow` and `us_bank_account` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types)) - * Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` - * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` - * **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types)) - * Add support for `us_bank_account` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` - * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams` - * **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities)) - * Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams` - * Add support for `failure_balance_transaction` on `Charge` - * Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on - `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options-afterpay_clearpay-capture_method)) - * Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits)) - * Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent` - * Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams` - * Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock)) -* [#1375](https://github.com/stripe/stripe-node/pull/1375) Update error types to be namespaced under Stripe.error -* [#1380](https://github.com/stripe/stripe-node/pull/1380) Force update minimist dependency - -## 8.211.0 - 2022-03-23 -* [#1377](https://github.com/stripe/stripe-node/pull/1377) API Updates - * Add support for `cancel` method on resource `Refund` - * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Change `InvoiceCreateParams.customer` to be optional - * Add support for `test_clock` on `QuoteListParams` - * Add support for new values `test_helpers.test_clock.advancing`, `test_helpers.test_clock.created`, `test_helpers.test_clock.deleted`, `test_helpers.test_clock.internal_failure`, and `test_helpers.test_clock.ready` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - -## 8.210.0 - 2022-03-18 -* [#1372](https://github.com/stripe/stripe-node/pull/1372) API Updates - * Add support for `status` on `Card` - -## 8.209.0 - 2022-03-11 -* [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates - * Add support for `mandate` on `Charge.payment_method_details.card` - * Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card` - * Add support for `card_await_notification` on `PaymentIntent.next_action` - * Add support for `customer_notification` on `PaymentIntent.processing.card` - * Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams` - -* [#1364](https://github.com/stripe/stripe-node/pull/1364) Update search pagination to use page param instead of next_page. - -## 8.208.0 - 2022-03-09 -* [#1366](https://github.com/stripe/stripe-node/pull/1366) API Updates - * Add support for `test_clock` on `CustomerListParams` - * Change `Invoice.test_clock`, `InvoiceItem.test_clock`, `Quote.test_clock`, `Subscription.test_clock`, and `SubscriptionSchedule.test_clock` to be required - -## 8.207.0 - 2022-03-02 -* [#1363](https://github.com/stripe/stripe-node/pull/1363) API Updates - * Add support for new resources `CreditedItems` and `ProrationDetails` - * Add support for `proration_details` on `InvoiceLineItem` - -## 8.206.0 - 2022-03-01 -* [#1361](https://github.com/stripe/stripe-node/pull/1361) [#1362](https://github.com/stripe/stripe-node/pull/1362) API Updates - * Add support for new resource `TestHelpers.TestClock` - * Add support for `test_clock` on `CustomerCreateParams`, `Customer`, `Invoice`, `InvoiceItem`, `QuoteCreateParams`, `Quote`, `Subscription`, and `SubscriptionSchedule` - * Add support for `pending_invoice_items_behavior` on `InvoiceCreateParams` - * Change type of `ProductUpdateParams.url` from `string` to `emptyStringable(string)` - * Add support for `next_action` on `Refund` - -## 8.205.0 - 2022-02-25 -* [#1098](https://github.com/stripe/stripe-node/pull/1098) Typescript: add declaration for `onDone` on `autoPagingEach` -* [#1357](https://github.com/stripe/stripe-node/pull/1357) Properly handle API errors with unknown error types -* [#1359](https://github.com/stripe/stripe-node/pull/1359) API Updates - * Change `BillingPortal.Configuration` `.business_profile.privacy_policy_url` and `.business_profile.terms_of_service_url` to be optional on requests and responses - - * Add support for `konbini_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` - * Add support for `konbini` on `Charge.payment_method_details`, - * Add support for `.payment_method_options.konbini` and `.payment_method_data.konbini` on the `PaymentIntent` API. - * Add support for `.payment_settings.payment_method_options.konbini` on the `Invoice` API. - * Add support for `.payment_method_options.konbini` on the `Subscription` API - * Add support for `.payment_method_options.konbini` on the `Checkout.Session` API - * Add support for `konbini` on the `PaymentMethod` API. - * Add support for `konbini_display_details` on `PaymentIntent.next_action` -* [#1311](https://github.com/stripe/stripe-node/pull/1311) update documentation to use appInfo - -## 8.204.0 - 2022-02-23 -* [#1354](https://github.com/stripe/stripe-node/pull/1354) API Updates - * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.*` - * Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` - * Add support for `object` on `ExternalAccountListParams` (fixes #1351) - -## 8.203.0 - 2022-02-15 -* [#1350](https://github.com/stripe/stripe-node/pull/1350) API Updates - * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent` - * Add support for new value `grabpay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` -* [#1348](https://github.com/stripe/stripe-node/pull/1348) API Updates - * Add support for `pin` on `Issuing.CardUpdateParams` - -## 8.202.0 - 2022-02-03 -* [#1344](https://github.com/stripe/stripe-node/pull/1344) API Updates - * Add support for new value `au_becs_debit` on enum `Checkout.SessionCreateParams.payment_method_types[]` - * Change type of `Refund.reason` from `string` to `enum('duplicate'|'expired_uncaptured_charge'|'fraudulent'|'requested_by_customer')` - -## 8.201.0 - 2022-01-28 -* [#1342](https://github.com/stripe/stripe-node/pull/1342) Bump nanoid from 3.1.20 to 3.2.0. -* [#1335](https://github.com/stripe/stripe-node/pull/1335) Fix StripeResource to successfully import TIMEOUT_ERROR_CODE. -* [#1339](https://github.com/stripe/stripe-node/pull/1339) Bump node-fetch from 2.6.2 to 2.6.7 - -## 8.200.0 - 2022-01-25 -* [#1338](https://github.com/stripe/stripe-node/pull/1338) API Updates - * Change `Checkout.Session.payment_link` to be required - * Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink` - * Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - * Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new value `is_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - -* [#1333](https://github.com/stripe/stripe-node/pull/1333) Customer tax_ids is not included by default - -## 8.199.0 - 2022-01-20 -* [#1332](https://github.com/stripe/stripe-node/pull/1332) API Updates - * Add support for new resource `PaymentLink` - * Add support for `payment_link` on `Checkout.Session` - -## 8.198.0 - 2022-01-19 -* [#1331](https://github.com/stripe/stripe-node/pull/1331) API Updates - * Change type of `Charge.status` from `string` to `enum('failed'|'pending'|'succeeded')` - * Add support for `bacs_debit` and `eps` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Add support for `image_url_png` and `image_url_svg` on `PaymentIntent.next_action.wechat_pay_display_qr_code` - -## 8.197.0 - 2022-01-13 -* [#1329](https://github.com/stripe/stripe-node/pull/1329) API Updates - * Add support for `paid_out_of_band` on `Invoice` - -## 8.196.0 - 2022-01-12 -* [#1328](https://github.com/stripe/stripe-node/pull/1328) API Updates - * Add support for `customer_creation` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `fpx` and `grabpay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` -* [#1315](https://github.com/stripe/stripe-node/pull/1315) API Updates - * Add support for `mandate_options` on `SubscriptionCreateParams.payment_settings.payment_method_options.card`, `SubscriptionUpdateParams.payment_settings.payment_method_options.card`, and `Subscription.payment_settings.payment_method_options.card` -* [#1327](https://github.com/stripe/stripe-node/pull/1327) Remove DOM type references. -* [#1325](https://github.com/stripe/stripe-node/pull/1325) Add comment documenting makeRequest#headers type. - -## 8.195.0 - 2021-12-22 -* [#1314](https://github.com/stripe/stripe-node/pull/1314) API Updates - * Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Change type of `PaymentIntent.processing.type` from `string` to `literal('card')`. This is not considered a breaking change as the field was added in the same release. -* [#1313](https://github.com/stripe/stripe-node/pull/1313) API Updates - * Add support for new values `en-FR`, `es-US`, and `fr-FR` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` - * Add support for `boleto` on `SetupAttempt.payment_method_details` - -* [#1312](https://github.com/stripe/stripe-node/pull/1312) API Updates - * Add support for `processing` on `PaymentIntent` - -## 8.194.0 - 2021-12-15 -* [#1309](https://github.com/stripe/stripe-node/pull/1309) API Updates - * Add support for new resource `PaymentIntentTypeSpecificPaymentMethodOptionsClient` - * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, and `PaymentIntent.payment_method_options.card` - -## 8.193.0 - 2021-12-09 -* [#1308](https://github.com/stripe/stripe-node/pull/1308) API Updates - * Add support for `metadata` on `BillingPortal.ConfigurationCreateParams`, `BillingPortal.ConfigurationUpdateParams`, and `BillingPortal.Configuration` - -## 8.192.0 - 2021-12-09 -* [#1307](https://github.com/stripe/stripe-node/pull/1307) API Updates - * Add support for new values `ge_vat` and `ua_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new values `ge_vat` and `ua_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Change type of `PaymentIntentCreateParams.payment_method_data.billing_details.email`, `PaymentIntentUpdateParams.payment_method_data.billing_details.email`, `PaymentIntentConfirmParams.payment_method_data.billing_details.email`, `PaymentMethodCreateParams.billing_details.email`, and `PaymentMethodUpdateParams.billing_details.email` from `string` to `emptyStringable(string)` - * Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Add support for new value `en-IE` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` -* [#1301](https://github.com/stripe/stripe-node/pull/1301) Remove coveralls from package.json -* [#1300](https://github.com/stripe/stripe-node/pull/1300) Fix broken link in docstring - -## 8.191.0 - 2021-11-19 -* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates - * Add support for `wallets` on `Issuing.Card` - -* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates - * Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - * Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` - -## 8.190.0 - 2021-11-17 -* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates - * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent` - - -## 8.189.0 - 2021-11-16 -* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates - * Add support for new resource `ShippingRate` - * Add support for `shipping_options` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `shipping_rate` on `Checkout.Session` - -## 8.188.0 - 2021-11-12 -* [#1293](https://github.com/stripe/stripe-node/pull/1293) API Updates - * Add support for new value `agrobank` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, and `PaymentMethod.fpx.bank` - -## 8.187.0 - 2021-11-11 -* [#1292](https://github.com/stripe/stripe-node/pull/1292) API Updates - * Add support for `expire` method on resource `Checkout.Session` - * Add support for `status` on `Checkout.Session` -* [#1288](https://github.com/stripe/stripe-node/pull/1288) Add SubtleCryptoProvider and update Webhooks to allow async crypto. -* [#1291](https://github.com/stripe/stripe-node/pull/1291) Better types in `lib.d.ts` - -## 8.186.1 - 2021-11-04 -* [#1284](https://github.com/stripe/stripe-node/pull/1284) API Updates - * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused. - * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company` - - -## 8.186.0 - 2021-11-01 -* [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates - * Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company` - * Add support for `proof_of_registration` on `AccountUpdateParams.documents` and `AccountCreateParams.documents` - * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account` - -## 8.185.0 - 2021-11-01 -* [#1282](https://github.com/stripe/stripe-node/pull/1282) API Updates - * Change type of `AccountUpdateParams.individual.full_name_aliases`, `AccountCreateParams.individual.full_name_aliases`, `PersonCreateParams.full_name_aliases`, `PersonUpdateParams.full_name_aliases`, `TokenCreateParams.account.individual.full_name_aliases`, and `TokenCreateParams.person.full_name_aliases` from `array(string)` to `emptyStringable(array(string))` - * Add support for new values `en-BE`, `en-ES`, and `en-IT` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` - -## 8.184.0 - 2021-10-20 -* [#1276](https://github.com/stripe/stripe-node/pull/1276) API Updates - * Change `Account.controller.type` to be required - * Add support for `buyer_id` on `Charge.payment_method_details.alipay` -* [#1273](https://github.com/stripe/stripe-node/pull/1273) Add typed createFetchHttpClient function. - -## 8.183.0 - 2021-10-15 -* [#1272](https://github.com/stripe/stripe-node/pull/1272) API Updates - * Change type of `UsageRecordCreateParams.timestamp` from `integer` to `literal('now') | integer` - * Change `UsageRecordCreateParams.timestamp` to be optional - -## 8.182.0 - 2021-10-14 -* [#1271](https://github.com/stripe/stripe-node/pull/1271) API Updates - * Change `Charge.payment_method_details.klarna.payment_method_category`, `Charge.payment_method_details.klarna.preferred_locale`, `Checkout.Session.customer_details.phone`, and `PaymentMethod.klarna.dob` to be required - * Add support for new value `klarna` on enum `Checkout.SessionCreateParams.payment_method_types[]` - -## 8.181.0 - 2021-10-11 -* [#1269](https://github.com/stripe/stripe-node/pull/1269) API Updates - * Add support for `payment_method_category` and `preferred_locale` on `Charge.payment_method_details.klarna` - * Add support for new value `klarna` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` - * Add support for `klarna` on `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` - * Add support for new value `klarna` on enums `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, and `PaymentIntentConfirmParams.payment_method_data.type` - * Add support for new value `klarna` on enum `PaymentMethodCreateParams.type` - * Add support for new value `klarna` on enum `PaymentMethod.type` - -## 8.180.0 - 2021-10-11 -* [#1266](https://github.com/stripe/stripe-node/pull/1266) API Updates - * Add support for `list_payment_methods` method on resource `Customer` - -## 8.179.0 - 2021-10-07 -* [#1265](https://github.com/stripe/stripe-node/pull/1265) API Updates - * Add support for `phone_number_collection` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `phone` on `Checkout.Session.customer_details` - * Change `PaymentMethodListParams.customer` to be optional - * Add support for new value `customer_id` on enums `Radar.ValueListCreateParams.item_type` and `Radar.ValueList.item_type` - * Add support for new value `bbpos_wisepos_e` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` - -## 8.178.0 - 2021-09-29 -* [#1261](https://github.com/stripe/stripe-node/pull/1261) API Updates - * Add support for `klarna_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` - -## 8.177.0 - 2021-09-28 -* [#1257](https://github.com/stripe/stripe-node/pull/1257) API Updates - * Add support for `amount_authorized` and `overcapture_supported` on `Charge.payment_method_details.card_present` -* [#1256](https://github.com/stripe/stripe-node/pull/1256) Bump up ansi-regex version to 5.0.1. -* [#1253](https://github.com/stripe/stripe-node/pull/1253) Update FetchHttpClient to make fetch function optional. - -## 8.176.0 - 2021-09-16 -* [#1248](https://github.com/stripe/stripe-node/pull/1248) API Updates - * Add support for `full_name_aliases` on `AccountUpdateParams.individual`, `AccountCreateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` -* [#1247](https://github.com/stripe/stripe-node/pull/1247) Update README.md -* [#1245](https://github.com/stripe/stripe-node/pull/1245) Fix StripeResource.extend type - -## 8.175.0 - 2021-09-15 -* [#1242](https://github.com/stripe/stripe-node/pull/1242) API Updates - * Change `BillingPortal.Configuration.features.subscription_cancel.cancellation_reason` to be required - * Add support for `default_for` on `Checkout.SessionCreateParams.payment_method_options.acss_debit.mandate_options`, `Checkout.Session.payment_method_options.acss_debit.mandate_options`, `Mandate.payment_method_details.acss_debit`, `SetupIntentCreateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.acss_debit.mandate_options`, and `SetupIntent.payment_method_options.acss_debit.mandate_options` - * Add support for `acss_debit` on `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Invoice.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, `SubscriptionUpdateParams.payment_settings.payment_method_options`, and `Subscription.payment_settings.payment_method_options` - * Add support for new value `acss_debit` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` - * Add support for `livemode` on `Reporting.ReportType` -* [#1235](https://github.com/stripe/stripe-node/pull/1235) API Updates - * Change `Account.future_requirements.alternatives`, `Account.requirements.alternatives`, `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Checkout.Session.after_expiration`, `Checkout.Session.consent`, `Checkout.Session.consent_collection`, `Checkout.Session.expires_at`, `Checkout.Session.recovered_from`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` to be required - * Change type of `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` from `array(AccountRequirementsAlternative)` to `nullable(array(AccountRequirementsAlternative))` - * Add support for new value `rst` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` - * Add support for new value `checkout.session.expired` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` -* [#1237](https://github.com/stripe/stripe-node/pull/1237) Add a CryptoProvider interface and NodeCryptoProvider implementation. -* [#1236](https://github.com/stripe/stripe-node/pull/1236) Add an HTTP client which uses fetch. - -## 8.174.0 - 2021-09-01 -* [#1231](https://github.com/stripe/stripe-node/pull/1231) API Updates - * Add support for `future_requirements` on `Account`, `Capability`, and `Person` - * Add support for `alternatives` on `Account.requirements`, `Capability.requirements`, and `Person.requirements` - -## 8.173.0 - 2021-09-01 -* [#1230](https://github.com/stripe/stripe-node/pull/1230) [#1228](https://github.com/stripe/stripe-node/pull/1228) API Updates - * Add support for `after_expiration`, `consent_collection`, and `expires_at` on `Checkout.SessionCreateParams` and `Checkout.Session` - * Add support for `consent` and `recovered_from` on `Checkout.Session` - -## 8.172.0 - 2021-08-31 -* [#1198](https://github.com/stripe/stripe-node/pull/1198) Add support for paginting SearchResult objects. - -## 8.171.0 - 2021-08-27 -* [#1226](https://github.com/stripe/stripe-node/pull/1226) API Updates - * Add support for `cancellation_reason` on `BillingPortal.ConfigurationCreateParams.features.subscription_cancel`, `BillingPortal.ConfigurationUpdateParams.features.subscription_cancel`, and `BillingPortal.Configuration.features.subscription_cancel` - -## 8.170.0 - 2021-08-19 -* [#1223](https://github.com/stripe/stripe-node/pull/1223) API Updates - * Add support for new value `fil` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` - * Add support for new value `au_arn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` - * Add support for new value `au_arn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` -* [#1221](https://github.com/stripe/stripe-node/pull/1221) Add client name property to HttpClient. -* [#1219](https://github.com/stripe/stripe-node/pull/1219) Update user agent computation to handle environments without process. -* [#1218](https://github.com/stripe/stripe-node/pull/1218) Add an HttpClient interface and NodeHttpClient implementation. -* [#1217](https://github.com/stripe/stripe-node/pull/1217) Update nock. - -## 8.169.0 - 2021-08-11 -* [#1215](https://github.com/stripe/stripe-node/pull/1215) API Updates - * Add support for `locale` on `BillingPortal.SessionCreateParams` and `BillingPortal.Session` - * Change type of `Invoice.collection_method` and `Subscription.collection_method` from `nullable(enum('charge_automatically'|'send_invoice'))` to `enum('charge_automatically'|'send_invoice')` - -## 8.168.0 - 2021-08-04 -* [#1211](https://github.com/stripe/stripe-node/pull/1211) API Updates - * Change type of `PaymentIntentCreateParams.payment_method_options.sofort.preferred_language`, `PaymentIntentUpdateParams.payment_method_options.sofort.preferred_language`, and `PaymentIntentConfirmParams.payment_method_options.sofort.preferred_language` from `enum` to `emptyStringable(enum)` - * Change `Price.tax_behavior`, `Product.tax_code`, `Quote.automatic_tax`, and `TaxRate.tax_type` to be required - -## 8.167.0 - 2021-07-28 -* [#1206](https://github.com/stripe/stripe-node/pull/1206) Fix Typescript definition for `StripeResource.LastResponse.headers` -* [#1205](https://github.com/stripe/stripe-node/pull/1205) Prevent concurrent initial `uname` invocations -* [#1199](https://github.com/stripe/stripe-node/pull/1199) Explicitly define basic method specs -* [#1200](https://github.com/stripe/stripe-node/pull/1200) Add support for `fullPath` on method specs - -## 8.166.0 - 2021-07-28 -* [#1203](https://github.com/stripe/stripe-node/pull/1203) API Updates - * Bugfix: add missing autopagination methods to `Quote.listLineItems` and `Quote.listComputedUpfrontLineItems` - * Add support for `account_type` on `BankAccount`, `ExternalAccountUpdateParams`, and `TokenCreateParams.bank_account` - * Add support for `category_code` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` - * Add support for new value `redacted` on enum `Review.closed_reason` - * Remove duplicate type definition for `Account.retrieve`. - * Fix some `attributes` fields mistakenly defined as `Stripe.Metadata` -* [#1097](https://github.com/stripe/stripe-node/pull/1097) fix error arguments - -## 8.165.0 - 2021-07-22 -* [#1197](https://github.com/stripe/stripe-node/pull/1197) API Updates - * Add support for new values `hr`, `ko`, and `vi` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` - * Add support for `payment_settings` on `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` - -## 8.164.0 - 2021-07-20 -* [#1196](https://github.com/stripe/stripe-node/pull/1196) API Updates - * Remove support for values `api_connection_error`, `authentication_error`, and `rate_limit_error` from enums `StripeError.type`, `StripeErrorResponse.error.type`, `Invoice.last_finalization_error.type`, `PaymentIntent.last_payment_error.type`, `SetupAttempt.setup_error.type`, and `SetupIntent.last_setup_error.type` - * Add support for `wallet` on `Issuing.Transaction` - * Add support for `ideal` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` - - -## 8.163.0 - 2021-07-15 -* [#1102](https://github.com/stripe/stripe-node/pull/1102), [#1191](https://github.com/stripe/stripe-node/pull/1191) Add support for `stripeAccount` when initializing the client - -## 8.162.0 - 2021-07-14 -* [#1194](https://github.com/stripe/stripe-node/pull/1194) API Updates - * Add support for `quote.accepted`, `quote.canceled`, `quote.created`, and `quote.finalized` events. -* [#1190](https://github.com/stripe/stripe-node/pull/1190) API Updates - * Add support for `list_computed_upfront_line_items` method on resource `Quote` -* [#1192](https://github.com/stripe/stripe-node/pull/1192) Update links to Stripe.js docs - -## 8.161.0 - 2021-07-09 -* [#1188](https://github.com/stripe/stripe-node/pull/1188) API Updates - * Add support for new resource `Quote` - * Add support for `quote` on `Invoice` - * Add support for new value `quote_accept` on enum `Invoice.billing_reason` - * Changed type of `Charge.payment_method_details.card.three_d_secure.result`, `SetupAttempt.payment_method_details.card.three_d_secure.result`, `Charge.payment_method_details.card.three_d_secure.version`, and `SetupAttempt.payment_method_details.card.three_d_secure.version` to be nullable. - -* [#1187](https://github.com/stripe/stripe-node/pull/1187) Bugfix in binary streaming support - -## 8.160.0 - 2021-06-30 -* [#1182](https://github.com/stripe/stripe-node/pull/1182) API Updates - * Add support for new value `boleto` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, and `Invoice.payment_settings.payment_method_types[]`. - -## 8.159.0 - 2021-06-30 -* [#1180](https://github.com/stripe/stripe-node/pull/1180) API Updates - * Add support for `wechat_pay` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` - * Add support for new value `wechat_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentMethodCreateParams.type`, `PaymentMethodListParams.type`, and `PaymentMethod.type` - * Add support for `wechat_pay_display_qr_code`, `wechat_pay_redirect_to_android_app`, and `wechat_pay_redirect_to_ios_app` on `PaymentIntent.next_action` - -## 8.158.0 - 2021-06-29 -* [#1179](https://github.com/stripe/stripe-node/pull/1179) API Updates - * Added support for `boleto_payments` on `Account.capabilities` - * Added support for `boleto` and `oxxo` on `Checkout.SessionCreateParams.payment_method_options` and `Checkout.Session.payment_method_options` - * Added support for `boleto` and `oxxo` as members of the `type` enum inside `Checkout.SessionCreateParams.payment_method_types[]`. - -## 8.157.0 - 2021-06-25 -* [#1177](https://github.com/stripe/stripe-node/pull/1177) API Updates - * Added support for `boleto` on `PaymentMethodCreateParams`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `Charge.payment_method_details` and `PaymentMethod` - * `PaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentCreataParams.payment_method_data.type` and `PaymentMethod.type` added new enum members: `boleto` - * Added support for `boleto_display_details` on `PaymentIntent.next_action` - * `TaxIdCreateParams.type`, `Invoice.customer_tax_ids[].type`, `InvoiceLineItemListUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `CustomerCreateParams.tax_id_data[].type`, `Checkout.Session.customer_details.tax_ids[].type` and `TaxId.type` added new enum members: `il_vat`. -* [#1157](https://github.com/stripe/stripe-node/pull/1157) Add support for streaming requests - -## 8.156.0 - 2021-06-18 -* [#1175](https://github.com/stripe/stripe-node/pull/1175) API Updates - * Add support for new TaxId types: `ca_pst_mb`, `ca_pst_bc`, `ca_gst_hst`, and `ca_pst_sk`. - -## 8.155.0 - 2021-06-16 -* [#1173](https://github.com/stripe/stripe-node/pull/1173) API Updates - * Add support for `url` on Checkout `Session`. - -## 8.154.0 - 2021-06-07 -* [#1170](https://github.com/stripe/stripe-node/pull/1170) API Updates - * Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams` - * Update `Terminal.Reader.location` to be expandable (TypeScript breaking change) - -## 8.153.0 - 2021-06-04 -* [#1168](https://github.com/stripe/stripe-node/pull/1168) API Updates - * Add support for `controller` on `Account`. - -## 8.152.0 - 2021-06-04 -* [#1167](https://github.com/stripe/stripe-node/pull/1167) API Updates - * Add support for new resource `TaxCode`. - * Add support for `tax_code` on `Product`, `ProductCreateParams`, `ProductUpdateParams`, `PriceCreateParams.product_data`, `PlanCreateParams.product`, and Checkout `SessionCreateParams.line_items[].price_data.product_data`. - * Add support for `tax` to `Customer`, `CustomerCreateParams`, `CustomerUpdateParams`. - * Add support for `default_settings[automatic_tax]` and `phases[].automatic_tax` on `SubscriptionSchedule`, `SubscriptionScheduleCreateParams`, and `SubscriptionScheduleUpdateParams`. - * Add support for `automatic_tax` on `Subscription`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`; `Invoice`, `InvoiceCreateParams`, `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`; Checkout `Session` and Checkout `SessionCreateParams`. - * Add support for `tax_behavior` to `Price`, `PriceCreateParams`, `PriceUpdateParams` and to the many Param objects that contain `price_data`: - - `SubscriptionScheduleCreateParams` and `SubscriptionScheduleUpdateParams`, beneath `phases[].add_invoice_items[]` and `phases[].items[]` - - `SubscriptionItemCreateParams` and `SubscriptionItemUpdateParams`, on the top-level - - `SubscriptionCreateParams` create and `UpdateCreateParams`, beneath `items[]` and `add_invoice_items[]` - - `InvoiceItemCreateParams` and `InvoiceItemUpdateParams`, on the top-level - - `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams` beneath `subscription_items[]` and `invoice_items[]`. - - Checkout `SessionCreateParams`, beneath `line_items[]`. - * Add support for `customer_update` to Checkout `SessionCreateParams`. - * Add support for `customer_details` to `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`. - * Add support for `tax_type` to `TaxRate`, `TaxRateCreateParams`, and `TaxRateUpdateParams`. - -## 8.151.0 - 2021-06-02 -* [#1166](https://github.com/stripe/stripe-node/pull/1166) API Updates - * Added support for `llc`, `free_zone_llc`, `free_zone_establishment` and `sole_establishment` to the `structure` enum on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company` and `TokenCreateParams.account.company`. - -## 8.150.0 - 2021-05-26 -* [#1163](https://github.com/stripe/stripe-node/pull/1163) API Updates - * Added support for `documents` on `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` - -## 8.149.0 - 2021-05-19 -* [#1159](https://github.com/stripe/stripe-node/pull/1159) API Updates - * Add support for Identity VerificationSupport and VerificationReport APIs - * Update Typescript for `CouponCreateParams.duration` and `CouponCreateParams.products` to be optional. -* [#1158](https://github.com/stripe/stripe-node/pull/1158) API Updates - * `AccountUpdateParams.business_profile.support_url` and `AccountCreatParams.business_profile.support_url` changed from `string` to `Stripe.Emptyable` - * `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query` - -## 8.148.0 - 2021-05-06 -* [#1154](https://github.com/stripe/stripe-node/pull/1154) API Updates - * Added support for `reference` on `Charge.payment_method_details.afterpay_clearpay` - * Added support for `afterpay_clearpay` on `PaymentIntent.payment_method_options`. - -## 8.147.0 - 2021-05-05 -* [#1153](https://github.com/stripe/stripe-node/pull/1153) API Updates - * Add support for `payment_intent` on `Radar.EarlyFraudWarning` - -## 8.146.0 - 2021-05-04 -* Add support for `card_present` on `PaymentIntent#confirm.payment_method_options`, `PaymentIntent#update.payment_method_options`, `PaymentIntent#create.payment_method_options` and `PaymentIntent.payment_method_options` -* `SubscriptionItem#create.payment_behavior`, `Subscription#update.payment_behavior`, `Subscription#create.payment_behavior` and `SubscriptionItem#update.payment_behavior` added new enum members: `default_incomplete` - -## 8.145.0 - 2021-04-21 -* [#1143](https://github.com/stripe/stripe-node/pull/1143) API Updates - * Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members: - * Add support for `dhl` and `royal_mail` as enum members of `Issuing.Card.shipping.carrier`. -* [#1142](https://github.com/stripe/stripe-node/pull/1142) Improve type definition for for `AccountCreateParams.external_account` - -## 8.144.0 - 2021-04-16 -* [#1140](https://github.com/stripe/stripe-node/pull/1140) API Updates - * Add support for `currency` on `Checkout.Session.PaymentMethodOptions.AcssDebit` - -## 8.143.0 - 2021-04-12 -* [#1139](https://github.com/stripe/stripe-node/pull/1139) API Updates - * Add support for `acss_debit_payments` on `Account.capabilities` - * Add support for `payment_method_options` on `Checkout.Session` - * Add support for `acss_debit` on `SetupIntent.payment_method_options`, `SetupAttempt.payment_method_details`, `PaymentMethod`, `PaymentIntent.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `Mandate.payment_method_details` and `SetupIntent.payment_method_options` - * Add support for `verify_with_microdeposits` on `PaymentIntent.next_action` and `SetupIntent.next_action` - * Add support for `acss_debit` as member of the `type` enum on `PaymentMethod` and `PaymentIntent`, and inside `Checkout.SessionCreateParams.payment_method_types[]`. - -## 8.142.0 - 2021-04-02 -* [#1138](https://github.com/stripe/stripe-node/pull/1138) API Updates - * Add support for `subscription_pause` on `BillingPortal.ConfigurationUpdateParams.features`, `BillingPortal.ConfigurationCreateParams.features` and `BillingPortal.Configuration.features` - -## 8.141.0 - 2021-03-31 -* [#1137](https://github.com/stripe/stripe-node/pull/1137) API Updates - * Add support for `transfer_data` on `SessionCreateParams.subscription_data` -* [#1134](https://github.com/stripe/stripe-node/pull/1134) API Updates - * Added support for `card_issuing` on `AccountUpdateParams.settings` and `Account.settings` - -## 8.140.0 - 2021-03-25 -* [#1133](https://github.com/stripe/stripe-node/pull/1133) API Updates - * `Capability.requirements.errors[].code`, `Account.requirements.errors[].code` and `Person.requirements.errors[].code` added new enum members: `verification_missing_owners, verification_missing_executives and verification_requires_additional_memorandum_of_associations` - * `SessionCreateParams.locale` and `Checkout.Session.locale` added new enum members: `th` - -## 8.139.0 - 2021-03-22 -* [#1132](https://github.com/stripe/stripe-node/pull/1132) API Updates - * Added support for `shipping_rates` on `SessionCreateOptions` - * Added support for `amount_shipping` on `Checkout.SessionTotalDetails` -* [#1131](https://github.com/stripe/stripe-node/pull/1131) types: export StripeRawError type - -## 8.138.0 - 2021-03-10 -* [#1124](https://github.com/stripe/stripe-node/pull/1124) API Updates - * Added support for `BillingPortal.Configuration` API. - * `Terminal.LocationUpdateParams.country` is now optional. - -## 8.137.0 - 2021-02-17 -* [#1123](https://github.com/stripe/stripe-node/pull/1123) API Updates - * Add support for on_behalf_of to Invoice - * Add support for enum member revolut on PaymentIntent.payment_method_data.ideal.bank, PaymentMethod.ideal.bank, Charge.payment_method_details.ideal.bank and SetupAttempt.payment_method_details.ideal.bank - * Added support for enum member REVOLT21 on PaymentMethod.ideal.bic, Charge.payment_method_details.ideal.bic and SetupAttempt.payment_method_details.ideal.bic - -## 8.136.0 - 2021-02-16 -* [#1122](https://github.com/stripe/stripe-node/pull/1122) API Updates - * Add support for `afterpay_clearpay` on `PaymentMethod`, `PaymentIntent.payment_method_data`, and `Charge.payment_method_details`. - * Add support for `afterpay_clearpay` as a payment method type on `PaymentMethod`, `PaymentIntent` and `Checkout.Session` - * Add support for `adjustable_quantity` on `SessionCreateParams.LineItem` - * Add support for `bacs_debit`, `au_becs_debit` and `sepa_debit` on `SetupAttempt.payment_method_details` - -## 8.135.0 - 2021-02-08 -* [#1119](https://github.com/stripe/stripe-node/pull/1119) API Updates - * Add support for `afterpay_clearpay_payments` on `Account.capabilities` - * Add support for `payment_settings` on `Invoice` - -## 8.134.0 - 2021-02-05 -* [#1118](https://github.com/stripe/stripe-node/pull/1118) API Updates - * `LineItem.amount_subtotal` and `LineItem.amount_total` changed from `nullable(integer)` to `integer` - * Improve error message for `EphemeralKeys.create` - -## 8.133.0 - 2021-02-03 -* [#1115](https://github.com/stripe/stripe-node/pull/1115) API Updates - * Added support for `nationality` on `Person`, `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` - * Added `gb_vat` to `TaxId.type` enum. - -## 8.132.0 - 2021-01-21 -* [#1112](https://github.com/stripe/stripe-node/pull/1112) API Updates - * `Issuing.Transaction.type` dropped enum members: 'dispute' - * `LineItem.price` can now be null. - -## 8.131.1 - 2021-01-15 -* [#1104](https://github.com/stripe/stripe-node/pull/1104) Make request timeout errors eligible for retry - -## 8.131.0 - 2021-01-14 -* [#1108](https://github.com/stripe/stripe-node/pull/1108) Multiple API Changes - * Added support for `dynamic_tax_rates` on `Checkout.SessionCreateParams.line_items` - * Added support for `customer_details` on `Checkout.Session` - * Added support for `type` on `Issuing.TransactionListParams` - * Added support for `country` and `state` on `TaxRateUpdateParams`, `TaxRateCreateParams` and `TaxRate` -* [#1107](https://github.com/stripe/stripe-node/pull/1107) More consistent type definitions - -## 8.130.0 - 2021-01-07 -* [#1105](https://github.com/stripe/stripe-node/pull/1105) API Updates - * Added support for `company_registration_verification`, `company_ministerial_decree`, `company_memorandum_of_association`, `company_license` and `company_tax_id_verification` on AccountUpdateParams.documents and AccountCreateParams.documents -* [#1100](https://github.com/stripe/stripe-node/pull/1100) implement/fix reverse iteration when iterating with ending_before -* [#1096](https://github.com/stripe/stripe-node/pull/1096) typo receieved -> received - -## 8.129.0 - 2020-12-15 -* [#1093](https://github.com/stripe/stripe-node/pull/1093) API Updates - * Added support for card_present on SetupAttempt.payment_method_details - -## 8.128.0 - 2020-12-10 -* [#1088](https://github.com/stripe/stripe-node/pull/1088) Multiple API changes - * Add newlines for consistency. - * Prefix deleted references with `Stripe.` for consistency. - * Add support for `bank` on `PaymentMethod[eps]`. - * Add support for `tos_shown_and_accepted` to `payment_method_options[p24]` on `PaymentMethod`. - -## 8.127.0 - 2020-12-03 -* [#1084](https://github.com/stripe/stripe-node/pull/1084) Add support for `documents` on `Account` create and update -* [#1080](https://github.com/stripe/stripe-node/pull/1080) fixed promises example - -## 8.126.0 - 2020-11-24 -* [#1079](https://github.com/stripe/stripe-node/pull/1079) Multiple API changes - * Add support for `account_tax_ids` on `Invoice` - * Add support for `payment_method_options[sepa_debit]` on `PaymentIntent` - -## 8.125.0 - 2020-11-20 -* [#1075](https://github.com/stripe/stripe-node/pull/1075) Add support for `capabilities[grabpay_payments]` on `Account` - -## 8.124.0 - 2020-11-19 -* [#1074](https://github.com/stripe/stripe-node/pull/1074) - * Add support for mandate_options on SetupIntent.payment_method_options.sepa_debit. - * Add support for card_present and interact_present as values for PaymentMethod.type. -* [#1073](https://github.com/stripe/stripe-node/pull/1073) More consistent namespacing for shared types - -## 8.123.0 - 2020-11-18 -* [#1072](https://github.com/stripe/stripe-node/pull/1072) Add support for `grabpay` on `PaymentMethod` - -## 8.122.1 - 2020-11-17 -* Identical to 8.122.0. Published to resolve a release issue. - -## 8.122.0 - 2020-11-17 -* [#1070](https://github.com/stripe/stripe-node/pull/1070) - * Add support for `sepa_debit` on `SetupIntent.PaymentMethodOptions` - * `Invoice.tax_amounts` and `InvoiceLineItem.tax_rates` are no longer nullable - * `Invoice.default_tax_rates` and `InvoiceLineItem.tax_amounts` are no longer nullable - -## 8.121.0 - 2020-11-09 -* [#1064](https://github.com/stripe/stripe-node/pull/1064) Add `invoice.finalization_error` as a `type` on `Event` -* [#1063](https://github.com/stripe/stripe-node/pull/1063) Multiple API changes - * Add support for `last_finalization_error` on `Invoice` - * Add support for deserializing Issuing `Dispute` as a `source` on `BalanceTransaction` - * Add support for `payment_method_type` on `StripeError` used by other API resources - -## 8.120.0 - 2020-11-04 -* [#1061](https://github.com/stripe/stripe-node/pull/1061) Add support for `company[registration_number]` on `Account` - -## 8.119.0 - 2020-10-27 -* [#1056](https://github.com/stripe/stripe-node/pull/1056) Add `payment_method_details[interac_present][preferred_locales]` on `Charge` -* [#1057](https://github.com/stripe/stripe-node/pull/1057) Standardize on CRULD order for method definitions -* [#1055](https://github.com/stripe/stripe-node/pull/1055) Added requirements to README - -## 8.118.0 - 2020-10-26 -* [#1053](https://github.com/stripe/stripe-node/pull/1053) Multiple API changes - * Improving Typescript types for nullable parameters and introduced `Stripe.Emptyable` as a type - * Add support for `payment_method_options[card][cvc_token]` on `PaymentIntent` - * Add support for `cvc_update[cvc]` on `Token` creation -* [#1052](https://github.com/stripe/stripe-node/pull/1052) Add Stripe.Emptyable type definition - -## 8.117.0 - 2020-10-23 -* [#1050](https://github.com/stripe/stripe-node/pull/1050) Add support for passing `p24[bank]` for P24 on `PaymentIntent` or `PaymentMethod` - -## 8.116.0 - 2020-10-22 -* [#1049](https://github.com/stripe/stripe-node/pull/1049) Support passing `tax_rates` when creating invoice items through `Subscription` or `SubscriptionSchedule` - -## 8.115.0 - 2020-10-20 -* [#1048](https://github.com/stripe/stripe-node/pull/1048) Add support for `jp_rn` and `ru_kpp` as a `type` on `TaxId` -* [#1046](https://github.com/stripe/stripe-node/pull/1046) chore: replace recommended extension sublime babel with babel javascript - -## 8.114.0 - 2020-10-15 -* [#1045](https://github.com/stripe/stripe-node/pull/1045) Make `original_payout` and `reversed_by` not optional anymore - -## 8.113.0 - 2020-10-14 -* [#1044](https://github.com/stripe/stripe-node/pull/1044) Add support for `discounts` on `Session.create` - -## 8.112.0 - 2020-10-14 -* [#1042](https://github.com/stripe/stripe-node/pull/1042) Add support for the Payout Reverse API -* [#1041](https://github.com/stripe/stripe-node/pull/1041) Do not mutate user-supplied opts - -## 8.111.0 - 2020-10-12 -* [#1038](https://github.com/stripe/stripe-node/pull/1038) Add support for `description`, `iin` and `issuer` in `payment_method_details[card_present]` and `payment_method_details[interac_present]` on `Charge` - -## 8.110.0 - 2020-10-12 -* [#1035](https://github.com/stripe/stripe-node/pull/1035) Add support for `setup_intent.requires_action` on Event - -## 8.109.0 - 2020-10-09 -* [#1033](https://github.com/stripe/stripe-node/pull/1033) Add support for internal-only `description`, `iin`, and `issuer` for `card_present` and `interac_present` on `Charge.payment_method_details` - -## 8.108.0 - 2020-10-08 -* [#1028](https://github.com/stripe/stripe-node/pull/1028) Add support for `Bancontact/iDEAL/Sofort -> SEPA` - * Add support for `generated_sepa_debit` and `generated_sepa_debit_mandate` on `Charge.payment_method_details.ideal`, `Charge.payment_method_details.bancontact` and `Charge.payment_method_details.sofort` - * Add support for `generated_from` on `PaymentMethod.sepa_debit` - * Add support for `ideal`, `bancontact` and `sofort` on `SetupAttempt.payment_method_details` - -## 8.107.0 - 2020-10-02 -* [#1026](https://github.com/stripe/stripe-node/pull/1026) Add support for `tos_acceptance[service_agreement]` on `Account` -* [#1025](https://github.com/stripe/stripe-node/pull/1025) Add support for new payments capabilities on `Account` - -## 8.106.0 - 2020-09-29 -* [#1024](https://github.com/stripe/stripe-node/pull/1024) Add support for the `SetupAttempt` resource and List API - -## 8.105.0 - 2020-09-29 -* [#1023](https://github.com/stripe/stripe-node/pull/1023) Add support for `contribution` in `reporting_category` on `ReportRun` - -## 8.104.0 - 2020-09-28 -* [#1022](https://github.com/stripe/stripe-node/pull/1022) Add support for `oxxo_payments` capability on `Account` - -## 8.103.0 - 2020-09-28 -* [#1021](https://github.com/stripe/stripe-node/pull/1021) Add VERSION constant to instantiated Stripe client. - -## 8.102.0 - 2020-09-25 -* [#1019](https://github.com/stripe/stripe-node/pull/1019) Add support for `oxxo` as a valid `type` on the List PaymentMethod API - -## 8.101.0 - 2020-09-25 -* [#1018](https://github.com/stripe/stripe-node/pull/1018) More idiomatic types - -## 8.100.0 - 2020-09-24 -* [#1016](https://github.com/stripe/stripe-node/pull/1016) Multiple API changes - * Add support for OXXO on `PaymentMethod` and `PaymentIntent` - * Add support for `contribution` on `BalanceTransaction` - -## 8.99.0 - 2020-09-24 -* [#1011](https://github.com/stripe/stripe-node/pull/1011) Add type definition for Stripe.StripeResource - -## 8.98.0 - 2020-09-23 -* [#1014](https://github.com/stripe/stripe-node/pull/1014) Multiple API changes - * Add support for `issuing_dispute.closed` and `issuing_dispute.submitted` events - * Add support for `instant_available` on `Balance` - -## 8.97.0 - 2020-09-21 -* [#1012](https://github.com/stripe/stripe-node/pull/1012) Multiple API changes - * `metadata` is now always nullable on all resources - * Add support for `amount_captured` on `Charge` - * Add `checkout_session` on `Discount` - -## 8.96.0 - 2020-09-13 -* [#1003](https://github.com/stripe/stripe-node/pull/1003) Add support for `promotion_code.created` and `promotion_code.updated` on `Event` - -## 8.95.0 - 2020-09-10 -* [#999](https://github.com/stripe/stripe-node/pull/999) Add support for SEPA debit on Checkout - -## 8.94.0 - 2020-09-09 -* [#998](https://github.com/stripe/stripe-node/pull/998) Multiple API changes - * Add support for `sofort` as a `type` on the List PaymentMethods API - * Add back support for `invoice.payment_succeeded` - -## 8.93.0 - 2020-09-08 -* [#995](https://github.com/stripe/stripe-node/pull/995) Add support for Sofort on `PaymentMethod` and `PaymentIntent` - -## 8.92.0 - 2020-09-02 -* [#993](https://github.com/stripe/stripe-node/pull/993) Multiple API changes - * Add support for the Issuing `Dispute` submit API - * Add support for evidence details on Issuing `Dispute` creation, update and the resource. - * Add `available_payout_methods` on `BankAccount` - * Add `payment_status` on Checkout `Session` - -## 8.91.0 - 2020-08-31 -* [#992](https://github.com/stripe/stripe-node/pull/992) Add support for `payment_method.automatically_updated` on `WebhookEndpoint` - -## 8.90.0 - 2020-08-28 -* [#991](https://github.com/stripe/stripe-node/pull/991) Multiple API changes -* [#990](https://github.com/stripe/stripe-node/pull/990) Typescript: add 'lastResponse' to return types - -## 8.89.0 - 2020-08-19 -* [#988](https://github.com/stripe/stripe-node/pull/988) Multiple API changes - * `tax_ids` on `Customer` can now be nullable - * Added support for `expires_at` on `File` - -## 8.88.0 - 2020-08-17 -* [#987](https://github.com/stripe/stripe-node/pull/987) Add support for `amount_details` on Issuing `Authorization` and `Transaction` - -## 8.87.0 - 2020-08-17 -* [#984](https://github.com/stripe/stripe-node/pull/984) Multiple API changes - * Add `alipay` on `type` for the List PaymentMethods API - * Add `payment_intent.requires_action` as a new `type` on `Event` - -## 8.86.0 - 2020-08-13 -* [#981](https://github.com/stripe/stripe-node/pull/981) Add support for Alipay on Checkout `Session` - -## 8.85.0 - 2020-08-13 -* [#980](https://github.com/stripe/stripe-node/pull/980) [codegen] Multiple API Changes - * Added support for bank_name on `Charge.payment_method_details.acss_debit` - * `Issuing.dispute.balance_transactions` is now nullable. - -## 8.84.0 - 2020-08-07 -* [#975](https://github.com/stripe/stripe-node/pull/975) Add support for Alipay on `PaymentMethod` and `PaymentIntent` - -## 8.83.0 - 2020-08-05 -* [#973](https://github.com/stripe/stripe-node/pull/973) Multiple API changes - * Add support for the `PromotionCode` resource and APIs - * Add support for `allow_promotion_codes` on Checkout `Session` - * Add support for `applies_to[products]` on `Coupon` - * Add support for `promotion_code` on `Customer` and `Subscription` - * Add support for `promotion_code` on `Discount` - -## 8.82.0 - 2020-08-04 -* [#972](https://github.com/stripe/stripe-node/pull/972) Multiple API changes - * Add `zh-HK` and `zh-TW` as `locale` on Checkout `Session` - * Add `payment_method_details[card_present][receipt][account_type]` on `Charge` - -## 8.81.0 - 2020-07-30 -* [#970](https://github.com/stripe/stripe-node/pull/970) Improve types for `customer` on `CreditNote` to support `DeletedCustomer` - -## 8.80.0 - 2020-07-29 -* [#969](https://github.com/stripe/stripe-node/pull/969) Multiple API changes - * Add support for `id`, `invoice` and `invoice_item` on `Discount` and `DeletedDiscount` - * Add support for `discount_amounts` on `CreditNote`, `CreditNoteLineItem`, `InvoiceLineItem` - * Add support for `discounts` on `InvoiceItem`, `InvoiceLineItem` and `Invoice` - * Add support for `total_discount_amounts` on `Invoice` - * Make `customer` and `verification` on `TaxId` optional as the resource will be re-used for `Account` in the future. - -## 8.79.0 - 2020-07-24 -* [#967](https://github.com/stripe/stripe-node/pull/967) Multiple API changes - * Make all properties from `Discount` available on `DeletedDiscount` - * Add `capabilities[fpx_payments]` on `Account` create and update - -## 8.78.0 - 2020-07-22 -* [#965](https://github.com/stripe/stripe-node/pull/965) Add support for `cartes_bancaires_payments` as a `Capability` - -## 8.77.0 - 2020-07-20 -* [#963](https://github.com/stripe/stripe-node/pull/963) Add support for `capabilities` as a parameter on `Account` create and update - -## 8.76.0 - 2020-07-17 -* [#962](https://github.com/stripe/stripe-node/pull/962) Add support for `political_exposure` on `Person` - -## 8.75.0 - 2020-07-16 -* [#961](https://github.com/stripe/stripe-node/pull/961) Add support for `account_onboarding` and `account_update` as `type` on `AccountLink` - -## 8.74.0 - 2020-07-16 -* [#959](https://github.com/stripe/stripe-node/pull/959) Refactor remaining 'var' to 'let/const' usages -* [#960](https://github.com/stripe/stripe-node/pull/960) Use strict equality check for 'protocol' field for consistency -* [#952](https://github.com/stripe/stripe-node/pull/952) Add new fields to lastResponse: apiVersion, stripeAccount, idempotencyKey - -## 8.73.0 - 2020-07-15 -* [#958](https://github.com/stripe/stripe-node/pull/958) Multiple API changes - * Add support for `en-GB`, `fr-CA` and `id` as `locale` on Checkout `Session` - * Move `purpose` to an enum on `File` -* [#957](https://github.com/stripe/stripe-node/pull/957) Bump lodash from 4.17.15 to 4.17.19 - -## 8.72.0 - 2020-07-15 -* [#956](https://github.com/stripe/stripe-node/pull/956) Add support for `amount_total`, `amount_subtotal`, `currency` and `total_details` on Checkout `Session` - -## 8.71.0 - 2020-07-14 -* [#955](https://github.com/stripe/stripe-node/pull/955) Change from string to enum value for `billing_address_collection` on Checkout `Session` - -## 8.70.0 - 2020-07-13 -* [#953](https://github.com/stripe/stripe-node/pull/953) Multiple API changes - * Adds `es-419` as a `locale` to Checkout `Session` - * Adds `billing_cycle_anchor` to `default_settings` and `phases` for `SubscriptionSchedule` - -## 8.69.0 - 2020-07-06 -* [#946](https://github.com/stripe/stripe-node/pull/946) Fix `assert_capabilities` type definition -* [#920](https://github.com/stripe/stripe-node/pull/920) Expose StripeResource on instance - -## 8.68.0 - 2020-07-01 -* [#940](https://github.com/stripe/stripe-node/pull/940) Document but discourage `protocol` config option -* [#933](https://github.com/stripe/stripe-node/pull/933) Fix tests for `Plan` and `Price` to not appear as amount can be updated. - -## 8.67.0 - 2020-06-24 -* [#929](https://github.com/stripe/stripe-node/pull/929) Add support for `invoice.paid` event - -## 8.66.0 - 2020-06-23 -* [#927](https://github.com/stripe/stripe-node/pull/927) Add support for `payment_method_data` on `PaymentIntent` - -## 8.65.0 - 2020-06-23 -* [#926](https://github.com/stripe/stripe-node/pull/926) Multiple API changes - * Add `discounts` on `LineItem` - * Add `document_provider_identity_document` as a `purpose` on `File` - * Support nullable `metadata` on Issuing `Dispute` - * Add `klarna[shipping_delay]` on `Source` - -## 8.64.0 - 2020-06-18 -* [#924](https://github.com/stripe/stripe-node/pull/924) Multiple API changes - * Add support for `refresh_url` and `return_url` on `AccountLink` - * Add support for `issuing_dispute.*` events - -## 8.63.0 - 2020-06-11 -* [#919](https://github.com/stripe/stripe-node/pull/919) Multiple API changes - * Add `transaction` on Issuing `Dispute` - * Add `payment_method_details[acss_debit][mandate]` on `Charge` - -## 8.62.0 - 2020-06-10 -* [#918](https://github.com/stripe/stripe-node/pull/918) Add support for Cartes Bancaires payments on `PaymentIntent` and `Payā€¦ - -## 8.61.0 - 2020-06-09 -* [#917](https://github.com/stripe/stripe-node/pull/917) Add support for `id_npwp` and `my_frp` as `type` on `TaxId` - -## 8.60.0 - 2020-06-03 -* [#911](https://github.com/stripe/stripe-node/pull/911) Add support for `payment_intent_data[transfer_group]` on Checkout `Session` - -## 8.59.0 - 2020-06-03 -* [#910](https://github.com/stripe/stripe-node/pull/910) Add support for Bancontact, EPS, Giropay and P24 on Checkout `Session` - -## 8.58.0 - 2020-06-03 -* [#909](https://github.com/stripe/stripe-node/pull/909) Multiple API changes - * Add `bacs_debit_payments` as a `Capability` - * Add support for BACS Debit on Checkout `Session` - * Add support for `checkout.session.async_payment_failed` and `checkout.session.async_payment_succeeded` as `type` on `Event` - -## 8.57.0 - 2020-06-03 -* [#908](https://github.com/stripe/stripe-node/pull/908) Multiple API changes - * Add support for bg, cs, el, et, hu, lt, lv, mt, ro, ru, sk, sl and tr as new locale on Checkout `Session` - * Add `settings[sepa_debit_payments][creditor_id]` on `Account` - * Add support for Bancontact, EPS, Giropay and P24 on `PaymentMethod`, `PaymentIntent` and `SetupIntent` - * Add support for `order_item[parent]` on `Source` for Klarna -* [#905](https://github.com/stripe/stripe-node/pull/905) Add support for BACS Debit as a `PaymentMethod` - -## 8.56.0 - 2020-05-28 -* [#904](https://github.com/stripe/stripe-node/pull/904) Multiple API changes - * Add `payment_method_details[card][three_d_secure][authentication_flow]` on `Charge` - * Add `line_items[][price_data][product_data]` on Checkout `Session` creation - -## 8.55.0 - 2020-05-22 -* [#899](https://github.com/stripe/stripe-node/pull/899) Multiple API changes - * Add support for `ae_trn`, `cl_tin` and `sa_vat` as `type` on `TaxId` - * Add `result` and `result_reason` inside `payment_method_details[card][three_d_secure]` on `Charge` - -## 8.54.0 - 2020-05-20 -* [#897](https://github.com/stripe/stripe-node/pull/897) Multiple API changes - * Add `anticipation_repayment` as a `type` on `BalanceTransaction` - * Add `interac_present` as a `type` on `PaymentMethod` - * Add `payment_method_details[interac_present]` on `Charge` - * Add `transfer_data` on `SubscriptionSchedule` - -## 8.53.0 - 2020-05-18 -* [#895](https://github.com/stripe/stripe-node/pull/895) Multiple API changes - * Add support for `issuing_dispute` as a `type` on `BalanceTransaction` - * Add `balance_transactions` as an array of `BalanceTransaction` on Issuing `Dispute` - * Add `fingerprint` and `transaction_id` in `payment_method_details[alipay]` on `Charge` - * Add `transfer_data[amount]` on `Invoice` - * Add `transfer_data[amount_percent]` on `Subscription` - * Add `price.created`, `price.deleted` and `price.updated` on `Event` - -## 8.52.0 - 2020-05-13 -* [#891](https://github.com/stripe/stripe-node/pull/891) Add support for `purchase_details` on Issuing `Transaction` - -## 8.51.0 - 2020-05-11 -* [#890](https://github.com/stripe/stripe-node/pull/890) Add support for the `LineItem` resource and APIs - -## 8.50.0 - 2020-05-07 -* [#888](https://github.com/stripe/stripe-node/pull/888) Multiple API changes - * Remove parameters in `price_data[recurring]` across APIs as they were never supported - * Move `payment_method_details[card][three_d_secure]` to a list of enum values on `Charge` - * Add support for for `business_profile[support_adress]` on `Account` create and update - -## 8.49.0 - 2020-05-01 -* [#883](https://github.com/stripe/stripe-node/pull/883) Multiple API changes - * Add `issuing` on `Balance` - * Add `br_cnpj` and `br_cpf` as `type` on `TaxId` - * Add `price` support in phases on `SubscriptionSchedule` - * Make `quantity` nullable on `SubscriptionSchedule` for upcoming API version change - -## 8.48.0 - 2020-04-29 -* [#881](https://github.com/stripe/stripe-node/pull/881) Add support for the `Price` resource and APIs - -## 8.47.1 - 2020-04-28 -* [#880](https://github.com/stripe/stripe-node/pull/880) Make `display_items` on Checkout `Session` optional - -## 8.47.0 - 2020-04-24 -* [#876](https://github.com/stripe/stripe-node/pull/876) Add support for `jcb_payments` as a `Capability` - -## 8.46.0 - 2020-04-22 -* [#875](https://github.com/stripe/stripe-node/pull/875) Add support for `coupon` when for subscriptions on Checkout - -## 8.45.0 - 2020-04-22 -* [#874](https://github.com/stripe/stripe-node/pull/874) Add support for `billingPortal` namespace and `session` resource and APIs - -## 8.44.0 - 2020-04-17 -* [#873](https://github.com/stripe/stripe-node/pull/873) Multiple API changes - * Add support for `cardholder_name` in `payment_method_details[card_present]` on `Charge` - * Add new enum values for `company.structure` on `Account` - -## 8.43.0 - 2020-04-16 -* [#868](https://github.com/stripe/stripe-node/pull/868) Multiple API changes - -## 8.42.0 - 2020-04-15 -* [#867](https://github.com/stripe/stripe-node/pull/867) Clean up deprecated features in our Typescript definitions for Issuing and other resources - -## 8.41.0 - 2020-04-14 -* [#866](https://github.com/stripe/stripe-node/pull/866) Add support for `settings[branding][secondary_color]` on `Account` - -## 8.40.0 - 2020-04-13 -* [#865](https://github.com/stripe/stripe-node/pull/865) Add support for `description` on `WebhookEndpoint` - -## 8.39.2 - 2020-04-10 -* [#864](https://github.com/stripe/stripe-node/pull/864) Multiple API changes - * Make `payment_intent` expandable on `Charge` - * Add support for `sg_gst` as a value for `type` on `TaxId` and related APIs - * Add `cancellation_reason` and new enum values for `replacement_reason` on Issuing `Card` - -## 8.39.1 - 2020-04-08 -* [#848](https://github.com/stripe/stripe-node/pull/848) Fix TS return type for autoPagingEach - -## 8.39.0 - 2020-04-03 -* [#859](https://github.com/stripe/stripe-node/pull/859) Add support for `calculatedStatementDescriptor` on `Charge` - -## 8.38.0 - 2020-03-27 - -- [#853](https://github.com/stripe/stripe-node/pull/853) Improve StripeError.generate() - - Add `doc_url` field to StripeError. - - Expose `Stripe.errors.generate()` as a convenience for `Stripe.errors.StripeError.generate()`. - - Fix several TS types related to StripeErrors. - - Add types for `StripeInvalidGrantError`. - - Add support for `authentication_error` and `rate_limit_error` in `.generate()`. - -## 8.37.0 - 2020-03-26 - -- [#851](https://github.com/stripe/stripe-node/pull/851) Add support for `spending_controls` on Issuing `Card` and `Cardholder` - -## 8.36.0 - 2020-03-25 - -- [#850](https://github.com/stripe/stripe-node/pull/850) Multiple API changes - - Add support for `pt-BR` as a `locale` on Checkout `Session` - - Add support for `company` as a `type` on Issuing `Cardholder` - -## 8.35.0 - 2020-03-24 - -- [#849](https://github.com/stripe/stripe-node/pull/849) Add support for `pause_collection` on `Subscription` - -## 8.34.0 - 2020-03-24 - -- [#847](https://github.com/stripe/stripe-node/pull/847) Add new capabilities for AU Becs Debit and tax reporting - -## 8.33.0 - 2020-03-20 - -- [#842](https://github.com/stripe/stripe-node/pull/842) Multiple API changes for Issuing: - - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` on `Authorization` - - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` inside `request_history` on `Authorization` - - Add `pending_request` on `Authorization` - - Add `amount` when approving an `Authorization` - - Add `replaced_by` on `Card` - -## 8.32.0 - 2020-03-13 - -- [#836](https://github.com/stripe/stripe-node/pull/836) Multiple API changes for Issuing: - - Rename `speed` to `service` on Issuing `Card` - - Rename `wallet_provider` to `wallet` and `address_zip_check` to `address_postal_code_check` on Issuing `Authorization` - - Mark `is_default` as deprecated on Issuing `Cardholder` - -## 8.31.0 - 2020-03-12 - -- [#835](https://github.com/stripe/stripe-node/pull/835) Add support for `shipping` and `shipping_address_collection` on Checkout `Session` - -## 8.30.0 - 2020-03-12 - -- [#834](https://github.com/stripe/stripe-node/pull/834) Add support for `ThreeDSecure` on Issuing `Authorization` - -## 8.29.0 - 2020-03-05 - -- [#833](https://github.com/stripe/stripe-node/pull/833) Make metadata nullable in many endpoints - -## 8.28.1 - 2020-03-05 - -- [#827](https://github.com/stripe/stripe-node/pull/827) Allow `null`/`undefined` to be passed for `options` arg. - -## 8.28.0 - 2020-03-04 - -- [#830](https://github.com/stripe/stripe-node/pull/830) Add support for `metadata` on `WebhookEndpoint` - -## 8.27.0 - 2020-03-04 - -- [#829](https://github.com/stripe/stripe-node/pull/829) Multiple API changes - - Add support for `account` as a parameter on `Token` to create Account tokens - - Add support for `verification_data.expiry_check` on Issuing `Authorization` - - Add support for `incorrect_cvc` and `incorrect_expiry` as a value for `request_history.reason` on Issuing `Authorization` - -## 8.26.0 - 2020-03-04 - -- [#828](https://github.com/stripe/stripe-node/pull/828) Multiple API changes - - Add support for `errors` in `requirements` on `Account`, `Capability` and `Person` - - Add support for `payment_intent.processing` as a new `type` on `Event`. - -## 8.25.0 - 2020-03-03 - -āš ļø This is a breaking change for TypeScript users. - -- [#826](https://github.com/stripe/stripe-node/pull/826) Multiple API changes: - - āš ļø Types are now for the API version `2020-03-02`. This is a breaking change for TypeScript users - - Remove `uob_regional` as a value on `bank` for FPX as this is deprecated and was never used - - Add support for `next_invoice_sequence` on `Customer` - - Add support for `proration_behavior` on `SubscriptionItem` delete - -## 8.24.1 - 2020-03-02 - -- [#824](https://github.com/stripe/stripe-node/pull/824) Update type for StripeError to extend Error - -## 8.24.0 - 2020-02-28 - -- [#822](https://github.com/stripe/stripe-node/pull/822) Add `my_sst` as a valid value for `type` on `TaxId` - -## 8.23.0 - 2020-02-27 - -- [#821](https://github.com/stripe/stripe-node/pull/821) Make `type` on `AccountLink` an enum - -## 8.22.0 - 2020-02-24 - -- [#820](https://github.com/stripe/stripe-node/pull/820) Add new enum values in `reason` for Issuing `Dispute` creation - -## 8.21.0 - 2020-02-24 - -- [#819](https://github.com/stripe/stripe-node/pull/819) Add support for listing Checkout `Session` and passing tax rate information - -## 8.20.0 - 2020-02-21 - -- [#813](https://github.com/stripe/stripe-node/pull/813) Multiple API changes - - Add support for `timezone` on `ReportRun` - - Add support for `proration_behavior` on `SubscriptionSchedule` - -## 8.19.0 - 2020-02-18 - -- [#807](https://github.com/stripe/stripe-node/pull/807) Change timeout default to constant 80000 instead Node default - -## 8.18.0 - 2020-02-14 - -- [#802](https://github.com/stripe/stripe-node/pull/802) TS Fixes - - Correctly type `Array` - - More consistently describe nullable fields as `| null`, vs `| ''`. - -## 8.17.0 - 2020-02-12 - -- [#804](https://github.com/stripe/stripe-node/pull/804) Add support for `payment_intent_data[transfer_data][amount]` on Checkout `Session` - -## 8.16.0 - 2020-02-12 - -- [#803](https://github.com/stripe/stripe-node/pull/803) Multiple API changes reflect in Typescript definitions - - Add `fpx` as a valid `source_type` on `Balance`, `Payout` and `Transfer` - - Add `fpx` support on Checkout `Session` - - Fields inside `verification_data` on Issuing `Authorization` are now enums - - Support updating `payment_method_options` on `PaymentIntent` and `SetupIntent` - -## 8.15.0 - 2020-02-10 - -- [#801](https://github.com/stripe/stripe-node/pull/801) Multiple API changes - - Add support for new `type` values for `TaxId`. - - Add support for `payment_intent_data[statement_descriptor_suffix]` on Checkout `Session`. - -## 8.14.0 - 2020-02-04 - -- [#793](https://github.com/stripe/stripe-node/pull/793) Rename `sort_code` to `sender_sort_code` on `SourceTransaction` for BACS debit. - -## 8.13.0 - 2020-02-03 - -- [#792](https://github.com/stripe/stripe-node/pull/792) Multiple API changes - - Add new `purpose` for `File`: `additional_verification` - - Add `error_on_requires_action` as a parameter for `PaymentIntent` creation and confirmation - -## 8.12.0 - 2020-01-31 - -- [#790](https://github.com/stripe/stripe-node/pull/790) Add new type of `TaxId` - -## 8.11.0 - 2020-01-30 - -- [#789](https://github.com/stripe/stripe-node/pull/789) Add support for `company.structure` on `Account` and other docs changes - -## 8.10.0 - 2020-01-30 - -- [#788](https://github.com/stripe/stripe-node/pull/788) Make typescript param optional - -## 8.9.0 - 2020-01-30 - -- [#787](https://github.com/stripe/stripe-node/pull/787) Add support for FPX as a `PaymentMethod` -- [#769](https://github.com/stripe/stripe-node/pull/769) Fix Typescript definition on `Token` creation for bank accounts - -## 8.8.2 - 2020-01-30 - -- [#785](https://github.com/stripe/stripe-node/pull/785) Fix file uploads with nested params - -## 8.8.1 - 2020-01-29 - -- [#784](https://github.com/stripe/stripe-node/pull/784) Allow @types/node 8.1 - -## 8.8.0 - 2020-01-28 - -- [#780](https://github.com/stripe/stripe-node/pull/780) Add new type for `TaxId` and `sender_account_name` on `SourceTransaction` - -## 8.7.0 - 2020-01-24 - -- [#777](https://github.com/stripe/stripe-node/pull/777) Add support for `shipping[speed]` on Issuing `Card` - -## 8.6.0 - 2020-01-23 - -- [#775](https://github.com/stripe/stripe-node/pull/775) Gracefully handle a missing `subprocess` module - -## 8.5.0 - 2020-01-23 - -- [#776](https://github.com/stripe/stripe-node/pull/776) Add support for new `type` on `CustomerTaxId` - -## 8.4.1 - 2020-01-21 - -- [#774](https://github.com/stripe/stripe-node/pull/774) Improve docstrings for many properties and parameters - -## 8.4.0 - 2020-01-17 - -- [#771](https://github.com/stripe/stripe-node/pull/771) Add `metadata` on Checkout `Session` and remove deprecated features -- [#764](https://github.com/stripe/stripe-node/pull/764) Added typescript webhook example - -## 8.3.0 - 2020-01-15 - -- [#767](https://github.com/stripe/stripe-node/pull/767) Adding missing events for pending updates on `Subscription` - -## 8.2.0 - 2020-01-15 - -- [#765](https://github.com/stripe/stripe-node/pull/765) Add support for `pending_update` on `Subscription` to the Typescript definitions - -## 8.1.0 - 2020-01-14 - -- [#763](https://github.com/stripe/stripe-node/pull/763) Add support for listing line items on a `CreditNote` -- [#762](https://github.com/stripe/stripe-node/pull/762) Improve docs for core fields such as `metadata` on Typescript definitions - -## 8.0.1 - 2020-01-09 - -- [#757](https://github.com/stripe/stripe-node/pull/757) [bugfix] Add types dir to npmignore whitelist and stop warning when instantiating stripe with no args - -## 8.0.0 - 2020-01-09 - -Major version release, adding TypeScript definitions and dropping support for Node 6. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v8) contains a detailed list of backwards-incompatible changes with upgrade instructions. - -Major pull requests included in this release (cf. [#742](https://github.com/stripe/stripe-node/pull/742)) (āš ļø = breaking changes): - -- [#736](https://github.com/stripe/stripe-node/pull/736) Add TypeScript definitions -- [#744](https://github.com/stripe/stripe-node/pull/744) Remove deprecated resources and methods -- [#752](https://github.com/stripe/stripe-node/pull/752) Deprecate many library api's, unify others - -## 7.63.1 - 2020-11-17 -- Identical to 7.15.0. - -## 7.63.0 - 2020-11-17 -- Published in error. Do not use. This is identical to 8.122.0. - -## 7.15.0 - 2019-12-30 - -- [#745](https://github.com/stripe/stripe-node/pull/745) Bump handlebars from 4.1.2 to 4.5.3 -- [#737](https://github.com/stripe/stripe-node/pull/737) Fix flows test - -## 7.14.0 - 2019-11-26 - -- [#732](https://github.com/stripe/stripe-node/pull/732) Add support for CreditNote preview - -## 7.13.1 - 2019-11-22 - -- [#728](https://github.com/stripe/stripe-node/pull/728) Remove duplicate export - -## 7.13.0 - 2019-11-06 - -- [#703](https://github.com/stripe/stripe-node/pull/703) New config object - -## 7.12.0 - 2019-11-05 - -- [#724](https://github.com/stripe/stripe-node/pull/724) Add support for `Mandate` - -## 7.11.0 - 2019-10-31 - -- [#719](https://github.com/stripe/stripe-node/pull/719) Define 'type' as a property on errors rather than a getter -- [#709](https://github.com/stripe/stripe-node/pull/709) README: imply context of stripe-node -- [#717](https://github.com/stripe/stripe-node/pull/717) Contributor Convenant - -## 7.10.0 - 2019-10-08 - -- [#699](https://github.com/stripe/stripe-node/pull/699) Add request-specific fields from raw error to top level error - -## 7.9.1 - 2019-09-17 - -- [#692](https://github.com/stripe/stripe-node/pull/692) Retry based on `Stripe-Should-Retry` and `Retry-After` headers - -## 7.9.0 - 2019-09-09 - -- [#691](https://github.com/stripe/stripe-node/pull/691) GET and DELETE requests data: body->queryParams -- [#684](https://github.com/stripe/stripe-node/pull/684) Bump eslint-utils from 1.3.1 to 1.4.2 - -## 7.8.0 - 2019-08-12 - -- [#678](https://github.com/stripe/stripe-node/pull/678) Add `subscriptionItems.createUsageRecord()` method - -## 7.7.0 - 2019-08-09 - -- [#675](https://github.com/stripe/stripe-node/pull/675) Remove subscription schedule revisions - - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused. - -## 7.6.2 - 2019-08-09 - -- [#674](https://github.com/stripe/stripe-node/pull/674) Refactor requestDataProcessor for File out into its own file - -## 7.6.1 - 2019-08-08 - -- [#673](https://github.com/stripe/stripe-node/pull/673) Add request start and end time to request and response events - -## 7.6.0 - 2019-08-02 - -- [#661](https://github.com/stripe/stripe-node/pull/661) Refactor errors to ES6 classes. -- [#672](https://github.com/stripe/stripe-node/pull/672) Refinements to error ES6 classes. - -## 7.5.5 - 2019-08-02 - -- [#665](https://github.com/stripe/stripe-node/pull/665) Remove `lodash.isplainobject`. - -## 7.5.4 - 2019-08-01 - -- [#671](https://github.com/stripe/stripe-node/pull/671) Include a prefix in generated idempotency keys and remove uuid dependency. - -## 7.5.3 - 2019-07-31 - -- [#667](https://github.com/stripe/stripe-node/pull/667) Refactor request headers, allowing any header to be overridden. - -## 7.5.2 - 2019-07-30 - -- [#664](https://github.com/stripe/stripe-node/pull/664) Expose and use `once` - -## 7.5.1 - 2019-07-30 - -- [#662](https://github.com/stripe/stripe-node/pull/662) Remove `safe-buffer` dependency -- [#666](https://github.com/stripe/stripe-node/pull/666) Bump lodash from 4.17.11 to 4.17.15 -- [#668](https://github.com/stripe/stripe-node/pull/668) Move Balance History to /v1/balance_transactions - -## 7.5.0 - 2019-07-24 - -- [#660](https://github.com/stripe/stripe-node/pull/660) Interpret any string in args as API Key instead of a regex - - āš ļø Careful: passing strings which are not API Keys as as the final argument to a request previously would have ignored those strings, and would now result in the request failing with an authentication error. - - āš ļø Careful: The private api `utils.isAuthKey` was removed. -- [#658](https://github.com/stripe/stripe-node/pull/658) Update README retry code sample to use two retries -- [#653](https://github.com/stripe/stripe-node/pull/653) Reorder customer methods - -## 7.4.0 - 2019-06-27 - -- [#652](https://github.com/stripe/stripe-node/pull/652) Add support for the `SetupIntent` resource and APIs - -## 7.3.0 - 2019-06-24 - -- [#649](https://github.com/stripe/stripe-node/pull/649) Enable request latency telemetry by default - -## 7.2.0 - 2019-06-17 - -- [#608](https://github.com/stripe/stripe-node/pull/608) Add support for `CustomerBalanceTransaction` resource and APIs - -## 7.1.0 - 2019-05-23 - -- [#632](https://github.com/stripe/stripe-node/pull/632) Add support for `radar.early_fraud_warning` resource - -## 7.0.1 - 2019-05-22 - -- [#631](https://github.com/stripe/stripe-node/pull/631) Make autopagination functions work for `listLineItems` and `listUpcomingLineItems` - -## 7.0.0 - 2019-05-14 - -Major version release. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v7) contains a detailed list of backwards-incompatible changes with upgrade instructions. - -Pull requests included in this release (cf. [#606](https://github.com/stripe/stripe-node/pull/606)) (āš ļø = breaking changes): - -- āš ļø Drop support for Node 4, 5 and 7 ([#606](https://github.com/stripe/stripe-node/pull/606)) -- Prettier formatting ([#604](https://github.com/stripe/stripe-node/pull/604)) -- Alphabetize ā€œbasicā€ methods ([#610](https://github.com/stripe/stripe-node/pull/610)) -- Use `id` for single positional arguments ([#611](https://github.com/stripe/stripe-node/pull/611)) -- Modernize ES5 to ES6 with lebab ([#607](https://github.com/stripe/stripe-node/pull/607)) -- āš ļø Remove deprecated methods ([#613](https://github.com/stripe/stripe-node/pull/613)) -- Add VSCode and EditorConfig files ([#620](https://github.com/stripe/stripe-node/pull/620)) -- āš ļø Drop support for Node 9 and bump dependencies to latest versions ([#614](https://github.com/stripe/stripe-node/pull/614)) -- Misc. manual formatting ([#623](https://github.com/stripe/stripe-node/pull/623)) -- āš ļø Remove legacy parameter support in `invoices.retrieveUpcoming()` ([#621](https://github.com/stripe/stripe-node/pull/621)) -- āš ļø Remove curried urlData and manually specified urlParams ([#625](https://github.com/stripe/stripe-node/pull/625)) -- Extract resources file ([#626](https://github.com/stripe/stripe-node/pull/626)) - -## 6.36.0 - 2019-05-14 - -- [#622](https://github.com/stripe/stripe-node/pull/622) Add support for the `Capability` resource and APIs - -## 6.35.0 - 2019-05-14 - -- [#627](https://github.com/stripe/stripe-node/pull/627) Add `listLineItems` and `listUpcomingLineItems` methods to `Invoice` - -## 6.34.0 - 2019-05-08 - -- [#619](https://github.com/stripe/stripe-node/pull/619) Move `generateTestHeaderString` to stripe.webhooks (fixes a bug in 6.33.0) - -## 6.33.0 - 2019-05-08 - -**Important**: This version is non-functional and has been yanked in favor of 6.32.0. - -- [#609](https://github.com/stripe/stripe-node/pull/609) Add `generateWebhookHeaderString` to make it easier to mock webhook events - -## 6.32.0 - 2019-05-07 - -- [#612](https://github.com/stripe/stripe-node/pull/612) Add `balanceTransactions` resource - -## 6.31.2 - 2019-05-03 - -- [#602](https://github.com/stripe/stripe-node/pull/602) Handle errors from the oauth/token endpoint - -## 6.31.1 - 2019-04-26 - -- [#600](https://github.com/stripe/stripe-node/pull/600) Fix encoding of nested parameters in multipart requests - -## 6.31.0 - 2019-04-24 - -- [#588](https://github.com/stripe/stripe-node/pull/588) Add support for the `TaxRate` resource and APIs - -## 6.30.0 - 2019-04-22 - -- [#589](https://github.com/stripe/stripe-node/pull/589) Add support for the `TaxId` resource and APIs -- [#593](https://github.com/stripe/stripe-node/pull/593) `retrieveUpcoming` on `Invoice` can now take one hash as parameter instead of requiring a customer id. - -## 6.29.0 - 2019-04-18 - -- [#585](https://github.com/stripe/stripe-node/pull/585) Add support for the `CreditNote` resource and APIs - -## 6.28.0 - 2019-03-18 - -- [#570](https://github.com/stripe/stripe-node/pull/570) Add support for the `PaymentMethod` resource and APIs -- [#578](https://github.com/stripe/stripe-node/pull/578) Add support for retrieving a Checkout `Session` - -## 6.27.0 - 2019-03-15 - -- [#581](https://github.com/stripe/stripe-node/pull/581) Add support for deleting Terminal `Location` and `Reader` - -## 6.26.1 - 2019-03-14 - -- [#580](https://github.com/stripe/stripe-node/pull/580) Fix support for HTTPS proxies - -## 6.26.0 - 2019-03-11 - -- [#574](https://github.com/stripe/stripe-node/pull/574) Encode `Date`s as Unix timestamps - -## 6.25.1 - 2019-02-14 - -- [#565](https://github.com/stripe/stripe-node/pull/565) Always encode arrays as integer-indexed hashes - -## 6.25.0 - 2019-02-13 - -- [#559](https://github.com/stripe/stripe-node/pull/559) Add `stripe.setMaxNetworkRetries(n)` for automatic network retries - -## 6.24.0 - 2019-02-12 - -- [#562](https://github.com/stripe/stripe-node/pull/562) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision` - -## 6.23.1 - 2019-02-04 - -- [#560](https://github.com/stripe/stripe-node/pull/560) Enable persistent connections by default - -## 6.23.0 - 2019-01-30 - -- [#557](https://github.com/stripe/stripe-node/pull/557) Add configurable telemetry to gather information on client-side request latency - -## 6.22.0 - 2019-01-25 - -- [#555](https://github.com/stripe/stripe-node/pull/555) Add support for OAuth methods - -## 6.21.0 - 2019-01-23 - -- [#551](https://github.com/stripe/stripe-node/pull/551) Rename `CheckoutSession` to `Session` and move it under the `checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach. - -## 6.20.1 - 2019-01-17 - -- [#552](https://github.com/stripe/stripe-node/pull/552) Fix `Buffer` deprecation warnings - -## 6.20.0 - 2018-12-21 - -- [#539](https://github.com/stripe/stripe-node/pull/539) Add support for the `CheckoutSession` resource - -## 6.19.0 - 2018-12-10 - -- [#535](https://github.com/stripe/stripe-node/pull/535) Add support for account links - -## 6.18.1 - 2018-12-07 - -- [#534](https://github.com/stripe/stripe-node/pull/534) Fix iterating on `files.list` method - -## 6.18.0 - 2018-12-06 - -- [#530](https://github.com/stripe/stripe-node/pull/530) Export errors on root Stripe object - -## 6.17.0 - 2018-11-28 - -- [#527](https://github.com/stripe/stripe-node/pull/527) Add support for the `Review` APIs - -## 6.16.0 - 2018-11-27 - -- [#515](https://github.com/stripe/stripe-node/pull/515) Add support for `ValueLists` and `ValueListItems` for Radar - -## 6.15.2 - 2018-11-26 - -- [#526](https://github.com/stripe/stripe-node/pull/526) Fixes an accidental mutation of input in rare cases - -## 6.15.1 - 2018-11-23 - -- [#523](https://github.com/stripe/stripe-node/pull/523) Handle `Buffer` instances in `Webhook.constructEvent` - -## 6.15.0 - 2018-11-12 - -- [#474](https://github.com/stripe/stripe-node/pull/474) Add support for `partner_id` in `setAppInfo` - -## 6.14.0 - 2018-11-09 - -- [#509](https://github.com/stripe/stripe-node/pull/509) Add support for new `Invoice` methods - -## 6.13.0 - 2018-10-30 - -- [#507](https://github.com/stripe/stripe-node/pull/507) Add support for persons -- [#510](https://github.com/stripe/stripe-node/pull/510) Add support for webhook endpoints - -## 6.12.1 - 2018-09-24 - -- [#502](https://github.com/stripe/stripe-node/pull/502) Fix test suite - -## 6.12.0 - 2018-09-24 - -- [#498](https://github.com/stripe/stripe-node/pull/498) Add support for Stripe Terminal -- [#500](https://github.com/stripe/stripe-node/pull/500) Rename `FileUploads` to `Files`. For backwards compatibility, `Files` is aliased to `FileUploads`. `FileUploads` is deprecated and will be removed from the next major version. - -## 6.11.0 - 2018-09-18 - -- [#496](https://github.com/stripe/stripe-node/pull/496) Add auto-pagination - -## 6.10.0 - 2018-09-05 - -- [#491](https://github.com/stripe/stripe-node/pull/491) Add support for usage record summaries - -## 6.9.0 - 2018-09-05 - -- [#493](https://github.com/stripe/stripe-node/pull/493) Add support for reporting resources - -## 6.8.0 - 2018-08-27 - -- [#488](https://github.com/stripe/stripe-node/pull/488) Remove support for `BitcoinReceivers` write-actions - -## 6.7.0 - 2018-08-03 - -- [#485](https://github.com/stripe/stripe-node/pull/485) Add support for `cancel` on topups - -## 6.6.0 - 2018-08-02 - -- [#483](https://github.com/stripe/stripe-node/pull/483) Add support for file links - -## 6.5.0 - 2018-07-28 - -- [#482](https://github.com/stripe/stripe-node/pull/482) Add support for Sigma scheduled query runs - -## 6.4.0 - 2018-07-26 - -- [#481](https://github.com/stripe/stripe-node/pull/481) Add support for Stripe Issuing - -## 6.3.0 - 2018-07-18 - -- [#471](https://github.com/stripe/stripe-node/pull/471) Add support for streams in file uploads - -## 6.2.1 - 2018-07-03 - -- [#475](https://github.com/stripe/stripe-node/pull/475) Fixes array encoding of subscription items for the upcoming invoices endpoint. - -## 6.2.0 - 2018-06-28 - -- [#473](https://github.com/stripe/stripe-node/pull/473) Add support for payment intents - -## 6.1.1 - 2018-06-07 - -- [#469](https://github.com/stripe/stripe-node/pull/469) Add `.npmignore` to create a lighter package (minus examples and tests) - -## 6.1.0 - 2018-06-01 - -- [#465](https://github.com/stripe/stripe-node/pull/465) Warn when unknown options are passed to functions - -## 6.0.0 - 2018-05-14 - -- [#453](https://github.com/stripe/stripe-node/pull/453) Re-implement usage record's `create` so that it correctly passes all arguments (this is a very minor breaking change) - -## 5.10.0 - 2018-05-14 - -- [#459](https://github.com/stripe/stripe-node/pull/459) Export error types on `stripe.errors` so that errors can be matched with `instanceof` instead of comparing the strings generated by `type` - -## 5.9.0 - 2018-05-09 - -- [#456](https://github.com/stripe/stripe-node/pull/456) Add support for issuer fraud records - -## 5.8.0 - 2018-04-04 - -- [#444](https://github.com/stripe/stripe-node/pull/444) Introduce flexible billing primitives for subscriptions - -## 5.7.0 - 2018-04-02 - -- [#441](https://github.com/stripe/stripe-node/pull/441) Write directly to a connection that's known to be still open - -## 5.6.1 - 2018-03-25 - -- [#437](https://github.com/stripe/stripe-node/pull/437) Fix error message when passing invalid parameters to some API methods - -## 5.6.0 - 2018-03-24 - -- [#439](https://github.com/stripe/stripe-node/pull/439) Drop Bluebird dependency and use native ES6 promises - -## 5.5.0 - 2018-02-21 - -- [#425](https://github.com/stripe/stripe-node/pull/425) Add support for topups - -## 5.4.0 - 2017-12-05 - -- [#412](https://github.com/stripe/stripe-node/pull/412) Add `StripeIdempotencyError` type for new kind of stripe error - -## 5.3.0 - 2017-10-31 - -- [#405](https://github.com/stripe/stripe-node/pull/405) Support for exchange rates APIs - -## 5.2.0 - 2017-10-26 - -- [#404](https://github.com/stripe/stripe-node/pull/404) Support for listing source transactions - -## 5.1.1 - 2017-10-04 - -- [#394](https://github.com/stripe/stripe-node/pull/394) Fix improper warning for requests that have options but no parameters - -## 5.1.0 - 2017-09-25 - -- Add check for when options are accidentally included in an arguments object -- Use safe-buffer package instead of building our own code -- Remove dependency on object-assign package -- Bump required versions of bluebird and qs - -## 5.0.0 - 2017-09-12 - -- Drop support for Node 0.x (minimum required version is now >= 4) - -## 4.25.0 - 2017-09-05 - -- Switch to Bearer token authentication on API requests - -## 4.24.1 - 2017-08-25 - -- Specify UTF-8 encoding when verifying HMAC-SHA256 payloads - -## 4.24.0 - 2017-08-10 - -- Support informational events with `Stripe.on` (see README for details) - -## 4.23.2 - 2017-08-03 - -- Handle `Buffer.from` incompatibility for Node versions prior to 4.5.x - -## 4.23.1 - 2017-06-24 - -- Properly encode subscription items when retrieving upcoming invoice - -## 4.23.0 - 2017-06-20 - -- Add support for ephemeral keys - -## 4.22.1 - 2017-06-20 - -- Fix usage of hasOwnProperty in utils - -## 4.22.0 - 2017-05-25 - -- Make response headers accessible on error objects - -## 4.21.0 - 2017-05-25 - -- Add support for account login links - -## 4.20.0 - 2017-05-24 - -- Add `stripe.setAppInfo` for plugin authors to register app information - -## 4.19.1 - 2017-05-18 - -- Tweak class initialization for compatibility with divergent JS engines - -## 4.19.0 - 2017-05-11 - -- Support for checking webhook signatures - -## 4.18.0 - 2017-04-12 - -- Reject ID parameters that don't look like strings - -## 4.17.1 - 2017-04-05 - -- Fix paths in error messages on bad arguments - -## 4.17.0 - 2017-03-31 - -- Add support for payouts - -## 4.16.1 - 2017-03-30 - -- Fix bad reference to `requestId` when initializing errors - -## 4.16.0 - 2017-03-22 - -- Make `requestId` available on resource `lastResponse` objects - -## 4.15.1 - 2017-03-08 - -- Update required version of "qs" dependency to 6.0.4+ - -## 4.15.0 - 2017-01-18 - -- Add support for updating sources - -## 4.14.0 - 2016-12-01 - -- Add support for verifying sources - -## 4.13.0 - 2016-11-21 - -- Add retrieve method for 3-D Secure resources - -## 4.12.0 - 2016-10-18 - -- Support for 403 status codes (permission denied) - -## 4.11.0 - 2016-09-16 - -- Add support for Apple Pay domains - -## 4.10.0 - 2016-08-29 - -- Refactor deprecated uses of Bluebird's `Promise.defer` - -## 4.9.1 - 2016-08-22 - -- URI-encode unames for Stripe user agents so we don't fail on special characters - -## 4.9.0 - 2016-07-19 - -- Add `Source` model for generic payment sources support (experimental) - -## 4.8.0 - 2016-07-14 - -- Add `ThreeDSecure` model for 3-D secure payments - -## 4.7.0 - 2016-05-25 - -- Add support for returning Relay orders - -## 4.6.0 - 2016-05-04 - -- Add `update`, `create`, `retrieve`, `list` and `del` methods to `stripe.subscriptions` - -## 4.5.0 - 2016-03-15 - -- Add `reject` on `Account` to support the new API feature - -## 4.4.0 - 2016-02-08 - -- Add `CountrySpec` model for looking up country payment information - -## 4.3.0 - 2016-01-26 - -- Add support for deleting Relay SKUs and products - -## 4.2.0 - 2016-01-13 - -- Add `lastResponse` property on `StripeResource` objects -- Return usage errors of `stripeMethod` through callback instead of raising -- Use latest year for expiry years in tests to avoid new year problems - -## 4.1.0 - 2015-12-02 - -- Add a verification routine for external accounts - -## 4.0.0 - 2015-09-17 - -- Remove ability for API keys to be passed as 1st param to acct.retrieve -- Rename StripeInvalidRequest to StripeInvalidRequestError - -## 3.9.0 - 2015-09-14 - -- Add Relay resources: Products, SKUs, and Orders - -## 3.8.0 - 2015-09-11 - -- Added rate limiting responses - -## 3.7.1 - 2015-08-17 - -- Added refund object with listing, retrieval, updating, and creation. - -## 3.7.0 - 2015-08-03 - -- Added managed account deletion -- Added dispute listing and retrieval - -## 3.6.0 - 2015-07-07 - -- Added request IDs to all Stripe errors - -## 3.5.2 - 2015-06-30 - -- [BUGFIX] Fixed issue with uploading binary files (Gabriel Chagas Marques) - -## 3.5.1 - 2015-06-30 - -- [BUGFIX] Fixed issue with passing arrays of objects - -## 3.5.0 - 2015-06-11 - -- Added support for optional parameters when retrieving an upcoming invoice - (Matthew Arkin) - -## 3.4.0 - 2015-06-10 - -- Added support for bank accounts and debit cards in managed accounts - -## 3.3.4 - 2015-04-02 - -- Remove SSL revocation tests and check - -## 3.3.3 - 2015-03-31 - -- [BUGFIX] Fix support for both stripe.account and stripe.accounts - -## 3.3.2 - 2015-02-24 - -- Support transfer reversals. - -## 3.3.1 - 2015-02-21 - -- [BUGFIX] Fix passing in only a callback to the Account resource. (Matthew Arkin) - -## 3.3.0 - 2015-02-19 - -- Support BitcoinReceiver update & delete actions -- Add methods for manipulating customer sources as per 2015-02-18 API version -- The Account resource will now take an account ID. However, legacy use of the resource (without an account ID) will still work. - -## 3.2.0 - 2015-02-05 - -- [BUGFIX] Fix incorrect failing tests for headers support -- Update all dependencies (remove mocha-as-promised) -- Switch to bluebird for promises - -## 3.1.0 - 2015-01-21 - -- Support making bitcoin charges through BitcoinReceiver source object - -## 3.0.3 - 2014-12-23 - -- Adding file uploads as a resource. - -## 3.0.2 - 2014-11-26 - -- [BUGFIX] Fix issue where multiple expand params were not getting passed through (#130) - -## 3.0.1 - 2014-11-26 - -- (Version skipped due to npm mishap) - -## 3.0.0 - 2014-11-18 - -- [BUGFIX] Fix `stringifyRequestData` to deal with nested objs correctly -- Bump MAJOR as we're no longer supporting Node 0.8 - -## 2.9.0 - 2014-11-12 - -- Allow setting of HTTP agent (proxy) (issue #124) -- Add stack traces to all Stripe Errors - -## 2.8.0 - 2014-07-26 - -- Make application fee refunds a list instead of array - -## 2.7.4 - 2014-07-17 - -- [BUGFIX] Fix lack of subscription param in `invoices#retrieveUpcoming` method -- Add support for an `optional!` annotation on `urlParams` - -## 2.7.3 - 2014-06-17 - -- Add metadata to disputes and refunds - -## 2.6.3 - 2014-05-21 - -- Support cards for recipients. - -## 2.5.3 - 2014-05-16 - -- Allow the `update` method on coupons for metadata changes - -## 2.5.2 - 2014-04-28 - -- [BUGFIX] Fix when.js version string in package.json to support older npm versions - -## 2.5.1 - 2014-04-25 - -- [BUGFIX] Fix revoked-ssl check -- Upgrade when.js to 3.1.0 - -## 2.5.0 - 2014-04-09 - -- Ensure we prevent requests using revoked SSL certs - -## 2.4.5 - 2014-04-08 - -- Add better checks for incorrect arguments (throw exceptions accordingly). -- Validate the Connect Auth key, if passed - -## 2.4.4 - 2014-03-27 - -- [BUGFIX] Fix URL encoding issue (not encoding interpolated URL params, see issue #93) - -## 2.4.3 - 2014-03-27 - -- Add more debug information to the case of a failed `JSON.parse()` - -## 2.4.2 - 2014-02-20 - -- Add binding for `transfers/{tr_id}/transactions` endpoint - -## 2.4.1 - 2014-02-07 - -- Ensure raw error object is accessible on the generated StripeError - -## 2.4.0 - 2014-01-29 - -- Support multiple subscriptions per customer - -## 2.3.4 - 2014-01-11 - -- [BUGFIX] Fix #76, pass latest as version to api & fix constructor arg signature - -## 2.3.3 - 2014-01-10 - -- Document cancelSubscription method params and add specs for `at_period_end` - -## 2.3.2 - 2013-12-02 - -- Add application fees API - -## 2.2.2 - 2013-11-20 - -- [BUGFIX] Fix incorrect deleteDiscount method & related spec(s) - -### 2.2.1 - 2013-12-01 - -- [BUGFIX] Fix user-agent header issue (see issue #75) - -## 2.2.0 - 2013-11-09 - -- Add support for setTimeout -- Add specs for invoice-item listing/querying via timestamp - -## 2.1.0 - 2013-11-07 - -- Support single key/value setting on setMetadata method -- [BUGFIX] Fix Windows url-path issue -- Add missing stripe.charges.update method -- Support setting auth_token per request (useful in Connect) -- Remove global 'resources' variable - -## 2.0.0 - 2013-10-18 - -- API overhaul and refactor, including addition of promises. -- Release of version 2.0.0 - -## 1.3.0 - 2013-01-30 - -- Requests return Javascript Errors (Guillaume Flandre) - -## 1.2.0 - 2012-08-03 - -- Added events API (Jonathan Hollinger) -- Added plans update API (Pavan Kumar Sunkara) -- Various test fixes, node 0.8.x tweaks (Jan Lehnardt) - -## 1.1.0 - 2012-02-01 - -- Add Coupons API (Ryan) -- Pass a more robust error object to the callback (Ryan) -- Fix duplicate callbacks from some functions when called incorrectly (bug #24, reported by Kishore Nallan) - -## 1.0.0 - 2011-12-06 - -- Add APIs and tests for Plans and "Invoice Items" - (both changes by Ryan Ettipio) - -## 0.0.5 - 2011-11-26 - -- Add Subscription API (John Ku, #3) -- Add Invoices API (Chris Winn, #6) -- [BUGFIX] Fix a bug where callback could be called twice, if the callback() threw an error itself (Peteris Krumins) -- [BUGFIX] Fix bug in tokens.retrieve API (Xavi) -- Change documentation links (Stripe changed their URL structure) -- Make tests pass again (error in callback is null instead of 0 if all is well) -- Amount in stripe.charges.refund is optional (Branko Vukelic) -- Various documentation fixes (Xavi) -- Only require node 0.4.0 - -## 0.0.3 - 2011-10-05 - -- Add Charges API (issue #1, brackishlake) -- Add customers.list API - -## 0.0.2 - 2011-09-28 - -- Initial release with customers and tokens APIs +# Changelog +## 17.1.0 - 2024-10-03 +* [#2199](https://github.com/stripe/stripe-node/pull/2199) Update generated code + * Remove the support for resource `Margin` that was accidentally made public in the last release + +## 17.0.0 - 2024-10-01 +* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia + + This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading. + + ### āš ļø Breaking changes due to changes in the Stripe API + - Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert` + - Remove support for `filter` on `Billing.AlertCreateParams` and `Billing.Alert`. Use the filters on the `usage_threshold` instead + - Remove support for `customer_consent_collected` on `Terminal.ReaderProcessSetupIntentParams`. + + ### āš ļø Other Breaking changes in the SDK + - Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are: + - max retries: `1` -> `2` + - max timeout (seconds): `2` -> `5` + + + ### Additions + * Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data` + * Add support for `allow_redisplay` on `Terminal.ReaderProcessPaymentIntentParams.process_config` and `Terminal.ReaderProcessSetupIntentParams` + * Add support for new value `international_transaction` on enum `Treasury.ReceivedCredit.failure_code` + * Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version` + * Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview) + * Add method `parseThinEvent()` on the `Stripe` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview). + * Add method [rawRequest()](https://github.com/stripe/stripe-node/tree/master?tab=readme-ov-file#custom-requests) on the `Stripe` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. + + ### Changes + * Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional + +## 16.12.0 - 2024-09-18 +* [#2177](https://github.com/stripe/stripe-node/pull/2177) Update generated code + * Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code` +* [#2175](https://github.com/stripe/stripe-node/pull/2175) Update generated code + * Add support for new value `verification_supportability` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for new value `terminal_reader_invalid_location_for_activation` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `payer_details` on `Charge.payment_method_details.klarna` + * Add support for `amazon_pay` on `Dispute.payment_method_details` + * Add support for new value `amazon_pay` on enum `Dispute.payment_method_details.type` + * Add support for `automatically_finalizes_at` on `Invoice` + * Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us` + +## 16.11.0 - 2024-09-12 +* [#2171](https://github.com/stripe/stripe-node/pull/2171) Update generated code + * Add support for new resource `InvoiceRenderingTemplate` + * Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate` + * Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection` + * Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` + * Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` + * Add support for new value `submitted` on enum `Issuing.Card.shipping.status` + * Change `TestHelpers.TestClock.status_details` to be required + +## 16.10.0 - 2024-09-05 +* [#2158](https://github.com/stripe/stripe-node/pull/2158) Update generated code + * Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter` + * Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional + +## 16.9.0 - 2024-08-29 +* [#2163](https://github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230 + * Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional + * Add support for new value `hr_oib` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `hr_oib` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for new value `issuing_regulatory_reporting` on enums `File.purpose` and `FileListParams.purpose` + * Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose` + * Change `Issuing.Card.shipping.address_validation` to be required + * Add support for `status_details` on `TestHelpers.TestClock` + +## 16.8.0 - 2024-08-15 +* [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code + * Add support for `authorization_code` on `Charge.payment_method_details.card` + * Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` + * Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit` + * Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire` + * Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null` + +## 16.7.0 - 2024-08-08 +* [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code + * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert` + * Add support for `retrieve` method on resource `Tax.Calculation` + * Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline` + * Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present` + * Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` + * Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional + * Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` + * Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]` + +## 16.6.0 - 2024-08-01 +* [#2144](https://github.com/stripe/stripe-node/pull/2144) Update generated code + * Add support for new resources `Billing.AlertTriggered` and `Billing.Alert` + * Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * āš ļø Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week. + * Add support for new value `billing.alert.triggered` on enum `Event.type` + * Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 16.5.0 - 2024-07-25 +* [#2143](https://github.com/stripe/stripe-node/pull/2143) Update generated code + * Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components` +* [#2140](https://github.com/stripe/stripe-node/pull/2140) Update generated code + * Add support for `update` method on resource `Checkout.Session` + * Add support for `transaction_id` on `Charge.payment_method_details.affirm` + * Add support for `buyer_id` on `Charge.payment_method_details.blik` + * Add support for `authorization_code` on `Charge.payment_method_details.card` + * Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` + * Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present` + * Add support for `case_type` on `Dispute.payment_method_details.card` + * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type` + * Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 16.4.0 - 2024-07-18 +* [#2138](https://github.com/stripe/stripe-node/pull/2138) Update generated code + * Add support for `customer` on `ConfirmationToken.payment_method_preview` + * Add support for new value `issuing_dispute.funds_rescinded` on enum `Event.type` + * Add support for new value `multibanco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` + * Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#2136](https://github.com/stripe/stripe-node/pull/2136) Update changelog + +## 16.3.0 - 2024-07-11 +* [#2130](https://github.com/stripe/stripe-node/pull/2130) Update generated code + * āš ļø Remove support for values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` from enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`. + * āš ļø Remove support for value `payment_intent_fx_quote_invalid` from enum `StripeError.code`. The was mistakenly released last week. + * Add support for `payment_method_options` on `ConfirmationToken` + * Add support for `payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components` + * Add support for `address_validation` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` + * Add support for `shipping` on `Issuing.CardUpdateParams` + * Change `Plan.meter` and `Price.recurring.meter` to be required +* [#2133](https://github.com/stripe/stripe-node/pull/2133) update node versions in CI +* [#2132](https://github.com/stripe/stripe-node/pull/2132) check `hasOwnProperty` when using `for..in` +* [#2048](https://github.com/stripe/stripe-node/pull/2048) Add generateTestHeaderStringAsync function to Webhooks.ts + +## 16.2.0 - 2024-07-05 +* [#2125](https://github.com/stripe/stripe-node/pull/2125) Update generated code + * Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice` + * Add support for new value `payment_intent_fx_quote_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `posted_at` on `Tax.TransactionCreateFromCalculationParams` and `Tax.Transaction` + +## 16.1.0 - 2024-06-27 +* [#2120](https://github.com/stripe/stripe-node/pull/2120) Update generated code + * Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` + * Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams` + * Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters` + * Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` + +## 16.0.0 - 2024-06-24 +* [#2113](https://github.com/stripe/stripe-node/pull/2113) + + This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading. + + ### āš ļø Breaking changes + + * Remove the unused resource `PlatformTaxFee` + * Rename `volume_decimal` to `quantity_decimal` on + * `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, + * `Issuing.Transaction.purchase_details.fuel`, + * `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and + * `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` + * `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values + * `other` + * `paused.inactivity` + * `pending.onboarding` + * `pending.review` + * `platform_disabled` + * `platform_paused` + * `rejected.inactivity` + * `rejected.other` + * `rejected.unsupported_business` + * `requirements.fields_needed` + + ### Additions + + * Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` + * Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason` + * Add support for `finalize_amount` test helper method on resource `Issuing.Authorization` + * Add support for new value `ch_uid` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details` + * Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization` + * Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` + * Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version` +* [#2118](https://github.com/stripe/stripe-node/pull/2118) Use worker module in Bun + +## 15.12.0 - 2024-06-17 +* [#2109](https://github.com/stripe/stripe-node/pull/2109) Update generated code + * Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `tax_id_collection` on `PaymentLinkUpdateParams` +* [#2111](https://github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names + * Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 + * Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2 + * Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2 + +## 15.11.0 - 2024-06-13 +* [#2102](https://github.com/stripe/stripe-node/pull/2102) Update generated code + * Add support for `multibanco_payments` and `twint_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `twint` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `multibanco` on `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new values `multibanco` and `twint` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for new value `de_stn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `multibanco` and `twint` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `multibanco` and `twint` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new value `de_stn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `multibanco_display_details` on `PaymentIntent.next_action` + * Add support for `invoice_settings` on `Subscription` + +## 15.10.0 - 2024-06-06 +* [#2101](https://github.com/stripe/stripe-node/pull/2101) Update generated code + * Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, and `us_bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new value `swish` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + +## 15.9.0 - 2024-05-30 +* [#2095](https://github.com/stripe/stripe-node/pull/2095) Update generated code + * Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text` + * Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card` + * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type` + * Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required + * Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + * Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 15.8.0 - 2024-05-23 +* [#2092](https://github.com/stripe/stripe-node/pull/2092) Update generated code + * Add support for `external_account_collection` on `AccountSession.components.balances.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.balances.features`, and `AccountSessionCreateParams.components.payouts.features` + * Add support for new value `terminal_reader_invalid_location_for_payment` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `payment_method_remove` on `Checkout.Session.saved_payment_method_options` + +## 15.7.0 - 2024-05-16 +* [#2088](https://github.com/stripe/stripe-node/pull/2088) Update generated code + * Add support for `fee_source` on `ApplicationFee` + * Add support for `net_available` on `Balance.instant_available[]` + * Add support for `preferred_locales` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, and `PaymentMethod.card_present` + * Add support for `klarna` on `Dispute.payment_method_details` + * Add support for new value `klarna` on enum `Dispute.payment_method_details.type` + * Add support for `archived` and `lookup_key` on `Entitlements.FeatureListParams` + * Change `FinancialConnections.SessionCreateParams.filters.countries` to be optional + * Add support for `no_valid_authorization` on `Issuing.Dispute.evidence`, `Issuing.DisputeCreateParams.evidence`, and `Issuing.DisputeUpdateParams.evidence` + * Add support for new value `no_valid_authorization` on enums `Issuing.Dispute.evidence.reason`, `Issuing.DisputeCreateParams.evidence.reason`, and `Issuing.DisputeUpdateParams.evidence.reason` + * Add support for `loss_reason` on `Issuing.Dispute` + * Add support for `routing` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` + * Add support for `application_fee_amount` and `application_fee` on `Payout` + * Add support for `stripe_s700` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` + * Change `Treasury.OutboundPayment.tracking_details` and `Treasury.OutboundTransfer.tracking_details` to be required + +## 15.6.0 - 2024-05-09 +* [#2086](https://github.com/stripe/stripe-node/pull/2086) Update generated code + * Remove support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` +* [#2080](https://github.com/stripe/stripe-node/pull/2080) Update generated code + * Add support for `update` test helper method on resources `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` + * Add support for `allow_redisplay` on `ConfirmationToken.payment_method_preview` and `PaymentMethod` + * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enum `Event.type` + * Add support for `preview_mode` on `InvoiceCreatePreviewParams`, `InvoiceUpcomingLinesParams`, and `InvoiceUpcomingParams` + * Add support for `pending_invoice_items_behavior` on `SubscriptionCreateParams` + * Add support for `tracking_details` on `Treasury.OutboundPayment` and `Treasury.OutboundTransfer` + * Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#2085](https://github.com/stripe/stripe-node/pull/2085) Remove unnecessary pointer to description in deprecation message + +## 15.5.0 - 2024-05-02 +* [#2072](https://github.com/stripe/stripe-node/pull/2072) Update generated code + * Add support for new value `shipping_address_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Fix properties incorrectly marked as required in the OpenAPI spec. + * Change `Apps.Secret.payload`, `BillingPortal.Configuration.features.subscription_update.products`, `Charge.refunds`, `ConfirmationToken.payment_method_preview.klarna.dob`, `Identity.VerificationReport.document.dob`, `Identity.VerificationReport.document.expiration_date`, `Identity.VerificationReport.document.number`, `Identity.VerificationReport.id_number.dob`, `Identity.VerificationReport.id_number.id_number`, `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.dob`, `Identity.VerificationSession.verified_outputs.id_number`, `Identity.VerificationSession.verified_outputs`, `Issuing.Dispute.balance_transactions`, `Issuing.Transaction.purchase_details`, `PaymentMethod.klarna.dob`, `Tax.Calculation.line_items`, `Tax.CalculationLineItem.tax_breakdown`, `Tax.Transaction.line_items`, `Treasury.FinancialAccount.financial_addresses[].aba.account_number`, `Treasury.ReceivedCredit.linked_flows.source_flow_details`, `Treasury.Transaction.entries`, `Treasury.Transaction.flow_details`, and `Treasury.TransactionEntry.flow_details` to be optional + * Add support for `paypal` on `Dispute.payment_method_details` + * Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')` + * Change type of `Entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))` + * Add support for `payment_method_types` on `PaymentIntentConfirmParams` + * Add support for `ship_from_details` on `Tax.CalculationCreateParams`, `Tax.Calculation`, and `Tax.Transaction` + * Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` +* [#2077](https://github.com/stripe/stripe-node/pull/2077) Deprecate Node methods and params based on OpenAPI spec + - Mark as deprecated the `approve` and `decline` methods on `Issuing.Authorization`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling). + - Mark as deprecated the `persistent_token` property on `ConfirmationToken.PaymentMethodPreview.Link`, `PaymentIntent.PaymentMethodOptions.Link`, `PaymentIntentResource.PaymentMethodOptions.Link`, `PaymentMethod.Link.persistent_token`. `SetupIntents.PaymentMethodOptions.Card.Link.persistent_token`, `SetupIntentsResource.persistent_token`. This is a legacy parameter that no longer has any function. +* [#2074](https://github.com/stripe/stripe-node/pull/2074) Add a more explicit comment on `limit` param in `autoPagingToArray` + +## 15.4.0 - 2024-04-25 +* [#2071](https://github.com/stripe/stripe-node/pull/2071) Update generated code + * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay` + * Change type of `Entitlements.ActiveEntitlement.feature` from `string` to `expandable(Entitlements.Feature)` + * Remove support for inadvertently released identity verification features `email` and `phone` on `Identity.VerificationSessionCreateParams.options` and `Identity.VerificationSessionUpdateParams.options` + * Change `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.email`, and `Identity.VerificationSession.verified_outputs.phone` to be required + * Add support for new values `amazon_pay` and `revolut_pay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for `amazon_pay` and `revolut_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details` + * Add support for `ending_before`, `limit`, and `starting_after` on `PaymentMethodConfigurationListParams` + * Add support for `mobilepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` +* [#2061](https://github.com/stripe/stripe-node/pull/2061) Make cloudflare package export + +## 15.3.0 - 2024-04-18 +* [#2069](https://github.com/stripe/stripe-node/pull/2069) Update generated code + * Add support for `create_preview` method on resource `Invoice` + * Add support for `payment_method_data` on `Checkout.SessionCreateParams` + * Add support for `saved_payment_method_options` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `mobilepay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for new value `mobilepay` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `allow_redisplay` on `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerListPaymentMethodsParams`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `schedule_details` and `subscription_details` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Add support for new value `other` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` + +## 15.2.0 - 2024-04-16 +* [#2064](https://github.com/stripe/stripe-node/pull/2064) Update generated code + * Add support for new resource `Entitlements.ActiveEntitlementSummary` + * Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required + * Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional + * Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard` + * Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type` + * Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API. + * Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay` + * Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 15.1.0 - 2024-04-11 +* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code + * Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features` + * Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Change `Billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `Billing.MeterEventAdjustmentCreateParams.cancel` to be optional + * Change `Billing.MeterEventAdjustmentCreateParams.type` to be required + * Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `BillingMeterResourceBillingMeterEventAdjustmentCancel | null` + * Add support for `amazon_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for new value `ownership` on enums `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` + * Add support for new value `amazon_pay` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `amazon_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `amazon_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh` + * Add support for new value `ownership` on enums `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` and `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` + +## 15.0.0 - 2024-04-10 +* [#2057](https://github.com/stripe/stripe-node/pull/2057) + + * This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading. + + ### āš ļø Breaking changes + + * Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent` + * Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent` + * Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`. + + #### āš ļø Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API + + * Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated. + * `BillingPortal.Configuration.Features` + * `BillingPortal.ConfigurationCreateParams.Features` + * `BillingPortal.ConfigurationUpdateParams.Features` + * Remove the below deprecated values for the type `BalanceTransaction.Type` + * `obligation_inbound` + * `obligation_payout` + * `obligation_payout_failure` + * `'obligation_reversal_outbound'` + * Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway` + * Remove deprecated events + * `invoiceitem.updated` + * `order.created` + * `recipient.created` + * `recipient.deleted` + * `recipient.updated` + * `sku.created` + * `sku.deleted` + * `sku.updated` + * Remove types for the deprecated events + * `InvoiceItemUpdatedEvent` + * `OrderCreatedEvent` + * `RecipientCreatedEvent` + * `RecipientDeletedEvent` + * `RecipientUpdatedEvent` + * `SKUCreatedEvent` + * `SKUDeletedEvent` + * Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior` + * Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData` + * Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent` + * Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration` + * Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory` + * Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure` + * Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead. + +## 14.25.0 - 2024-04-09 +* [#2059](https://github.com/stripe/stripe-node/pull/2059) Update generated code + * Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature` + * Add support for `list` and `retrieve` methods on resource `ActiveEntitlement` + * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature` + * Add support for `controller` on `AccountCreateParams` + * Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller` + * Add support for new value `none` on enum `Account.type` + * Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment` + * Add support for `cancel` and `type` on `Billing.MeterEventAdjustment` + + +## 14.24.0 - 2024-04-04 +* [#2053](https://github.com/stripe/stripe-node/pull/2053) Update generated code + * Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required + * Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string` + * Add support for `subscription_item` on `Discount` + * Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options` + * Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession` + * Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type` + * Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession` + * Change `Identity.VerificationSessionCreateParams.type` to be optional + * Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code` + * Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]` + * Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription` + * Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))` + * Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls` + * Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for `offline` on `SetupAttempt.payment_method_details.card_present` + * Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` + +## 14.23.0 - 2024-03-28 +* [#2046](https://github.com/stripe/stripe-node/pull/2046) Update generated code + * Add support for new resources `Billing.MeterEventAdjustment`, `Billing.MeterEvent`, and `Billing.Meter` + * Add support for `create`, `deactivate`, `list`, `reactivate`, `retrieve`, and `update` methods on resource `Meter` + * Add support for `create` method on resources `MeterEventAdjustment` and `MeterEvent` + * Add support for `amazon_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new value `verification_failed_representative_authority` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for `destination_on_behalf_of_charge_management` on `AccountSession.components.payment_details.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.payment_details.features`, and `AccountSessionCreateParams.components.payments.features` + * Add support for `mandate` on `Charge.payment_method_details.us_bank_account`, `Treasury.InboundTransfer.origin_payment_method_details.us_bank_account`, `Treasury.OutboundPayment.destination_payment_method_details.us_bank_account`, and `Treasury.OutboundTransfer.destination_payment_method_details.us_bank_account` + * Add support for `second_line` on `Issuing.CardCreateParams` + * Add support for `meter` on `PlanCreateParams`, `Plan`, `Price.recurring`, `PriceCreateParams.recurring`, and `PriceListParams.recurring` +* [#2045](https://github.com/stripe/stripe-node/pull/2045) esbuild test project fixes + +## 14.22.0 - 2024-03-21 +* [#2040](https://github.com/stripe/stripe-node/pull/2040) Update generated code + * Add support for new resources `ConfirmationToken` and `Forwarding.Request` + * Add support for `retrieve` method on resource `ConfirmationToken` + * Add support for `create`, `list`, and `retrieve` methods on resource `Request` + * Add support for `mobilepay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new values `forwarding_api_inactive`, `forwarding_api_invalid_parameter`, `forwarding_api_upstream_connection_error`, and `forwarding_api_upstream_connection_timeout` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `mobilepay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `payment_reference` on `Charge.payment_method_details.us_bank_account` + * Add support for new value `mobilepay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for `confirmation_token` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `SetupIntentConfirmParams`, and `SetupIntentCreateParams` + * Add support for new value `mobilepay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `mobilepay` on enum `PaymentMethod.type` + * Add support for `name` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` + * Add support for `payout` on `Treasury.ReceivedDebit.linked_flows` +* [#2043](https://github.com/stripe/stripe-node/pull/2043) Don't mutate error.type during minification + +## 14.21.0 - 2024-03-14 +* [#2035](https://github.com/stripe/stripe-node/pull/2035) Update generated code + * Add support for new resources `Issuing.PersonalizationDesign` and `Issuing.PhysicalBundle` + * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PersonalizationDesign` + * Add support for `list` and `retrieve` methods on resource `PhysicalBundle` + * Add support for `personalization_design` on `Issuing.CardCreateParams`, `Issuing.CardListParams`, `Issuing.CardUpdateParams`, and `Issuing.Card` + * Change type of `SubscriptionCreateParams.application_fee_percent` and `SubscriptionUpdateParams.application_fee_percent` from `number` to `emptyStringable(number)` + * Add support for `sepa_debit` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + +## 14.20.0 - 2024-03-07 +* [#2033](https://github.com/stripe/stripe-node/pull/2033) Update generated code + * Add support for `documents` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Add support for `request_three_d_secure` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card` + * Add support for `created` on `CreditNoteListParams` + * Add support for `sepa_debit` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, and `InvoiceUpdateParams.payment_settings.payment_method_options` + +## 14.19.0 - 2024-02-29 +* [#2029](https://github.com/stripe/stripe-node/pull/2029) Update generated code + * Change `Identity.VerificationReport.type`, `SubscriptionSchedule.default_settings.invoice_settings.account_tax_ids`, `SubscriptionSchedule.phases[].invoice_settings.account_tax_ids`, and `TaxId.owner` to be required + * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number') | null` to `enum('document'|'id_number')` + * Add support for `number` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for `enable_customer_cancellation` on `Terminal.Reader.action.process_payment_intent.process_config`, `Terminal.Reader.action.process_setup_intent.process_config`, `Terminal.ReaderProcessPaymentIntentParams.process_config`, and `Terminal.ReaderProcessSetupIntentParams.process_config` + * Add support for `refund_payment_config` on `Terminal.Reader.action.refund_payment` and `Terminal.ReaderRefundPaymentParams` + * Add support for `payment_method` on `TokenCreateParams.bank_account` +* [#2027](https://github.com/stripe/stripe-node/pull/2027) vscode settings: true -> "explicit" + +## 14.18.0 - 2024-02-22 +* [#2022](https://github.com/stripe/stripe-node/pull/2022) Update generated code + * Add support for `client_reference_id` on `Identity.VerificationReportListParams`, `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` + * Add support for `created` on `Treasury.OutboundPaymentListParams` +* [#2025](https://github.com/stripe/stripe-node/pull/2025) Standardize parameter interface names + - `CapabilityListParams` renamed to `AccountListCapabilitiesParams` + - `CapabilityRetrieveParams` renamed to `AccountRetrieveCapabilityParams` + - `CapabilityUpdateParams` renamed to `AccountUpdateCapabilityParams` + - `CashBalanceRetrieveParams` renamed to `CustomerRetrieveCashBalanceParams` + - `CashBalanceUpdateParams` renamed to `CustomerUpdateCashBalanceParams` + - `CreditNoteLineItemListParams` renamed to `CreditNoteListLineItemsParams` + - `CustomerBalanceTransactionCreateParams` renamed to `CustomerCreateBalanceTransactionParams` + - `CustomerBalanceTransactionListParams` renamed to `CustomerListBalanceTransactionsParams` + - `CustomerBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveBalanceTransactionParams` + - `CustomerBalanceTransactionUpdateParams` renamed to `CustomerUpdateBalanceTransactionParams` + - `CustomerCashBalanceTransactionListParams` renamed to `CustomerListCashBalanceTransactionsParams` + - `CustomerCashBalanceTransactionRetrieveParams` renamed to `CustomerRetrieveCashBalanceTransactionParams` + - `CustomerSourceCreateParams` renamed to `CustomerCreateSourceParams` + - `CustomerSourceDeleteParams` renamed to `CustomerDeleteSourceParams` + - `CustomerSourceListParams` renamed to `CustomerListSourcesParams` + - `CustomerSourceRetrieveParams` renamed to `CustomerRetrieveSourceParams` + - `CustomerSourceUpdateParams` renamed to `CustomerUpdateSourceParams` + - `CustomerSourceVerifyParams` renamed to `CustomerVerifySourceParams` + - `ExternalAccountCreateParams` renamed to `AccountCreateExternalAccountParams` + - `ExternalAccountDeleteParams` renamed to `AccountDeleteExternalAccountParams` + - `ExternalAccountListParams` renamed to `AccountListExternalAccountsParams` + - `ExternalAccountRetrieveParams` renamed to `AccountRetrieveExternalAccountParams` + - `ExternalAccountUpdateParams` renamed to `AccountUpdateExternalAccountParams` + - `FeeRefundCreateParams` renamed to `ApplicationFeeCreateRefundParams` + - `FeeRefundListParams` renamed to `ApplicationFeeListRefundsParams` + - `FeeRefundRetrieveParams` renamed to `ApplicationFeeRetrieveRefundParams` + - `FeeRefundUpdateParams` renamed to `ApplicationFeeUpdateRefundParams` + - `InvoiceLineItemListParams` renamed to `InvoiceListLineItemsParams` + - `InvoiceLineItemUpdateParams` renamed to `InvoiceUpdateLineItemParams` + - `LoginLinkCreateParams` renamed to `AccountCreateLoginLinkParams` + - `PersonCreateParams` renamed to `AccountCreatePersonParams` + - `PersonDeleteParams` renamed to `AccountDeletePersonParams` + - `PersonListParams` renamed to `AccountListPersonsParams` + - `PersonRetrieveParams` renamed to `AccountRetrievePersonParams` + - `PersonUpdateParams` renamed to `AccountUpdatePersonParams` + - `TaxIdCreateParams` renamed to `CustomerCreateTaxIdParams` + - `TaxIdDeleteParams` renamed to `CustomerDeleteTaxIdParams` + - `TaxIdListParams` renamed to `CustomerListTaxIdsParams` + - `TaxIdRetrieveParams` renamed to `CustomerRetrieveTaxIdParams` + - `TransferReversalCreateParams` renamed to `TransferCreateReversalParams` + - `TransferReversalListParams` renamed to `TransferListReversalsParams` + - `TransferReversalRetrieveParams` renamed to `TransferRetrieveReversalParams` + - `TransferReversalUpdateParams` renamed to `TransferUpdateReversalParams` + - `UsageRecordCreateParams` renamed to `SubscriptionItemCreateUsageRecordParams` + - `UsageRecordSummaryListParams` renamed to `SubscriptionItemListUsageRecordSummariesParams` + + Old names will still work but are deprecated and will be removed in future versions. +* [#2021](https://github.com/stripe/stripe-node/pull/2021) Add TaxIds API + * Add support for `create`, `del`, `list`, and `retrieve` methods on resource `TaxId` + +## 14.17.0 - 2024-02-15 +* [#2018](https://github.com/stripe/stripe-node/pull/2018) Update generated code + * Add support for `networks` on `Card`, `PaymentMethodCreateParams.card`, `PaymentMethodUpdateParams.card`, and `TokenCreateParams.card` + * Add support for new value `no_voec` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `no_voec` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for new value `financial_connections.account.refreshed_ownership` on enum `Event.type` + * Add support for `display_brand` on `PaymentMethod.card` + * Add support for new value `financial_connections.account.refreshed_ownership` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 14.16.0 - 2024-02-08 +* [#2012](https://github.com/stripe/stripe-node/pull/2012) Update generated code + * Add support for `invoices` on `Account.settings` and `AccountUpdateParams.settings` + * Add support for new value `velobank` on enums `Charge.payment_method_details.p24.bank`, `PaymentIntentConfirmParams.payment_method_data.p24.bank`, `PaymentIntentCreateParams.payment_method_data.p24.bank`, `PaymentIntentUpdateParams.payment_method_data.p24.bank`, `PaymentMethod.p24.bank`, `PaymentMethodCreateParams.p24.bank`, `SetupIntentConfirmParams.payment_method_data.p24.bank`, `SetupIntentCreateParams.payment_method_data.p24.bank`, and `SetupIntentUpdateParams.payment_method_data.p24.bank` + * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.blik`, `PaymentIntentConfirmParams.payment_method_options.blik`, `PaymentIntentCreateParams.payment_method_options.blik`, and `PaymentIntentUpdateParams.payment_method_options.blik` + * Add support for `require_cvc_recollection` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `account_tax_ids` on `SubscriptionCreateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, `SubscriptionScheduleUpdateParams.phases[].invoice_settings`, and `SubscriptionUpdateParams.invoice_settings` + +## 14.15.0 - 2024-02-05 +* [#2001](https://github.com/stripe/stripe-node/pull/2001) Update generated code + * Add support for `swish` payment method throughout the API + * Add support for `relationship` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, and `TokenCreateParams.account.individual` + * Add support for `jurisdiction_level` on `TaxRate` + * Change type of `Terminal.Reader.status` from `string` to `enum('offline'|'online')` +* [#2009](https://github.com/stripe/stripe-node/pull/2009) Remove https check for *.stripe.com + * Stops throwing exceptions if `protocol: 'http'` is set for requests to `api.stripe.com`. + +## 14.14.0 - 2024-01-25 +* [#1998](https://github.com/stripe/stripe-node/pull/1998) Update generated code + * Add support for `annual_revenue` and `estimated_worker_count` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` + * Add support for new value `registered_charity` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` + * Add support for `collection_options` on `AccountLinkCreateParams` + * Add support for `liability` on `Checkout.Session.automatic_tax`, `Checkout.SessionCreateParams.automatic_tax`, `PaymentLink.automatic_tax`, `PaymentLinkCreateParams.automatic_tax`, `PaymentLinkUpdateParams.automatic_tax`, `Quote.automatic_tax`, `QuoteCreateParams.automatic_tax`, `QuoteUpdateParams.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, `SubscriptionSchedule.phases[].automatic_tax`, `SubscriptionScheduleCreateParams.default_settings.automatic_tax`, `SubscriptionScheduleCreateParams.phases[].automatic_tax`, `SubscriptionScheduleUpdateParams.default_settings.automatic_tax`, and `SubscriptionScheduleUpdateParams.phases[].automatic_tax` + * Add support for `issuer` on `Checkout.Session.invoice_creation.invoice_data`, `Checkout.SessionCreateParams.invoice_creation.invoice_data`, `PaymentLink.invoice_creation.invoice_data`, `PaymentLinkCreateParams.invoice_creation.invoice_data`, `PaymentLinkUpdateParams.invoice_creation.invoice_data`, `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings` + * Add support for `invoice_settings` on `Checkout.SessionCreateParams.subscription_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` + * Add support for new value `challenge` on enums `Invoice.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure`, `Subscription.payment_settings.payment_method_options.card.request_three_d_secure`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.request_three_d_secure`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.request_three_d_secure` + * Add support for `promotion_code` on `InvoiceUpcomingLinesParams.discounts[]`, `InvoiceUpcomingLinesParams.invoice_items[].discounts[]`, `InvoiceUpcomingParams.discounts[]`, and `InvoiceUpcomingParams.invoice_items[].discounts[]` + * Add support for `account_type` on `PaymentMethodUpdateParams.us_bank_account` +* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code + * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` + * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required + * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` + * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Add support for `pin` on `Issuing.CardCreateParams` + * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` + * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` +* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding + +## 14.13.0 - 2024-01-18 +* [#1995](https://github.com/stripe/stripe-node/pull/1995) Update generated code + * Add support for providing `BankAccount`, `Card`, and `CardToken` details on the `external_account` parameter in `AccountUpdateParams` + * Add support for new value `nn` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `NNBANL2G` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Change `CustomerSession.components.buy_button`, `CustomerSession.components.pricing_table`, and `Subscription.billing_cycle_anchor_config` to be required + * Add support for `issuer` on `InvoiceCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `liability` on `Invoice.automatic_tax`, `InvoiceCreateParams.automatic_tax`, `InvoiceUpcomingLinesParams.automatic_tax`, `InvoiceUpcomingParams.automatic_tax`, `InvoiceUpdateParams.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionCreateParams.automatic_tax`, and `SubscriptionUpdateParams.automatic_tax` + * Add support for `on_behalf_of` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Add support for `pin` on `Issuing.CardCreateParams` + * Add support for `revocation_reason` on `Mandate.payment_method_details.bacs_debit` + * Add support for `customer_balance` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Add support for `invoice_settings` on `SubscriptionCreateParams` and `SubscriptionUpdateParams` +* [#1992](https://github.com/stripe/stripe-node/pull/1992) Add a hint about formatting during request forwarding + +## 14.12.0 - 2024-01-12 +* [#1990](https://github.com/stripe/stripe-node/pull/1990) Update generated code + * Add support for new resource `CustomerSession` + * Add support for `create` method on resource `CustomerSession` + * Remove support for values `obligation_inbound`, `obligation_payout_failure`, `obligation_payout`, and `obligation_reversal_outbound` from enum `BalanceTransaction.type` + * Add support for new values `eps` and `p24` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Remove support for value `obligation` from enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + * Add support for `billing_cycle_anchor_config` on `SubscriptionCreateParams` and `Subscription` + +## 14.11.0 - 2024-01-04 +* [#1985](https://github.com/stripe/stripe-node/pull/1985) Update generated code + * Add support for `retrieve` method on resource `Tax.Registration` + * Change `AccountSession.components.payment_details.features`, `AccountSession.components.payment_details`, `AccountSession.components.payments.features`, `AccountSession.components.payments`, `AccountSession.components.payouts.features`, `AccountSession.components.payouts`, `PaymentLink.inactive_message`, and `PaymentLink.restrictions` to be required + * Change type of `SubscriptionSchedule.default_settings.invoice_settings` from `InvoiceSettingSubscriptionScheduleSetting | null` to `InvoiceSettingSubscriptionScheduleSetting` +* [#1987](https://github.com/stripe/stripe-node/pull/1987) Update docstrings to indicate removal of deprecated event types + +## 14.10.0 - 2023-12-22 +* [#1979](https://github.com/stripe/stripe-node/pull/1979) Update generated code + * Add support for `collection_method` on `Mandate.payment_method_details.us_bank_account` + * Add support for `mandate_options` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` +* [#1976](https://github.com/stripe/stripe-node/pull/1976) Update generated code + * Add support for new resource `FinancialConnections.Transaction` + * Add support for `list` and `retrieve` methods on resource `Transaction` + * Add support for `subscribe` and `unsubscribe` methods on resource `FinancialConnections.Account` + * Add support for `features` on `AccountSessionCreateParams.components.payouts` + * Add support for `edit_payout_schedule`, `instant_payouts`, and `standard_payouts` on `AccountSession.components.payouts.features` + * Change type of `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]` from `literal('balances')` to `enum('balances'|'transactions')` + * Add support for new value `financial_connections.account.refreshed_transactions` on enum `Event.type` + * Add support for new value `transactions` on enum `FinancialConnections.AccountRefreshParams.features[]` + * Add support for `subscriptions` and `transaction_refresh` on `FinancialConnections.Account` + * Add support for `next_refresh_available_at` on `FinancialConnections.Account.balance_refresh` + * Add support for new value `transactions` on enums `FinancialConnections.Session.prefetch[]` and `FinancialConnections.SessionCreateParams.prefetch[]` + * Add support for new value `unknown` on enums `Issuing.Authorization.verification_data.authentication_exemption.type` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data.authentication_exemption.type` + * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure`, `PaymentIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentCreateParams.payment_method_options.card.request_three_d_secure`, `PaymentIntentUpdateParams.payment_method_options.card.request_three_d_secure`, `SetupIntent.payment_method_options.card.request_three_d_secure`, `SetupIntentConfirmParams.payment_method_options.card.request_three_d_secure`, `SetupIntentCreateParams.payment_method_options.card.request_three_d_secure`, and `SetupIntentUpdateParams.payment_method_options.card.request_three_d_secure` + * Add support for `revolut_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` + * Change type of `Quote.invoice_settings` from `InvoiceSettingQuoteSetting | null` to `InvoiceSettingQuoteSetting` + * Add support for `destination_details` on `Refund` + * Add support for new value `financial_connections.account.refreshed_transactions` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 14.9.0 - 2023-12-14 +* [#1973](https://github.com/stripe/stripe-node/pull/1973) Add `usage` to X-Stripe-Client-Telemetry +* [#1971](https://github.com/stripe/stripe-node/pull/1971) Update generated code + * Add support for `payment_method_reuse_agreement` on `Checkout.Session.consent_collection`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` + * Add support for `after_submit` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` + * Add support for `created` on `Radar.EarlyFraudWarningListParams` + +## 14.8.0 - 2023-12-07 +* [#1968](https://github.com/stripe/stripe-node/pull/1968) Update generated code + * Add support for `payment_details`, `payments`, and `payouts` on `AccountSession.components` and `AccountSessionCreateParams.components` + * Add support for `features` on `AccountSession.components.account_onboarding` and `AccountSessionCreateParams.components.account_onboarding` + * Add support for new values `customer_tax_location_invalid` and `financial_connections_no_successful_transaction_refresh` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for new values `payment_network_reserve_hold` and `payment_network_reserve_release` on enum `BalanceTransaction.type` + * Change `Climate.Product.metric_tons_available` to be required + * Remove support for value `various` from enum `Climate.Supplier.removal_pathway` + * Remove support for values `challenge_only` and `challenge` from enum `PaymentIntent.payment_method_options.card.request_three_d_secure` + * Add support for `inactive_message` and `restrictions` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for `transfer_group` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` + * Add support for `trial_settings` on `PaymentLink.subscription_data`, `PaymentLinkCreateParams.subscription_data`, and `PaymentLinkUpdateParams.subscription_data` + +## 14.7.0 - 2023-11-30 +* [#1965](https://github.com/stripe/stripe-node/pull/1965) Update generated code + * Add support for new resources `Climate.Order`, `Climate.Product`, and `Climate.Supplier` + * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `Order` + * Add support for `list` and `retrieve` methods on resources `Product` and `Supplier` + * Add support for new value `financial_connections_account_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `BalanceTransaction.type` + * Add support for `created` on `Checkout.SessionListParams` + * Add support for `validate_location` on `CustomerCreateParams.tax` and `CustomerUpdateParams.tax` + * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enum `Event.type` + * Add support for new value `challenge` on enums `PaymentIntent.payment_method_options.card.request_three_d_secure` and `SetupIntent.payment_method_options.card.request_three_d_secure` + * Add support for new values `climate_order_purchase` and `climate_order_refund` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + * Add support for new values `climate.order.canceled`, `climate.order.created`, `climate.order.delayed`, `climate.order.delivered`, `climate.order.product_substituted`, `climate.product.created`, and `climate.product.pricing_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 14.6.0 - 2023-11-21 +* [#1961](https://github.com/stripe/stripe-node/pull/1961) Update generated code + * Add support for `electronic_commerce_indicator` on `Charge.payment_method_details.card.three_d_secure` and `SetupAttempt.payment_method_details.card.three_d_secure` + * Add support for `exemption_indicator_applied` and `exemption_indicator` on `Charge.payment_method_details.card.three_d_secure` + * Add support for `transaction_id` on `Charge.payment_method_details.card.three_d_secure`, `Issuing.Authorization.network_data`, `Issuing.Transaction.network_data`, and `SetupAttempt.payment_method_details.card.three_d_secure` + * Add support for `offline` on `Charge.payment_method_details.card_present` + * Add support for `system_trace_audit_number` on `Issuing.Authorization.network_data` + * Add support for `network_risk_score` on `Issuing.Authorization.pending_request` and `Issuing.Authorization.request_history[]` + * Add support for `requested_at` on `Issuing.Authorization.request_history[]` + * Add support for `authorization_code` on `Issuing.Transaction.network_data` + * Add support for `three_d_secure` on `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, and `SetupIntentUpdateParams.payment_method_options.card` + +## 14.5.0 - 2023-11-16 +* [#1957](https://github.com/stripe/stripe-node/pull/1957) Update generated code + * Add support for `bacs_debit_payments` on `AccountCreateParams.settings` and `AccountUpdateParams.settings` + * Add support for `service_user_number` on `Account.settings.bacs_debit_payments` + * Change type of `Account.settings.bacs_debit_payments.display_name` from `string` to `string | null` + * Add support for `capture_before` on `Charge.payment_method_details.card` + * Add support for `paypal` on `Checkout.Session.payment_method_options` + * Add support for `tax_amounts` on `CreditNoteCreateParams.lines[]`, `CreditNotePreviewLinesParams.lines[]`, and `CreditNotePreviewParams.lines[]` + * Add support for `network_data` on `Issuing.Transaction` +* [#1960](https://github.com/stripe/stripe-node/pull/1960) Update generated code + * Add support for `status` on `Checkout.SessionListParams` +* [#1958](https://github.com/stripe/stripe-node/pull/1958) Move Webhooks instance to static field +* [#1952](https://github.com/stripe/stripe-node/pull/1952) Use AbortController for native fetch cancellation when available + +## 14.4.0 - 2023-11-09 +* [#1947](https://github.com/stripe/stripe-node/pull/1947) Update generated code + * Add support for new value `terminal_reader_hardware_fault` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Change `Charge.payment_method_details.card.amount_authorized`, `Checkout.Session.payment_method_configuration_details`, `PaymentIntent.latest_charge`, `PaymentIntent.payment_method_configuration_details`, and `SetupIntent.payment_method_configuration_details` to be required + * Change `Product.features[].name` to be optional + * Add support for `metadata` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, and `QuoteUpdateParams.subscription_data` + +## 14.3.0 - 2023-11-02 +* [#1943](https://github.com/stripe/stripe-node/pull/1943) Update generated code + * Add support for new resource `Tax.Registration` + * Add support for `create`, `list`, and `update` methods on resource `Registration` + * Add support for `revolut_pay_payments` on `Account` APIs. + * Add support for new value `token_card_network_invalid` on error code enums. + * Add support for new value `payment_unreconciled` on enum `BalanceTransaction.type` + * Add support for `revolut_pay` throughout the API. + * Change `.paypal.payer_email` to be required in several locations. + * Add support for `aba` and `swift` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` + * Add support for new values `ach`, `domestic_wire_us`, and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` + * Add support for new values `aba` and `swift` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` + * Add support for `url` on `Issuing.Authorization.merchant_data`, `Issuing.AuthorizationCreateParams.testHelpers.merchant_data`, `Issuing.Transaction.merchant_data`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.merchant_data`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.merchant_data` + * Add support for `authentication_exemption` and `three_d_secure` on `Issuing.Authorization.verification_data` and `Issuing.AuthorizationCreateParams.testHelpers.verification_data` + * Add support for `description` on `PaymentLink.payment_intent_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkUpdateParams.payment_intent_data` + * Add support for new value `unreconciled_customer_funds` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + +## 14.2.0 - 2023-10-26 +* [#1939](https://github.com/stripe/stripe-node/pull/1939) Update generated code + * Add support for new value `balance_invalid_parameter` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Change `Issuing.Cardholder.individual.card_issuing` to be optional +* [#1940](https://github.com/stripe/stripe-node/pull/1940) Do not require passing apiVersion + +## 14.1.0 - 2023-10-17 +* [#1933](https://github.com/stripe/stripe-node/pull/1933) Update generated code + * Add support for new value `invalid_dob_age_under_minimum` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Change `Checkout.Session.client_secret` and `Checkout.Session.ui_mode` to be required + +## 14.0.0 - 2023-10-16 +* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe` package. +* [#1932](https://github.com/stripe/stripe-node/pull/1932) Update generated code + * Add support for `legal_guardian` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship` + * Add support for new values `invalid_address_highway_contract_box`, `invalid_address_private_mailbox`, `invalid_business_profile_name_denylisted`, `invalid_business_profile_name`, `invalid_company_name_denylisted`, `invalid_dob_age_over_maximum`, `invalid_product_description_length`, `invalid_product_description_url_match`, `invalid_statement_descriptor_business_mismatch`, `invalid_statement_descriptor_denylisted`, `invalid_statement_descriptor_length`, `invalid_statement_descriptor_prefix_denylisted`, `invalid_statement_descriptor_prefix_mismatch`, `invalid_tax_id_format`, `invalid_tax_id`, `invalid_url_denylisted`, `invalid_url_format`, `invalid_url_length`, `invalid_url_web_presence_detected`, `invalid_url_website_business_information_mismatch`, `invalid_url_website_empty`, `invalid_url_website_inaccessible_geoblocked`, `invalid_url_website_inaccessible_password_protected`, `invalid_url_website_inaccessible`, `invalid_url_website_incomplete_cancellation_policy`, `invalid_url_website_incomplete_customer_service_details`, `invalid_url_website_incomplete_legal_restrictions`, `invalid_url_website_incomplete_refund_policy`, `invalid_url_website_incomplete_return_policy`, `invalid_url_website_incomplete_terms_and_conditions`, `invalid_url_website_incomplete_under_construction`, `invalid_url_website_incomplete`, and `invalid_url_website_other` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * Add support for `additional_tos_acceptances` on `TokenCreateParams.person` + * Add support for new value `2023-10-16` on enum `WebhookEndpointCreateParams.api_version` + +## 13.11.0 - 2023-10-16 +* [#1924](https://github.com/stripe/stripe-node/pull/1924) Update generated code + * Add support for new values `issuing_token.created` and `issuing_token.updated` on enum `Event.type` + * Add support for new values `issuing_token.created` and `issuing_token.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1926](https://github.com/stripe/stripe-node/pull/1926) Add named unions for all polymorphic types +* [#1921](https://github.com/stripe/stripe-node/pull/1921) Add event types + +## 13.10.0 - 2023-10-11 +* [#1920](https://github.com/stripe/stripe-node/pull/1920) Update generated code + * Add support for `redirect_on_completion`, `return_url`, and `ui_mode` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Change `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.success_url`, `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, and `PaymentLink.custom_fields[].text` to be optional + * Add support for `client_secret` on `Checkout.Session` + * Change type of `Checkout.Session.custom_fields[].dropdown` from `PaymentPagesCheckoutSessionCustomFieldsDropdown | null` to `PaymentPagesCheckoutSessionCustomFieldsDropdown` + * Change type of `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` from `PaymentPagesCheckoutSessionCustomFieldsNumeric | null` to `PaymentPagesCheckoutSessionCustomFieldsNumeric` + * Add support for `postal_code` on `Issuing.Authorization.verification_data` + * Change type of `PaymentLink.custom_fields[].dropdown` from `PaymentLinksResourceCustomFieldsDropdown | null` to `PaymentLinksResourceCustomFieldsDropdown` + * Change type of `PaymentLink.custom_fields[].numeric` and `PaymentLink.custom_fields[].text` from `PaymentLinksResourceCustomFieldsNumeric | null` to `PaymentLinksResourceCustomFieldsNumeric` + * Add support for `offline` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` +* [#1914](https://github.com/stripe/stripe-node/pull/1914) Bump get-func-name from 2.0.0 to 2.0.2 + +## 13.9.0 - 2023-10-05 +* [#1916](https://github.com/stripe/stripe-node/pull/1916) Update generated code + * Add support for new resource `Issuing.Token` + * Add support for `list`, `retrieve`, and `update` methods on resource `Token` + * Add support for `amount_authorized`, `extended_authorization`, `incremental_authorization`, `multicapture`, and `overcapture` on `Charge.payment_method_details.card` + * Add support for `token` on `Issuing.Authorization` and `Issuing.Transaction` + * Add support for `authorization_code` on `Issuing.Authorization.request_history[]` + * Add support for `request_extended_authorization`, `request_multicapture`, and `request_overcapture` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `request_incremental_authorization` on `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `final_capture` on `PaymentIntentCaptureParams` + * Add support for `metadata` on `PaymentLink.payment_intent_data`, `PaymentLink.subscription_data`, `PaymentLinkCreateParams.payment_intent_data`, and `PaymentLinkCreateParams.subscription_data` + * Add support for `statement_descriptor_suffix` and `statement_descriptor` on `PaymentLink.payment_intent_data` and `PaymentLinkCreateParams.payment_intent_data` + * Add support for `payment_intent_data` and `subscription_data` on `PaymentLinkUpdateParams` + +## 13.8.0 - 2023-09-28 +* [#1911](https://github.com/stripe/stripe-node/pull/1911) Update generated code + * Add support for `rendering` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` + * Change `PaymentMethod.us_bank_account.financial_connections_account` and `PaymentMethod.us_bank_account.status_details` to be required + +## 13.7.0 - 2023-09-21 +* [#1907](https://github.com/stripe/stripe-node/pull/1907) Update generated code + * Add support for `terms_of_service_acceptance` on `Checkout.Session.custom_text`, `Checkout.SessionCreateParams.custom_text`, `PaymentLink.custom_text`, `PaymentLinkCreateParams.custom_text`, and `PaymentLinkUpdateParams.custom_text` + +## 13.6.0 - 2023-09-14 +* [#1905](https://github.com/stripe/stripe-node/pull/1905) Update generated code + * Add support for new resource `PaymentMethodConfiguration` + * Add support for `create`, `list`, `retrieve`, and `update` methods on resource `PaymentMethodConfiguration` + * Add support for `payment_method_configuration` on `Checkout.SessionCreateParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` + * Add support for `payment_method_configuration_details` on `Checkout.Session`, `PaymentIntent`, and `SetupIntent` +* [#1897](https://github.com/stripe/stripe-node/pull/1897) Update generated code + * Add support for `capture`, `create`, `expire`, `increment`, and `reverse` test helper methods on resource `Issuing.Authorization` + * Add support for `create_force_capture`, `create_unlinked_refund`, and `refund` test helper methods on resource `Issuing.Transaction` + * Add support for new value `stripe_tax_inactive` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `nonce` on `EphemeralKeyCreateParams` + * Add support for `cashback_amount` on `Issuing.Authorization.amount_details`, `Issuing.Authorization.pending_request.amount_details`, `Issuing.Authorization.request_history[].amount_details`, and `Issuing.Transaction.amount_details` + * Add support for `serial_number` on `Terminal.ReaderListParams` +* [#1895](https://github.com/stripe/stripe-node/pull/1895) feat: webhook signing Nestjs +* [#1878](https://github.com/stripe/stripe-node/pull/1878) Use src/apiVersion.ts, not API_VERSION as source of truth + +## 13.5.0 - 2023-09-07 +* [#1893](https://github.com/stripe/stripe-node/pull/1893) Update generated code + * Add support for new resource `PaymentMethodDomain` + * Add support for `create`, `list`, `retrieve`, `update`, and `validate` methods on resource `PaymentMethodDomain` + * Add support for new value `n26` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `NTSBDEB1` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Add support for new values `treasury.credit_reversal.created`, `treasury.credit_reversal.posted`, `treasury.debit_reversal.completed`, `treasury.debit_reversal.created`, `treasury.debit_reversal.initial_credit_granted`, `treasury.financial_account.closed`, `treasury.financial_account.created`, `treasury.financial_account.features_status_updated`, `treasury.inbound_transfer.canceled`, `treasury.inbound_transfer.created`, `treasury.inbound_transfer.failed`, `treasury.inbound_transfer.succeeded`, `treasury.outbound_payment.canceled`, `treasury.outbound_payment.created`, `treasury.outbound_payment.expected_arrival_date_updated`, `treasury.outbound_payment.failed`, `treasury.outbound_payment.posted`, `treasury.outbound_payment.returned`, `treasury.outbound_transfer.canceled`, `treasury.outbound_transfer.created`, `treasury.outbound_transfer.expected_arrival_date_updated`, `treasury.outbound_transfer.failed`, `treasury.outbound_transfer.posted`, `treasury.outbound_transfer.returned`, `treasury.received_credit.created`, `treasury.received_credit.failed`, `treasury.received_credit.succeeded`, and `treasury.received_debit.created` on enum `Event.type` + * Remove support for value `invoiceitem.updated` from enum `Event.type` + * Add support for `features` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` + * Remove support for value `invoiceitem.updated` from enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 13.4.0 - 2023-08-31 +* [#1884](https://github.com/stripe/stripe-node/pull/1884) Update generated code + * Add support for new resource `AccountSession` + * Add support for `create` method on resource `AccountSession` + * Add support for new values `obligation_inbound`, `obligation_outbound`, `obligation_payout_failure`, `obligation_payout`, `obligation_reversal_inbound`, and `obligation_reversal_outbound` on enum `BalanceTransaction.type` + * Change type of `Event.type` from `string` to `enum` + * Add support for `application` on `PaymentLink` + * Add support for new value `obligation` on enum `Reporting.ReportRunCreateParams.parameters.reporting_category` + +## 13.3.0 - 2023-08-24 +* [#1879](https://github.com/stripe/stripe-node/pull/1879) Update generated code + * Add support for `retention` on `BillingPortal.Session.flow.subscription_cancel` and `BillingPortal.SessionCreateParams.flow_data.subscription_cancel` + * Add support for `prefetch` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections`, `FinancialConnections.SessionCreateParams`, `FinancialConnections.Session`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` + * Add support for `payment_method_details` on `Dispute` + * Change type of `PaymentIntentCreateParams.mandate_data` and `SetupIntentCreateParams.mandate_data` from `secret_key_param` to `emptyStringable(secret_key_param)` + * Change type of `PaymentIntentConfirmParams.mandate_data` and `SetupIntentConfirmParams.mandate_data` from `secret_key_param | client_key_param` to `emptyStringable(secret_key_param | client_key_param)` + * Add support for `balance_transaction` on `CustomerCashBalanceTransaction.adjusted_for_overdraft` +* [#1882](https://github.com/stripe/stripe-node/pull/1882) Update v13.0.0 CHANGELOG.md +* [#1880](https://github.com/stripe/stripe-node/pull/1880) Improved `maxNetworkRetries` options JSDoc + +## 13.2.0 - 2023-08-17 +* [#1876](https://github.com/stripe/stripe-node/pull/1876) Update generated code + * Add support for `flat_amount` on `Tax.TransactionCreateReversalParams` + +## 13.1.0 - 2023-08-17 +* [#1875](https://github.com/stripe/stripe-node/pull/1875) Update Typescript types to support version `2023-08-16`. + +## 13.0.0 - 2023-08-16 +* This release changes the pinned API version to `2023-08-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-08-16) and carefully review the API changes before upgrading `stripe-node`. +* More information is available in the [stripe-node v13 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v13) + +"āš ļø" symbol highlights breaking changes. + +* āš ļø[#1803](https://github.com/stripe/stripe-node/pull/1803) Change the default behavior to perform 1 reattempt on retryable request failures (previously the default was 0). +* [#1808](https://github.com/stripe/stripe-node/pull/1808) Allow request-level options to disable retries. +* āš ļøRemove deprecated `del` method on `Subscriptions`. Please use the `cancel` method instead, which was introduced in [v9.14.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#9140---2022-07-18): +* [#1872](https://github.com/stripe/stripe-node/pull/1872) Update generated code + * āš ļøAdd support for new values `verification_directors_mismatch`, `verification_document_directors_mismatch`, `verification_extraneous_directors`, and `verification_missing_directors` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` + * āš ļøRemove support for values `custom_account_update` and `custom_account_verification` from enum `AccountLinkCreateParams.type` + * These values are not fully operational. Please use `account_update` and `account_onboarding` instead (see [API reference](https://stripe.com/docs/api/account_links/create#create_account_link-type)). + * āš ļøRemove support for `available_on` on `BalanceTransactionListParams` + * Use of this parameter is discouraged. Suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. + * āš ļøRemove support for `alternate_statement_descriptors` and `dispute` on `Charge` + * Use of these fields is discouraged. + * āš ļøRemove support for `destination` on `Charge` + * Please use `transfer_data` or `on_behalf_of` instead. + * āš ļøRemove support for `shipping_rates` on `Checkout.SessionCreateParams` + * Please use `shipping_options` instead. + * āš ļøRemove support for `coupon` and `trial_from_plan` on `Checkout.SessionCreateParams.subscription_data` + * Please [migrate to the Prices API](https://stripe.com/docs/billing/migration/migrating-prices), or suppress the Typescript error with `// @ts-ignore` or `any` if sending the parameter is still required. + * āš ļøRemove support for value `card_present` from enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * This value was not fully operational. + * āš ļøRemove support for value `charge_refunded` from enum `Dispute.status` + * This value was not fully operational. + * āš ļøRemove support for `blik` on `Mandate.payment_method_details`, `PaymentMethodUpdateParams`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * These fields were mistakenly released. + * āš ļøRemove support for `acss_debit`, `affirm`, `au_becs_debit`, `bacs_debit`, `cashapp`, `sepa_debit`, and `zip` on `PaymentMethodUpdateParams` + * These fields are empty. + * āš ļøRemove support for `country` on `PaymentMethod.link` + * This field was not fully operational. + * āš ļøRemove support for `recurring` on `PriceUpdateParams` + * This property should be set on create only. + * āš ļøRemove support for `attributes`, `caption`, and `deactivate_on` on `ProductCreateParams`, `ProductUpdateParams`, and `Product` + * These fields are not fully operational. + * āš ļøAdd support for new value `2023-08-16` on enum `WebhookEndpointCreateParams.api_version` + +## 12.18.0 - 2023-08-10 +* [#1867](https://github.com/stripe/stripe-node/pull/1867) Update generated code + * Add support for new values `incorporated_partnership` and `unincorporated_partnership` on enums `Account.company.structure`, `AccountCreateParams.company.structure`, `AccountUpdateParams.company.structure`, and `TokenCreateParams.account.company.structure` + * Add support for new value `payment_reversal` on enum `BalanceTransaction.type` + * Change `Invoice.subscription_details.metadata` and `Invoice.subscription_details` to be required + +## 12.17.0 - 2023-08-03 +* [#1863](https://github.com/stripe/stripe-node/pull/1863) Update generated code + * Change many types from `string` to `emptyStringable(string)` + * Add support for `subscription_details` on `Invoice` + * Add support for `preferred_settlement_speed` on `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, and `PaymentIntentUpdateParams.payment_method_options.us_bank_account` + * Add support for new values `sepa_debit_fingerprint` and `us_bank_account_fingerprint` on enums `Radar.ValueList.item_type` and `Radar.ValueListCreateParams.item_type` +* [#1866](https://github.com/stripe/stripe-node/pull/1866) Allow monkey patching http / https + +## 12.16.0 - 2023-07-27 +* [#1853](https://github.com/stripe/stripe-node/pull/1853) Update generated code + * Add support for `monthly_estimated_revenue` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile` +* [#1859](https://github.com/stripe/stripe-node/pull/1859) Revert "import * as http -> import http from 'http'" + +## 12.15.0 - 2023-07-27 (DEPRECATED āš ļø ) +* This version included a breaking change [#1859](https://github.com/stripe/stripe-node/pull/1859) that we should not have released. It has been deprecated on npmjs.org. Please do not use this version. + +## 12.14.0 - 2023-07-20 +* [#1842](https://github.com/stripe/stripe-node/pull/1842) Update generated code + * Add support for new value `ro_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, and `Tax.Transaction.customer_details.tax_ids[].type` + * Remove support for values `excluded_territory`, `jurisdiction_unsupported`, and `vat_exempt` from enums `Checkout.Session.shipping_cost.taxes[].taxability_reason`, `Checkout.Session.total_details.breakdown.taxes[].taxability_reason`, `CreditNote.shipping_cost.taxes[].taxability_reason`, `Invoice.shipping_cost.taxes[].taxability_reason`, `LineItem.taxes[].taxability_reason`, `Quote.computed.recurring.total_details.breakdown.taxes[].taxability_reason`, `Quote.computed.upfront.total_details.breakdown.taxes[].taxability_reason`, and `Quote.total_details.breakdown.taxes[].taxability_reason` + * Add support for new value `ro_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `Tax.CalculationCreateParams.customer_details.tax_ids[].type` + * Add support for `use_stripe_sdk` on `SetupIntentConfirmParams` and `SetupIntentCreateParams` + * Add support for new value `service_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` +* [#1849](https://github.com/stripe/stripe-node/pull/1849) Changelog: fix delimiterless namespaced param types +* [#1848](https://github.com/stripe/stripe-node/pull/1848) Changelog: `CheckoutSessionCreateParams` -> `Checkout.SessionCreateParams` + +## 12.13.0 - 2023-07-13 +* [#1838](https://github.com/stripe/stripe-node/pull/1838) Update generated code + * Add support for new resource `Tax.Settings` + * Add support for `retrieve` and `update` methods on resource `Settings` + * Add support for new value `invalid_tax_location` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for `order_id` on `Charge.payment_method_details.afterpay_clearpay` + * Add support for `allow_redirects` on `PaymentIntent.automatic_payment_methods`, `PaymentIntentCreateParams.automatic_payment_methods`, `SetupIntent.automatic_payment_methods`, and `SetupIntentCreateParams.automatic_payment_methods` + * Add support for new values `amusement_tax` and `communications_tax` on enums `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, and `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type` + * Add support for `product` on `Tax.TransactionLineItem` + * Add support for new value `tax.settings.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 12.12.0 - 2023-07-06 +* [#1831](https://github.com/stripe/stripe-node/pull/1831) Update generated code + * Add support for `numeric` and `text` on `PaymentLink.custom_fields[]` + * Add support for `automatic_tax` on `SubscriptionListParams` + +## 12.11.0 - 2023-06-29 +* [#1823](https://github.com/stripe/stripe-node/pull/1823) Update generated code + * Add support for new value `application_fees_not_allowed` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` + * Add support for new tax IDs `ad_nrt`, `ar_cuit`, `bo_tin`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `pe_ruc`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, and `vn_tin` + * Add support for `effective_at` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` +* [#1828](https://github.com/stripe/stripe-node/pull/1828) Better CryptoProvider error + +## 12.10.0 - 2023-06-22 +* [#1820](https://github.com/stripe/stripe-node/pull/1820) Update generated code + * Add support for `on_behalf_of` on `Mandate` +* [#1817](https://github.com/stripe/stripe-node/pull/1817) Update README.md +* [#1819](https://github.com/stripe/stripe-node/pull/1819) Update generated code + * Release specs are identical. +* [#1813](https://github.com/stripe/stripe-node/pull/1813) Update generated code + * Change type of `Checkout.Session.success_url` from `string` to `string | null` + * Change type of `FileCreateParams.file` from `string` to `file` +* [#1815](https://github.com/stripe/stripe-node/pull/1815) Generate FileCreateParams + +## 12.9.0 - 2023-06-08 +* [#1809](https://github.com/stripe/stripe-node/pull/1809) Update generated code + * Change `Charge.payment_method_details.cashapp.buyer_id`, `Charge.payment_method_details.cashapp.cashtag`, `PaymentMethod.cashapp.buyer_id`, and `PaymentMethod.cashapp.cashtag` to be required + * Add support for `taxability_reason` on `Tax.Calculation.tax_breakdown[]` +* [#1812](https://github.com/stripe/stripe-node/pull/1812) More helpful error when signing secrets contain whitespace + +## 12.8.0 - 2023-06-01 +* [#1799](https://github.com/stripe/stripe-node/pull/1799) Update generated code + * Add support for `numeric` and `text` on `Checkout.SessionCreateParams.custom_fields[]`, `PaymentLinkCreateParams.custom_fields[]`, and `PaymentLinkUpdateParams.custom_fields[]` + * Add support for new values `aba` and `swift` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` + * Add support for new value `us_bank_transfer` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.type`, `Checkout.SessionCreateParams.payment_method_options.customer_balance.bank_transfer.type`, `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` + * Add support for `maximum_length` and `minimum_length` on `Checkout.Session.custom_fields[].numeric` and `Checkout.Session.custom_fields[].text` + * Add support for `preferred_locales` on `Issuing.Cardholder`, `Issuing.CardholderCreateParams`, and `Issuing.CardholderUpdateParams` + * Add support for `description`, `iin`, and `issuer` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` + * Add support for `payer_email` on `PaymentMethod.paypal` + +## 12.7.0 - 2023-05-25 +* [#1797](https://github.com/stripe/stripe-node/pull/1797) Update generated code + * Add support for `zip_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Change type of `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` from `string` to `enum` + * Add support for `zip` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `zip` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` + * Add support for new value `zip` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `zip` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `zip` on enum `PaymentMethod.type` + +## 12.6.0 - 2023-05-19 +* [#1787](https://github.com/stripe/stripe-node/pull/1787) Update generated code + * Add support for `subscription_update_confirm` and `subscription_update` on `BillingPortal.Session.flow` and `BillingPortal.SessionCreateParams.flow_data` + * Add support for new values `subscription_update_confirm` and `subscription_update` on enums `BillingPortal.Session.flow.type` and `BillingPortal.SessionCreateParams.flow_data.type` + * Add support for `link` on `Charge.payment_method_details.card.wallet` and `PaymentMethod.card.wallet` + * Add support for `buyer_id` and `cashtag` on `Charge.payment_method_details.cashapp` and `PaymentMethod.cashapp` + * Add support for new values `amusement_tax` and `communications_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + +## 12.5.0 - 2023-05-11 +* [#1785](https://github.com/stripe/stripe-node/pull/1785) Update generated code + * Add support for `paypal` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for `network_token` on `Charge.payment_method_details.card` + * Add support for new value `paypal` on enums `Checkout.SessionCreateParams.payment_method_types[]` and `PaymentMethodCreateParams.type` + * Add support for `taxability_reason` and `taxable_amount` on `Checkout.Session.shipping_cost.taxes[]`, `Checkout.Session.total_details.breakdown.taxes[]`, `CreditNote.shipping_cost.taxes[]`, `CreditNote.tax_amounts[]`, `Invoice.shipping_cost.taxes[]`, `Invoice.total_tax_amounts[]`, `LineItem.taxes[]`, `Quote.computed.recurring.total_details.breakdown.taxes[]`, `Quote.computed.upfront.total_details.breakdown.taxes[]`, and `Quote.total_details.breakdown.taxes[]` + * Add support for new value `paypal` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `paypal` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `paypal` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `eftpos_au` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` + * Add support for new value `paypal` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `brand`, `cardholder_name`, `country`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `last4`, `networks`, and `read_method` on `PaymentMethod.card_present` and `PaymentMethod.interac_present` + * Add support for `preferred_locales` on `PaymentMethod.interac_present` + * Add support for new value `paypal` on enum `PaymentMethod.type` + * Add support for `effective_percentage` on `TaxRate` + * Add support for `gb_bank_transfer` and `jp_bank_transfer` on `CustomerCashBalanceTransaction.Funded.BankTransfer` + +## 12.4.0 - 2023-05-04 +* [#1774](https://github.com/stripe/stripe-node/pull/1774) Update generated code + * Add support for `link` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for `brand`, `country`, `description`, `exp_month`, `exp_year`, `fingerprint`, `funding`, `iin`, `issuer`, `last4`, `network`, and `wallet` on `SetupAttempt.payment_method_details.card` +* [#1782](https://github.com/stripe/stripe-node/pull/1782) Let user supply a timestamp when verifying webhooks + +## 12.3.0 - 2023-04-27 +* [#1770](https://github.com/stripe/stripe-node/pull/1770) Update generated code + * Add support for `billing_cycle_anchor` and `proration_behavior` on `Checkout.SessionCreateParams.subscription_data` + * Add support for `terminal_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` + * Add support for `metadata` on `PaymentIntentCaptureParams` + * Add support for `checks` on `SetupAttempt.payment_method_details.card` + * Add support for `tax_breakdown` on `Tax.Calculation.shipping_cost` and `Tax.Transaction.shipping_cost` + +## 12.2.0 - 2023-04-20 +* [#1759](https://github.com/stripe/stripe-node/pull/1759) Update generated code + * Change `Checkout.Session.currency_conversion` to be required + * Change `Identity.VerificationReport.options` and `Identity.VerificationReport.type` to be optional + * Change type of `Identity.VerificationSession.options` from `VerificationSessionOptions` to `VerificationSessionOptions | null` + * Change type of `Identity.VerificationSession.type` from `enum('document'|'id_number')` to `enum('document'|'id_number') | null` +* [#1762](https://github.com/stripe/stripe-node/pull/1762) Add Deno webhook signing example +* [#1761](https://github.com/stripe/stripe-node/pull/1761) Add Deno usage instructions in README + +## 12.1.1 - 2023-04-13 +No product changes. + +## 12.1.0 - 2023-04-13 +* [#1754](https://github.com/stripe/stripe-node/pull/1754) Update generated code + * Add support for new value `REVOIE23` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` +* [#1749](https://github.com/stripe/stripe-node/pull/1749) Type extend and ResourceNamespace better + +## 12.0.0 - 2023-04-06 +* [#1743](https://github.com/stripe/stripe-node/pull/1743) Remove `Stripe.default` and `Stripe.Stripe` +This was added to maintain backwards compatibility during the transition of stripe-node to a dual ES module / CommonJS package, and should not be functionally necessary. +* [#1742](https://github.com/stripe/stripe-node/pull/1743) Pin latest API version as the default + **āš ļø ACTION REQUIRED: the breaking change in this release likely affects you āš ļø** + + In this release, Stripe API Version `2022-11-15` (the latest at time of release) will be sent by default on all requests. + The previous default was to use your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). + + To successfully upgrade to stripe-node v12, you must either + + 1. **(Recommended) Upgrade your integration to be compatible with API Version `2022-11-15`.** + + Please read the API Changelog carefully for each API Version from `2022-11-15` back to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). Determine if you are using any of the APIs that have changed in a breaking way, and adjust your integration accordingly. Carefully test your changes with Stripe [Test Mode](https://stripe.com/docs/keys#test-live-modes) before deploying them to production. + + You can read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more detailed instructions. + 2. **(Alternative option) Specify a version other than `2022-11-15` when initializing `stripe-node`.** + + If you were previously initializing stripe-node without an explicit API Version, you can postpone modifying your integration by specifying a version equal to your [Stripe account's default API version](https://stripe.com/docs/development/dashboard/request-logs#view-your-default-api-version). For example: + + ```diff + - const stripe = require('stripe')('sk_test_...'); + + const stripe = require('stripe')('sk_test_...', { + + apiVersion: 'YYYY-MM-DD' // Determine your default version from https://dashboard.stripe.com/developers + + }) + ``` + + If you were already initializing stripe-node with an explicit API Version, upgrading to v12 will not affect your integration. + + Read the [v12 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v12) for more details. + + Going forward, each major release of this library will be *pinned* by default to the latest Stripe API Version at the time of release. + That is, instead of upgrading stripe-node and separately upgrading your Stripe API Version through the Stripe Dashboard. whenever you upgrade major versions of stripe-node, you should also upgrade your integration to be compatible with the latest Stripe API version. + +## 11.18.0 - 2023-04-06 +* [#1738](https://github.com/stripe/stripe-node/pull/1738) Update generated code + * Add support for new value `link` on enums `Charge.payment_method_details.card.wallet.type` and `PaymentMethod.card.wallet.type` + * Change `Issuing.CardholderCreateParams.type` to be optional + * Add support for `country` on `PaymentMethod.link` + * Add support for `status_details` on `PaymentMethod.us_bank_account` +* [#1747](https://github.com/stripe/stripe-node/pull/1747) (Typescript) remove deprecated properties + +## 11.17.0 - 2023-03-30 +* [#1734](https://github.com/stripe/stripe-node/pull/1734) Update generated code + * Remove support for `create` method on resource `Tax.Transaction` + * This is not a breaking change, as this method was deprecated before the Tax Transactions API was released in favor of the `createFromCalculation` method. + * Add support for `export_license_id` and `export_purpose_code` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company` + * Remove support for value `deleted` from enum `Invoice.status` + * This is not a breaking change, as `deleted` was never returned or accepted as input. + * Add support for `amount_tip` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` + +## 11.16.0 - 2023-03-23 +* [#1730](https://github.com/stripe/stripe-node/pull/1730) Update generated code + * Add support for new resources `Tax.CalculationLineItem`, `Tax.Calculation`, `Tax.TransactionLineItem`, and `Tax.Transaction` + * Add support for `create` and `list_line_items` methods on resource `Calculation` + * Add support for `create_from_calculation`, `create_reversal`, `create`, `list_line_items`, and `retrieve` methods on resource `Transaction` + * Add support for new value `link` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `currency_conversion` on `Checkout.Session` + * Add support for new value `link` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `automatic_payment_methods` on `SetupIntentCreateParams` and `SetupIntent` +* [#1726](https://github.com/stripe/stripe-node/pull/1726) Add Deno entry point + +## 11.15.0 - 2023-03-16 +* [#1714](https://github.com/stripe/stripe-node/pull/1714) API Updates + * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for new value `cashapp` as a new `type` throughout the API. + * Add support for `future_requirements` and `requirements` on `BankAccount` + * Add support for `country` on `Charge.payment_method_details.link` + * Add support for new value `automatic_async` on enums `Checkout.SessionCreateParams.payment_intent_data.capture_method`, `PaymentIntent.capture_method`, `PaymentIntentConfirmParams.capture_method`, `PaymentIntentCreateParams.capture_method`, `PaymentIntentUpdateParams.capture_method`, `PaymentLink.payment_intent_data.capture_method`, and `PaymentLinkCreateParams.payment_intent_data.capture_method` + + * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, + * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` + * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1709](https://github.com/stripe/stripe-node/pull/1709) Add ES module package entry point + * Add support for ES modules by defining a separate ESM entry point. This updates stripe-node to be a [dual CommonJS / ES module package](https://nodejs.org/api/packages.html#dual-commonjses-module-packages). +* [#1704](https://github.com/stripe/stripe-node/pull/1704) Configure 2 TypeScript compile targets for ESM and CJS +* [#1710](https://github.com/stripe/stripe-node/pull/1710) Update generated code (new) + * Add support for `cashapp_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `cashapp` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `cashapp` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new value `cashapp` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `cashapp` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `cashapp` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for `preferred_locale` on `PaymentIntent.payment_method_options.affirm`, `PaymentIntentConfirmParams.payment_method_options.affirm`, `PaymentIntentCreateParams.payment_method_options.affirm`, and `PaymentIntentUpdateParams.payment_method_options.affirm` + * Add support for `cashapp_handle_redirect_or_display_qr_code` on `PaymentIntent.next_action` and `SetupIntent.next_action` + * Add support for new value `cashapp` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for new value `cashapp` on enum `PaymentMethodCreateParams.type` + * Add support for new value `cashapp` on enum `PaymentMethod.type` + * Add support for new value `payout.reconciliation_completed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 11.14.0 - 2023-03-09 +* [#1703](https://github.com/stripe/stripe-node/pull/1703) API Updates + * Add support for `card_issuing` on `Issuing.CardholderCreateParams.individual` and `Issuing.CardholderUpdateParams.individual` + * Add support for new value `requirements.past_due` on enum `Issuing.Cardholder.requirements.disabled_reason` + * Add support for new values `individual.card_issuing.user_terms_acceptance.date` and `individual.card_issuing.user_terms_acceptance.ip` on enum `Issuing.Cardholder.requirements.past_due[]` + * Add support for `cancellation_details` on `SubscriptionCancelParams`, `SubscriptionUpdateParams`, and `Subscription` +* [#1701](https://github.com/stripe/stripe-node/pull/1701) Change httpProxy to httpAgent in README example +* [#1695](https://github.com/stripe/stripe-node/pull/1695) Migrate generated files to ES module syntax +* [#1699](https://github.com/stripe/stripe-node/pull/1699) Remove extra test directory + +## 11.13.0 - 2023-03-02 +* [#1696](https://github.com/stripe/stripe-node/pull/1696) API Updates + * Add support for new values `electric_vehicle_charging`, `emergency_services_gcas_visa_use_only`, `government_licensed_horse_dog_racing_us_region_only`, `government_licensed_online_casions_online_gambling_us_region_only`, `government_owned_lotteries_non_us_region`, `government_owned_lotteries_us_region_only`, and `marketplaces` on spending control categories. + * Add support for `reconciliation_status` on `Payout` + * Add support for new value `lease_tax` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + +* [#1689](https://github.com/stripe/stripe-node/pull/1689) Update v11.8.0 changelog with breaking change disclaimer + +## 11.12.0 - 2023-02-23 +* [#1688](https://github.com/stripe/stripe-node/pull/1688) API Updates + * Add support for new value `yoursafe` on enums `Charge.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank` + * Add support for new value `BITSNL2A` on enums `Charge.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic` + * Add support for new value `igst` on enums `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` +* [#1687](https://github.com/stripe/stripe-node/pull/1687) Convert TypeScript files to use ES modules + +## 11.11.0 - 2023-02-16 +* [#1681](https://github.com/stripe/stripe-node/pull/1681) API Updates + * Add support for `refund_payment` method on resource `Terminal.Reader` + * Add support for new value `name` on enums `BillingPortal.Configuration.features.customer_update.allowed_updates[]`, `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates[]`, and `BillingPortal.ConfigurationUpdateParams.features.customer_update.allowed_updates[]` + * Add support for `custom_fields` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Change `Subscription.trial_settings.end_behavior` and `Subscription.trial_settings` to be required + * Add support for `interac_present` on `Terminal.ReaderPresentPaymentMethodParams.testHelpers` + * Change type of `Terminal.ReaderPresentPaymentMethodParams.testHelpers.type` from `literal('card_present')` to `enum('card_present'|'interac_present')` + * Add support for `refund_payment` on `Terminal.Reader.action` + * Add support for new value `refund_payment` on enum `Terminal.Reader.action.type` +* [#1683](https://github.com/stripe/stripe-node/pull/1683) Add NextJS webhook sample +* [#1685](https://github.com/stripe/stripe-node/pull/1685) Add more webhook parsing checks +* [#1684](https://github.com/stripe/stripe-node/pull/1684) Add infrastructure for mocked tests + +## 11.10.0 - 2023-02-09 +* [#1679](https://github.com/stripe/stripe-node/pull/1679) Enable library to work in worker environments without extra configuration. + +## 11.9.1 - 2023-02-03 +* [#1672](https://github.com/stripe/stripe-node/pull/1672) Update main entrypoint on package.json + +## 11.9.0 - 2023-02-02 +* [#1669](https://github.com/stripe/stripe-node/pull/1669) API Updates + * Add support for `resume` method on resource `Subscription` + * Add support for `payment_link` on `Checkout.SessionListParams` + * Add support for `trial_settings` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` + * Add support for `shipping_cost` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, `CreditNotePreviewParams`, `CreditNote`, `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `amount_shipping` on `CreditNote` and `Invoice` + * Add support for `shipping_details` on `InvoiceCreateParams`, `InvoiceUpdateParams`, and `Invoice` + * Add support for `subscription_resume_at` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams` + * Change `Issuing.CardholderCreateParams.individual.first_name`, `Issuing.CardholderCreateParams.individual.last_name`, `Issuing.CardholderUpdateParams.individual.first_name`, and `Issuing.CardholderUpdateParams.individual.last_name` to be optional + * Change type of `Issuing.Cardholder.individual.first_name` and `Issuing.Cardholder.individual.last_name` from `string` to `string | null` + * Add support for `invoice_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for new value `America/Ciudad_Juarez` on enum `Reporting.ReportRunCreateParams.parameters.timezone` + * Add support for new value `paused` on enum `SubscriptionListParams.status` + * Add support for new value `paused` on enum `Subscription.status` + * Add support for new values `customer.subscription.paused` and `customer.subscription.resumed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + * Add support for new value `funding_reversed` on enum `CustomerCashBalanceTransaction.type` + +* [#1670](https://github.com/stripe/stripe-node/pull/1670) Change default entrypoint to stripe.node +* [#1668](https://github.com/stripe/stripe-node/pull/1668) Use EventTarget in worker / browser runtimes +* [#1667](https://github.com/stripe/stripe-node/pull/1667) fix: added support for TypeScript "NodeNext" module resolution + +## 11.8.0 - 2023-01-26 +* [#1665](https://github.com/stripe/stripe-node/pull/1665) API Updates + * Add support for new value `BE` on enums `Checkout.Session.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country`, and `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer.eu_bank_transfer.country` + * Add support for new values `cs-CZ`, `el-GR`, `en-CZ`, and `en-GR` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` +* [#1660](https://github.com/stripe/stripe-node/pull/1660) Introduce separate entry point for worker environments + * This is technically a breaking change that explicitly defines package entry points and was mistakenly released in a minor version. If your application previously imported other internal files from stripe-node and this change breaks it, please open an issue detailing your use case. + +## 11.7.0 - 2023-01-19 +* [#1661](https://github.com/stripe/stripe-node/pull/1661) API Updates + * Add support for `verification_session` on `EphemeralKeyCreateParams` + * Add support for new values `refund.created` and `refund.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1647](https://github.com/stripe/stripe-node/pull/1647) Bump json5 from 2.2.1 to 2.2.3 + +## 11.6.0 - 2023-01-05 +* [#1646](https://github.com/stripe/stripe-node/pull/1646) API Updates + * Add support for `card_issuing` on `Issuing.Cardholder.individual` + +## 11.5.0 - 2022-12-22 +* [#1642](https://github.com/stripe/stripe-node/pull/1642) API Updates + * Add support for new value `merchant_default` on enums `CashBalanceUpdateParams.settings.reconciliation_mode`, `CustomerCreateParams.cash_balance.settings.reconciliation_mode`, and `CustomerUpdateParams.cash_balance.settings.reconciliation_mode` + * Add support for `using_merchant_default` on `CashBalance.settings` + * Change `Checkout.SessionCreateParams.cancel_url` to be optional + * Change type of `Checkout.Session.cancel_url` from `string` to `string | null` + +## 11.4.0 - 2022-12-15 +* [#1639](https://github.com/stripe/stripe-node/pull/1639) API Updates + * Add support for new value `invoice_overpaid` on enum `CustomerBalanceTransaction.type` +* [#1637](https://github.com/stripe/stripe-node/pull/1637) Update packages in examples/webhook-signing + +## 11.3.0 - 2022-12-08 +* [#1634](https://github.com/stripe/stripe-node/pull/1634) API Updates + * Change `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` to be optional + +## 11.2.0 - 2022-12-06 +* [#1632](https://github.com/stripe/stripe-node/pull/1632) API Updates + * Add support for `flow_data` on `BillingPortal.SessionCreateParams` + * Add support for `flow` on `BillingPortal.Session` +* [#1631](https://github.com/stripe/stripe-node/pull/1631) API Updates + * Add support for `india_international_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `invoice_creation` on `Checkout.Session` and `Checkout.SessionCreateParams` + * Add support for `invoice` on `Checkout.Session` + * Add support for `metadata` on `SubscriptionSchedule.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, and `SubscriptionScheduleUpdateParams.phases[].items[]` +* [#1630](https://github.com/stripe/stripe-node/pull/1630) Remove BASIC_METHODS from TS definitions +* [#1629](https://github.com/stripe/stripe-node/pull/1629) Narrower type for stripe.invoices.retrieveUpcoming() +* [#1627](https://github.com/stripe/stripe-node/pull/1627) remove unneeded IIFE +* [#1625](https://github.com/stripe/stripe-node/pull/1625) Remove API version from the path +* [#1626](https://github.com/stripe/stripe-node/pull/1626) Move child resource method params next to method declarations +* [#1624](https://github.com/stripe/stripe-node/pull/1624) Split resource and service types + +## 11.1.0 - 2022-11-17 +* [#1623](https://github.com/stripe/stripe-node/pull/1623) API Updates + * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.wechat_pay_display_qr_code` +* [#1622](https://github.com/stripe/stripe-node/pull/1622) API Updates + * Add support for `custom_text` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code` + + +## 11.0.0 - 2022-11-16 + +This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-11-15 + +"āš ļø" symbol highlights breaking changes. + +* [#1608](https://github.com/stripe/stripe-node/pull/1608) Next major release changes +* [#1619](https://github.com/stripe/stripe-node/pull/1619) Annotate prototypes with types +* [#1612](https://github.com/stripe/stripe-node/pull/1612) Add type information here and there +* [#1615](https://github.com/stripe/stripe-node/pull/1615) API Updates + * āš ļø Remove support for `tos_shown_and_accepted` on `Checkout.SessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked. + +### āš ļø Changed +* Drop support for Node.js 8 and 10. We now support Node.js 12+. ((#1579) +* Change `StripeSignatureVerificationError` to have `header` and `payload` fields instead of `detail`. To access these properties, use `err.header` and `err.payload` instead of `err.detail.header` and `err.detail.payload`. (#1574) + +### āš ļø Removed +* Remove `Orders` resource. (#1580) +* Remove `SKU` resource (#1583) +* Remove deprecated `Checkout.SessionCreateParams.subscription_data.items`. (#1580) +* Remove deprecated configuration setter methods (`setHost`, `setProtocol`, `setPort`, `setApiVersion`, `setApiKey`, `setTimeout`, `setAppInfo`, `setHttpAgent`, `setMaxNetworkRetries`, and `setTelemetryEnabled`). (#1597) + + Use the config object to set these options instead, for example: + ```typescript + const stripe = Stripe('sk_test_...', { + apiVersion: '2019-08-08', + maxNetworkRetries: 1, + httpAgent: new ProxyAgent(process.env.http_proxy), + timeout: 1000, + host: 'api.example.com', + port: 123, + telemetry: true, + }); + ``` +* Remove deprecated basic method definitions. (#1600) + Use basic methods defined on the resource instead. + ```typescript + // Before + basicMethods: true + + // After + create: stripeMethod({ + method: 'POST', + fullPath: '/v1/resource', + }), + list: stripeMethod({ + method: 'GET', + methodType: 'list', + fullPath: '/v1/resource', + }), + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v1/resource/{id}', + }), + update: stripeMethod({ + method: 'POST', + fullPath: '/v1/resource/{id}', + }), + // Avoid 'delete' keyword in JS + del: stripeMethod({ + method: 'DELETE', + fullPath: '/v1/resource/{id}', + }), + ``` +* Remove deprecated option names. Use the following option names instead (`OLD`->`NEW`): `api_key`->`apiKey`, `idempotency_key`->`idempotencyKey`, `stripe_account`->`stripeAccount`, `stripe_version`->`apiVersion`, `stripeVersion`->`apiVersion`. (#1600) +* Remove `charges` field on `PaymentIntent` and replace it with `latest_charge`. (#1614 ) +* Remove deprecated `amount` field on `Checkout.Session.LineItem`. (#1614 ) +* Remove support for `tos_shown_and_accepted` on `Checkout.Session.PaymentMethodOptions.Paynow`. (#1614 ) + +## 10.17.0 - 2022-11-08 +* [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates + * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `eg_tin`, `ph_tin`, and `tr_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `reason_message` on `Issuing.Authorization.request_history[]` + * Add support for new value `webhook_error` on enum `Issuing.Authorization.request_history[].reason` + +## 10.16.0 - 2022-11-03 +* [#1596](https://github.com/stripe/stripe-node/pull/1596) API Updates + * Add support for `on_behalf_of` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription` + * Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]` + +## 10.15.0 - 2022-10-20 +* [#1588](https://github.com/stripe/stripe-node/pull/1588) API Updates + * Add support for new values `jp_trn` and `ke_pin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `jp_trn` and `ke_pin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `OrderCreateParams.tax_details.tax_ids[].type`, `OrderUpdateParams.tax_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `tipping` on `Terminal.Reader.action.process_payment_intent.process_config` and `Terminal.ReaderProcessPaymentIntentParams.process_config` +* [#1585](https://github.com/stripe/stripe-node/pull/1585) use native UUID method if available + +## 10.14.0 - 2022-10-13 +* [#1582](https://github.com/stripe/stripe-node/pull/1582) API Updates + * Add support for new values `invalid_representative_country` and `verification_failed_residential_address` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` + * Add support for `request_log_url` on `StripeError` objects + * Add support for `network_data` on `Issuing.Authorization` + * āš ļø Remove `currency`, `description`, `images`, and `name` from `Checkout.SessionCreateParams`. These properties do not work on the latest API version. (fixes #1575) + +## 10.13.0 - 2022-10-06 +* [#1571](https://github.com/stripe/stripe-node/pull/1571) API Updates + * Add support for new value `invalid_dob_age_under_18` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` + * Add support for new value `bank_of_china` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethod.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank` + * Add support for new values `America/Nuuk`, `Europe/Kyiv`, and `Pacific/Kanton` on enum `Reporting.ReportRunCreateParams.parameters.timezone` + * Add support for `klarna` on `SetupAttempt.payment_method_details` +* [#1570](https://github.com/stripe/stripe-node/pull/1570) Update node-fetch to 2.6.7 +* [#1568](https://github.com/stripe/stripe-node/pull/1568) Upgrade dependencies +* [#1567](https://github.com/stripe/stripe-node/pull/1567) Fix release tag calculation + +## 10.12.0 - 2022-09-29 +* [#1564](https://github.com/stripe/stripe-node/pull/1564) API Updates + * Change type of `Charge.payment_method_details.card_present.incremental_authorization_supported` and `Charge.payment_method_details.card_present.overcapture_supported` from `boolean | null` to `boolean` + * Add support for `created` on `Checkout.Session` + * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix` + * Deprecate `Checkout.SessionCreateParams.subscription_data.items` (use the `line_items` param instead). This will be removed in the next major version. +* [#1563](https://github.com/stripe/stripe-node/pull/1563) Migrate other Stripe infrastructure to TS +* [#1562](https://github.com/stripe/stripe-node/pull/1562) Restore lib after generating +* [#1551](https://github.com/stripe/stripe-node/pull/1551) Re-introduce Typescript changes + +## 10.11.0 - 2022-09-22 +* [#1560](https://github.com/stripe/stripe-node/pull/1560) API Updates + * Add support for `terms_of_service` on `Checkout.Session.consent_collection`, `Checkout.Session.consent`, `Checkout.SessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection` + * āš ļø Remove support for `plan` on `Checkout.SessionCreateParams.payment_method_options.card.installments`. The property was mistakenly released and never worked. + * Add support for `statement_descriptor` on `PaymentIntentIncrementAuthorizationParams` + * Change `SubscriptionSchedule.phases[].currency` to be required + + +## 10.10.0 - 2022-09-15 +* [#1552](https://github.com/stripe/stripe-node/pull/1552) API Updates + * Add support for `pix` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `pix` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new value `pix` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for `from_invoice` on `InvoiceCreateParams` and `Invoice` + * Add support for `latest_revision` on `Invoice` + * Add support for `amount` on `Issuing.DisputeCreateParams` and `Issuing.DisputeUpdateParams` + * Add support for new value `pix` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for `pix_display_qr_code` on `PaymentIntent.next_action` + * Add support for new value `pix` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for new value `pix` on enum `PaymentMethodCreateParams.type` + * Add support for new value `pix` on enum `PaymentMethod.type` + * Add support for `created` on `Treasury.CreditReversal` and `Treasury.DebitReversal` + +## 10.9.0 - 2022-09-09 +* [#1549](https://github.com/stripe/stripe-node/pull/1549) API Updates + * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` + * Add support for `require_signature` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` + +## 10.8.0 - 2022-09-07 +* [#1544](https://github.com/stripe/stripe-node/pull/1544) API Updates + * Add support for new value `terminal_reader_splashscreen` on enums `File.purpose` and `FileListParams.purpose` + +## 10.7.0 - 2022-08-31 +* [#1540](https://github.com/stripe/stripe-node/pull/1540) API Updates + * Add support for new values `de-CH`, `en-CH`, `en-PL`, `en-PT`, `fr-CH`, `it-CH`, `pl-PL`, and `pt-PT` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + * Add support for `description` on `PaymentLink.subscription_data` and `PaymentLinkCreateParams.subscription_data` + +## 10.6.0 - 2022-08-26 +* [#1534](https://github.com/stripe/stripe-node/pull/1534) API Updates + * Change `Account.company.name`, `Charge.refunds`, `PaymentIntent.charges`, `Product.caption`, `Product.statement_descriptor`, `Product.unit_label`, `Terminal.Configuration.tipping.aud.fixed_amounts`, `Terminal.Configuration.tipping.aud.percentages`, `Terminal.Configuration.tipping.cad.fixed_amounts`, `Terminal.Configuration.tipping.cad.percentages`, `Terminal.Configuration.tipping.chf.fixed_amounts`, `Terminal.Configuration.tipping.chf.percentages`, `Terminal.Configuration.tipping.czk.fixed_amounts`, `Terminal.Configuration.tipping.czk.percentages`, `Terminal.Configuration.tipping.dkk.fixed_amounts`, `Terminal.Configuration.tipping.dkk.percentages`, `Terminal.Configuration.tipping.eur.fixed_amounts`, `Terminal.Configuration.tipping.eur.percentages`, `Terminal.Configuration.tipping.gbp.fixed_amounts`, `Terminal.Configuration.tipping.gbp.percentages`, `Terminal.Configuration.tipping.hkd.fixed_amounts`, `Terminal.Configuration.tipping.hkd.percentages`, `Terminal.Configuration.tipping.myr.fixed_amounts`, `Terminal.Configuration.tipping.myr.percentages`, `Terminal.Configuration.tipping.nok.fixed_amounts`, `Terminal.Configuration.tipping.nok.percentages`, `Terminal.Configuration.tipping.nzd.fixed_amounts`, `Terminal.Configuration.tipping.nzd.percentages`, `Terminal.Configuration.tipping.sek.fixed_amounts`, `Terminal.Configuration.tipping.sek.percentages`, `Terminal.Configuration.tipping.sgd.fixed_amounts`, `Terminal.Configuration.tipping.sgd.percentages`, `Terminal.Configuration.tipping.usd.fixed_amounts`, `Terminal.Configuration.tipping.usd.percentages`, `Treasury.FinancialAccount.active_features`, `Treasury.FinancialAccount.pending_features`, `Treasury.FinancialAccount.platform_restrictions`, and `Treasury.FinancialAccount.restricted_features` to be optional + * This is a bug fix. These fields were all actually optional and not guaranteed to be returned by the Stripe API, however the type annotations did not correctly reflect this. + * Fixes https://github.com/stripe/stripe-node/issues/1518. + * Add support for `login_page` on `BillingPortal.Configuration`, `BillingPortal.ConfigurationCreateParams`, and `BillingPortal.ConfigurationUpdateParams` + * Add support for new value `deutsche_bank_ag` on enums `Charge.payment_method_details.eps.bank`, `PaymentIntentConfirmParams.payment_method_data.eps.bank`, `PaymentIntentCreateParams.payment_method_data.eps.bank`, `PaymentIntentUpdateParams.payment_method_data.eps.bank`, `PaymentMethod.eps.bank`, `PaymentMethodCreateParams.eps.bank`, `SetupIntentConfirmParams.payment_method_data.eps.bank`, `SetupIntentCreateParams.payment_method_data.eps.bank`, and `SetupIntentUpdateParams.payment_method_data.eps.bank` + * Add support for `customs` and `phone_number` on `Issuing.Card.shipping` and `Issuing.CardCreateParams.shipping` + * Add support for `description` on `Quote.subscription_data`, `QuoteCreateParams.subscription_data`, `QuoteUpdateParams.subscription_data`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, and `SubscriptionScheduleUpdateParams.phases[]` + +* [#1532](https://github.com/stripe/stripe-node/pull/1532) Update coveralls step to run for one node version, remove finish step +* [#1531](https://github.com/stripe/stripe-node/pull/1531) Regen yarn.lock. + +## 10.5.0 - 2022-08-24 +* [#1527](https://github.com/stripe/stripe-node/pull/1527) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests. +* [#1528](https://github.com/stripe/stripe-node/pull/1528) Update README.md to use a new NOTE notation +* [#1526](https://github.com/stripe/stripe-node/pull/1526) Add test coverage using Coveralls + +## 10.4.0 - 2022-08-23 +* [#1520](https://github.com/stripe/stripe-node/pull/1520) Add beta readme.md section +* [#1524](https://github.com/stripe/stripe-node/pull/1524) API Updates + * Change `Terminal.Reader.action` to be required + * Change `Treasury.OutboundTransferCreateParams.destination_payment_method` to be optional + * Change type of `Treasury.OutboundTransfer.destination_payment_method` from `string` to `string | null` + * Change the return type of `Customer.fundCashBalance` test helper from `CustomerBalanceTransaction` to `CustomerCashBalanceTransaction`. + * This would generally be considered a breaking change, but we've worked with all existing users to migrate and are comfortable releasing this as a minor as it is solely a test helper method. This was essentially broken prior to this change. + + +## 10.3.0 - 2022-08-19 +* [#1516](https://github.com/stripe/stripe-node/pull/1516) API Updates + * Add support for new resource `CustomerCashBalanceTransaction` + * Remove support for value `paypal` from enums `Order.payment.settings.payment_method_types[]`, `OrderCreateParams.payment.settings.payment_method_types[]`, and `OrderUpdateParams.payment.settings.payment_method_types[]` + * Add support for `currency` on `PaymentLink` + * Add support for `network` on `SetupIntentConfirmParams.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `Subscription.payment_settings.payment_method_options.card`, `SubscriptionCreateParams.payment_settings.payment_method_options.card`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card` + * Change `Subscription.currency` to be required + * Change type of `Topup.source` from `Source` to `Source | null` + * Add support for new value `customer_cash_balance_transaction.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1515](https://github.com/stripe/stripe-node/pull/1515) Add a support section to the readme + +## 10.2.0 - 2022-08-11 +* [#1510](https://github.com/stripe/stripe-node/pull/1510) API Updates + * Add support for `payment_method_collection` on `Checkout.Session`, `Checkout.SessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + + +## 10.1.0 - 2022-08-09 +* [#1506](https://github.com/stripe/stripe-node/pull/1506) API Updates + * Add support for `process_config` on `Terminal.Reader.action.process_payment_intent` +* [#1505](https://github.com/stripe/stripe-node/pull/1505) Simplify AddressParam definitions + - Rename `AddressParam` to `ShippingAddressParam`, and change type of `Source.source_order.shipping.address`, `SourceUpdateParams.SourceOrder.Shipping.address`, and `SessionCreateParams.PaymentIntentData.Shipping.address` to `ShippingAddressParam` + - Rename `AccountAddressParam` go `AddressParam`, and change type of `AccountCreateParams.BusinessProfile.support_address`, `AccountCreateParams.Company.address`, `AccountCreateParams.Individual.address `, `AccountCreateParams.Individual.registered_address`, `AccountUpdateParams.BusinessProfile.support_address`, `AccountUpdateParams.Company.address`, `AccountUpdateParams.Individual.address`, `AccountUpdateParams.Individual.registered_address`, `ChargeCreateParams.Shipping.address`, `ChargeUpdateParams.Shipping.address`, `CustomerCreateParams.Shipping.address`, `CustomerUpdateParams.Shipping.address`, `CustomerSourceUpdateParams.Owner.address`, `InvoiceListUpcomingLinesParams.CustomerDetails.Shipping.address`, `InvoiceRetrieveUpcomingParams.CustomerDetails.Shipping.address`, `OrderCreateParams.BillingDetails.address`, `OrderCreateParams.ShippingDetails.address`, `OrderUpdateParams.BillingDetails.address`, `OrderUpdateParams.ShippingDetails.address`, `PaymentIntentCreateParams.Shipping.address`, `PaymentIntentUpdateParams.Shipping.address`, `PaymentIntentConfirmParams.Shipping.address`, `PersonCreateParams.address`, `PersonCreateParams.registered_address`, `PersonUpdateParams.address`, `PersonUpdateParams.registered_address`, `SourceCreateParams.Owner.address`, `SourceUpdateParams.Owner.address`, `TokenCreateParams.Account.Company.address`, `TokenCreateParams.Account.Individual.address`, `TokenCreateParams.Account.Individual.registered_address`, `TokenCreateParams.Person.address`, `TokenCreateParams.Person.registered_address`, and `Terminal.LocationUpdateParams.address` to `AddressParam` +* [#1503](https://github.com/stripe/stripe-node/pull/1503) API Updates + * Add support for `expires_at` on `Apps.Secret` and `Apps.SecretCreateParams` + +## 10.0.0 - 2022-08-02 + +This release includes breaking changes resulting from: + +* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-08-01 +* Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v10. + +"āš ļø" symbol highlights breaking changes. + +* [#1497](https://github.com/stripe/stripe-node/pull/1497) API Updates +* [#1493](https://github.com/stripe/stripe-node/pull/1493) Next major release changes + +### Added +* Add support for new value `invalid_tos_acceptance` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code` +* Add support for `shipping_cost` and `shipping_details` on `Checkout.Session` + +### āš ļø Changed +* Change type of `business_profile`, `business_type`, `country`, `default_currency`, and `settings` properties on `Account` resource to be nullable. +* Change type of `currency` property on `Checkout.Session` resource from `string` to `'cad' | 'usd'`. +* Change location of TypeScript definitions for `CreditNoteLineItemListPreviewParams`, `CreditNoteLineItemListPreviewParams.Line`, `CreditNoteLineItemListPreviewParams.Line.Type`, and `CreditNoteLineItemListPreviewParams.Line.Reason` interfaces from `CreditNoteLineItems.d.ts` to `CreditNotes.d.ts`. +* Change type of `address`, `currency`, `delinquent`, `discount`, `invoice_prefix`, `name`, `phone`, and `preferred_locales` properties on `Customer` resource to be nullable. +* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. + +### āš ļø Removed +* Remove for `AlipayAccount`, `DeletedAlipayAccount`, `BitcoinReceiver`, `DeletedBitcoinReceiver`, `BitcoinTransaction`, and `BitcoinTransactionListParams` definitions. +* Remove `AlipayAccount` and `BitcoinReceiver` from `CustomerSource`. +* Remove `Stripe.DeletedAlipayAccount` and `Stripe.DeletedBitcoinReceiver` from possible values of `source` property in `PaymentIntent`. +* Remove `IssuerFraudRecord`, `IssuerFraudRecordRetrieveParams`, `IssuerFraudRecordListParams`, and `IssuerFraudRecordsResource`, definitions. +* Remove `treasury.received_credit.reversed` webhook event constant. Please use `treasury.received_credit.returned` instead. +* Remove `order.payment_failed`, `transfer.failed`, and `transfer.paid`. The events were deprecated. +* Remove `retrieveDetails` method from `Issuing.Card` resource. The method was unsupported. Read more at https://stripe.com/docs/issuing/cards/virtual. +* Remove `Issuing.CardDetails` and `CardRetrieveDetailsParams` definition. +* Remove `IssuerFraudRecords` resource. +* Remove `Recipient` resource and`recipient` property from `Card` resource. +* Remove `InvoiceMarkUncollectibleParams` definition. +* Remove deprecated `Stripe.Errors` and `StripeError` (and derived `StripeCardError`, `StripeInvalidRequestError`, `StripeAPIError`, `StripeAuthenticationError`, `StripePermissionError`, `StripeRateLimitError`, `StripeConnectionError`, `StripeSignatureVerificationError`, `StripeIdempotencyError`, and `StripeInvalidGrantError`) definitions. +* Remove `redirect_url` from `LoginLinks` definition. The property is no longer supported. +* Remove `LineItemListParams` definition. The interface was no longer in use. + +### āš ļø Renamed +* Rename `listUpcomingLineItems` method on `Invoice` resource to `listUpcomingLines`. +* Rename `InvoiceLineItemListUpcomingParams` to `InvoiceListUpcomingLinesParams`. +* Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`. + +## 9.16.0 - 2022-07-26 +* [#1492](https://github.com/stripe/stripe-node/pull/1492) API Updates + * Add support for new value `exempted` on enums `Charge.payment_method_details.card.three_d_secure.result` and `SetupAttempt.payment_method_details.card.three_d_secure.result` + * Add support for `customer_balance` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for new value `customer_balance` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new values `en-CA` and `fr-CA` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + +## 9.15.0 - 2022-07-25 +* [#1486](https://github.com/stripe/stripe-node/pull/1486) API Updates + * Add support for `installments` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `Invoice.payment_settings.payment_method_options.card`, `InvoiceCreateParams.payment_settings.payment_method_options.card`, and `InvoiceUpdateParams.payment_settings.payment_method_options.card` + * Add support for `default_currency` and `invoice_credit_balance` on `Customer` + * Add support for `currency` on `InvoiceCreateParams` + * Add support for `default_mandate` on `Invoice.payment_settings`, `InvoiceCreateParams.payment_settings`, and `InvoiceUpdateParams.payment_settings` + * Add support for `mandate` on `InvoicePayParams` + * Add support for `product_data` on `OrderCreateParams.line_items[]` and `OrderUpdateParams.line_items[]` + + +## 9.14.0 - 2022-07-18 +* [#1477](https://github.com/stripe/stripe-node/pull/1477) API Updates + * Add support for `blik_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `blik` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Change type of `Checkout.Session.consent_collection.promotions`, `Checkout.SessionCreateParams.consent_collection.promotions`, `PaymentLink.consent_collection.promotions`, and `PaymentLinkCreateParams.consent_collection.promotions` from `literal('auto')` to `enum('auto'|'none')` + * Add support for new value `blik` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for new value `blik` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `blik` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new value `blik` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for new value `blik` on enum `PaymentMethodCreateParams.type` + * Add support for new value `blik` on enum `PaymentMethod.type` + * Add support for `cancel` method on `Subscriptions` resource. This has the same functionality as the `del` method - if you are on a version less than 9.14.0, please use `del`. +* [#1476](https://github.com/stripe/stripe-node/pull/1476) fix: Include trailing slash when passing empty query parameters. +* [#1475](https://github.com/stripe/stripe-node/pull/1475) Move @types/node to devDependencies + +## 9.13.0 - 2022-07-12 +* [#1473](https://github.com/stripe/stripe-node/pull/1473) API Updates + * Add support for `customer_details` on `Checkout.SessionListParams` + * Change `LineItem.amount_discount` and `LineItem.amount_tax` to be required + * Change `Transfer.source_type` to be optional and not nullable +* [#1471](https://github.com/stripe/stripe-node/pull/1471) Update readme to include a note on beta packages + +## 9.12.0 - 2022-07-07 +* [#1468](https://github.com/stripe/stripe-node/pull/1468) API Updates + * Add support for `currency` on `Checkout.SessionCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `PaymentLinkCreateParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `Subscription` + * Add support for `currency_options` on `Checkout.SessionCreateParams.shipping_options[].shipping_rate_data.fixed_amount`, `CouponCreateParams`, `CouponUpdateParams`, `Coupon`, `OrderCreateParams.shipping_cost.shipping_rate_data.fixed_amount`, `OrderUpdateParams.shipping_cost.shipping_rate_data.fixed_amount`, `PriceCreateParams`, `PriceUpdateParams`, `Price`, `ProductCreateParams.default_price_data`, `PromotionCode.restrictions`, `PromotionCodeCreateParams.restrictions`, `ShippingRate.fixed_amount`, and `ShippingRateCreateParams.fixed_amount` + * Add support for `restrictions` on `PromotionCodeUpdateParams` + * Add support for `fixed_amount` and `tax_behavior` on `ShippingRateUpdateParams` +* [#1467](https://github.com/stripe/stripe-node/pull/1467) API Updates + * Add support for `customer` on `Checkout.SessionListParams` and `RefundCreateParams` + * Add support for `currency` and `origin` on `RefundCreateParams` + * Add support for new values `financial_connections.account.created`, `financial_connections.account.deactivated`, `financial_connections.account.disconnected`, `financial_connections.account.reactivated`, and `financial_connections.account.refreshed_balance` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 9.11.0 - 2022-06-29 +* [#1462](https://github.com/stripe/stripe-node/pull/1462) API Updates + * Add support for `deliver_card`, `fail_card`, `return_card`, and `ship_card` test helper methods on resource `Issuing.Card` + * Change type of `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` from `literal('card')` to `enum` + * Add support for `hosted_regulatory_receipt_url` on `Treasury.ReceivedCredit` and `Treasury.ReceivedDebit` + +## 9.10.0 - 2022-06-23 +* [#1459](https://github.com/stripe/stripe-node/pull/1459) API Updates + * Add support for `capture_method` on `PaymentIntentConfirmParams` and `PaymentIntentUpdateParams` +* [#1458](https://github.com/stripe/stripe-node/pull/1458) API Updates + * Add support for `promptpay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `promptpay` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new value `promptpay` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `subtotal_excluding_tax` on `CreditNote` and `Invoice` + * Add support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem` + * Add support for new value `promptpay` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for `rendering_options` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for new value `promptpay` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for `total_excluding_tax` on `Invoice` + * Add support for `automatic_payment_methods` on `Order.payment.settings` + * Add support for new value `promptpay` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for `promptpay_display_qr_code` on `PaymentIntent.next_action` + * Add support for new value `promptpay` on enum `PaymentMethodCreateParams.type` + * Add support for new value `promptpay` on enum `PaymentMethod.type` +* [#1455](https://github.com/stripe/stripe-node/pull/1455) fix: Stop using path.join to create URLs. + +## 9.9.0 - 2022-06-17 +* [#1453](https://github.com/stripe/stripe-node/pull/1453) API Updates + * Add support for `fund_cash_balance` test helper method on resource `Customer` + * Add support for `statement_descriptor_prefix_kana` and `statement_descriptor_prefix_kanji` on `Account.settings.card_payments`, `Account.settings.payments`, `AccountCreateParams.settings.card_payments`, and `AccountUpdateParams.settings.card_payments` + * Add support for `statement_descriptor_suffix_kana` and `statement_descriptor_suffix_kanji` on `Checkout.Session.payment_method_options.card`, `Checkout.SessionCreateParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntentCreateParams.payment_method_options.card`, and `PaymentIntentUpdateParams.payment_method_options.card` + * Add support for `total_excluding_tax` on `CreditNote` + * Change type of `CustomerCreateParams.invoice_settings.rendering_options` and `CustomerUpdateParams.invoice_settings.rendering_options` from `rendering_options_param` to `emptyStringable(rendering_options_param)` + * Add support for `rendering_options` on `Customer.invoice_settings` and `Invoice` +* [#1452](https://github.com/stripe/stripe-node/pull/1452) Fix non-conforming changelog entries and port the Makefile fix +* [#1450](https://github.com/stripe/stripe-node/pull/1450) Only publish stable version to the latest tag + +## 9.8.0 - 2022-06-09 +* [#1448](https://github.com/stripe/stripe-node/pull/1448) Add types for extra request options +* [#1446](https://github.com/stripe/stripe-node/pull/1446) API Updates + * Add support for `treasury` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings` + * Add support for `rendering_options` on `CustomerCreateParams.invoice_settings` and `CustomerUpdateParams.invoice_settings` + * Add support for `eu_bank_transfer` on `CustomerCreateFundingInstructionsParams.bank_transfer`, `Invoice.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `InvoiceUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer`, `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer`, `Subscription.payment_settings.payment_method_options.customer_balance.bank_transfer`, `SubscriptionCreateParams.payment_settings.payment_method_options.customer_balance.bank_transfer`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.customer_balance.bank_transfer` + * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum('iban'|'sort_code'|'spei'|'zengin')` + * Change type of `CustomerCreateFundingInstructionsParams.bank_transfer.type`, `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntent.next_action.display_bank_transfer_instructions.type`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.type`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.type`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.type` from `literal('jp_bank_transfer')` to `enum('eu_bank_transfer'|'gb_bank_transfer'|'jp_bank_transfer'|'mx_bank_transfer')` + * Add support for `iban`, `sort_code`, and `spei` on `FundingInstructions.bank_transfer.financial_addresses[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[]` + * Add support for new values `bacs`, `fps`, and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks[]` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks[]` + * Add support for new values `sort_code` and `spei` on enums `FundingInstructions.bank_transfer.financial_addresses[].type` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].type` + * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum` + * Add support for `custom_unit_amount` on `PriceCreateParams` and `Price` + +## 9.7.0 - 2022-06-08 +* [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates + * Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.SessionCreateParams.payment_method_options` + * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.*` and `Checkout.SessionCreateParams.payment_method_options.*`, + * Change `PaymentMethod.us_bank_account.networks` and `SetupIntent.flow_directions` to be required + * Add support for `attach_to_self` on `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, and `SetupIntentUpdateParams` + * Add support for `flow_directions` on `SetupAttempt`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` + +## 9.6.0 - 2022-06-01 +* [#1439](https://github.com/stripe/stripe-node/pull/1439) API Updates + * Add support for `radar_options` on `ChargeCreateParams`, `Charge`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `account_holder_name`, `account_number`, `account_type`, `bank_code`, `bank_name`, `branch_code`, and `branch_name` on `FundingInstructions.bank_transfer.financial_addresses[].zengin` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin` + * Add support for new values `en-AU` and `en-NZ` on enums `OrderCreateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `OrderUpdateParams.payment.settings.payment_method_options.klarna.preferred_locale`, `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale` + * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.type` and `PaymentIntent.payment_method_options.customer_balance.bank_transfer.type` from `enum` to `literal('jp_bank_transfer')` + * This is technically breaking in Typescript, but now accurately represents the behavior that was allowed by the server. We haven't historically treated breaking Typescript changes as requiring a major. + * Change `PaymentIntent.next_action.display_bank_transfer_instructions.hosted_instructions_url` to be required + * Add support for `network` on `SetupIntent.payment_method_options.card` + * Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` + + +## 9.5.0 - 2022-05-26 +* [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates + * Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `id_number_secondary` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` + * Add support for new value `affirm` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.display_bank_transfer_instructions` + * Add support for `id_number_secondary_provided` on `Person` + * Add support for `card_issuing` on `Treasury.FinancialAccountCreateParams.features`, `Treasury.FinancialAccountUpdateFeaturesParams`, and `Treasury.FinancialAccountUpdateParams.features` + +* [#1432](https://github.com/stripe/stripe-node/pull/1432) docs: Update HttpClient documentation to remove experimental status. + +## 9.4.0 - 2022-05-23 +* [#1431](https://github.com/stripe/stripe-node/pull/1431) API Updates + * Add support for `treasury` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + +## 9.3.0 - 2022-05-23 +* [#1430](https://github.com/stripe/stripe-node/pull/1430) API Updates + * Add support for new resource `Apps.Secret` + * Add support for `affirm` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `link` on `Charge.payment_method_details`, `Mandate.payment_method_details`, `OrderCreateParams.payment.settings.payment_method_options`, `OrderUpdateParams.payment.settings.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for new values `affirm` and `link` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for new value `link` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new values `affirm` and `link` on enums `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `affirm` and `link` on enum `PaymentMethodCreateParams.type` + * Add support for new values `affirm` and `link` on enum `PaymentMethod.type` + +## 9.2.0 - 2022-05-19 +* [#1422](https://github.com/stripe/stripe-node/pull/1422) API Updates + * Add support for new `Treasury` APIs: `CreditReversal`, `DebitReversal`, `FinancialAccountFeatures`, `FinancialAccount`, `FlowDetails`, `InboundTransfer`, `OutboundPayment`, `OutboundTransfer`, `ReceivedCredit`, `ReceivedDebit`, `TransactionEntry`, and `Transaction` + * Add support for `treasury` on `Issuing.Authorization`, `Issuing.Dispute`, `Issuing.Transaction`, and `Issuing.DisputeCreateParams` + * Add support for `retrieve_payment_method` method on resource `Customer` + * Add support for `list_owners` and `list` methods on resource `FinancialConnections.Account` + * Change `BillingPortal.ConfigurationCreateParams.features.customer_update.allowed_updates` to be optional + * Change type of `BillingPortal.Session.return_url` from `string` to `nullable(string)` + * Add support for `afterpay_clearpay`, `au_becs_debit`, `bacs_debit`, `eps`, `fpx`, `giropay`, `grabpay`, `klarna`, `paynow`, and `sepa_debit` on `Checkout.Session.payment_method_options` + * Add support for `financial_account` on `Issuing.Card` and `Issuing.CardCreateParams` + * Add support for `client_secret` on `Order` + * Add support for `networks` on `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `PaymentMethod.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, and `SetupIntentUpdateParams.payment_method_options.us_bank_account` + * Add support for `attach_to_self` and `flow_directions` on `SetupIntent` + * Add support for `save_default_payment_method` on `Subscription.payment_settings`, `SubscriptionCreateParams.payment_settings`, and `SubscriptionUpdateParams.payment_settings` + * Add support for `czk` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` + +## 9.1.0 - 2022-05-11 +* [#1420](https://github.com/stripe/stripe-node/pull/1420) API Updates + * Add support for `description` on `Checkout.SessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` + * Add support for `consent_collection`, `payment_intent_data`, `shipping_options`, `submit_type`, and `tax_id_collection` on `PaymentLinkCreateParams` and `PaymentLink` + * Add support for `customer_creation` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink` + * Add support for `metadata` on `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, and `SubscriptionScheduleUpdateParams.phases[]` + * Add support for new value `billing_portal.session.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 9.0.0 - 2022-05-09 +Major version release - The [migration guide](https://github.com/stripe/stripe-node/wiki/Migration-Guide-for-v9) contains a detailed list of backwards-incompatible changes with upgrade instructions. +(āš ļø = breaking changes): +* āš ļø[#1336](https://github.com/stripe/stripe-node/pull/1336) feat(http-client): retry closed connection errors +* [#1415](https://github.com/stripe/stripe-node/pull/1415) [#1417](https://github.com/stripe/stripe-node/pull/1417) API Updates + * āš ļø Replace the legacy `Order` API with the new `Order` API. + * Resource modified: `Order`. + * New methods: `cancel`, `list_line_items`, `reopen`, and `submit` + * Removed methods: `pay` and `return_order` + * Removed resources: `OrderItem` and `OrderReturn` + * Removed references from other resources: `Charge.order` + * Add support for `amount_discount`, `amount_tax`, and `product` on `LineItem` + * Change type of `Charge.shipping.name`, `Checkout.Session.shipping.name`, `Customer.shipping.name`, `Invoice.customer_shipping.name`, `PaymentIntent.shipping.name`, `ShippingDetails.name`, and `Source.source_order.shipping.name` from `nullable(string)` to `string` + +## 8.222.0 - 2022-05-05 +* [#1414](https://github.com/stripe/stripe-node/pull/1414) API Updates + * Add support for `default_price_data` on `ProductCreateParams` + * Add support for `default_price` on `ProductUpdateParams` and `Product` + * Add support for `instructions_email` on `RefundCreateParams` and `Refund` + + +## 8.221.0 - 2022-05-05 +* [#1413](https://github.com/stripe/stripe-node/pull/1413) API Updates + * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session` + * Add support for `financial_connections` on `Checkout.Session.payment_method_options.us_bank_account`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.payment_method_options.us_bank_account`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account`, `PaymentIntentCreateParams.payment_method_options.us_bank_account`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account`, `SetupIntent.payment_method_options.us_bank_account`, `SetupIntentConfirmParams.payment_method_options.us_bank_account`, `SetupIntentCreateParams.payment_method_options.us_bank_account`, `SetupIntentUpdateParams.payment_method_options.us_bank_account`, `Subscription.payment_settings.payment_method_options.us_bank_account`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account` + * Add support for `financial_connections_account` on `PaymentIntentConfirmParams.payment_method_data.us_bank_account`, `PaymentIntentCreateParams.payment_method_data.us_bank_account`, `PaymentIntentUpdateParams.payment_method_data.us_bank_account`, `PaymentMethod.us_bank_account`, `PaymentMethodCreateParams.us_bank_account`, `SetupIntentConfirmParams.payment_method_data.us_bank_account`, `SetupIntentCreateParams.payment_method_data.us_bank_account`, and `SetupIntentUpdateParams.payment_method_data.us_bank_account` + +* [#1410](https://github.com/stripe/stripe-node/pull/1410) API Updates + * Add support for `registered_address` on `AccountCreateParams.individual`, `AccountUpdateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` + * Change type of `PaymentIntent.amount_details.tip.amount` from `nullable(integer)` to `integer` + * Change `PaymentIntent.amount_details.tip.amount` to be optional + * Add support for `payment_method_data` on `SetupIntentConfirmParams`, `SetupIntentCreateParams`, and `SetupIntentUpdateParams` +* [#1409](https://github.com/stripe/stripe-node/pull/1409) Update autoPagination tests to be hermetic. +* [#1411](https://github.com/stripe/stripe-node/pull/1411) Enable CI on beta branch + +## 8.220.0 - 2022-05-03 +* [#1407](https://github.com/stripe/stripe-node/pull/1407) API Updates + * Add support for new resource `CashBalance` + * Change type of `BillingPortal.Configuration.application` from `$Application` to `deletable($Application)` + * Add support for `alipay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options` + * Change type of `Checkout.SessionCreateParams.payment_method_options.konbini.expires_after_days` from `emptyStringable(integer)` to `integer` + * Add support for new value `eu_oss_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new value `eu_oss_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `cash_balance` on `Customer` + * Add support for `application` on `Invoice`, `Quote`, `SubscriptionSchedule`, and `Subscription` +* [#1403](https://github.com/stripe/stripe-node/pull/1403) Add tests for specifying a custom host on StripeMethod. + +## 8.219.0 - 2022-04-21 +* [#1398](https://github.com/stripe/stripe-node/pull/1398) API Updates + * Add support for `expire` test helper method on resource `Refund` + * Change type of `BillingPortal.Configuration.application` from `string` to `expandable($Application)` + * Change `Issuing.DisputeCreateParams.transaction` to be optional + +## 8.218.0 - 2022-04-18 +* [#1396](https://github.com/stripe/stripe-node/pull/1396) API Updates + * Add support for new resources `FundingInstructions` and `Terminal.Configuration` + * Add support for `create_funding_instructions` method on resource `Customer` + * Add support for new value `customer_balance` as a payment method `type`. + * Add support for `customer_balance` on `Charge.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` + * Add support for `cash_balance` on `CustomerCreateParams` and `CustomerUpdateParams` + * Add support for `amount_details` on `PaymentIntent` + * Add support for `display_bank_transfer_instructions` on `PaymentIntent.next_action` + * Add support for `configuration_overrides` on `Terminal.Location`, `Terminal.LocationCreateParams`, and `Terminal.LocationUpdateParams` + +## 8.217.0 - 2022-04-13 +* [#1395](https://github.com/stripe/stripe-node/pull/1395) API Updates + * Add support for `increment_authorization` method on resource `PaymentIntent` + * Add support for `incremental_authorization_supported` on `Charge.payment_method_details.card_present` + * Add support for `request_incremental_authorization_support` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` + +## 8.216.0 - 2022-04-08 +* [#1391](https://github.com/stripe/stripe-node/pull/1391) API Updates + * Add support for `apply_customer_balance` method on resource `PaymentIntent` + * Add support for new value `cash_balance.funds_available` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 8.215.0 - 2022-04-01 +* [#1389](https://github.com/stripe/stripe-node/pull/1389) API Updates + * Add support for `bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `capture_before` on `Charge.payment_method_details.card_present` + * Add support for `address` and `name` on `Checkout.Session.customer_details` + * Add support for `customer_balance` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + * Add support for new value `customer_balance` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for `request_extended_authorization` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present` + * Add support for new values `payment_intent.partially_funded`, `terminal.reader.action_failed`, and `terminal.reader.action_succeeded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +* [#1388](https://github.com/stripe/stripe-node/pull/1388) Stop sending Content-Length header for verbs which don't have bodies. + * Fixes https://github.com/stripe/stripe-node/issues/1360. + +## 8.214.0 - 2022-03-30 +* [#1386](https://github.com/stripe/stripe-node/pull/1386) API Updates + * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader` + * Change `Charge.failure_balance_transaction`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.next_action.verify_with_microdeposits.microdeposit_type`, `SetupIntent.next_action.verify_with_microdeposits.microdeposit_type`, and `Subscription.payment_settings.payment_method_options.us_bank_account` to be required + * Add support for `action` on `Terminal.Reader` + +## 8.213.0 - 2022-03-28 +* [#1383](https://github.com/stripe/stripe-node/pull/1383) API Updates + * Add support for Search API + * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription` +* [#1384](https://github.com/stripe/stripe-node/pull/1384) Bump qs package to latest. + +## 8.212.0 - 2022-03-25 +* [#1381](https://github.com/stripe/stripe-node/pull/1381) API Updates + * Add support for PayNow and US Bank Accounts Debits payments + * **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details)) + * Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details` + * **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type)) + * Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type` + * **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options)) + * Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * Add support for `paynow_display_qr_code` on `PaymentIntent.next_action` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` + * **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options)) + * Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams` + * **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details)) + * Add support for `us_bank_account` on `SetupAttempt.payment_method_details` + * **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow)) + * Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams` + * Add support for `us_bank_account` on `PaymentMethodUpdateParams` + * Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type` + * **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types)) + * Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `Checkout.SessionCreateParams` + * Add support for new values `paynow` and `us_bank_account` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types)) + * Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams` + * **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types)) + * Add support for `us_bank_account` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options` + * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams` + * **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities)) + * Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams` + * Add support for `failure_balance_transaction` on `Charge` + * Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on + `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options-afterpay_clearpay-capture_method)) + * Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits)) + * Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent` + * Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams` + * Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock)) +* [#1375](https://github.com/stripe/stripe-node/pull/1375) Update error types to be namespaced under Stripe.error +* [#1380](https://github.com/stripe/stripe-node/pull/1380) Force update minimist dependency + +## 8.211.0 - 2022-03-23 +* [#1377](https://github.com/stripe/stripe-node/pull/1377) API Updates + * Add support for `cancel` method on resource `Refund` + * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Change `InvoiceCreateParams.customer` to be optional + * Add support for `test_clock` on `QuoteListParams` + * Add support for new values `test_helpers.test_clock.advancing`, `test_helpers.test_clock.created`, `test_helpers.test_clock.deleted`, `test_helpers.test_clock.internal_failure`, and `test_helpers.test_clock.ready` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + +## 8.210.0 - 2022-03-18 +* [#1372](https://github.com/stripe/stripe-node/pull/1372) API Updates + * Add support for `status` on `Card` + +## 8.209.0 - 2022-03-11 +* [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates + * Add support for `mandate` on `Charge.payment_method_details.card` + * Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card` + * Add support for `card_await_notification` on `PaymentIntent.next_action` + * Add support for `customer_notification` on `PaymentIntent.processing.card` + * Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams` + +* [#1364](https://github.com/stripe/stripe-node/pull/1364) Update search pagination to use page param instead of next_page. + +## 8.208.0 - 2022-03-09 +* [#1366](https://github.com/stripe/stripe-node/pull/1366) API Updates + * Add support for `test_clock` on `CustomerListParams` + * Change `Invoice.test_clock`, `InvoiceItem.test_clock`, `Quote.test_clock`, `Subscription.test_clock`, and `SubscriptionSchedule.test_clock` to be required + +## 8.207.0 - 2022-03-02 +* [#1363](https://github.com/stripe/stripe-node/pull/1363) API Updates + * Add support for new resources `CreditedItems` and `ProrationDetails` + * Add support for `proration_details` on `InvoiceLineItem` + +## 8.206.0 - 2022-03-01 +* [#1361](https://github.com/stripe/stripe-node/pull/1361) [#1362](https://github.com/stripe/stripe-node/pull/1362) API Updates + * Add support for new resource `TestHelpers.TestClock` + * Add support for `test_clock` on `CustomerCreateParams`, `Customer`, `Invoice`, `InvoiceItem`, `QuoteCreateParams`, `Quote`, `Subscription`, and `SubscriptionSchedule` + * Add support for `pending_invoice_items_behavior` on `InvoiceCreateParams` + * Change type of `ProductUpdateParams.url` from `string` to `emptyStringable(string)` + * Add support for `next_action` on `Refund` + +## 8.205.0 - 2022-02-25 +* [#1098](https://github.com/stripe/stripe-node/pull/1098) Typescript: add declaration for `onDone` on `autoPagingEach` +* [#1357](https://github.com/stripe/stripe-node/pull/1357) Properly handle API errors with unknown error types +* [#1359](https://github.com/stripe/stripe-node/pull/1359) API Updates + * Change `BillingPortal.Configuration` `.business_profile.privacy_policy_url` and `.business_profile.terms_of_service_url` to be optional on requests and responses + + * Add support for `konbini_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` + * Add support for `konbini` on `Charge.payment_method_details`, + * Add support for `.payment_method_options.konbini` and `.payment_method_data.konbini` on the `PaymentIntent` API. + * Add support for `.payment_settings.payment_method_options.konbini` on the `Invoice` API. + * Add support for `.payment_method_options.konbini` on the `Subscription` API + * Add support for `.payment_method_options.konbini` on the `Checkout.Session` API + * Add support for `konbini` on the `PaymentMethod` API. + * Add support for `konbini_display_details` on `PaymentIntent.next_action` +* [#1311](https://github.com/stripe/stripe-node/pull/1311) update documentation to use appInfo + +## 8.204.0 - 2022-02-23 +* [#1354](https://github.com/stripe/stripe-node/pull/1354) API Updates + * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.*` + * Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` + * Add support for `object` on `ExternalAccountListParams` (fixes #1351) + +## 8.203.0 - 2022-02-15 +* [#1350](https://github.com/stripe/stripe-node/pull/1350) API Updates + * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent` + * Add support for new value `grabpay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` +* [#1348](https://github.com/stripe/stripe-node/pull/1348) API Updates + * Add support for `pin` on `Issuing.CardUpdateParams` + +## 8.202.0 - 2022-02-03 +* [#1344](https://github.com/stripe/stripe-node/pull/1344) API Updates + * Add support for new value `au_becs_debit` on enum `Checkout.SessionCreateParams.payment_method_types[]` + * Change type of `Refund.reason` from `string` to `enum('duplicate'|'expired_uncaptured_charge'|'fraudulent'|'requested_by_customer')` + +## 8.201.0 - 2022-01-28 +* [#1342](https://github.com/stripe/stripe-node/pull/1342) Bump nanoid from 3.1.20 to 3.2.0. +* [#1335](https://github.com/stripe/stripe-node/pull/1335) Fix StripeResource to successfully import TIMEOUT_ERROR_CODE. +* [#1339](https://github.com/stripe/stripe-node/pull/1339) Bump node-fetch from 2.6.2 to 2.6.7 + +## 8.200.0 - 2022-01-25 +* [#1338](https://github.com/stripe/stripe-node/pull/1338) API Updates + * Change `Checkout.Session.payment_link` to be required + * Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink` + * Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + * Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new value `is_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + +* [#1333](https://github.com/stripe/stripe-node/pull/1333) Customer tax_ids is not included by default + +## 8.199.0 - 2022-01-20 +* [#1332](https://github.com/stripe/stripe-node/pull/1332) API Updates + * Add support for new resource `PaymentLink` + * Add support for `payment_link` on `Checkout.Session` + +## 8.198.0 - 2022-01-19 +* [#1331](https://github.com/stripe/stripe-node/pull/1331) API Updates + * Change type of `Charge.status` from `string` to `enum('failed'|'pending'|'succeeded')` + * Add support for `bacs_debit` and `eps` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Add support for `image_url_png` and `image_url_svg` on `PaymentIntent.next_action.wechat_pay_display_qr_code` + +## 8.197.0 - 2022-01-13 +* [#1329](https://github.com/stripe/stripe-node/pull/1329) API Updates + * Add support for `paid_out_of_band` on `Invoice` + +## 8.196.0 - 2022-01-12 +* [#1328](https://github.com/stripe/stripe-node/pull/1328) API Updates + * Add support for `customer_creation` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `fpx` and `grabpay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` +* [#1315](https://github.com/stripe/stripe-node/pull/1315) API Updates + * Add support for `mandate_options` on `SubscriptionCreateParams.payment_settings.payment_method_options.card`, `SubscriptionUpdateParams.payment_settings.payment_method_options.card`, and `Subscription.payment_settings.payment_method_options.card` +* [#1327](https://github.com/stripe/stripe-node/pull/1327) Remove DOM type references. +* [#1325](https://github.com/stripe/stripe-node/pull/1325) Add comment documenting makeRequest#headers type. + +## 8.195.0 - 2021-12-22 +* [#1314](https://github.com/stripe/stripe-node/pull/1314) API Updates + * Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Change type of `PaymentIntent.processing.type` from `string` to `literal('card')`. This is not considered a breaking change as the field was added in the same release. +* [#1313](https://github.com/stripe/stripe-node/pull/1313) API Updates + * Add support for new values `en-FR`, `es-US`, and `fr-FR` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` + * Add support for `boleto` on `SetupAttempt.payment_method_details` + +* [#1312](https://github.com/stripe/stripe-node/pull/1312) API Updates + * Add support for `processing` on `PaymentIntent` + +## 8.194.0 - 2021-12-15 +* [#1309](https://github.com/stripe/stripe-node/pull/1309) API Updates + * Add support for new resource `PaymentIntentTypeSpecificPaymentMethodOptionsClient` + * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, and `PaymentIntent.payment_method_options.card` + +## 8.193.0 - 2021-12-09 +* [#1308](https://github.com/stripe/stripe-node/pull/1308) API Updates + * Add support for `metadata` on `BillingPortal.ConfigurationCreateParams`, `BillingPortal.ConfigurationUpdateParams`, and `BillingPortal.Configuration` + +## 8.192.0 - 2021-12-09 +* [#1307](https://github.com/stripe/stripe-node/pull/1307) API Updates + * Add support for new values `ge_vat` and `ua_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new values `ge_vat` and `ua_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Change type of `PaymentIntentCreateParams.payment_method_data.billing_details.email`, `PaymentIntentUpdateParams.payment_method_data.billing_details.email`, `PaymentIntentConfirmParams.payment_method_data.billing_details.email`, `PaymentMethodCreateParams.billing_details.email`, and `PaymentMethodUpdateParams.billing_details.email` from `string` to `emptyStringable(string)` + * Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Add support for new value `en-IE` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` +* [#1301](https://github.com/stripe/stripe-node/pull/1301) Remove coveralls from package.json +* [#1300](https://github.com/stripe/stripe-node/pull/1300) Fix broken link in docstring + +## 8.191.0 - 2021-11-19 +* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates + * Add support for `wallets` on `Issuing.Card` + +* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates + * Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + * Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` + +## 8.190.0 - 2021-11-17 +* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates + * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent` + + +## 8.189.0 - 2021-11-16 +* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates + * Add support for new resource `ShippingRate` + * Add support for `shipping_options` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `shipping_rate` on `Checkout.Session` + +## 8.188.0 - 2021-11-12 +* [#1293](https://github.com/stripe/stripe-node/pull/1293) API Updates + * Add support for new value `agrobank` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, and `PaymentMethod.fpx.bank` + +## 8.187.0 - 2021-11-11 +* [#1292](https://github.com/stripe/stripe-node/pull/1292) API Updates + * Add support for `expire` method on resource `Checkout.Session` + * Add support for `status` on `Checkout.Session` +* [#1288](https://github.com/stripe/stripe-node/pull/1288) Add SubtleCryptoProvider and update Webhooks to allow async crypto. +* [#1291](https://github.com/stripe/stripe-node/pull/1291) Better types in `lib.d.ts` + +## 8.186.1 - 2021-11-04 +* [#1284](https://github.com/stripe/stripe-node/pull/1284) API Updates + * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused. + * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company` + + +## 8.186.0 - 2021-11-01 +* [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates + * Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company` + * Add support for `proof_of_registration` on `AccountUpdateParams.documents` and `AccountCreateParams.documents` + * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account` + +## 8.185.0 - 2021-11-01 +* [#1282](https://github.com/stripe/stripe-node/pull/1282) API Updates + * Change type of `AccountUpdateParams.individual.full_name_aliases`, `AccountCreateParams.individual.full_name_aliases`, `PersonCreateParams.full_name_aliases`, `PersonUpdateParams.full_name_aliases`, `TokenCreateParams.account.individual.full_name_aliases`, and `TokenCreateParams.person.full_name_aliases` from `array(string)` to `emptyStringable(array(string))` + * Add support for new values `en-BE`, `en-ES`, and `en-IT` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale` + +## 8.184.0 - 2021-10-20 +* [#1276](https://github.com/stripe/stripe-node/pull/1276) API Updates + * Change `Account.controller.type` to be required + * Add support for `buyer_id` on `Charge.payment_method_details.alipay` +* [#1273](https://github.com/stripe/stripe-node/pull/1273) Add typed createFetchHttpClient function. + +## 8.183.0 - 2021-10-15 +* [#1272](https://github.com/stripe/stripe-node/pull/1272) API Updates + * Change type of `UsageRecordCreateParams.timestamp` from `integer` to `literal('now') | integer` + * Change `UsageRecordCreateParams.timestamp` to be optional + +## 8.182.0 - 2021-10-14 +* [#1271](https://github.com/stripe/stripe-node/pull/1271) API Updates + * Change `Charge.payment_method_details.klarna.payment_method_category`, `Charge.payment_method_details.klarna.preferred_locale`, `Checkout.Session.customer_details.phone`, and `PaymentMethod.klarna.dob` to be required + * Add support for new value `klarna` on enum `Checkout.SessionCreateParams.payment_method_types[]` + +## 8.181.0 - 2021-10-11 +* [#1269](https://github.com/stripe/stripe-node/pull/1269) API Updates + * Add support for `payment_method_category` and `preferred_locale` on `Charge.payment_method_details.klarna` + * Add support for new value `klarna` on enums `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` + * Add support for `klarna` on `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` + * Add support for new value `klarna` on enums `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, and `PaymentIntentConfirmParams.payment_method_data.type` + * Add support for new value `klarna` on enum `PaymentMethodCreateParams.type` + * Add support for new value `klarna` on enum `PaymentMethod.type` + +## 8.180.0 - 2021-10-11 +* [#1266](https://github.com/stripe/stripe-node/pull/1266) API Updates + * Add support for `list_payment_methods` method on resource `Customer` + +## 8.179.0 - 2021-10-07 +* [#1265](https://github.com/stripe/stripe-node/pull/1265) API Updates + * Add support for `phone_number_collection` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `phone` on `Checkout.Session.customer_details` + * Change `PaymentMethodListParams.customer` to be optional + * Add support for new value `customer_id` on enums `Radar.ValueListCreateParams.item_type` and `Radar.ValueList.item_type` + * Add support for new value `bbpos_wisepos_e` on enums `Terminal.ReaderListParams.device_type` and `Terminal.Reader.device_type` + +## 8.178.0 - 2021-09-29 +* [#1261](https://github.com/stripe/stripe-node/pull/1261) API Updates + * Add support for `klarna_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities` + +## 8.177.0 - 2021-09-28 +* [#1257](https://github.com/stripe/stripe-node/pull/1257) API Updates + * Add support for `amount_authorized` and `overcapture_supported` on `Charge.payment_method_details.card_present` +* [#1256](https://github.com/stripe/stripe-node/pull/1256) Bump up ansi-regex version to 5.0.1. +* [#1253](https://github.com/stripe/stripe-node/pull/1253) Update FetchHttpClient to make fetch function optional. + +## 8.176.0 - 2021-09-16 +* [#1248](https://github.com/stripe/stripe-node/pull/1248) API Updates + * Add support for `full_name_aliases` on `AccountUpdateParams.individual`, `AccountCreateParams.individual`, `PersonCreateParams`, `PersonUpdateParams`, `Person`, `TokenCreateParams.account.individual`, and `TokenCreateParams.person` +* [#1247](https://github.com/stripe/stripe-node/pull/1247) Update README.md +* [#1245](https://github.com/stripe/stripe-node/pull/1245) Fix StripeResource.extend type + +## 8.175.0 - 2021-09-15 +* [#1242](https://github.com/stripe/stripe-node/pull/1242) API Updates + * Change `BillingPortal.Configuration.features.subscription_cancel.cancellation_reason` to be required + * Add support for `default_for` on `Checkout.SessionCreateParams.payment_method_options.acss_debit.mandate_options`, `Checkout.Session.payment_method_options.acss_debit.mandate_options`, `Mandate.payment_method_details.acss_debit`, `SetupIntentCreateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.acss_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.acss_debit.mandate_options`, and `SetupIntent.payment_method_options.acss_debit.mandate_options` + * Add support for `acss_debit` on `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Invoice.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, `SubscriptionUpdateParams.payment_settings.payment_method_options`, and `Subscription.payment_settings.payment_method_options` + * Add support for new value `acss_debit` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]` + * Add support for `livemode` on `Reporting.ReportType` +* [#1235](https://github.com/stripe/stripe-node/pull/1235) API Updates + * Change `Account.future_requirements.alternatives`, `Account.requirements.alternatives`, `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Checkout.Session.after_expiration`, `Checkout.Session.consent`, `Checkout.Session.consent_collection`, `Checkout.Session.expires_at`, `Checkout.Session.recovered_from`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` to be required + * Change type of `Capability.future_requirements.alternatives`, `Capability.requirements.alternatives`, `Person.future_requirements.alternatives`, and `Person.requirements.alternatives` from `array(AccountRequirementsAlternative)` to `nullable(array(AccountRequirementsAlternative))` + * Add support for new value `rst` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type` + * Add support for new value `checkout.session.expired` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` +* [#1237](https://github.com/stripe/stripe-node/pull/1237) Add a CryptoProvider interface and NodeCryptoProvider implementation. +* [#1236](https://github.com/stripe/stripe-node/pull/1236) Add an HTTP client which uses fetch. + +## 8.174.0 - 2021-09-01 +* [#1231](https://github.com/stripe/stripe-node/pull/1231) API Updates + * Add support for `future_requirements` on `Account`, `Capability`, and `Person` + * Add support for `alternatives` on `Account.requirements`, `Capability.requirements`, and `Person.requirements` + +## 8.173.0 - 2021-09-01 +* [#1230](https://github.com/stripe/stripe-node/pull/1230) [#1228](https://github.com/stripe/stripe-node/pull/1228) API Updates + * Add support for `after_expiration`, `consent_collection`, and `expires_at` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `consent` and `recovered_from` on `Checkout.Session` + +## 8.172.0 - 2021-08-31 +* [#1198](https://github.com/stripe/stripe-node/pull/1198) Add support for paginting SearchResult objects. + +## 8.171.0 - 2021-08-27 +* [#1226](https://github.com/stripe/stripe-node/pull/1226) API Updates + * Add support for `cancellation_reason` on `BillingPortal.ConfigurationCreateParams.features.subscription_cancel`, `BillingPortal.ConfigurationUpdateParams.features.subscription_cancel`, and `BillingPortal.Configuration.features.subscription_cancel` + +## 8.170.0 - 2021-08-19 +* [#1223](https://github.com/stripe/stripe-node/pull/1223) API Updates + * Add support for new value `fil` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` + * Add support for new value `au_arn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type` + * Add support for new value `au_arn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` +* [#1221](https://github.com/stripe/stripe-node/pull/1221) Add client name property to HttpClient. +* [#1219](https://github.com/stripe/stripe-node/pull/1219) Update user agent computation to handle environments without process. +* [#1218](https://github.com/stripe/stripe-node/pull/1218) Add an HttpClient interface and NodeHttpClient implementation. +* [#1217](https://github.com/stripe/stripe-node/pull/1217) Update nock. + +## 8.169.0 - 2021-08-11 +* [#1215](https://github.com/stripe/stripe-node/pull/1215) API Updates + * Add support for `locale` on `BillingPortal.SessionCreateParams` and `BillingPortal.Session` + * Change type of `Invoice.collection_method` and `Subscription.collection_method` from `nullable(enum('charge_automatically'|'send_invoice'))` to `enum('charge_automatically'|'send_invoice')` + +## 8.168.0 - 2021-08-04 +* [#1211](https://github.com/stripe/stripe-node/pull/1211) API Updates + * Change type of `PaymentIntentCreateParams.payment_method_options.sofort.preferred_language`, `PaymentIntentUpdateParams.payment_method_options.sofort.preferred_language`, and `PaymentIntentConfirmParams.payment_method_options.sofort.preferred_language` from `enum` to `emptyStringable(enum)` + * Change `Price.tax_behavior`, `Product.tax_code`, `Quote.automatic_tax`, and `TaxRate.tax_type` to be required + +## 8.167.0 - 2021-07-28 +* [#1206](https://github.com/stripe/stripe-node/pull/1206) Fix Typescript definition for `StripeResource.LastResponse.headers` +* [#1205](https://github.com/stripe/stripe-node/pull/1205) Prevent concurrent initial `uname` invocations +* [#1199](https://github.com/stripe/stripe-node/pull/1199) Explicitly define basic method specs +* [#1200](https://github.com/stripe/stripe-node/pull/1200) Add support for `fullPath` on method specs + +## 8.166.0 - 2021-07-28 +* [#1203](https://github.com/stripe/stripe-node/pull/1203) API Updates + * Bugfix: add missing autopagination methods to `Quote.listLineItems` and `Quote.listComputedUpfrontLineItems` + * Add support for `account_type` on `BankAccount`, `ExternalAccountUpdateParams`, and `TokenCreateParams.bank_account` + * Add support for `category_code` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` + * Add support for new value `redacted` on enum `Review.closed_reason` + * Remove duplicate type definition for `Account.retrieve`. + * Fix some `attributes` fields mistakenly defined as `Stripe.Metadata` +* [#1097](https://github.com/stripe/stripe-node/pull/1097) fix error arguments + +## 8.165.0 - 2021-07-22 +* [#1197](https://github.com/stripe/stripe-node/pull/1197) API Updates + * Add support for new values `hr`, `ko`, and `vi` on enums `Checkout.SessionCreateParams.locale` and `Checkout.Session.locale` + * Add support for `payment_settings` on `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription` + +## 8.164.0 - 2021-07-20 +* [#1196](https://github.com/stripe/stripe-node/pull/1196) API Updates + * Remove support for values `api_connection_error`, `authentication_error`, and `rate_limit_error` from enums `StripeError.type`, `StripeErrorResponse.error.type`, `Invoice.last_finalization_error.type`, `PaymentIntent.last_payment_error.type`, `SetupAttempt.setup_error.type`, and `SetupIntent.last_setup_error.type` + * Add support for `wallet` on `Issuing.Transaction` + * Add support for `ideal` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options` + + +## 8.163.0 - 2021-07-15 +* [#1102](https://github.com/stripe/stripe-node/pull/1102), [#1191](https://github.com/stripe/stripe-node/pull/1191) Add support for `stripeAccount` when initializing the client + +## 8.162.0 - 2021-07-14 +* [#1194](https://github.com/stripe/stripe-node/pull/1194) API Updates + * Add support for `quote.accepted`, `quote.canceled`, `quote.created`, and `quote.finalized` events. +* [#1190](https://github.com/stripe/stripe-node/pull/1190) API Updates + * Add support for `list_computed_upfront_line_items` method on resource `Quote` +* [#1192](https://github.com/stripe/stripe-node/pull/1192) Update links to Stripe.js docs + +## 8.161.0 - 2021-07-09 +* [#1188](https://github.com/stripe/stripe-node/pull/1188) API Updates + * Add support for new resource `Quote` + * Add support for `quote` on `Invoice` + * Add support for new value `quote_accept` on enum `Invoice.billing_reason` + * Changed type of `Charge.payment_method_details.card.three_d_secure.result`, `SetupAttempt.payment_method_details.card.three_d_secure.result`, `Charge.payment_method_details.card.three_d_secure.version`, and `SetupAttempt.payment_method_details.card.three_d_secure.version` to be nullable. + +* [#1187](https://github.com/stripe/stripe-node/pull/1187) Bugfix in binary streaming support + +## 8.160.0 - 2021-06-30 +* [#1182](https://github.com/stripe/stripe-node/pull/1182) API Updates + * Add support for new value `boleto` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, and `Invoice.payment_settings.payment_method_types[]`. + +## 8.159.0 - 2021-06-30 +* [#1180](https://github.com/stripe/stripe-node/pull/1180) API Updates + * Add support for `wechat_pay` on `Charge.payment_method_details`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentMethodCreateParams`, and `PaymentMethod` + * Add support for new value `wechat_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentMethodCreateParams.type`, `PaymentMethodListParams.type`, and `PaymentMethod.type` + * Add support for `wechat_pay_display_qr_code`, `wechat_pay_redirect_to_android_app`, and `wechat_pay_redirect_to_ios_app` on `PaymentIntent.next_action` + +## 8.158.0 - 2021-06-29 +* [#1179](https://github.com/stripe/stripe-node/pull/1179) API Updates + * Added support for `boleto_payments` on `Account.capabilities` + * Added support for `boleto` and `oxxo` on `Checkout.SessionCreateParams.payment_method_options` and `Checkout.Session.payment_method_options` + * Added support for `boleto` and `oxxo` as members of the `type` enum inside `Checkout.SessionCreateParams.payment_method_types[]`. + +## 8.157.0 - 2021-06-25 +* [#1177](https://github.com/stripe/stripe-node/pull/1177) API Updates + * Added support for `boleto` on `PaymentMethodCreateParams`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `Charge.payment_method_details` and `PaymentMethod` + * `PaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentCreataParams.payment_method_data.type` and `PaymentMethod.type` added new enum members: `boleto` + * Added support for `boleto_display_details` on `PaymentIntent.next_action` + * `TaxIdCreateParams.type`, `Invoice.customer_tax_ids[].type`, `InvoiceLineItemListUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `CustomerCreateParams.tax_id_data[].type`, `Checkout.Session.customer_details.tax_ids[].type` and `TaxId.type` added new enum members: `il_vat`. +* [#1157](https://github.com/stripe/stripe-node/pull/1157) Add support for streaming requests + +## 8.156.0 - 2021-06-18 +* [#1175](https://github.com/stripe/stripe-node/pull/1175) API Updates + * Add support for new TaxId types: `ca_pst_mb`, `ca_pst_bc`, `ca_gst_hst`, and `ca_pst_sk`. + +## 8.155.0 - 2021-06-16 +* [#1173](https://github.com/stripe/stripe-node/pull/1173) API Updates + * Add support for `url` on Checkout `Session`. + +## 8.154.0 - 2021-06-07 +* [#1170](https://github.com/stripe/stripe-node/pull/1170) API Updates + * Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams` + * Update `Terminal.Reader.location` to be expandable (TypeScript breaking change) + +## 8.153.0 - 2021-06-04 +* [#1168](https://github.com/stripe/stripe-node/pull/1168) API Updates + * Add support for `controller` on `Account`. + +## 8.152.0 - 2021-06-04 +* [#1167](https://github.com/stripe/stripe-node/pull/1167) API Updates + * Add support for new resource `TaxCode`. + * Add support for `tax_code` on `Product`, `ProductCreateParams`, `ProductUpdateParams`, `PriceCreateParams.product_data`, `PlanCreateParams.product`, and Checkout `SessionCreateParams.line_items[].price_data.product_data`. + * Add support for `tax` to `Customer`, `CustomerCreateParams`, `CustomerUpdateParams`. + * Add support for `default_settings[automatic_tax]` and `phases[].automatic_tax` on `SubscriptionSchedule`, `SubscriptionScheduleCreateParams`, and `SubscriptionScheduleUpdateParams`. + * Add support for `automatic_tax` on `Subscription`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`; `Invoice`, `InvoiceCreateParams`, `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`; Checkout `Session` and Checkout `SessionCreateParams`. + * Add support for `tax_behavior` to `Price`, `PriceCreateParams`, `PriceUpdateParams` and to the many Param objects that contain `price_data`: + - `SubscriptionScheduleCreateParams` and `SubscriptionScheduleUpdateParams`, beneath `phases[].add_invoice_items[]` and `phases[].items[]` + - `SubscriptionItemCreateParams` and `SubscriptionItemUpdateParams`, on the top-level + - `SubscriptionCreateParams` create and `UpdateCreateParams`, beneath `items[]` and `add_invoice_items[]` + - `InvoiceItemCreateParams` and `InvoiceItemUpdateParams`, on the top-level + - `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams` beneath `subscription_items[]` and `invoice_items[]`. + - Checkout `SessionCreateParams`, beneath `line_items[]`. + * Add support for `customer_update` to Checkout `SessionCreateParams`. + * Add support for `customer_details` to `InvoiceRetrieveUpcomingParams` and `InvoiceLineItemListUpcomingParams`. + * Add support for `tax_type` to `TaxRate`, `TaxRateCreateParams`, and `TaxRateUpdateParams`. + +## 8.151.0 - 2021-06-02 +* [#1166](https://github.com/stripe/stripe-node/pull/1166) API Updates + * Added support for `llc`, `free_zone_llc`, `free_zone_establishment` and `sole_establishment` to the `structure` enum on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company` and `TokenCreateParams.account.company`. + +## 8.150.0 - 2021-05-26 +* [#1163](https://github.com/stripe/stripe-node/pull/1163) API Updates + * Added support for `documents` on `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` + +## 8.149.0 - 2021-05-19 +* [#1159](https://github.com/stripe/stripe-node/pull/1159) API Updates + * Add support for Identity VerificationSupport and VerificationReport APIs + * Update Typescript for `CouponCreateParams.duration` and `CouponCreateParams.products` to be optional. +* [#1158](https://github.com/stripe/stripe-node/pull/1158) API Updates + * `AccountUpdateParams.business_profile.support_url` and `AccountCreatParams.business_profile.support_url` changed from `string` to `Stripe.Emptyable` + * `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query` + +## 8.148.0 - 2021-05-06 +* [#1154](https://github.com/stripe/stripe-node/pull/1154) API Updates + * Added support for `reference` on `Charge.payment_method_details.afterpay_clearpay` + * Added support for `afterpay_clearpay` on `PaymentIntent.payment_method_options`. + +## 8.147.0 - 2021-05-05 +* [#1153](https://github.com/stripe/stripe-node/pull/1153) API Updates + * Add support for `payment_intent` on `Radar.EarlyFraudWarning` + +## 8.146.0 - 2021-05-04 +* Add support for `card_present` on `PaymentIntent#confirm.payment_method_options`, `PaymentIntent#update.payment_method_options`, `PaymentIntent#create.payment_method_options` and `PaymentIntent.payment_method_options` +* `SubscriptionItem#create.payment_behavior`, `Subscription#update.payment_behavior`, `Subscription#create.payment_behavior` and `SubscriptionItem#update.payment_behavior` added new enum members: `default_incomplete` + +## 8.145.0 - 2021-04-21 +* [#1143](https://github.com/stripe/stripe-node/pull/1143) API Updates + * Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members: + * Add support for `dhl` and `royal_mail` as enum members of `Issuing.Card.shipping.carrier`. +* [#1142](https://github.com/stripe/stripe-node/pull/1142) Improve type definition for for `AccountCreateParams.external_account` + +## 8.144.0 - 2021-04-16 +* [#1140](https://github.com/stripe/stripe-node/pull/1140) API Updates + * Add support for `currency` on `Checkout.Session.PaymentMethodOptions.AcssDebit` + +## 8.143.0 - 2021-04-12 +* [#1139](https://github.com/stripe/stripe-node/pull/1139) API Updates + * Add support for `acss_debit_payments` on `Account.capabilities` + * Add support for `payment_method_options` on `Checkout.Session` + * Add support for `acss_debit` on `SetupIntent.payment_method_options`, `SetupAttempt.payment_method_details`, `PaymentMethod`, `PaymentIntent.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `Mandate.payment_method_details` and `SetupIntent.payment_method_options` + * Add support for `verify_with_microdeposits` on `PaymentIntent.next_action` and `SetupIntent.next_action` + * Add support for `acss_debit` as member of the `type` enum on `PaymentMethod` and `PaymentIntent`, and inside `Checkout.SessionCreateParams.payment_method_types[]`. + +## 8.142.0 - 2021-04-02 +* [#1138](https://github.com/stripe/stripe-node/pull/1138) API Updates + * Add support for `subscription_pause` on `BillingPortal.ConfigurationUpdateParams.features`, `BillingPortal.ConfigurationCreateParams.features` and `BillingPortal.Configuration.features` + +## 8.141.0 - 2021-03-31 +* [#1137](https://github.com/stripe/stripe-node/pull/1137) API Updates + * Add support for `transfer_data` on `SessionCreateParams.subscription_data` +* [#1134](https://github.com/stripe/stripe-node/pull/1134) API Updates + * Added support for `card_issuing` on `AccountUpdateParams.settings` and `Account.settings` + +## 8.140.0 - 2021-03-25 +* [#1133](https://github.com/stripe/stripe-node/pull/1133) API Updates + * `Capability.requirements.errors[].code`, `Account.requirements.errors[].code` and `Person.requirements.errors[].code` added new enum members: `verification_missing_owners, verification_missing_executives and verification_requires_additional_memorandum_of_associations` + * `SessionCreateParams.locale` and `Checkout.Session.locale` added new enum members: `th` + +## 8.139.0 - 2021-03-22 +* [#1132](https://github.com/stripe/stripe-node/pull/1132) API Updates + * Added support for `shipping_rates` on `SessionCreateOptions` + * Added support for `amount_shipping` on `Checkout.SessionTotalDetails` +* [#1131](https://github.com/stripe/stripe-node/pull/1131) types: export StripeRawError type + +## 8.138.0 - 2021-03-10 +* [#1124](https://github.com/stripe/stripe-node/pull/1124) API Updates + * Added support for `BillingPortal.Configuration` API. + * `Terminal.LocationUpdateParams.country` is now optional. + +## 8.137.0 - 2021-02-17 +* [#1123](https://github.com/stripe/stripe-node/pull/1123) API Updates + * Add support for on_behalf_of to Invoice + * Add support for enum member revolut on PaymentIntent.payment_method_data.ideal.bank, PaymentMethod.ideal.bank, Charge.payment_method_details.ideal.bank and SetupAttempt.payment_method_details.ideal.bank + * Added support for enum member REVOLT21 on PaymentMethod.ideal.bic, Charge.payment_method_details.ideal.bic and SetupAttempt.payment_method_details.ideal.bic + +## 8.136.0 - 2021-02-16 +* [#1122](https://github.com/stripe/stripe-node/pull/1122) API Updates + * Add support for `afterpay_clearpay` on `PaymentMethod`, `PaymentIntent.payment_method_data`, and `Charge.payment_method_details`. + * Add support for `afterpay_clearpay` as a payment method type on `PaymentMethod`, `PaymentIntent` and `Checkout.Session` + * Add support for `adjustable_quantity` on `SessionCreateParams.LineItem` + * Add support for `bacs_debit`, `au_becs_debit` and `sepa_debit` on `SetupAttempt.payment_method_details` + +## 8.135.0 - 2021-02-08 +* [#1119](https://github.com/stripe/stripe-node/pull/1119) API Updates + * Add support for `afterpay_clearpay_payments` on `Account.capabilities` + * Add support for `payment_settings` on `Invoice` + +## 8.134.0 - 2021-02-05 +* [#1118](https://github.com/stripe/stripe-node/pull/1118) API Updates + * `LineItem.amount_subtotal` and `LineItem.amount_total` changed from `nullable(integer)` to `integer` + * Improve error message for `EphemeralKeys.create` + +## 8.133.0 - 2021-02-03 +* [#1115](https://github.com/stripe/stripe-node/pull/1115) API Updates + * Added support for `nationality` on `Person`, `PersonUpdateParams`, `PersonCreateParams` and `TokenCreateParams.person` + * Added `gb_vat` to `TaxId.type` enum. + +## 8.132.0 - 2021-01-21 +* [#1112](https://github.com/stripe/stripe-node/pull/1112) API Updates + * `Issuing.Transaction.type` dropped enum members: 'dispute' + * `LineItem.price` can now be null. + +## 8.131.1 - 2021-01-15 +* [#1104](https://github.com/stripe/stripe-node/pull/1104) Make request timeout errors eligible for retry + +## 8.131.0 - 2021-01-14 +* [#1108](https://github.com/stripe/stripe-node/pull/1108) Multiple API Changes + * Added support for `dynamic_tax_rates` on `Checkout.SessionCreateParams.line_items` + * Added support for `customer_details` on `Checkout.Session` + * Added support for `type` on `Issuing.TransactionListParams` + * Added support for `country` and `state` on `TaxRateUpdateParams`, `TaxRateCreateParams` and `TaxRate` +* [#1107](https://github.com/stripe/stripe-node/pull/1107) More consistent type definitions + +## 8.130.0 - 2021-01-07 +* [#1105](https://github.com/stripe/stripe-node/pull/1105) API Updates + * Added support for `company_registration_verification`, `company_ministerial_decree`, `company_memorandum_of_association`, `company_license` and `company_tax_id_verification` on AccountUpdateParams.documents and AccountCreateParams.documents +* [#1100](https://github.com/stripe/stripe-node/pull/1100) implement/fix reverse iteration when iterating with ending_before +* [#1096](https://github.com/stripe/stripe-node/pull/1096) typo receieved -> received + +## 8.129.0 - 2020-12-15 +* [#1093](https://github.com/stripe/stripe-node/pull/1093) API Updates + * Added support for card_present on SetupAttempt.payment_method_details + +## 8.128.0 - 2020-12-10 +* [#1088](https://github.com/stripe/stripe-node/pull/1088) Multiple API changes + * Add newlines for consistency. + * Prefix deleted references with `Stripe.` for consistency. + * Add support for `bank` on `PaymentMethod[eps]`. + * Add support for `tos_shown_and_accepted` to `payment_method_options[p24]` on `PaymentMethod`. + +## 8.127.0 - 2020-12-03 +* [#1084](https://github.com/stripe/stripe-node/pull/1084) Add support for `documents` on `Account` create and update +* [#1080](https://github.com/stripe/stripe-node/pull/1080) fixed promises example + +## 8.126.0 - 2020-11-24 +* [#1079](https://github.com/stripe/stripe-node/pull/1079) Multiple API changes + * Add support for `account_tax_ids` on `Invoice` + * Add support for `payment_method_options[sepa_debit]` on `PaymentIntent` + +## 8.125.0 - 2020-11-20 +* [#1075](https://github.com/stripe/stripe-node/pull/1075) Add support for `capabilities[grabpay_payments]` on `Account` + +## 8.124.0 - 2020-11-19 +* [#1074](https://github.com/stripe/stripe-node/pull/1074) + * Add support for mandate_options on SetupIntent.payment_method_options.sepa_debit. + * Add support for card_present and interact_present as values for PaymentMethod.type. +* [#1073](https://github.com/stripe/stripe-node/pull/1073) More consistent namespacing for shared types + +## 8.123.0 - 2020-11-18 +* [#1072](https://github.com/stripe/stripe-node/pull/1072) Add support for `grabpay` on `PaymentMethod` + +## 8.122.1 - 2020-11-17 +* Identical to 8.122.0. Published to resolve a release issue. + +## 8.122.0 - 2020-11-17 +* [#1070](https://github.com/stripe/stripe-node/pull/1070) + * Add support for `sepa_debit` on `SetupIntent.PaymentMethodOptions` + * `Invoice.tax_amounts` and `InvoiceLineItem.tax_rates` are no longer nullable + * `Invoice.default_tax_rates` and `InvoiceLineItem.tax_amounts` are no longer nullable + +## 8.121.0 - 2020-11-09 +* [#1064](https://github.com/stripe/stripe-node/pull/1064) Add `invoice.finalization_error` as a `type` on `Event` +* [#1063](https://github.com/stripe/stripe-node/pull/1063) Multiple API changes + * Add support for `last_finalization_error` on `Invoice` + * Add support for deserializing Issuing `Dispute` as a `source` on `BalanceTransaction` + * Add support for `payment_method_type` on `StripeError` used by other API resources + +## 8.120.0 - 2020-11-04 +* [#1061](https://github.com/stripe/stripe-node/pull/1061) Add support for `company[registration_number]` on `Account` + +## 8.119.0 - 2020-10-27 +* [#1056](https://github.com/stripe/stripe-node/pull/1056) Add `payment_method_details[interac_present][preferred_locales]` on `Charge` +* [#1057](https://github.com/stripe/stripe-node/pull/1057) Standardize on CRULD order for method definitions +* [#1055](https://github.com/stripe/stripe-node/pull/1055) Added requirements to README + +## 8.118.0 - 2020-10-26 +* [#1053](https://github.com/stripe/stripe-node/pull/1053) Multiple API changes + * Improving Typescript types for nullable parameters and introduced `Stripe.Emptyable` as a type + * Add support for `payment_method_options[card][cvc_token]` on `PaymentIntent` + * Add support for `cvc_update[cvc]` on `Token` creation +* [#1052](https://github.com/stripe/stripe-node/pull/1052) Add Stripe.Emptyable type definition + +## 8.117.0 - 2020-10-23 +* [#1050](https://github.com/stripe/stripe-node/pull/1050) Add support for passing `p24[bank]` for P24 on `PaymentIntent` or `PaymentMethod` + +## 8.116.0 - 2020-10-22 +* [#1049](https://github.com/stripe/stripe-node/pull/1049) Support passing `tax_rates` when creating invoice items through `Subscription` or `SubscriptionSchedule` + +## 8.115.0 - 2020-10-20 +* [#1048](https://github.com/stripe/stripe-node/pull/1048) Add support for `jp_rn` and `ru_kpp` as a `type` on `TaxId` +* [#1046](https://github.com/stripe/stripe-node/pull/1046) chore: replace recommended extension sublime babel with babel javascript + +## 8.114.0 - 2020-10-15 +* [#1045](https://github.com/stripe/stripe-node/pull/1045) Make `original_payout` and `reversed_by` not optional anymore + +## 8.113.0 - 2020-10-14 +* [#1044](https://github.com/stripe/stripe-node/pull/1044) Add support for `discounts` on `Session.create` + +## 8.112.0 - 2020-10-14 +* [#1042](https://github.com/stripe/stripe-node/pull/1042) Add support for the Payout Reverse API +* [#1041](https://github.com/stripe/stripe-node/pull/1041) Do not mutate user-supplied opts + +## 8.111.0 - 2020-10-12 +* [#1038](https://github.com/stripe/stripe-node/pull/1038) Add support for `description`, `iin` and `issuer` in `payment_method_details[card_present]` and `payment_method_details[interac_present]` on `Charge` + +## 8.110.0 - 2020-10-12 +* [#1035](https://github.com/stripe/stripe-node/pull/1035) Add support for `setup_intent.requires_action` on Event + +## 8.109.0 - 2020-10-09 +* [#1033](https://github.com/stripe/stripe-node/pull/1033) Add support for internal-only `description`, `iin`, and `issuer` for `card_present` and `interac_present` on `Charge.payment_method_details` + +## 8.108.0 - 2020-10-08 +* [#1028](https://github.com/stripe/stripe-node/pull/1028) Add support for `Bancontact/iDEAL/Sofort -> SEPA` + * Add support for `generated_sepa_debit` and `generated_sepa_debit_mandate` on `Charge.payment_method_details.ideal`, `Charge.payment_method_details.bancontact` and `Charge.payment_method_details.sofort` + * Add support for `generated_from` on `PaymentMethod.sepa_debit` + * Add support for `ideal`, `bancontact` and `sofort` on `SetupAttempt.payment_method_details` + +## 8.107.0 - 2020-10-02 +* [#1026](https://github.com/stripe/stripe-node/pull/1026) Add support for `tos_acceptance[service_agreement]` on `Account` +* [#1025](https://github.com/stripe/stripe-node/pull/1025) Add support for new payments capabilities on `Account` + +## 8.106.0 - 2020-09-29 +* [#1024](https://github.com/stripe/stripe-node/pull/1024) Add support for the `SetupAttempt` resource and List API + +## 8.105.0 - 2020-09-29 +* [#1023](https://github.com/stripe/stripe-node/pull/1023) Add support for `contribution` in `reporting_category` on `ReportRun` + +## 8.104.0 - 2020-09-28 +* [#1022](https://github.com/stripe/stripe-node/pull/1022) Add support for `oxxo_payments` capability on `Account` + +## 8.103.0 - 2020-09-28 +* [#1021](https://github.com/stripe/stripe-node/pull/1021) Add VERSION constant to instantiated Stripe client. + +## 8.102.0 - 2020-09-25 +* [#1019](https://github.com/stripe/stripe-node/pull/1019) Add support for `oxxo` as a valid `type` on the List PaymentMethod API + +## 8.101.0 - 2020-09-25 +* [#1018](https://github.com/stripe/stripe-node/pull/1018) More idiomatic types + +## 8.100.0 - 2020-09-24 +* [#1016](https://github.com/stripe/stripe-node/pull/1016) Multiple API changes + * Add support for OXXO on `PaymentMethod` and `PaymentIntent` + * Add support for `contribution` on `BalanceTransaction` + +## 8.99.0 - 2020-09-24 +* [#1011](https://github.com/stripe/stripe-node/pull/1011) Add type definition for Stripe.StripeResource + +## 8.98.0 - 2020-09-23 +* [#1014](https://github.com/stripe/stripe-node/pull/1014) Multiple API changes + * Add support for `issuing_dispute.closed` and `issuing_dispute.submitted` events + * Add support for `instant_available` on `Balance` + +## 8.97.0 - 2020-09-21 +* [#1012](https://github.com/stripe/stripe-node/pull/1012) Multiple API changes + * `metadata` is now always nullable on all resources + * Add support for `amount_captured` on `Charge` + * Add `checkout_session` on `Discount` + +## 8.96.0 - 2020-09-13 +* [#1003](https://github.com/stripe/stripe-node/pull/1003) Add support for `promotion_code.created` and `promotion_code.updated` on `Event` + +## 8.95.0 - 2020-09-10 +* [#999](https://github.com/stripe/stripe-node/pull/999) Add support for SEPA debit on Checkout + +## 8.94.0 - 2020-09-09 +* [#998](https://github.com/stripe/stripe-node/pull/998) Multiple API changes + * Add support for `sofort` as a `type` on the List PaymentMethods API + * Add back support for `invoice.payment_succeeded` + +## 8.93.0 - 2020-09-08 +* [#995](https://github.com/stripe/stripe-node/pull/995) Add support for Sofort on `PaymentMethod` and `PaymentIntent` + +## 8.92.0 - 2020-09-02 +* [#993](https://github.com/stripe/stripe-node/pull/993) Multiple API changes + * Add support for the Issuing `Dispute` submit API + * Add support for evidence details on Issuing `Dispute` creation, update and the resource. + * Add `available_payout_methods` on `BankAccount` + * Add `payment_status` on Checkout `Session` + +## 8.91.0 - 2020-08-31 +* [#992](https://github.com/stripe/stripe-node/pull/992) Add support for `payment_method.automatically_updated` on `WebhookEndpoint` + +## 8.90.0 - 2020-08-28 +* [#991](https://github.com/stripe/stripe-node/pull/991) Multiple API changes +* [#990](https://github.com/stripe/stripe-node/pull/990) Typescript: add 'lastResponse' to return types + +## 8.89.0 - 2020-08-19 +* [#988](https://github.com/stripe/stripe-node/pull/988) Multiple API changes + * `tax_ids` on `Customer` can now be nullable + * Added support for `expires_at` on `File` + +## 8.88.0 - 2020-08-17 +* [#987](https://github.com/stripe/stripe-node/pull/987) Add support for `amount_details` on Issuing `Authorization` and `Transaction` + +## 8.87.0 - 2020-08-17 +* [#984](https://github.com/stripe/stripe-node/pull/984) Multiple API changes + * Add `alipay` on `type` for the List PaymentMethods API + * Add `payment_intent.requires_action` as a new `type` on `Event` + +## 8.86.0 - 2020-08-13 +* [#981](https://github.com/stripe/stripe-node/pull/981) Add support for Alipay on Checkout `Session` + +## 8.85.0 - 2020-08-13 +* [#980](https://github.com/stripe/stripe-node/pull/980) [codegen] Multiple API Changes + * Added support for bank_name on `Charge.payment_method_details.acss_debit` + * `Issuing.dispute.balance_transactions` is now nullable. + +## 8.84.0 - 2020-08-07 +* [#975](https://github.com/stripe/stripe-node/pull/975) Add support for Alipay on `PaymentMethod` and `PaymentIntent` + +## 8.83.0 - 2020-08-05 +* [#973](https://github.com/stripe/stripe-node/pull/973) Multiple API changes + * Add support for the `PromotionCode` resource and APIs + * Add support for `allow_promotion_codes` on Checkout `Session` + * Add support for `applies_to[products]` on `Coupon` + * Add support for `promotion_code` on `Customer` and `Subscription` + * Add support for `promotion_code` on `Discount` + +## 8.82.0 - 2020-08-04 +* [#972](https://github.com/stripe/stripe-node/pull/972) Multiple API changes + * Add `zh-HK` and `zh-TW` as `locale` on Checkout `Session` + * Add `payment_method_details[card_present][receipt][account_type]` on `Charge` + +## 8.81.0 - 2020-07-30 +* [#970](https://github.com/stripe/stripe-node/pull/970) Improve types for `customer` on `CreditNote` to support `DeletedCustomer` + +## 8.80.0 - 2020-07-29 +* [#969](https://github.com/stripe/stripe-node/pull/969) Multiple API changes + * Add support for `id`, `invoice` and `invoice_item` on `Discount` and `DeletedDiscount` + * Add support for `discount_amounts` on `CreditNote`, `CreditNoteLineItem`, `InvoiceLineItem` + * Add support for `discounts` on `InvoiceItem`, `InvoiceLineItem` and `Invoice` + * Add support for `total_discount_amounts` on `Invoice` + * Make `customer` and `verification` on `TaxId` optional as the resource will be re-used for `Account` in the future. + +## 8.79.0 - 2020-07-24 +* [#967](https://github.com/stripe/stripe-node/pull/967) Multiple API changes + * Make all properties from `Discount` available on `DeletedDiscount` + * Add `capabilities[fpx_payments]` on `Account` create and update + +## 8.78.0 - 2020-07-22 +* [#965](https://github.com/stripe/stripe-node/pull/965) Add support for `cartes_bancaires_payments` as a `Capability` + +## 8.77.0 - 2020-07-20 +* [#963](https://github.com/stripe/stripe-node/pull/963) Add support for `capabilities` as a parameter on `Account` create and update + +## 8.76.0 - 2020-07-17 +* [#962](https://github.com/stripe/stripe-node/pull/962) Add support for `political_exposure` on `Person` + +## 8.75.0 - 2020-07-16 +* [#961](https://github.com/stripe/stripe-node/pull/961) Add support for `account_onboarding` and `account_update` as `type` on `AccountLink` + +## 8.74.0 - 2020-07-16 +* [#959](https://github.com/stripe/stripe-node/pull/959) Refactor remaining 'var' to 'let/const' usages +* [#960](https://github.com/stripe/stripe-node/pull/960) Use strict equality check for 'protocol' field for consistency +* [#952](https://github.com/stripe/stripe-node/pull/952) Add new fields to lastResponse: apiVersion, stripeAccount, idempotencyKey + +## 8.73.0 - 2020-07-15 +* [#958](https://github.com/stripe/stripe-node/pull/958) Multiple API changes + * Add support for `en-GB`, `fr-CA` and `id` as `locale` on Checkout `Session` + * Move `purpose` to an enum on `File` +* [#957](https://github.com/stripe/stripe-node/pull/957) Bump lodash from 4.17.15 to 4.17.19 + +## 8.72.0 - 2020-07-15 +* [#956](https://github.com/stripe/stripe-node/pull/956) Add support for `amount_total`, `amount_subtotal`, `currency` and `total_details` on Checkout `Session` + +## 8.71.0 - 2020-07-14 +* [#955](https://github.com/stripe/stripe-node/pull/955) Change from string to enum value for `billing_address_collection` on Checkout `Session` + +## 8.70.0 - 2020-07-13 +* [#953](https://github.com/stripe/stripe-node/pull/953) Multiple API changes + * Adds `es-419` as a `locale` to Checkout `Session` + * Adds `billing_cycle_anchor` to `default_settings` and `phases` for `SubscriptionSchedule` + +## 8.69.0 - 2020-07-06 +* [#946](https://github.com/stripe/stripe-node/pull/946) Fix `assert_capabilities` type definition +* [#920](https://github.com/stripe/stripe-node/pull/920) Expose StripeResource on instance + +## 8.68.0 - 2020-07-01 +* [#940](https://github.com/stripe/stripe-node/pull/940) Document but discourage `protocol` config option +* [#933](https://github.com/stripe/stripe-node/pull/933) Fix tests for `Plan` and `Price` to not appear as amount can be updated. + +## 8.67.0 - 2020-06-24 +* [#929](https://github.com/stripe/stripe-node/pull/929) Add support for `invoice.paid` event + +## 8.66.0 - 2020-06-23 +* [#927](https://github.com/stripe/stripe-node/pull/927) Add support for `payment_method_data` on `PaymentIntent` + +## 8.65.0 - 2020-06-23 +* [#926](https://github.com/stripe/stripe-node/pull/926) Multiple API changes + * Add `discounts` on `LineItem` + * Add `document_provider_identity_document` as a `purpose` on `File` + * Support nullable `metadata` on Issuing `Dispute` + * Add `klarna[shipping_delay]` on `Source` + +## 8.64.0 - 2020-06-18 +* [#924](https://github.com/stripe/stripe-node/pull/924) Multiple API changes + * Add support for `refresh_url` and `return_url` on `AccountLink` + * Add support for `issuing_dispute.*` events + +## 8.63.0 - 2020-06-11 +* [#919](https://github.com/stripe/stripe-node/pull/919) Multiple API changes + * Add `transaction` on Issuing `Dispute` + * Add `payment_method_details[acss_debit][mandate]` on `Charge` + +## 8.62.0 - 2020-06-10 +* [#918](https://github.com/stripe/stripe-node/pull/918) Add support for Cartes Bancaires payments on `PaymentIntent` and `Payā€¦ + +## 8.61.0 - 2020-06-09 +* [#917](https://github.com/stripe/stripe-node/pull/917) Add support for `id_npwp` and `my_frp` as `type` on `TaxId` + +## 8.60.0 - 2020-06-03 +* [#911](https://github.com/stripe/stripe-node/pull/911) Add support for `payment_intent_data[transfer_group]` on Checkout `Session` + +## 8.59.0 - 2020-06-03 +* [#910](https://github.com/stripe/stripe-node/pull/910) Add support for Bancontact, EPS, Giropay and P24 on Checkout `Session` + +## 8.58.0 - 2020-06-03 +* [#909](https://github.com/stripe/stripe-node/pull/909) Multiple API changes + * Add `bacs_debit_payments` as a `Capability` + * Add support for BACS Debit on Checkout `Session` + * Add support for `checkout.session.async_payment_failed` and `checkout.session.async_payment_succeeded` as `type` on `Event` + +## 8.57.0 - 2020-06-03 +* [#908](https://github.com/stripe/stripe-node/pull/908) Multiple API changes + * Add support for bg, cs, el, et, hu, lt, lv, mt, ro, ru, sk, sl and tr as new locale on Checkout `Session` + * Add `settings[sepa_debit_payments][creditor_id]` on `Account` + * Add support for Bancontact, EPS, Giropay and P24 on `PaymentMethod`, `PaymentIntent` and `SetupIntent` + * Add support for `order_item[parent]` on `Source` for Klarna +* [#905](https://github.com/stripe/stripe-node/pull/905) Add support for BACS Debit as a `PaymentMethod` + +## 8.56.0 - 2020-05-28 +* [#904](https://github.com/stripe/stripe-node/pull/904) Multiple API changes + * Add `payment_method_details[card][three_d_secure][authentication_flow]` on `Charge` + * Add `line_items[][price_data][product_data]` on Checkout `Session` creation + +## 8.55.0 - 2020-05-22 +* [#899](https://github.com/stripe/stripe-node/pull/899) Multiple API changes + * Add support for `ae_trn`, `cl_tin` and `sa_vat` as `type` on `TaxId` + * Add `result` and `result_reason` inside `payment_method_details[card][three_d_secure]` on `Charge` + +## 8.54.0 - 2020-05-20 +* [#897](https://github.com/stripe/stripe-node/pull/897) Multiple API changes + * Add `anticipation_repayment` as a `type` on `BalanceTransaction` + * Add `interac_present` as a `type` on `PaymentMethod` + * Add `payment_method_details[interac_present]` on `Charge` + * Add `transfer_data` on `SubscriptionSchedule` + +## 8.53.0 - 2020-05-18 +* [#895](https://github.com/stripe/stripe-node/pull/895) Multiple API changes + * Add support for `issuing_dispute` as a `type` on `BalanceTransaction` + * Add `balance_transactions` as an array of `BalanceTransaction` on Issuing `Dispute` + * Add `fingerprint` and `transaction_id` in `payment_method_details[alipay]` on `Charge` + * Add `transfer_data[amount]` on `Invoice` + * Add `transfer_data[amount_percent]` on `Subscription` + * Add `price.created`, `price.deleted` and `price.updated` on `Event` + +## 8.52.0 - 2020-05-13 +* [#891](https://github.com/stripe/stripe-node/pull/891) Add support for `purchase_details` on Issuing `Transaction` + +## 8.51.0 - 2020-05-11 +* [#890](https://github.com/stripe/stripe-node/pull/890) Add support for the `LineItem` resource and APIs + +## 8.50.0 - 2020-05-07 +* [#888](https://github.com/stripe/stripe-node/pull/888) Multiple API changes + * Remove parameters in `price_data[recurring]` across APIs as they were never supported + * Move `payment_method_details[card][three_d_secure]` to a list of enum values on `Charge` + * Add support for for `business_profile[support_adress]` on `Account` create and update + +## 8.49.0 - 2020-05-01 +* [#883](https://github.com/stripe/stripe-node/pull/883) Multiple API changes + * Add `issuing` on `Balance` + * Add `br_cnpj` and `br_cpf` as `type` on `TaxId` + * Add `price` support in phases on `SubscriptionSchedule` + * Make `quantity` nullable on `SubscriptionSchedule` for upcoming API version change + +## 8.48.0 - 2020-04-29 +* [#881](https://github.com/stripe/stripe-node/pull/881) Add support for the `Price` resource and APIs + +## 8.47.1 - 2020-04-28 +* [#880](https://github.com/stripe/stripe-node/pull/880) Make `display_items` on Checkout `Session` optional + +## 8.47.0 - 2020-04-24 +* [#876](https://github.com/stripe/stripe-node/pull/876) Add support for `jcb_payments` as a `Capability` + +## 8.46.0 - 2020-04-22 +* [#875](https://github.com/stripe/stripe-node/pull/875) Add support for `coupon` when for subscriptions on Checkout + +## 8.45.0 - 2020-04-22 +* [#874](https://github.com/stripe/stripe-node/pull/874) Add support for `billingPortal` namespace and `session` resource and APIs + +## 8.44.0 - 2020-04-17 +* [#873](https://github.com/stripe/stripe-node/pull/873) Multiple API changes + * Add support for `cardholder_name` in `payment_method_details[card_present]` on `Charge` + * Add new enum values for `company.structure` on `Account` + +## 8.43.0 - 2020-04-16 +* [#868](https://github.com/stripe/stripe-node/pull/868) Multiple API changes + +## 8.42.0 - 2020-04-15 +* [#867](https://github.com/stripe/stripe-node/pull/867) Clean up deprecated features in our Typescript definitions for Issuing and other resources + +## 8.41.0 - 2020-04-14 +* [#866](https://github.com/stripe/stripe-node/pull/866) Add support for `settings[branding][secondary_color]` on `Account` + +## 8.40.0 - 2020-04-13 +* [#865](https://github.com/stripe/stripe-node/pull/865) Add support for `description` on `WebhookEndpoint` + +## 8.39.2 - 2020-04-10 +* [#864](https://github.com/stripe/stripe-node/pull/864) Multiple API changes + * Make `payment_intent` expandable on `Charge` + * Add support for `sg_gst` as a value for `type` on `TaxId` and related APIs + * Add `cancellation_reason` and new enum values for `replacement_reason` on Issuing `Card` + +## 8.39.1 - 2020-04-08 +* [#848](https://github.com/stripe/stripe-node/pull/848) Fix TS return type for autoPagingEach + +## 8.39.0 - 2020-04-03 +* [#859](https://github.com/stripe/stripe-node/pull/859) Add support for `calculatedStatementDescriptor` on `Charge` + +## 8.38.0 - 2020-03-27 + +- [#853](https://github.com/stripe/stripe-node/pull/853) Improve StripeError.generate() + - Add `doc_url` field to StripeError. + - Expose `Stripe.errors.generate()` as a convenience for `Stripe.errors.StripeError.generate()`. + - Fix several TS types related to StripeErrors. + - Add types for `StripeInvalidGrantError`. + - Add support for `authentication_error` and `rate_limit_error` in `.generate()`. + +## 8.37.0 - 2020-03-26 + +- [#851](https://github.com/stripe/stripe-node/pull/851) Add support for `spending_controls` on Issuing `Card` and `Cardholder` + +## 8.36.0 - 2020-03-25 + +- [#850](https://github.com/stripe/stripe-node/pull/850) Multiple API changes + - Add support for `pt-BR` as a `locale` on Checkout `Session` + - Add support for `company` as a `type` on Issuing `Cardholder` + +## 8.35.0 - 2020-03-24 + +- [#849](https://github.com/stripe/stripe-node/pull/849) Add support for `pause_collection` on `Subscription` + +## 8.34.0 - 2020-03-24 + +- [#847](https://github.com/stripe/stripe-node/pull/847) Add new capabilities for AU Becs Debit and tax reporting + +## 8.33.0 - 2020-03-20 + +- [#842](https://github.com/stripe/stripe-node/pull/842) Multiple API changes for Issuing: + - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` on `Authorization` + - Add `amount`, `currency`, `merchant_amount` and `merchant_currency` inside `request_history` on `Authorization` + - Add `pending_request` on `Authorization` + - Add `amount` when approving an `Authorization` + - Add `replaced_by` on `Card` + +## 8.32.0 - 2020-03-13 + +- [#836](https://github.com/stripe/stripe-node/pull/836) Multiple API changes for Issuing: + - Rename `speed` to `service` on Issuing `Card` + - Rename `wallet_provider` to `wallet` and `address_zip_check` to `address_postal_code_check` on Issuing `Authorization` + - Mark `is_default` as deprecated on Issuing `Cardholder` + +## 8.31.0 - 2020-03-12 + +- [#835](https://github.com/stripe/stripe-node/pull/835) Add support for `shipping` and `shipping_address_collection` on Checkout `Session` + +## 8.30.0 - 2020-03-12 + +- [#834](https://github.com/stripe/stripe-node/pull/834) Add support for `ThreeDSecure` on Issuing `Authorization` + +## 8.29.0 - 2020-03-05 + +- [#833](https://github.com/stripe/stripe-node/pull/833) Make metadata nullable in many endpoints + +## 8.28.1 - 2020-03-05 + +- [#827](https://github.com/stripe/stripe-node/pull/827) Allow `null`/`undefined` to be passed for `options` arg. + +## 8.28.0 - 2020-03-04 + +- [#830](https://github.com/stripe/stripe-node/pull/830) Add support for `metadata` on `WebhookEndpoint` + +## 8.27.0 - 2020-03-04 + +- [#829](https://github.com/stripe/stripe-node/pull/829) Multiple API changes + - Add support for `account` as a parameter on `Token` to create Account tokens + - Add support for `verification_data.expiry_check` on Issuing `Authorization` + - Add support for `incorrect_cvc` and `incorrect_expiry` as a value for `request_history.reason` on Issuing `Authorization` + +## 8.26.0 - 2020-03-04 + +- [#828](https://github.com/stripe/stripe-node/pull/828) Multiple API changes + - Add support for `errors` in `requirements` on `Account`, `Capability` and `Person` + - Add support for `payment_intent.processing` as a new `type` on `Event`. + +## 8.25.0 - 2020-03-03 + +āš ļø This is a breaking change for TypeScript users. + +- [#826](https://github.com/stripe/stripe-node/pull/826) Multiple API changes: + - āš ļø Types are now for the API version `2020-03-02`. This is a breaking change for TypeScript users + - Remove `uob_regional` as a value on `bank` for FPX as this is deprecated and was never used + - Add support for `next_invoice_sequence` on `Customer` + - Add support for `proration_behavior` on `SubscriptionItem` delete + +## 8.24.1 - 2020-03-02 + +- [#824](https://github.com/stripe/stripe-node/pull/824) Update type for StripeError to extend Error + +## 8.24.0 - 2020-02-28 + +- [#822](https://github.com/stripe/stripe-node/pull/822) Add `my_sst` as a valid value for `type` on `TaxId` + +## 8.23.0 - 2020-02-27 + +- [#821](https://github.com/stripe/stripe-node/pull/821) Make `type` on `AccountLink` an enum + +## 8.22.0 - 2020-02-24 + +- [#820](https://github.com/stripe/stripe-node/pull/820) Add new enum values in `reason` for Issuing `Dispute` creation + +## 8.21.0 - 2020-02-24 + +- [#819](https://github.com/stripe/stripe-node/pull/819) Add support for listing Checkout `Session` and passing tax rate information + +## 8.20.0 - 2020-02-21 + +- [#813](https://github.com/stripe/stripe-node/pull/813) Multiple API changes + - Add support for `timezone` on `ReportRun` + - Add support for `proration_behavior` on `SubscriptionSchedule` + +## 8.19.0 - 2020-02-18 + +- [#807](https://github.com/stripe/stripe-node/pull/807) Change timeout default to constant 80000 instead Node default + +## 8.18.0 - 2020-02-14 + +- [#802](https://github.com/stripe/stripe-node/pull/802) TS Fixes + - Correctly type `Array` + - More consistently describe nullable fields as `| null`, vs `| ''`. + +## 8.17.0 - 2020-02-12 + +- [#804](https://github.com/stripe/stripe-node/pull/804) Add support for `payment_intent_data[transfer_data][amount]` on Checkout `Session` + +## 8.16.0 - 2020-02-12 + +- [#803](https://github.com/stripe/stripe-node/pull/803) Multiple API changes reflect in Typescript definitions + - Add `fpx` as a valid `source_type` on `Balance`, `Payout` and `Transfer` + - Add `fpx` support on Checkout `Session` + - Fields inside `verification_data` on Issuing `Authorization` are now enums + - Support updating `payment_method_options` on `PaymentIntent` and `SetupIntent` + +## 8.15.0 - 2020-02-10 + +- [#801](https://github.com/stripe/stripe-node/pull/801) Multiple API changes + - Add support for new `type` values for `TaxId`. + - Add support for `payment_intent_data[statement_descriptor_suffix]` on Checkout `Session`. + +## 8.14.0 - 2020-02-04 + +- [#793](https://github.com/stripe/stripe-node/pull/793) Rename `sort_code` to `sender_sort_code` on `SourceTransaction` for BACS debit. + +## 8.13.0 - 2020-02-03 + +- [#792](https://github.com/stripe/stripe-node/pull/792) Multiple API changes + - Add new `purpose` for `File`: `additional_verification` + - Add `error_on_requires_action` as a parameter for `PaymentIntent` creation and confirmation + +## 8.12.0 - 2020-01-31 + +- [#790](https://github.com/stripe/stripe-node/pull/790) Add new type of `TaxId` + +## 8.11.0 - 2020-01-30 + +- [#789](https://github.com/stripe/stripe-node/pull/789) Add support for `company.structure` on `Account` and other docs changes + +## 8.10.0 - 2020-01-30 + +- [#788](https://github.com/stripe/stripe-node/pull/788) Make typescript param optional + +## 8.9.0 - 2020-01-30 + +- [#787](https://github.com/stripe/stripe-node/pull/787) Add support for FPX as a `PaymentMethod` +- [#769](https://github.com/stripe/stripe-node/pull/769) Fix Typescript definition on `Token` creation for bank accounts + +## 8.8.2 - 2020-01-30 + +- [#785](https://github.com/stripe/stripe-node/pull/785) Fix file uploads with nested params + +## 8.8.1 - 2020-01-29 + +- [#784](https://github.com/stripe/stripe-node/pull/784) Allow @types/node 8.1 + +## 8.8.0 - 2020-01-28 + +- [#780](https://github.com/stripe/stripe-node/pull/780) Add new type for `TaxId` and `sender_account_name` on `SourceTransaction` + +## 8.7.0 - 2020-01-24 + +- [#777](https://github.com/stripe/stripe-node/pull/777) Add support for `shipping[speed]` on Issuing `Card` + +## 8.6.0 - 2020-01-23 + +- [#775](https://github.com/stripe/stripe-node/pull/775) Gracefully handle a missing `subprocess` module + +## 8.5.0 - 2020-01-23 + +- [#776](https://github.com/stripe/stripe-node/pull/776) Add support for new `type` on `CustomerTaxId` + +## 8.4.1 - 2020-01-21 + +- [#774](https://github.com/stripe/stripe-node/pull/774) Improve docstrings for many properties and parameters + +## 8.4.0 - 2020-01-17 + +- [#771](https://github.com/stripe/stripe-node/pull/771) Add `metadata` on Checkout `Session` and remove deprecated features +- [#764](https://github.com/stripe/stripe-node/pull/764) Added typescript webhook example + +## 8.3.0 - 2020-01-15 + +- [#767](https://github.com/stripe/stripe-node/pull/767) Adding missing events for pending updates on `Subscription` + +## 8.2.0 - 2020-01-15 + +- [#765](https://github.com/stripe/stripe-node/pull/765) Add support for `pending_update` on `Subscription` to the Typescript definitions + +## 8.1.0 - 2020-01-14 + +- [#763](https://github.com/stripe/stripe-node/pull/763) Add support for listing line items on a `CreditNote` +- [#762](https://github.com/stripe/stripe-node/pull/762) Improve docs for core fields such as `metadata` on Typescript definitions + +## 8.0.1 - 2020-01-09 + +- [#757](https://github.com/stripe/stripe-node/pull/757) [bugfix] Add types dir to npmignore whitelist and stop warning when instantiating stripe with no args + +## 8.0.0 - 2020-01-09 + +Major version release, adding TypeScript definitions and dropping support for Node 6. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v8) contains a detailed list of backwards-incompatible changes with upgrade instructions. + +Major pull requests included in this release (cf. [#742](https://github.com/stripe/stripe-node/pull/742)) (āš ļø = breaking changes): + +- [#736](https://github.com/stripe/stripe-node/pull/736) Add TypeScript definitions +- [#744](https://github.com/stripe/stripe-node/pull/744) Remove deprecated resources and methods +- [#752](https://github.com/stripe/stripe-node/pull/752) Deprecate many library api's, unify others + +## 7.63.1 - 2020-11-17 +- Identical to 7.15.0. + +## 7.63.0 - 2020-11-17 +- Published in error. Do not use. This is identical to 8.122.0. + +## 7.15.0 - 2019-12-30 + +- [#745](https://github.com/stripe/stripe-node/pull/745) Bump handlebars from 4.1.2 to 4.5.3 +- [#737](https://github.com/stripe/stripe-node/pull/737) Fix flows test + +## 7.14.0 - 2019-11-26 + +- [#732](https://github.com/stripe/stripe-node/pull/732) Add support for CreditNote preview + +## 7.13.1 - 2019-11-22 + +- [#728](https://github.com/stripe/stripe-node/pull/728) Remove duplicate export + +## 7.13.0 - 2019-11-06 + +- [#703](https://github.com/stripe/stripe-node/pull/703) New config object + +## 7.12.0 - 2019-11-05 + +- [#724](https://github.com/stripe/stripe-node/pull/724) Add support for `Mandate` + +## 7.11.0 - 2019-10-31 + +- [#719](https://github.com/stripe/stripe-node/pull/719) Define 'type' as a property on errors rather than a getter +- [#709](https://github.com/stripe/stripe-node/pull/709) README: imply context of stripe-node +- [#717](https://github.com/stripe/stripe-node/pull/717) Contributor Convenant + +## 7.10.0 - 2019-10-08 + +- [#699](https://github.com/stripe/stripe-node/pull/699) Add request-specific fields from raw error to top level error + +## 7.9.1 - 2019-09-17 + +- [#692](https://github.com/stripe/stripe-node/pull/692) Retry based on `Stripe-Should-Retry` and `Retry-After` headers + +## 7.9.0 - 2019-09-09 + +- [#691](https://github.com/stripe/stripe-node/pull/691) GET and DELETE requests data: body->queryParams +- [#684](https://github.com/stripe/stripe-node/pull/684) Bump eslint-utils from 1.3.1 to 1.4.2 + +## 7.8.0 - 2019-08-12 + +- [#678](https://github.com/stripe/stripe-node/pull/678) Add `subscriptionItems.createUsageRecord()` method + +## 7.7.0 - 2019-08-09 + +- [#675](https://github.com/stripe/stripe-node/pull/675) Remove subscription schedule revisions + - This is technically a breaking change. We've chosen to release it as a minor vesion bump because the associated API is unused. + +## 7.6.2 - 2019-08-09 + +- [#674](https://github.com/stripe/stripe-node/pull/674) Refactor requestDataProcessor for File out into its own file + +## 7.6.1 - 2019-08-08 + +- [#673](https://github.com/stripe/stripe-node/pull/673) Add request start and end time to request and response events + +## 7.6.0 - 2019-08-02 + +- [#661](https://github.com/stripe/stripe-node/pull/661) Refactor errors to ES6 classes. +- [#672](https://github.com/stripe/stripe-node/pull/672) Refinements to error ES6 classes. + +## 7.5.5 - 2019-08-02 + +- [#665](https://github.com/stripe/stripe-node/pull/665) Remove `lodash.isplainobject`. + +## 7.5.4 - 2019-08-01 + +- [#671](https://github.com/stripe/stripe-node/pull/671) Include a prefix in generated idempotency keys and remove uuid dependency. + +## 7.5.3 - 2019-07-31 + +- [#667](https://github.com/stripe/stripe-node/pull/667) Refactor request headers, allowing any header to be overridden. + +## 7.5.2 - 2019-07-30 + +- [#664](https://github.com/stripe/stripe-node/pull/664) Expose and use `once` + +## 7.5.1 - 2019-07-30 + +- [#662](https://github.com/stripe/stripe-node/pull/662) Remove `safe-buffer` dependency +- [#666](https://github.com/stripe/stripe-node/pull/666) Bump lodash from 4.17.11 to 4.17.15 +- [#668](https://github.com/stripe/stripe-node/pull/668) Move Balance History to /v1/balance_transactions + +## 7.5.0 - 2019-07-24 + +- [#660](https://github.com/stripe/stripe-node/pull/660) Interpret any string in args as API Key instead of a regex + - āš ļø Careful: passing strings which are not API Keys as as the final argument to a request previously would have ignored those strings, and would now result in the request failing with an authentication error. + - āš ļø Careful: The private api `utils.isAuthKey` was removed. +- [#658](https://github.com/stripe/stripe-node/pull/658) Update README retry code sample to use two retries +- [#653](https://github.com/stripe/stripe-node/pull/653) Reorder customer methods + +## 7.4.0 - 2019-06-27 + +- [#652](https://github.com/stripe/stripe-node/pull/652) Add support for the `SetupIntent` resource and APIs + +## 7.3.0 - 2019-06-24 + +- [#649](https://github.com/stripe/stripe-node/pull/649) Enable request latency telemetry by default + +## 7.2.0 - 2019-06-17 + +- [#608](https://github.com/stripe/stripe-node/pull/608) Add support for `CustomerBalanceTransaction` resource and APIs + +## 7.1.0 - 2019-05-23 + +- [#632](https://github.com/stripe/stripe-node/pull/632) Add support for `radar.early_fraud_warning` resource + +## 7.0.1 - 2019-05-22 + +- [#631](https://github.com/stripe/stripe-node/pull/631) Make autopagination functions work for `listLineItems` and `listUpcomingLineItems` + +## 7.0.0 - 2019-05-14 + +Major version release. [The migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v7) contains a detailed list of backwards-incompatible changes with upgrade instructions. + +Pull requests included in this release (cf. [#606](https://github.com/stripe/stripe-node/pull/606)) (āš ļø = breaking changes): + +- āš ļø Drop support for Node 4, 5 and 7 ([#606](https://github.com/stripe/stripe-node/pull/606)) +- Prettier formatting ([#604](https://github.com/stripe/stripe-node/pull/604)) +- Alphabetize ā€œbasicā€ methods ([#610](https://github.com/stripe/stripe-node/pull/610)) +- Use `id` for single positional arguments ([#611](https://github.com/stripe/stripe-node/pull/611)) +- Modernize ES5 to ES6 with lebab ([#607](https://github.com/stripe/stripe-node/pull/607)) +- āš ļø Remove deprecated methods ([#613](https://github.com/stripe/stripe-node/pull/613)) +- Add VSCode and EditorConfig files ([#620](https://github.com/stripe/stripe-node/pull/620)) +- āš ļø Drop support for Node 9 and bump dependencies to latest versions ([#614](https://github.com/stripe/stripe-node/pull/614)) +- Misc. manual formatting ([#623](https://github.com/stripe/stripe-node/pull/623)) +- āš ļø Remove legacy parameter support in `invoices.retrieveUpcoming()` ([#621](https://github.com/stripe/stripe-node/pull/621)) +- āš ļø Remove curried urlData and manually specified urlParams ([#625](https://github.com/stripe/stripe-node/pull/625)) +- Extract resources file ([#626](https://github.com/stripe/stripe-node/pull/626)) + +## 6.36.0 - 2019-05-14 + +- [#622](https://github.com/stripe/stripe-node/pull/622) Add support for the `Capability` resource and APIs + +## 6.35.0 - 2019-05-14 + +- [#627](https://github.com/stripe/stripe-node/pull/627) Add `listLineItems` and `listUpcomingLineItems` methods to `Invoice` + +## 6.34.0 - 2019-05-08 + +- [#619](https://github.com/stripe/stripe-node/pull/619) Move `generateTestHeaderString` to stripe.webhooks (fixes a bug in 6.33.0) + +## 6.33.0 - 2019-05-08 + +**Important**: This version is non-functional and has been yanked in favor of 6.32.0. + +- [#609](https://github.com/stripe/stripe-node/pull/609) Add `generateWebhookHeaderString` to make it easier to mock webhook events + +## 6.32.0 - 2019-05-07 + +- [#612](https://github.com/stripe/stripe-node/pull/612) Add `balanceTransactions` resource + +## 6.31.2 - 2019-05-03 + +- [#602](https://github.com/stripe/stripe-node/pull/602) Handle errors from the oauth/token endpoint + +## 6.31.1 - 2019-04-26 + +- [#600](https://github.com/stripe/stripe-node/pull/600) Fix encoding of nested parameters in multipart requests + +## 6.31.0 - 2019-04-24 + +- [#588](https://github.com/stripe/stripe-node/pull/588) Add support for the `TaxRate` resource and APIs + +## 6.30.0 - 2019-04-22 + +- [#589](https://github.com/stripe/stripe-node/pull/589) Add support for the `TaxId` resource and APIs +- [#593](https://github.com/stripe/stripe-node/pull/593) `retrieveUpcoming` on `Invoice` can now take one hash as parameter instead of requiring a customer id. + +## 6.29.0 - 2019-04-18 + +- [#585](https://github.com/stripe/stripe-node/pull/585) Add support for the `CreditNote` resource and APIs + +## 6.28.0 - 2019-03-18 + +- [#570](https://github.com/stripe/stripe-node/pull/570) Add support for the `PaymentMethod` resource and APIs +- [#578](https://github.com/stripe/stripe-node/pull/578) Add support for retrieving a Checkout `Session` + +## 6.27.0 - 2019-03-15 + +- [#581](https://github.com/stripe/stripe-node/pull/581) Add support for deleting Terminal `Location` and `Reader` + +## 6.26.1 - 2019-03-14 + +- [#580](https://github.com/stripe/stripe-node/pull/580) Fix support for HTTPS proxies + +## 6.26.0 - 2019-03-11 + +- [#574](https://github.com/stripe/stripe-node/pull/574) Encode `Date`s as Unix timestamps + +## 6.25.1 - 2019-02-14 + +- [#565](https://github.com/stripe/stripe-node/pull/565) Always encode arrays as integer-indexed hashes + +## 6.25.0 - 2019-02-13 + +- [#559](https://github.com/stripe/stripe-node/pull/559) Add `stripe.setMaxNetworkRetries(n)` for automatic network retries + +## 6.24.0 - 2019-02-12 + +- [#562](https://github.com/stripe/stripe-node/pull/562) Add support for `SubscriptionSchedule` and `SubscriptionScheduleRevision` + +## 6.23.1 - 2019-02-04 + +- [#560](https://github.com/stripe/stripe-node/pull/560) Enable persistent connections by default + +## 6.23.0 - 2019-01-30 + +- [#557](https://github.com/stripe/stripe-node/pull/557) Add configurable telemetry to gather information on client-side request latency + +## 6.22.0 - 2019-01-25 + +- [#555](https://github.com/stripe/stripe-node/pull/555) Add support for OAuth methods + +## 6.21.0 - 2019-01-23 + +- [#551](https://github.com/stripe/stripe-node/pull/551) Rename `CheckoutSession` to `Session` and move it under the `checkout` namespace. This is a breaking change, but we've reached out to affected merchants and all new merchants would use the new approach. + +## 6.20.1 - 2019-01-17 + +- [#552](https://github.com/stripe/stripe-node/pull/552) Fix `Buffer` deprecation warnings + +## 6.20.0 - 2018-12-21 + +- [#539](https://github.com/stripe/stripe-node/pull/539) Add support for the `CheckoutSession` resource + +## 6.19.0 - 2018-12-10 + +- [#535](https://github.com/stripe/stripe-node/pull/535) Add support for account links + +## 6.18.1 - 2018-12-07 + +- [#534](https://github.com/stripe/stripe-node/pull/534) Fix iterating on `files.list` method + +## 6.18.0 - 2018-12-06 + +- [#530](https://github.com/stripe/stripe-node/pull/530) Export errors on root Stripe object + +## 6.17.0 - 2018-11-28 + +- [#527](https://github.com/stripe/stripe-node/pull/527) Add support for the `Review` APIs + +## 6.16.0 - 2018-11-27 + +- [#515](https://github.com/stripe/stripe-node/pull/515) Add support for `ValueLists` and `ValueListItems` for Radar + +## 6.15.2 - 2018-11-26 + +- [#526](https://github.com/stripe/stripe-node/pull/526) Fixes an accidental mutation of input in rare cases + +## 6.15.1 - 2018-11-23 + +- [#523](https://github.com/stripe/stripe-node/pull/523) Handle `Buffer` instances in `Webhook.constructEvent` + +## 6.15.0 - 2018-11-12 + +- [#474](https://github.com/stripe/stripe-node/pull/474) Add support for `partner_id` in `setAppInfo` + +## 6.14.0 - 2018-11-09 + +- [#509](https://github.com/stripe/stripe-node/pull/509) Add support for new `Invoice` methods + +## 6.13.0 - 2018-10-30 + +- [#507](https://github.com/stripe/stripe-node/pull/507) Add support for persons +- [#510](https://github.com/stripe/stripe-node/pull/510) Add support for webhook endpoints + +## 6.12.1 - 2018-09-24 + +- [#502](https://github.com/stripe/stripe-node/pull/502) Fix test suite + +## 6.12.0 - 2018-09-24 + +- [#498](https://github.com/stripe/stripe-node/pull/498) Add support for Stripe Terminal +- [#500](https://github.com/stripe/stripe-node/pull/500) Rename `FileUploads` to `Files`. For backwards compatibility, `Files` is aliased to `FileUploads`. `FileUploads` is deprecated and will be removed from the next major version. + +## 6.11.0 - 2018-09-18 + +- [#496](https://github.com/stripe/stripe-node/pull/496) Add auto-pagination + +## 6.10.0 - 2018-09-05 + +- [#491](https://github.com/stripe/stripe-node/pull/491) Add support for usage record summaries + +## 6.9.0 - 2018-09-05 + +- [#493](https://github.com/stripe/stripe-node/pull/493) Add support for reporting resources + +## 6.8.0 - 2018-08-27 + +- [#488](https://github.com/stripe/stripe-node/pull/488) Remove support for `BitcoinReceivers` write-actions + +## 6.7.0 - 2018-08-03 + +- [#485](https://github.com/stripe/stripe-node/pull/485) Add support for `cancel` on topups + +## 6.6.0 - 2018-08-02 + +- [#483](https://github.com/stripe/stripe-node/pull/483) Add support for file links + +## 6.5.0 - 2018-07-28 + +- [#482](https://github.com/stripe/stripe-node/pull/482) Add support for Sigma scheduled query runs + +## 6.4.0 - 2018-07-26 + +- [#481](https://github.com/stripe/stripe-node/pull/481) Add support for Stripe Issuing + +## 6.3.0 - 2018-07-18 + +- [#471](https://github.com/stripe/stripe-node/pull/471) Add support for streams in file uploads + +## 6.2.1 - 2018-07-03 + +- [#475](https://github.com/stripe/stripe-node/pull/475) Fixes array encoding of subscription items for the upcoming invoices endpoint. + +## 6.2.0 - 2018-06-28 + +- [#473](https://github.com/stripe/stripe-node/pull/473) Add support for payment intents + +## 6.1.1 - 2018-06-07 + +- [#469](https://github.com/stripe/stripe-node/pull/469) Add `.npmignore` to create a lighter package (minus examples and tests) + +## 6.1.0 - 2018-06-01 + +- [#465](https://github.com/stripe/stripe-node/pull/465) Warn when unknown options are passed to functions + +## 6.0.0 - 2018-05-14 + +- [#453](https://github.com/stripe/stripe-node/pull/453) Re-implement usage record's `create` so that it correctly passes all arguments (this is a very minor breaking change) + +## 5.10.0 - 2018-05-14 + +- [#459](https://github.com/stripe/stripe-node/pull/459) Export error types on `stripe.errors` so that errors can be matched with `instanceof` instead of comparing the strings generated by `type` + +## 5.9.0 - 2018-05-09 + +- [#456](https://github.com/stripe/stripe-node/pull/456) Add support for issuer fraud records + +## 5.8.0 - 2018-04-04 + +- [#444](https://github.com/stripe/stripe-node/pull/444) Introduce flexible billing primitives for subscriptions + +## 5.7.0 - 2018-04-02 + +- [#441](https://github.com/stripe/stripe-node/pull/441) Write directly to a connection that's known to be still open + +## 5.6.1 - 2018-03-25 + +- [#437](https://github.com/stripe/stripe-node/pull/437) Fix error message when passing invalid parameters to some API methods + +## 5.6.0 - 2018-03-24 + +- [#439](https://github.com/stripe/stripe-node/pull/439) Drop Bluebird dependency and use native ES6 promises + +## 5.5.0 - 2018-02-21 + +- [#425](https://github.com/stripe/stripe-node/pull/425) Add support for topups + +## 5.4.0 - 2017-12-05 + +- [#412](https://github.com/stripe/stripe-node/pull/412) Add `StripeIdempotencyError` type for new kind of stripe error + +## 5.3.0 - 2017-10-31 + +- [#405](https://github.com/stripe/stripe-node/pull/405) Support for exchange rates APIs + +## 5.2.0 - 2017-10-26 + +- [#404](https://github.com/stripe/stripe-node/pull/404) Support for listing source transactions + +## 5.1.1 - 2017-10-04 + +- [#394](https://github.com/stripe/stripe-node/pull/394) Fix improper warning for requests that have options but no parameters + +## 5.1.0 - 2017-09-25 + +- Add check for when options are accidentally included in an arguments object +- Use safe-buffer package instead of building our own code +- Remove dependency on object-assign package +- Bump required versions of bluebird and qs + +## 5.0.0 - 2017-09-12 + +- Drop support for Node 0.x (minimum required version is now >= 4) + +## 4.25.0 - 2017-09-05 + +- Switch to Bearer token authentication on API requests + +## 4.24.1 - 2017-08-25 + +- Specify UTF-8 encoding when verifying HMAC-SHA256 payloads + +## 4.24.0 - 2017-08-10 + +- Support informational events with `Stripe.on` (see README for details) + +## 4.23.2 - 2017-08-03 + +- Handle `Buffer.from` incompatibility for Node versions prior to 4.5.x + +## 4.23.1 - 2017-06-24 + +- Properly encode subscription items when retrieving upcoming invoice + +## 4.23.0 - 2017-06-20 + +- Add support for ephemeral keys + +## 4.22.1 - 2017-06-20 + +- Fix usage of hasOwnProperty in utils + +## 4.22.0 - 2017-05-25 + +- Make response headers accessible on error objects + +## 4.21.0 - 2017-05-25 + +- Add support for account login links + +## 4.20.0 - 2017-05-24 + +- Add `stripe.setAppInfo` for plugin authors to register app information + +## 4.19.1 - 2017-05-18 + +- Tweak class initialization for compatibility with divergent JS engines + +## 4.19.0 - 2017-05-11 + +- Support for checking webhook signatures + +## 4.18.0 - 2017-04-12 + +- Reject ID parameters that don't look like strings + +## 4.17.1 - 2017-04-05 + +- Fix paths in error messages on bad arguments + +## 4.17.0 - 2017-03-31 + +- Add support for payouts + +## 4.16.1 - 2017-03-30 + +- Fix bad reference to `requestId` when initializing errors + +## 4.16.0 - 2017-03-22 + +- Make `requestId` available on resource `lastResponse` objects + +## 4.15.1 - 2017-03-08 + +- Update required version of "qs" dependency to 6.0.4+ + +## 4.15.0 - 2017-01-18 + +- Add support for updating sources + +## 4.14.0 - 2016-12-01 + +- Add support for verifying sources + +## 4.13.0 - 2016-11-21 + +- Add retrieve method for 3-D Secure resources + +## 4.12.0 - 2016-10-18 + +- Support for 403 status codes (permission denied) + +## 4.11.0 - 2016-09-16 + +- Add support for Apple Pay domains + +## 4.10.0 - 2016-08-29 + +- Refactor deprecated uses of Bluebird's `Promise.defer` + +## 4.9.1 - 2016-08-22 + +- URI-encode unames for Stripe user agents so we don't fail on special characters + +## 4.9.0 - 2016-07-19 + +- Add `Source` model for generic payment sources support (experimental) + +## 4.8.0 - 2016-07-14 + +- Add `ThreeDSecure` model for 3-D secure payments + +## 4.7.0 - 2016-05-25 + +- Add support for returning Relay orders + +## 4.6.0 - 2016-05-04 + +- Add `update`, `create`, `retrieve`, `list` and `del` methods to `stripe.subscriptions` + +## 4.5.0 - 2016-03-15 + +- Add `reject` on `Account` to support the new API feature + +## 4.4.0 - 2016-02-08 + +- Add `CountrySpec` model for looking up country payment information + +## 4.3.0 - 2016-01-26 + +- Add support for deleting Relay SKUs and products + +## 4.2.0 - 2016-01-13 + +- Add `lastResponse` property on `StripeResource` objects +- Return usage errors of `stripeMethod` through callback instead of raising +- Use latest year for expiry years in tests to avoid new year problems + +## 4.1.0 - 2015-12-02 + +- Add a verification routine for external accounts + +## 4.0.0 - 2015-09-17 + +- Remove ability for API keys to be passed as 1st param to acct.retrieve +- Rename StripeInvalidRequest to StripeInvalidRequestError + +## 3.9.0 - 2015-09-14 + +- Add Relay resources: Products, SKUs, and Orders + +## 3.8.0 - 2015-09-11 + +- Added rate limiting responses + +## 3.7.1 - 2015-08-17 + +- Added refund object with listing, retrieval, updating, and creation. + +## 3.7.0 - 2015-08-03 + +- Added managed account deletion +- Added dispute listing and retrieval + +## 3.6.0 - 2015-07-07 + +- Added request IDs to all Stripe errors + +## 3.5.2 - 2015-06-30 + +- [BUGFIX] Fixed issue with uploading binary files (Gabriel Chagas Marques) + +## 3.5.1 - 2015-06-30 + +- [BUGFIX] Fixed issue with passing arrays of objects + +## 3.5.0 - 2015-06-11 + +- Added support for optional parameters when retrieving an upcoming invoice + (Matthew Arkin) + +## 3.4.0 - 2015-06-10 + +- Added support for bank accounts and debit cards in managed accounts + +## 3.3.4 - 2015-04-02 + +- Remove SSL revocation tests and check + +## 3.3.3 - 2015-03-31 + +- [BUGFIX] Fix support for both stripe.account and stripe.accounts + +## 3.3.2 - 2015-02-24 + +- Support transfer reversals. + +## 3.3.1 - 2015-02-21 + +- [BUGFIX] Fix passing in only a callback to the Account resource. (Matthew Arkin) + +## 3.3.0 - 2015-02-19 + +- Support BitcoinReceiver update & delete actions +- Add methods for manipulating customer sources as per 2015-02-18 API version +- The Account resource will now take an account ID. However, legacy use of the resource (without an account ID) will still work. + +## 3.2.0 - 2015-02-05 + +- [BUGFIX] Fix incorrect failing tests for headers support +- Update all dependencies (remove mocha-as-promised) +- Switch to bluebird for promises + +## 3.1.0 - 2015-01-21 + +- Support making bitcoin charges through BitcoinReceiver source object + +## 3.0.3 - 2014-12-23 + +- Adding file uploads as a resource. + +## 3.0.2 - 2014-11-26 + +- [BUGFIX] Fix issue where multiple expand params were not getting passed through (#130) + +## 3.0.1 - 2014-11-26 + +- (Version skipped due to npm mishap) + +## 3.0.0 - 2014-11-18 + +- [BUGFIX] Fix `stringifyRequestData` to deal with nested objs correctly +- Bump MAJOR as we're no longer supporting Node 0.8 + +## 2.9.0 - 2014-11-12 + +- Allow setting of HTTP agent (proxy) (issue #124) +- Add stack traces to all Stripe Errors + +## 2.8.0 - 2014-07-26 + +- Make application fee refunds a list instead of array + +## 2.7.4 - 2014-07-17 + +- [BUGFIX] Fix lack of subscription param in `invoices#retrieveUpcoming` method +- Add support for an `optional!` annotation on `urlParams` + +## 2.7.3 - 2014-06-17 + +- Add metadata to disputes and refunds + +## 2.6.3 - 2014-05-21 + +- Support cards for recipients. + +## 2.5.3 - 2014-05-16 + +- Allow the `update` method on coupons for metadata changes + +## 2.5.2 - 2014-04-28 + +- [BUGFIX] Fix when.js version string in package.json to support older npm versions + +## 2.5.1 - 2014-04-25 + +- [BUGFIX] Fix revoked-ssl check +- Upgrade when.js to 3.1.0 + +## 2.5.0 - 2014-04-09 + +- Ensure we prevent requests using revoked SSL certs + +## 2.4.5 - 2014-04-08 + +- Add better checks for incorrect arguments (throw exceptions accordingly). +- Validate the Connect Auth key, if passed + +## 2.4.4 - 2014-03-27 + +- [BUGFIX] Fix URL encoding issue (not encoding interpolated URL params, see issue #93) + +## 2.4.3 - 2014-03-27 + +- Add more debug information to the case of a failed `JSON.parse()` + +## 2.4.2 - 2014-02-20 + +- Add binding for `transfers/{tr_id}/transactions` endpoint + +## 2.4.1 - 2014-02-07 + +- Ensure raw error object is accessible on the generated StripeError + +## 2.4.0 - 2014-01-29 + +- Support multiple subscriptions per customer + +## 2.3.4 - 2014-01-11 + +- [BUGFIX] Fix #76, pass latest as version to api & fix constructor arg signature + +## 2.3.3 - 2014-01-10 + +- Document cancelSubscription method params and add specs for `at_period_end` + +## 2.3.2 - 2013-12-02 + +- Add application fees API + +## 2.2.2 - 2013-11-20 + +- [BUGFIX] Fix incorrect deleteDiscount method & related spec(s) + +### 2.2.1 - 2013-12-01 + +- [BUGFIX] Fix user-agent header issue (see issue #75) + +## 2.2.0 - 2013-11-09 + +- Add support for setTimeout +- Add specs for invoice-item listing/querying via timestamp + +## 2.1.0 - 2013-11-07 + +- Support single key/value setting on setMetadata method +- [BUGFIX] Fix Windows url-path issue +- Add missing stripe.charges.update method +- Support setting auth_token per request (useful in Connect) +- Remove global 'resources' variable + +## 2.0.0 - 2013-10-18 + +- API overhaul and refactor, including addition of promises. +- Release of version 2.0.0 + +## 1.3.0 - 2013-01-30 + +- Requests return Javascript Errors (Guillaume Flandre) + +## 1.2.0 - 2012-08-03 + +- Added events API (Jonathan Hollinger) +- Added plans update API (Pavan Kumar Sunkara) +- Various test fixes, node 0.8.x tweaks (Jan Lehnardt) + +## 1.1.0 - 2012-02-01 + +- Add Coupons API (Ryan) +- Pass a more robust error object to the callback (Ryan) +- Fix duplicate callbacks from some functions when called incorrectly (bug #24, reported by Kishore Nallan) + +## 1.0.0 - 2011-12-06 + +- Add APIs and tests for Plans and "Invoice Items" + (both changes by Ryan Ettipio) + +## 0.0.5 - 2011-11-26 + +- Add Subscription API (John Ku, #3) +- Add Invoices API (Chris Winn, #6) +- [BUGFIX] Fix a bug where callback could be called twice, if the callback() threw an error itself (Peteris Krumins) +- [BUGFIX] Fix bug in tokens.retrieve API (Xavi) +- Change documentation links (Stripe changed their URL structure) +- Make tests pass again (error in callback is null instead of 0 if all is well) +- Amount in stripe.charges.refund is optional (Branko Vukelic) +- Various documentation fixes (Xavi) +- Only require node 0.4.0 + +## 0.0.3 - 2011-10-05 + +- Add Charges API (issue #1, brackishlake) +- Add customers.list API + +## 0.0.2 - 2011-09-28 + +- Initial release with customers and tokens APIs diff --git a/VERSION b/VERSION index aac58983e6..d9e58927a6 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.0.0 +17.1.0 diff --git a/package.json b/package.json index 3e0097d0f1..7671d3cbc6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.0.0", + "version": "17.1.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 774facfceb..077443504e 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.0.0'; + Stripe.PACKAGE_VERSION = '17.1.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From f5f01e77ec0ace76805ea0327153d37ed517a647 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Tue, 8 Oct 2024 15:18:10 -0700 Subject: [PATCH 09/27] Add fetchRelatedObject to V2 Events if needed (#2201) --- examples/snippets/package.json | 2 +- examples/snippets/stripe_webhook_handler.js | 5 +- examples/snippets/yarn.lock | 8 +- src/resources/V2/Core/Events.ts | 68 ++++++- test/resources/V2/Core/Events.spec.js | 209 ++++++++++++++++++++ test/testUtils.ts | 2 +- types/V2/EventTypes.d.ts | 4 +- 7 files changed, 280 insertions(+), 18 deletions(-) create mode 100644 test/resources/V2/Core/Events.spec.js diff --git a/examples/snippets/package.json b/examples/snippets/package.json index ba3738f172..386c40adb4 100644 --- a/examples/snippets/package.json +++ b/examples/snippets/package.json @@ -6,7 +6,7 @@ "license": "ISC", "dependencies": { "express": "^4.21.0", - "stripe": "file:../../", + "stripe": "file:../..", "ts-node": "^10.9.2", "typescript": "^5.6.2" } diff --git a/examples/snippets/stripe_webhook_handler.js b/examples/snippets/stripe_webhook_handler.js index bc75e62683..063ef88ab5 100644 --- a/examples/snippets/stripe_webhook_handler.js +++ b/examples/snippets/stripe_webhook_handler.js @@ -20,11 +20,10 @@ app.post( // Fetch the event data to understand the failure const event = await client.v2.core.events.retrieve(thinEvent.id); if (event.type == 'v1.billing.meter.error_report_triggered') { - const meter = await client.billing.meters.retrieve( - event.related_object.id - ); + const meter = await event.fetchRelatedObject(); const meterId = meter.id; console.log(`Success! ${meterId}`); + // Record the failures and alert your team // Add your logic here } diff --git a/examples/snippets/yarn.lock b/examples/snippets/yarn.lock index 622721e44e..31868864fa 100644 --- a/examples/snippets/yarn.lock +++ b/examples/snippets/yarn.lock @@ -48,9 +48,9 @@ integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== "@types/node@>=8.1.0": - version "22.6.1" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.6.1.tgz#e531a45f4d78f14a8468cb9cdc29dc9602afc7ac" - integrity sha512-V48tCfcKb/e6cVUigLAaJDAILdMP0fUW6BidkPK4GpGjXcfbnoHasCZDwz3N3yVt5we2RHm4XTQCpv0KJz9zqw== + version "22.7.5" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.7.5.tgz#cfde981727a7ab3611a481510b473ae54442b92b" + integrity sha512-jML7s2NAzMWc//QSJ1a3prpk78cOPchGvXJsC3C6R6PSMoooztvRVQEz89gmBTBY1SPMaqo5teB4uNHPdetShQ== dependencies: undici-types "~6.19.2" @@ -524,7 +524,7 @@ statuses@2.0.1: integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== "stripe@file:../..": - version "16.12.0" + version "17.0.0" dependencies: "@types/node" ">=8.1.0" qs "^6.11.0" diff --git a/src/resources/V2/Core/Events.ts b/src/resources/V2/Core/Events.ts index e0bba400ce..cbfa40a317 100644 --- a/src/resources/V2/Core/Events.ts +++ b/src/resources/V2/Core/Events.ts @@ -1,12 +1,64 @@ -// File generated from our OpenAPI spec - +// This file is manually maintained import {StripeResource} from '../../../StripeResource.js'; + const stripeMethod = StripeResource.method; + export const Events = StripeResource.extend({ - retrieve: stripeMethod({method: 'GET', fullPath: '/v2/core/events/{id}'}), - list: stripeMethod({ - method: 'GET', - fullPath: '/v2/core/events', - methodType: 'list', - }), + retrieve(...args: any[]) { + const transformResponseData = (response: any): any => { + return this.addFetchRelatedObjectIfNeeded(response); + }; + return stripeMethod({ + method: 'GET', + fullPath: '/v2/core/events/{id}', + transformResponseData, + }).apply(this, args); + }, + + list(...args: any[]) { + const transformResponseData = (response: any): any => { + return { + ...response, + data: response.data.map(this.addFetchRelatedObjectIfNeeded.bind(this)), + }; + }; + return stripeMethod({ + method: 'GET', + fullPath: '/v2/core/events', + methodType: 'list', + transformResponseData, + }).apply(this, args); + }, + + /** + * @private + * + * For internal use in stripe-node. + * + * @param pulledEvent The retrieved event object + * @returns The retrieved event object with a fetchRelatedObject method, + * if pulledEvent.related_object is valid (non-null and has a url) + */ + addFetchRelatedObjectIfNeeded(pulledEvent: any) { + if (!pulledEvent.related_object || !pulledEvent.related_object.url) { + return pulledEvent; + } + return { + ...pulledEvent, + fetchRelatedObject: (): Promise => + // call stripeMethod with 'this' resource to fetch + // the related object. 'this' is needed to construct + // and send the request, but the method spec controls + // the url endpoint and method, so it doesn't matter + // that 'this' is an Events resource object here + stripeMethod({ + method: 'GET', + fullPath: pulledEvent.related_object.url, + }).apply(this, [ + { + stripeAccount: pulledEvent.context, + }, + ]), + }; + }, }); diff --git a/test/resources/V2/Core/Events.spec.js b/test/resources/V2/Core/Events.spec.js new file mode 100644 index 0000000000..c565b22626 --- /dev/null +++ b/test/resources/V2/Core/Events.spec.js @@ -0,0 +1,209 @@ +'use strict'; + +const testUtils = require('../../../testUtils.js'); +const expect = require('chai').expect; + +const stripe = testUtils.getSpyableStripe(); + +const v2EventPayloadWithoutRelatedObject = ` + { + "context": "context", + "created": "1970-01-12T21:42:34.472Z", + "id": "obj_123", + "livemode": true, + "object":"v2.core.event", + "reason": + { + "type": "request", + "request": + { + "id": "obj_123", + "idempotency_key": "idempotency_key" + } + }, + "type": "type" + } +`; + +const v2EventPayloadWithRelatedObject = ` + { + "context": "context", + "created": "1970-01-12T21:42:34.472Z", + "id": "obj_123", + "livemode": true, + "object":"v2.core.event", + "reason": + { + "type": "request", + "request": + { + "id": "obj_123", + "idempotency_key": "idempotency_key" + } + }, + "type": "type", + "related_object": + { + "id": "obj_123", + "type": "thing", + "url": "/v1/things/obj_123" + } + } +`; + +describe('V2 Core Events Resource', () => { + describe('retrieve', () => { + it('Sends the correct request', () => { + stripe.v2.core.events.retrieve('eventIdBaz'); + expect(stripe.LAST_REQUEST).to.deep.equal({ + method: 'GET', + url: '/v2/core/events/eventIdBaz', + headers: {}, + data: null, + settings: {}, + }); + }); + + it('Does not have fetchRelatedObject if not needed', async () => { + const mockStripe = testUtils.createMockClient([ + { + method: 'GET', + path: '/v2/core/events/ll_123', + response: v2EventPayloadWithoutRelatedObject, + }, + ]); + const event = await mockStripe.v2.core.events.retrieve('ll_123'); + expect(event).ok; + expect(event.fetchRelatedObject).to.be.undefined; + }); + + it('Has fetchRelatedObject if needed', async () => { + const mockStripe = testUtils.createMockClient([ + { + method: 'GET', + path: '/v2/core/events/ll_123', + response: v2EventPayloadWithRelatedObject, + }, + ]); + const event = await mockStripe.v2.core.events.retrieve('ll_123'); + expect(event).ok; + expect(event.fetchRelatedObject).ok; + }); + + it('Can call fetchRelatedObject', async () => { + const mockStripe = testUtils.createMockClient([ + { + method: 'GET', + path: '/v2/core/events/ll_123', + response: v2EventPayloadWithRelatedObject, + }, + { + method: 'GET', + path: '/v1/things/obj_123', + response: '{"id": "obj_123"}', + }, + ]); + const event = await mockStripe.v2.core.events.retrieve('ll_123'); + expect(event).ok; + expect(event.fetchRelatedObject).ok; + const obj = await event.fetchRelatedObject(); + expect(obj.id).to.equal('obj_123'); + }); + }); + + describe('list', () => { + it('Sends the correct request', () => { + stripe.v2.core.events.list({object_id: 'foo'}); + expect(stripe.LAST_REQUEST).to.deep.equal({ + method: 'GET', + url: '/v2/core/events?object_id=foo', + headers: {}, + data: null, + settings: {}, + }); + }); + + it('Does not have fetchRelatedObject if not needed', async () => { + const mockStripe = testUtils.createMockClient([ + { + method: 'GET', + path: '/v2/core/events?object_id=foo', + response: `{ + "data": [ + ${v2EventPayloadWithoutRelatedObject}, + ${v2EventPayloadWithoutRelatedObject}, + ${v2EventPayloadWithoutRelatedObject} + ], + "next_page_url": null + }`, + }, + ]); + const resp = await mockStripe.v2.core.events.list({object_id: 'foo'}); + expect(resp).ok; + expect(resp.data.length).is.equal(3); + for (const event of resp.data) { + expect(event.fetchRelatedObject).not.ok; + } + }); + + it('Has fetchRelatedObject if needed', async () => { + const mockStripe = testUtils.createMockClient([ + { + method: 'GET', + path: '/v2/core/events?object_id=foo', + response: `{ + "data": [ + ${v2EventPayloadWithRelatedObject}, + ${v2EventPayloadWithRelatedObject}, + ${v2EventPayloadWithRelatedObject} + ], + "next_page_url": null + }`, + }, + ]); + const resp = await mockStripe.v2.core.events.list({object_id: 'foo'}); + expect(resp).ok; + expect(resp.data.length).is.equal(3); + for (const event of resp.data) { + expect(event.fetchRelatedObject).ok; + } + }); + + it('Has fetchRelatedObject added to autoPaginate results', async () => { + const mockStripe = testUtils.createMockClient([ + { + method: 'GET', + path: '/v2/core/events?object_id=foo', + response: `{ + "data": [ + ${v2EventPayloadWithRelatedObject}, + ${v2EventPayloadWithRelatedObject}, + ${v2EventPayloadWithRelatedObject} + ], + "next_page_url": "/next_page" + }`, + }, + { + method: 'GET', + path: '/next_page', + response: `{ + "data": [ + ${v2EventPayloadWithRelatedObject}, + ${v2EventPayloadWithRelatedObject}, + ${v2EventPayloadWithRelatedObject} + ], + "next_page_url": null + }`, + }, + ]); + const respProm = mockStripe.v2.core.events.list({object_id: 'foo'}); + expect(respProm).ok; + let totalEvents = 0; + await respProm.autoPagingEach(function(event) { + totalEvents += 1; + expect(event.fetchRelatedObject).ok; + }); + expect(totalEvents).is.equal(6); + }); + }); +}); diff --git a/test/testUtils.ts b/test/testUtils.ts index 454b273b46..f75ae08e87 100644 --- a/test/testUtils.ts +++ b/test/testUtils.ts @@ -158,7 +158,7 @@ export const createMockClient = ( throw new Error(`Unable to find a mock request for ${method} ${path}`); } - callback(null, Promise.resolve(JSON.parse(request.response))); + callback(null, JSON.parse(request.response)); }); }; diff --git a/types/V2/EventTypes.d.ts b/types/V2/EventTypes.d.ts index 4fe79efa87..a5a3110b45 100644 --- a/types/V2/EventTypes.d.ts +++ b/types/V2/EventTypes.d.ts @@ -16,8 +16,10 @@ declare module 'stripe' { type: 'v1.billing.meter.error_report_triggered'; // Retrieves data specific to this event. data: V1BillingMeterErrorReportTriggeredEvent.Data; - // Retrieves the object associated with the event. + // Object containing the reference to API resource relevant to the event. related_object: Event.RelatedObject; + // Retrieves the object associated with the event. + fetchRelatedObject(): Promise; } namespace V1BillingMeterErrorReportTriggeredEvent { From b69a4597625bb37932356d373ea1f62057c21dba Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Wed, 9 Oct 2024 11:10:35 -0700 Subject: [PATCH 10/27] Clean up examples (#2205) --- examples/snippets/example_template.ts | 21 +++++++++++++++++++ examples/snippets/meter_event_stream.ts | 12 +++++++++++ examples/snippets/new_example.ts | 7 ------- ...andler.js => thinevent_webhook_handler.js} | 12 +++++++++++ 4 files changed, 45 insertions(+), 7 deletions(-) create mode 100644 examples/snippets/example_template.ts delete mode 100644 examples/snippets/new_example.ts rename examples/snippets/{stripe_webhook_handler.js => thinevent_webhook_handler.js} (67%) diff --git a/examples/snippets/example_template.ts b/examples/snippets/example_template.ts new file mode 100644 index 0000000000..08c1fe65c3 --- /dev/null +++ b/examples/snippets/example_template.ts @@ -0,0 +1,21 @@ +/** + * example_template.py - This is a template for defining new examples. It is not intended to be used directly. + + * + + * In this example, we: + * - + * - + */ + +import {Stripe} from 'stripe'; + +const apiKey = '{{API_KEY}}'; + +console.log('Hello World'); +// const client = new Stripe(apiKey); +// client.v2.... diff --git a/examples/snippets/meter_event_stream.ts b/examples/snippets/meter_event_stream.ts index 6039ede351..fec60cce78 100644 --- a/examples/snippets/meter_event_stream.ts +++ b/examples/snippets/meter_event_stream.ts @@ -1,3 +1,15 @@ +/** + * meter_event_stream.ts - Use the high-throughput meter event stream to report create billing meter events. + * + * In this example, we: + * - create a meter event session and store the session's authentication token + * - define an event with a payload + * - use the meterEventStream service to create an event stream that reports this event + * + * This example expects a billing meter with an event_name of 'alpaca_ai_tokens'. If you have + * a different meter event name, you can change it before running this example. + */ + import {Stripe} from 'stripe'; const apiKey = '{{API_KEY}}'; diff --git a/examples/snippets/new_example.ts b/examples/snippets/new_example.ts deleted file mode 100644 index e521280c83..0000000000 --- a/examples/snippets/new_example.ts +++ /dev/null @@ -1,7 +0,0 @@ -import {Stripe} from 'stripe'; - -const apiKey = '{{API_KEY}}'; - -console.log('Hello World'); -// const client = new Stripe(apiKey); -// client.v2.... diff --git a/examples/snippets/stripe_webhook_handler.js b/examples/snippets/thinevent_webhook_handler.js similarity index 67% rename from examples/snippets/stripe_webhook_handler.js rename to examples/snippets/thinevent_webhook_handler.js index 063ef88ab5..86c56f1b66 100644 --- a/examples/snippets/stripe_webhook_handler.js +++ b/examples/snippets/thinevent_webhook_handler.js @@ -1,3 +1,15 @@ +/** + * thinevent_webhook_handler.js - receive and process thin events like the + * v1.billing.meter.error_report_triggered event. + * In this example, we: + * - create a Stripe client object called client + * - use client.parseThinEvent to parse the received thin event webhook body + * - call client.v2.core.events.retrieve to retrieve the full event object + * - if it is a v1.billing.meter.error_report_triggered event type, call + * event.fetchRelatedObject to retrieve the Billing Meter object associated + * with the event. + */ + const express = require('express'); const {Stripe} = require('stripe'); From 0c896edf61f1ad24627468f143b0d0d37db9e828 Mon Sep 17 00:00:00 2001 From: Jesse Rosalia Date: Wed, 9 Oct 2024 14:53:31 -0700 Subject: [PATCH 11/27] Bump version to 17.2.0 --- CHANGELOG.md | 4 ++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6e1ff1cb51..3137c06300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ # Changelog +## 17.2.0 - 2024-10-09 +* [#2201](https://github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed + * `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event + ## 17.1.0 - 2024-10-03 * [#2199](https://github.com/stripe/stripe-node/pull/2199) Update generated code * Remove the support for resource `Margin` that was accidentally made public in the last release diff --git a/VERSION b/VERSION index d9e58927a6..290a3f36db 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.1.0 +17.2.0 diff --git a/package.json b/package.json index 7671d3cbc6..3757676826 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.1.0", + "version": "17.2.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 077443504e..03da005082 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.1.0'; + Stripe.PACKAGE_VERSION = '17.2.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From 7a2e872eb087cf54d5c37c479f6742210458c6f1 Mon Sep 17 00:00:00 2001 From: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> Date: Mon, 14 Oct 2024 12:55:16 -0700 Subject: [PATCH 12/27] Update signature verification docs link (#2208) --- src/Webhooks.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Webhooks.ts b/src/Webhooks.ts index e0ffa5ea5c..7e31f23698 100644 --- a/src/Webhooks.ts +++ b/src/Webhooks.ts @@ -358,7 +358,7 @@ export function createWebhooks( const docsLocation = '\nLearn more about webhook signing and explore webhook integration examples for various frameworks at ' + - 'https://github.com/stripe/stripe-node#webhook-signing'; + 'https://docs.stripe.com/webhooks/signature'; const whitespaceMessage = secretContainsWhitespace ? '\n\nNote: The provided signing secret contains whitespace. This often indicates an extra newline or space is in the value' From d4a418a3e77e1f0efdc070d6d0cb2439a44bfc49 Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Fri, 18 Oct 2024 11:16:41 -0700 Subject: [PATCH 13/27] update object tags for meter-related classes (#2210) --- types/V2/Billing/MeterEventAdjustments.d.ts | 2 +- types/V2/Billing/MeterEventSessions.d.ts | 2 +- types/V2/Billing/MeterEvents.d.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/V2/Billing/MeterEventAdjustments.d.ts b/types/V2/Billing/MeterEventAdjustments.d.ts index 11b670631e..f654b3a706 100644 --- a/types/V2/Billing/MeterEventAdjustments.d.ts +++ b/types/V2/Billing/MeterEventAdjustments.d.ts @@ -16,7 +16,7 @@ declare module 'stripe' { /** * String representing the object's type. Objects of the same type share the same value of the object field. */ - object: 'billing.meter_event_adjustment'; + object: 'v2.billing.meter_event_adjustment'; /** * Specifies which event to cancel. diff --git a/types/V2/Billing/MeterEventSessions.d.ts b/types/V2/Billing/MeterEventSessions.d.ts index 6259622644..28943444d3 100644 --- a/types/V2/Billing/MeterEventSessions.d.ts +++ b/types/V2/Billing/MeterEventSessions.d.ts @@ -16,7 +16,7 @@ declare module 'stripe' { /** * String representing the object's type. Objects of the same type share the same value of the object field. */ - object: 'billing.meter_event_session'; + object: 'v2.billing.meter_event_session'; /** * The authentication token for this session. Use this token when calling the diff --git a/types/V2/Billing/MeterEvents.d.ts b/types/V2/Billing/MeterEvents.d.ts index 53aac66a23..0a0949c901 100644 --- a/types/V2/Billing/MeterEvents.d.ts +++ b/types/V2/Billing/MeterEvents.d.ts @@ -11,7 +11,7 @@ declare module 'stripe' { /** * String representing the object's type. Objects of the same type share the same value of the object field. */ - object: 'billing.meter_event'; + object: 'v2.billing.meter_event'; /** * The creation time of this meter event. From 768206df1b9d025853d5e34e6046beb502effdd9 Mon Sep 17 00:00:00 2001 From: David Brownman Date: Fri, 18 Oct 2024 11:41:33 -0700 Subject: [PATCH 14/27] Bump version to 17.2.1 --- CHANGELOG.md | 6 ++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3137c06300..54f2908b74 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ # Changelog +## 17.2.1 - 2024-10-18 +* [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes + + - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. +* [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link + ## 17.2.0 - 2024-10-09 * [#2201](https://github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed * `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event diff --git a/VERSION b/VERSION index 290a3f36db..7c95a07592 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.2.0 +17.2.1 diff --git a/package.json b/package.json index 3757676826..ca02bb0305 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.2.0", + "version": "17.2.1", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 03da005082..ca7f9a4e88 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.2.0'; + Stripe.PACKAGE_VERSION = '17.2.1'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From 8698096f58e376c624fa156044a97e1857686c31 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 29 Oct 2024 10:07:45 -0700 Subject: [PATCH 15/27] Update generated code (#2204) * Update generated code for v1268 * Update generated code for v1279 * Update generated code for v1314 * Update generated code for v1317 * Update generated code for v1318 * Update generated code for v1318 * Update generated code for v1319 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Prathmesh Ranaut --- OPENAPI_VERSION | 2 +- src/apiVersion.ts | 2 +- src/resources/TestHelpers/Issuing/Cards.ts | 4 + src/resources/V2/Core.ts | 2 + src/resources/V2/Core/EventDestinations.ts | 39 ++ .../resources/generated_examples_test.spec.js | 2 +- types/AccountSessions.d.ts | 35 +- types/AccountSessionsResource.d.ts | 35 +- types/Accounts.d.ts | 58 +- types/AccountsResource.d.ts | 174 +++++- types/Billing/CreditBalanceSummary.d.ts | 8 +- .../Billing/CreditBalanceSummaryResource.d.ts | 4 +- types/Billing/CreditBalanceTransactions.d.ts | 20 +- types/Billing/CreditGrants.d.ts | 19 +- types/Billing/CreditGrantsResource.d.ts | 12 +- types/Billing/Meters.d.ts | 2 + types/BillingPortal/Configurations.d.ts | 22 + .../BillingPortal/ConfigurationsResource.d.ts | 60 +- types/Charges.d.ts | 85 +++ types/Checkout/Sessions.d.ts | 83 ++- types/Checkout/SessionsResource.d.ts | 86 +++ types/ConfirmationTokens.d.ts | 75 +++ types/CreditNoteLineItems.d.ts | 3 + types/CreditNotes.d.ts | 3 + types/CreditNotesResource.d.ts | 6 +- types/CustomersResource.d.ts | 24 +- types/Disputes.d.ts | 152 +++++ types/DisputesResource.d.ts | 120 ++++ types/EventTypes.d.ts | 39 +- types/Events.d.ts | 2 + types/Forwarding/Requests.d.ts | 5 + types/Forwarding/RequestsResource.d.ts | 5 + types/InvoiceLineItems.d.ts | 3 + types/Invoices.d.ts | 16 +- types/InvoicesResource.d.ts | 47 +- types/Issuing/CardsResource.d.ts | 2 +- types/Mandates.d.ts | 8 + types/PaymentIntents.d.ts | 84 +++ types/PaymentIntentsResource.d.ts | 561 +++++++++++++++++- types/PaymentLinks.d.ts | 1 + types/PaymentLinksResource.d.ts | 2 + types/PaymentMethodConfigurations.d.ts | 36 ++ .../PaymentMethodConfigurationsResource.d.ts | 54 +- types/PaymentMethodDomains.d.ts | 28 + types/PaymentMethods.d.ts | 75 +++ types/PaymentMethodsResource.d.ts | 81 ++- types/Persons.d.ts | 2 +- types/Refunds.d.ts | 9 +- types/SetupAttempts.d.ts | 8 + types/SetupIntentsResource.d.ts | 177 +++++- types/Subscriptions.d.ts | 5 + types/SubscriptionsResource.d.ts | 14 +- types/Tax/CalculationLineItems.d.ts | 1 + types/Tax/Calculations.d.ts | 34 +- types/Tax/CalculationsResource.d.ts | 8 +- types/Tax/Registrations.d.ts | 82 +++ types/Tax/RegistrationsResource.d.ts | 109 ++++ types/Tax/Transactions.d.ts | 9 +- types/TaxIds.d.ts | 8 +- types/TaxIdsResource.d.ts | 8 +- types/TaxRates.d.ts | 25 + types/TaxRatesResource.d.ts | 2 + types/Terminal/Configurations.d.ts | 19 + types/Terminal/ConfigurationsResource.d.ts | 44 ++ .../ConfirmationTokensResource.d.ts | 59 +- types/TestHelpers/Issuing/CardsResource.d.ts | 22 + types/TokensResource.d.ts | 4 +- types/Treasury/FinancialAccounts.d.ts | 2 +- types/UsageRecordSummaries.d.ts | 2 +- types/V2/Core/EventDestinationsResource.d.ts | 281 +++++++++ types/V2/Core/EventsResource.d.ts | 2 +- types/V2/CoreResource.d.ts | 1 + types/V2/EventDestinations.d.ts | 164 +++++ types/WebhookEndpointsResource.d.ts | 7 +- types/index.d.ts | 2 + 75 files changed, 3198 insertions(+), 98 deletions(-) create mode 100644 src/resources/V2/Core/EventDestinations.ts create mode 100644 types/V2/Core/EventDestinationsResource.d.ts create mode 100644 types/V2/EventDestinations.d.ts diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 8f166ae2e0..c626f7dd81 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1268 \ No newline at end of file +v1319 \ No newline at end of file diff --git a/src/apiVersion.ts b/src/apiVersion.ts index c59d0bde0f..3ca0bbd17f 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec -export const ApiVersion = '2024-09-30.acacia'; +export const ApiVersion = '2024-10-28.acacia'; diff --git a/src/resources/TestHelpers/Issuing/Cards.ts b/src/resources/TestHelpers/Issuing/Cards.ts index a7393836fc..e0e5cdb778 100644 --- a/src/resources/TestHelpers/Issuing/Cards.ts +++ b/src/resources/TestHelpers/Issuing/Cards.ts @@ -19,4 +19,8 @@ export const Cards = StripeResource.extend({ method: 'POST', fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/ship', }), + submitCard: stripeMethod({ + method: 'POST', + fullPath: '/v1/test_helpers/issuing/cards/{card}/shipping/submit', + }), }); diff --git a/src/resources/V2/Core.ts b/src/resources/V2/Core.ts index 4f13f0cc90..10210e8ed1 100644 --- a/src/resources/V2/Core.ts +++ b/src/resources/V2/Core.ts @@ -1,10 +1,12 @@ // File generated from our OpenAPI spec import {StripeResource} from '../../StripeResource.js'; +import {EventDestinations} from './Core/EventDestinations.js'; import {Events} from './Core/Events.js'; export const Core = StripeResource.extend({ constructor: function(...args: any) { StripeResource.apply(this, args); + this.eventDestinations = new EventDestinations(...args); this.events = new Events(...args); }, }); diff --git a/src/resources/V2/Core/EventDestinations.ts b/src/resources/V2/Core/EventDestinations.ts new file mode 100644 index 0000000000..b857691e05 --- /dev/null +++ b/src/resources/V2/Core/EventDestinations.ts @@ -0,0 +1,39 @@ +// File generated from our OpenAPI spec + +import {StripeResource} from '../../../StripeResource.js'; +const stripeMethod = StripeResource.method; +export const EventDestinations = StripeResource.extend({ + create: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations', + }), + retrieve: stripeMethod({ + method: 'GET', + fullPath: '/v2/core/event_destinations/{id}', + }), + update: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}', + }), + list: stripeMethod({ + method: 'GET', + fullPath: '/v2/core/event_destinations', + methodType: 'list', + }), + del: stripeMethod({ + method: 'DELETE', + fullPath: '/v2/core/event_destinations/{id}', + }), + disable: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}/disable', + }), + enable: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}/enable', + }), + ping: stripeMethod({ + method: 'POST', + fullPath: '/v2/core/event_destinations/{id}/ping', + }), +}); diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 06c429bc1b..721cc88a0c 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -176,7 +176,7 @@ describe('Generated tests', function() { method: 'GET', path: '/v1/accounts/acc_123', response: - '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"cashapp","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","klarna_payments":"active","konbini_payments":"active","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","oxxo_payments":"pending","p24_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"sa_vat","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"cashapp","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"sa_vat","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', + '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"es_cif","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"es_cif","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index 175deba494..1bfbed7248 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -82,7 +82,12 @@ declare module 'stripe' { namespace AccountManagement { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; } @@ -100,7 +105,12 @@ declare module 'stripe' { namespace AccountOnboarding { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; } @@ -117,13 +127,18 @@ declare module 'stripe' { namespace Balances { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; @@ -164,7 +179,12 @@ declare module 'stripe' { namespace NotificationBanner { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; } @@ -247,13 +267,18 @@ declare module 'stripe' { namespace Payouts { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection: boolean; diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index fa571cb00d..7ade440453 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -93,7 +93,12 @@ declare module 'stripe' { namespace AccountManagement { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; } @@ -114,7 +119,12 @@ declare module 'stripe' { namespace AccountOnboarding { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; } @@ -134,13 +144,18 @@ declare module 'stripe' { namespace Balances { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule?: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; @@ -187,7 +202,12 @@ declare module 'stripe' { namespace NotificationBanner { interface Features { /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + + /** + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; } @@ -279,13 +299,18 @@ declare module 'stripe' { namespace Payouts { interface Features { + /** + * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + */ + disable_stripe_user_authentication?: boolean; + /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. */ edit_payout_schedule?: boolean; /** - * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements. + * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. */ external_account_collection?: boolean; diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index 84b7914a1a..445e6cb1db 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -40,7 +40,7 @@ declare module 'stripe' { capabilities?: Account.Capabilities; /** - * Whether the account can create live charges. + * Whether the account can process charges. */ charges_enabled: boolean; @@ -85,6 +85,11 @@ declare module 'stripe' { future_requirements?: Account.FutureRequirements; + /** + * The groups associated with the account. + */ + groups?: Account.Groups | null; + /** * This is an object representing a person associated with a Stripe account. * @@ -100,7 +105,7 @@ declare module 'stripe' { metadata?: Stripe.Metadata; /** - * Whether Stripe can send payouts to this account. + * Whether the funds in this account can be paid out. */ payouts_enabled: boolean; @@ -227,6 +232,11 @@ declare module 'stripe' { */ afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; + /** + * The status of the Alma capability of the account, or whether the account can directly process Alma payments. + */ + alma_payments?: Capabilities.AlmaPayments; + /** * The status of the AmazonPay capability of the account, or whether the account can directly process AmazonPay payments. */ @@ -327,6 +337,11 @@ declare module 'stripe' { */ jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; + /** + * The status of the KakaoPay capability of the account, or whether the account can directly process KakaoPay payments. + */ + kakao_pay_payments?: Capabilities.KakaoPayPayments; + /** * The status of the Klarna payments capability of the account, or whether the account can directly process Klarna charges. */ @@ -337,6 +352,11 @@ declare module 'stripe' { */ konbini_payments?: Capabilities.KonbiniPayments; + /** + * The status of the KrCard capability of the account, or whether the account can directly process KrCard payments. + */ + kr_card_payments?: Capabilities.KrCardPayments; + /** * The status of the legacy payments capability of the account. */ @@ -362,6 +382,11 @@ declare module 'stripe' { */ mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; + /** + * The status of the NaverPay capability of the account, or whether the account can directly process NaverPay payments. + */ + naver_pay_payments?: Capabilities.NaverPayPayments; + /** * The status of the OXXO payments capability of the account, or whether the account can directly process OXXO charges. */ @@ -372,6 +397,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The status of the Payco capability of the account, or whether the account can directly process Payco payments. + */ + payco_payments?: Capabilities.PaycoPayments; + /** * The status of the paynow payments capability of the account, or whether the account can directly process paynow charges. */ @@ -387,6 +417,11 @@ declare module 'stripe' { */ revolut_pay_payments?: Capabilities.RevolutPayPayments; + /** + * The status of the SamsungPay capability of the account, or whether the account can directly process SamsungPay payments. + */ + samsung_pay_payments?: Capabilities.SamsungPayPayments; + /** * The status of the SEPA customer_balance payments (EUR currency) capability of the account, or whether the account can directly process SEPA customer_balance charges. */ @@ -455,6 +490,8 @@ declare module 'stripe' { type AfterpayClearpayPayments = 'active' | 'inactive' | 'pending'; + type AlmaPayments = 'active' | 'inactive' | 'pending'; + type AmazonPayPayments = 'active' | 'inactive' | 'pending'; type AuBecsDebitPayments = 'active' | 'inactive' | 'pending'; @@ -495,10 +532,14 @@ declare module 'stripe' { type JpBankTransferPayments = 'active' | 'inactive' | 'pending'; + type KakaoPayPayments = 'active' | 'inactive' | 'pending'; + type KlarnaPayments = 'active' | 'inactive' | 'pending'; type KonbiniPayments = 'active' | 'inactive' | 'pending'; + type KrCardPayments = 'active' | 'inactive' | 'pending'; + type LegacyPayments = 'active' | 'inactive' | 'pending'; type LinkPayments = 'active' | 'inactive' | 'pending'; @@ -509,16 +550,22 @@ declare module 'stripe' { type MxBankTransferPayments = 'active' | 'inactive' | 'pending'; + type NaverPayPayments = 'active' | 'inactive' | 'pending'; + type OxxoPayments = 'active' | 'inactive' | 'pending'; type P24Payments = 'active' | 'inactive' | 'pending'; + type PaycoPayments = 'active' | 'inactive' | 'pending'; + type PaynowPayments = 'active' | 'inactive' | 'pending'; type PromptpayPayments = 'active' | 'inactive' | 'pending'; type RevolutPayPayments = 'active' | 'inactive' | 'pending'; + type SamsungPayPayments = 'active' | 'inactive' | 'pending'; + type SepaBankTransferPayments = 'active' | 'inactive' | 'pending'; type SepaDebitPayments = 'active' | 'inactive' | 'pending'; @@ -1012,6 +1059,13 @@ declare module 'stripe' { } } + interface Groups { + /** + * The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + */ + payments_pricing: string | null; + } + interface Requirements { /** * Fields that are due and can be satisfied by providing the corresponding alternative fields instead. diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index 416406eaac..5dbd3b701a 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -72,6 +72,11 @@ declare module 'stripe' { */ external_account?: string | AccountCreateParams.ExternalAccount; + /** + * A hash of account group type to tokens. These are account groups this account should be added to + */ + groups?: AccountCreateParams.Groups; + /** * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. */ @@ -209,6 +214,11 @@ declare module 'stripe' { */ afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; + /** + * The alma_payments capability. + */ + alma_payments?: Capabilities.AlmaPayments; + /** * The amazon_pay_payments capability. */ @@ -309,6 +319,11 @@ declare module 'stripe' { */ jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; + /** + * The kakao_pay_payments capability. + */ + kakao_pay_payments?: Capabilities.KakaoPayPayments; + /** * The klarna_payments capability. */ @@ -319,6 +334,11 @@ declare module 'stripe' { */ konbini_payments?: Capabilities.KonbiniPayments; + /** + * The kr_card_payments capability. + */ + kr_card_payments?: Capabilities.KrCardPayments; + /** * The legacy_payments capability. */ @@ -344,6 +364,11 @@ declare module 'stripe' { */ mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; + /** + * The naver_pay_payments capability. + */ + naver_pay_payments?: Capabilities.NaverPayPayments; + /** * The oxxo_payments capability. */ @@ -354,6 +379,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The payco_payments capability. + */ + payco_payments?: Capabilities.PaycoPayments; + /** * The paynow_payments capability. */ @@ -369,6 +399,11 @@ declare module 'stripe' { */ revolut_pay_payments?: Capabilities.RevolutPayPayments; + /** + * The samsung_pay_payments capability. + */ + samsung_pay_payments?: Capabilities.SamsungPayPayments; + /** * The sepa_bank_transfer_payments capability. */ @@ -452,6 +487,13 @@ declare module 'stripe' { requested?: boolean; } + interface AlmaPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface AmazonPayPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -592,6 +634,13 @@ declare module 'stripe' { requested?: boolean; } + interface KakaoPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface KlarnaPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -606,6 +655,13 @@ declare module 'stripe' { requested?: boolean; } + interface KrCardPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface LegacyPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -641,6 +697,13 @@ declare module 'stripe' { requested?: boolean; } + interface NaverPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface OxxoPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -655,6 +718,13 @@ declare module 'stripe' { requested?: boolean; } + interface PaycoPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface PaynowPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -676,6 +746,13 @@ declare module 'stripe' { requested?: boolean; } + interface SamsungPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface SepaBankTransferPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -1107,6 +1184,13 @@ declare module 'stripe' { account_number: string; } + interface Groups { + /** + * The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + */ + payments_pricing?: Stripe.Emptyable; + } + interface Individual { /** * The individual's primary address. @@ -1154,7 +1238,7 @@ declare module 'stripe' { full_name_aliases?: Stripe.Emptyable>; /** - * The individual's gender (International regulations require either "male" or "female"). + * The individual's gender */ gender?: string; @@ -1634,6 +1718,11 @@ declare module 'stripe' { | AccountUpdateParams.CardToken >; + /** + * A hash of account group type to tokens. These are account groups this account should be added to + */ + groups?: AccountUpdateParams.Groups; + /** * Information about the person represented by the account. This field is null unless `business_type` is set to `individual`. Once you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. */ @@ -1804,6 +1893,11 @@ declare module 'stripe' { */ afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; + /** + * The alma_payments capability. + */ + alma_payments?: Capabilities.AlmaPayments; + /** * The amazon_pay_payments capability. */ @@ -1904,6 +1998,11 @@ declare module 'stripe' { */ jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; + /** + * The kakao_pay_payments capability. + */ + kakao_pay_payments?: Capabilities.KakaoPayPayments; + /** * The klarna_payments capability. */ @@ -1914,6 +2013,11 @@ declare module 'stripe' { */ konbini_payments?: Capabilities.KonbiniPayments; + /** + * The kr_card_payments capability. + */ + kr_card_payments?: Capabilities.KrCardPayments; + /** * The legacy_payments capability. */ @@ -1939,6 +2043,11 @@ declare module 'stripe' { */ mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; + /** + * The naver_pay_payments capability. + */ + naver_pay_payments?: Capabilities.NaverPayPayments; + /** * The oxxo_payments capability. */ @@ -1949,6 +2058,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The payco_payments capability. + */ + payco_payments?: Capabilities.PaycoPayments; + /** * The paynow_payments capability. */ @@ -1964,6 +2078,11 @@ declare module 'stripe' { */ revolut_pay_payments?: Capabilities.RevolutPayPayments; + /** + * The samsung_pay_payments capability. + */ + samsung_pay_payments?: Capabilities.SamsungPayPayments; + /** * The sepa_bank_transfer_payments capability. */ @@ -2047,6 +2166,13 @@ declare module 'stripe' { requested?: boolean; } + interface AlmaPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface AmazonPayPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2187,6 +2313,13 @@ declare module 'stripe' { requested?: boolean; } + interface KakaoPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface KlarnaPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2201,6 +2334,13 @@ declare module 'stripe' { requested?: boolean; } + interface KrCardPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface LegacyPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2236,6 +2376,13 @@ declare module 'stripe' { requested?: boolean; } + interface NaverPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface OxxoPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2250,6 +2397,13 @@ declare module 'stripe' { requested?: boolean; } + interface PaycoPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface PaynowPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2271,6 +2425,13 @@ declare module 'stripe' { requested?: boolean; } + interface SamsungPayPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface SepaBankTransferPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2649,6 +2810,13 @@ declare module 'stripe' { } } + interface Groups { + /** + * The group the account is in to determine their payments pricing, and null if the account is on customized pricing. [See the Platform pricing tool documentation](https://stripe.com/docs/connect/platform-pricing-tools) for details. + */ + payments_pricing?: Stripe.Emptyable; + } + interface Individual { /** * The individual's primary address. @@ -2696,7 +2864,7 @@ declare module 'stripe' { full_name_aliases?: Stripe.Emptyable>; /** - * The individual's gender (International regulations require either "male" or "female"). + * The individual's gender */ gender?: string; @@ -4174,7 +4342,7 @@ declare module 'stripe' { ): Promise>; /** - * Creates a single-use login link for a connected account to access the Express Dashboard. + * Creates a login link for a connected account to access the Express Dashboard. * * You can only create login links for accounts that use the [Express Dashboard](https://stripe.com/connect/express-dashboard) and are connected to your platform. */ diff --git a/types/Billing/CreditBalanceSummary.d.ts b/types/Billing/CreditBalanceSummary.d.ts index 95c82c1f5d..c4627a288c 100644 --- a/types/Billing/CreditBalanceSummary.d.ts +++ b/types/Billing/CreditBalanceSummary.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace Billing { /** - * Indicates the credit balance for credits granted to a customer. + * Indicates the billing credit balance for billing credits granted to a customer. */ interface CreditBalanceSummary { /** @@ -13,7 +13,7 @@ declare module 'stripe' { object: 'billing.credit_balance_summary'; /** - * The credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. + * The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. */ balances: Array; @@ -43,7 +43,7 @@ declare module 'stripe' { monetary: AvailableBalance.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -69,7 +69,7 @@ declare module 'stripe' { monetary: LedgerBalance.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } diff --git a/types/Billing/CreditBalanceSummaryResource.d.ts b/types/Billing/CreditBalanceSummaryResource.d.ts index a2c9312449..a0f5f84ba0 100644 --- a/types/Billing/CreditBalanceSummaryResource.d.ts +++ b/types/Billing/CreditBalanceSummaryResource.d.ts @@ -23,12 +23,12 @@ declare module 'stripe' { namespace CreditBalanceSummaryRetrieveParams { interface Filter { /** - * The credit applicability scope for which to fetch balance summary. + * The billing credit applicability scope for which to fetch credit balance summary. */ applicability_scope?: Filter.ApplicabilityScope; /** - * The credit grant for which to fetch balance summary. + * The credit grant for which to fetch credit balance summary. */ credit_grant?: string; diff --git a/types/Billing/CreditBalanceTransactions.d.ts b/types/Billing/CreditBalanceTransactions.d.ts index 91b1b93dd4..860ad23f74 100644 --- a/types/Billing/CreditBalanceTransactions.d.ts +++ b/types/Billing/CreditBalanceTransactions.d.ts @@ -23,22 +23,22 @@ declare module 'stripe' { created: number; /** - * Credit details for this balance transaction. Only present if type is `credit`. + * Credit details for this credit balance transaction. Only present if type is `credit`. */ credit: CreditBalanceTransaction.Credit | null; /** - * The credit grant associated with this balance transaction. + * The credit grant associated with this credit balance transaction. */ credit_grant: string | Stripe.Billing.CreditGrant; /** - * Debit details for this balance transaction. Only present if type is `debit`. + * Debit details for this credit balance transaction. Only present if type is `debit`. */ debit: CreditBalanceTransaction.Debit | null; /** - * The effective time of this balance transaction. + * The effective time of this credit balance transaction. */ effective_at: number; @@ -53,7 +53,7 @@ declare module 'stripe' { test_clock: string | Stripe.TestHelpers.TestClock | null; /** - * The type of balance transaction (credit or debit). + * The type of credit balance transaction (credit or debit). */ type: CreditBalanceTransaction.Type | null; } @@ -76,7 +76,7 @@ declare module 'stripe' { monetary: Amount.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -100,7 +100,7 @@ declare module 'stripe' { amount: Debit.Amount; /** - * Details of how the credits were applied to an invoice. Only present if `type` is `credits_applied`. + * Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`. */ credits_applied: Debit.CreditsApplied | null; @@ -118,7 +118,7 @@ declare module 'stripe' { monetary: Amount.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -139,12 +139,12 @@ declare module 'stripe' { interface CreditsApplied { /** - * The invoice to which the credits were applied. + * The invoice to which the billing credits were applied. */ invoice: string | Stripe.Invoice; /** - * The invoice line item to which the credits were applied. + * The invoice line item to which the billing credits were applied. */ invoice_line_item: string; } diff --git a/types/Billing/CreditGrants.d.ts b/types/Billing/CreditGrants.d.ts index 9c93b0c433..3300eb0033 100644 --- a/types/Billing/CreditGrants.d.ts +++ b/types/Billing/CreditGrants.d.ts @@ -4,7 +4,10 @@ declare module 'stripe' { namespace Stripe { namespace Billing { /** - * A credit grant is a resource that records a grant of some credit to a customer. + * A credit grant is an API resource that documents the allocation of some billing credits to a customer. + * + * Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits) + * end */ interface CreditGrant { /** @@ -22,7 +25,7 @@ declare module 'stripe' { applicability_config: CreditGrant.ApplicabilityConfig; /** - * The category of this credit grant. + * The category of this credit grant. This is for tracking purposes and will not be displayed to the customer. */ category: CreditGrant.Category; @@ -32,17 +35,17 @@ declare module 'stripe' { created: number; /** - * Id of the customer to whom the credit was granted. + * ID of the customer to whom the billing credits are granted. */ customer: string | Stripe.Customer | Stripe.DeletedCustomer; /** - * The time when the credit becomes effective i.e when it is eligible to be used. + * The time when the billing credits become effective i.e when they are eligible to be used. */ effective_at: number | null; /** - * The time when the credit will expire. If not present, the credit will never expire. + * The time when the billing credits will expire. If not present, the billing credits will never expire. */ expires_at: number | null; @@ -57,7 +60,7 @@ declare module 'stripe' { metadata: Stripe.Metadata; /** - * A descriptive name shown in dashboard and on invoices. + * A descriptive name shown in dashboard. */ name: string | null; @@ -85,7 +88,7 @@ declare module 'stripe' { monetary: Amount.Monetary | null; /** - * The type of this amount. We currently only support `monetary` credits. + * The type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -111,7 +114,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. + * The price type to which credit grants can apply to. We currently only support `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. */ price_type: 'metered'; } diff --git a/types/Billing/CreditGrantsResource.d.ts b/types/Billing/CreditGrantsResource.d.ts index 82d5cc5f0c..6337db529d 100644 --- a/types/Billing/CreditGrantsResource.d.ts +++ b/types/Billing/CreditGrantsResource.d.ts @@ -20,12 +20,12 @@ declare module 'stripe' { category: CreditGrantCreateParams.Category; /** - * Id of the customer to whom the credit should be granted. + * ID of the customer to whom the billing credits should be granted. */ customer: string; /** - * The time when the credit becomes effective i.e when it is eligible to be used. Defaults to the current timestamp if not specified. + * The time when the billing credits become effective i.e when they are eligible to be used. Defaults to the current timestamp if not specified. */ effective_at?: number; @@ -35,7 +35,7 @@ declare module 'stripe' { expand?: Array; /** - * The time when the credit will expire. If not specified, the credit will never expire. + * The time when the billing credits will expire. If not specified, the billing credits will never expire. */ expires_at?: number; @@ -45,7 +45,7 @@ declare module 'stripe' { metadata?: Stripe.MetadataParam; /** - * A descriptive name shown in dashboard and on invoices. + * A descriptive name shown in dashboard. */ name?: string; } @@ -58,7 +58,7 @@ declare module 'stripe' { monetary?: Amount.Monetary; /** - * Specify the type of this amount. We currently only support `monetary` credits. + * Specify the type of this amount. We currently only support `monetary` billing credits. */ type: 'monetary'; } @@ -110,7 +110,7 @@ declare module 'stripe' { expand?: Array; /** - * The time when the credit created by this credit grant will expire. If set to empty, the credit will never expire. + * The time when the billing credits created by this credit grant will expire. If set to empty, the billing credits will never expire. */ expires_at?: Stripe.Emptyable; diff --git a/types/Billing/Meters.d.ts b/types/Billing/Meters.d.ts index ca9d47eb0d..4304c5b97d 100644 --- a/types/Billing/Meters.d.ts +++ b/types/Billing/Meters.d.ts @@ -5,6 +5,8 @@ declare module 'stripe' { namespace Billing { /** * A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make. + * + * Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) */ interface Meter { /** diff --git a/types/BillingPortal/Configurations.d.ts b/types/BillingPortal/Configurations.d.ts index 20762774a6..e97fe78223 100644 --- a/types/BillingPortal/Configurations.d.ts +++ b/types/BillingPortal/Configurations.d.ts @@ -209,6 +209,8 @@ declare module 'stripe' { * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation. */ proration_behavior: SubscriptionUpdate.ProrationBehavior; + + schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd; } namespace SubscriptionUpdate { @@ -230,6 +232,26 @@ declare module 'stripe' { | 'always_invoice' | 'create_prorations' | 'none'; + + interface ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, an update will be scheduled at the end of the current period. + */ + conditions: Array; + } + + namespace ScheduleAtPeriodEnd { + interface Condition { + /** + * The type of condition. + */ + type: Condition.Type; + } + + namespace Condition { + type Type = 'decreasing_item_amount' | 'shortening_interval'; + } + } } } diff --git a/types/BillingPortal/ConfigurationsResource.d.ts b/types/BillingPortal/ConfigurationsResource.d.ts index 949b391d2a..52bf0d150b 100644 --- a/types/BillingPortal/ConfigurationsResource.d.ts +++ b/types/BillingPortal/ConfigurationsResource.d.ts @@ -5,14 +5,14 @@ declare module 'stripe' { namespace BillingPortal { interface ConfigurationCreateParams { /** - * The business information shown to customers in the portal. + * Information about the features available in the portal. */ - business_profile: ConfigurationCreateParams.BusinessProfile; + features: ConfigurationCreateParams.Features; /** - * Information about the features available in the portal. + * The business information shown to customers in the portal. */ - features: ConfigurationCreateParams.Features; + business_profile?: ConfigurationCreateParams.BusinessProfile; /** * The default URL to redirect customers to when they click on the portal's link to return to your website. This can be [overriden](https://stripe.com/docs/api/customer_portal/sessions/create#create_portal_session-return_url) when creating the session. @@ -196,6 +196,11 @@ declare module 'stripe' { * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. */ proration_behavior?: SubscriptionUpdate.ProrationBehavior; + + /** + * Setting to control when an update should be scheduled at the end of the period instead of applying immediately. + */ + schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd; } namespace SubscriptionUpdate { @@ -217,6 +222,26 @@ declare module 'stripe' { | 'always_invoice' | 'create_prorations' | 'none'; + + interface ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, the update will be scheduled at the end of the current period. + */ + conditions?: Array; + } + + namespace ScheduleAtPeriodEnd { + interface Condition { + /** + * The type of condition. + */ + type: Condition.Type; + } + + namespace Condition { + type Type = 'decreasing_item_amount' | 'shortening_interval'; + } + } } } @@ -433,6 +458,11 @@ declare module 'stripe' { * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. */ proration_behavior?: SubscriptionUpdate.ProrationBehavior; + + /** + * Setting to control when an update should be scheduled at the end of the period instead of applying immediately. + */ + schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd; } namespace SubscriptionUpdate { @@ -454,6 +484,28 @@ declare module 'stripe' { | 'always_invoice' | 'create_prorations' | 'none'; + + interface ScheduleAtPeriodEnd { + /** + * List of conditions. When any condition is true, the update will be scheduled at the end of the current period. + */ + conditions?: Stripe.Emptyable< + Array + >; + } + + namespace ScheduleAtPeriodEnd { + interface Condition { + /** + * The type of condition. + */ + type: Condition.Type; + } + + namespace Condition { + type Type = 'decreasing_item_amount' | 'shortening_interval'; + } + } } } diff --git a/types/Charges.d.ts b/types/Charges.d.ts index e86d7818c0..34d99f040c 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -380,6 +380,8 @@ declare module 'stripe' { alipay?: PaymentMethodDetails.Alipay; + alma?: PaymentMethodDetails.Alma; + amazon_pay?: PaymentMethodDetails.AmazonPay; au_becs_debit?: PaymentMethodDetails.AuBecsDebit; @@ -412,20 +414,28 @@ declare module 'stripe' { interac_present?: PaymentMethodDetails.InteracPresent; + kakao_pay?: PaymentMethodDetails.KakaoPay; + klarna?: PaymentMethodDetails.Klarna; konbini?: PaymentMethodDetails.Konbini; + kr_card?: PaymentMethodDetails.KrCard; + link?: PaymentMethodDetails.Link; mobilepay?: PaymentMethodDetails.Mobilepay; multibanco?: PaymentMethodDetails.Multibanco; + naver_pay?: PaymentMethodDetails.NaverPay; + oxxo?: PaymentMethodDetails.Oxxo; p24?: PaymentMethodDetails.P24; + payco?: PaymentMethodDetails.Payco; + paynow?: PaymentMethodDetails.Paynow; paypal?: PaymentMethodDetails.Paypal; @@ -436,6 +446,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodDetails.RevolutPay; + samsung_pay?: PaymentMethodDetails.SamsungPay; + sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer; sepa_debit?: PaymentMethodDetails.SepaDebit; @@ -591,6 +603,8 @@ declare module 'stripe' { transaction_id: string | null; } + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1656,6 +1670,13 @@ declare module 'stripe' { } } + interface KakaoPay { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface Klarna { /** * The payer details for this transaction. @@ -1713,6 +1734,49 @@ declare module 'stripe' { } } + interface KrCard { + /** + * The local credit or debit card brand. + */ + brand: KrCard.Brand | null; + + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + + /** + * The last four digits of the card. This may not be present for American Express cards. + */ + last4: string | null; + } + + namespace KrCard { + type Brand = + | 'bc' + | 'citi' + | 'hana' + | 'hyundai' + | 'jeju' + | 'jeonbuk' + | 'kakaobank' + | 'kbank' + | 'kdbbank' + | 'kookmin' + | 'kwangju' + | 'lotte' + | 'mg' + | 'nh' + | 'post' + | 'samsung' + | 'savingsbank' + | 'shinhan' + | 'shinhyup' + | 'suhyup' + | 'tossbank' + | 'woori'; + } + interface Link { /** * Two-letter ISO code representing the funding source country beneath the Link payment. @@ -1769,6 +1833,13 @@ declare module 'stripe' { reference: string | null; } + interface NaverPay { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface Oxxo { /** * OXXO reference number @@ -1825,6 +1896,13 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface Paynow { /** * Reference number associated with this PayNow payment @@ -1897,6 +1975,13 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay { + /** + * A unique identifier for the buyer as determined by the local payment processor. + */ + buyer_id: string | null; + } + interface SepaCreditTransfer { /** * Name of the bank associated with the bank account. diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 6ea0510ccb..56b9f7e367 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -490,7 +490,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -512,6 +512,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -547,6 +548,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -570,10 +573,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -929,20 +935,28 @@ declare module 'stripe' { ideal?: PaymentMethodOptions.Ideal; + kakao_pay?: PaymentMethodOptions.KakaoPay; + klarna?: PaymentMethodOptions.Klarna; konbini?: PaymentMethodOptions.Konbini; + kr_card?: PaymentMethodOptions.KrCard; + link?: PaymentMethodOptions.Link; mobilepay?: PaymentMethodOptions.Mobilepay; multibanco?: PaymentMethodOptions.Multibanco; + naver_pay?: PaymentMethodOptions.NaverPay; + oxxo?: PaymentMethodOptions.Oxxo; p24?: PaymentMethodOptions.P24; + payco?: PaymentMethodOptions.Payco; + paynow?: PaymentMethodOptions.Paynow; paypal?: PaymentMethodOptions.Paypal; @@ -951,6 +965,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodOptions.RevolutPay; + samsung_pay?: PaymentMethodOptions.SamsungPay; + sepa_debit?: PaymentMethodOptions.SepaDebit; sofort?: PaymentMethodOptions.Sofort; @@ -1340,6 +1356,28 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KakaoPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KakaoPay.SetupFutureUsage; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1375,6 +1413,28 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KrCard.SetupFutureUsage; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1418,6 +1478,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Oxxo { /** * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1449,6 +1516,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Payco { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1518,6 +1592,13 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index a4d770e700..99d6740f21 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -1068,6 +1068,11 @@ declare module 'stripe' { */ ideal?: PaymentMethodOptions.Ideal; + /** + * contains details about the Kakao Pay payment method options. + */ + kakao_pay?: PaymentMethodOptions.KakaoPay; + /** * contains details about the Klarna payment method options. */ @@ -1078,6 +1083,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodOptions.Konbini; + /** + * contains details about the Korean card payment method options. + */ + kr_card?: PaymentMethodOptions.KrCard; + /** * contains details about the Link payment method options. */ @@ -1093,6 +1103,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodOptions.Multibanco; + /** + * contains details about the Kakao Pay payment method options. + */ + naver_pay?: PaymentMethodOptions.NaverPay; + /** * contains details about the OXXO payment method options. */ @@ -1103,6 +1118,11 @@ declare module 'stripe' { */ p24?: PaymentMethodOptions.P24; + /** + * contains details about the PAYCO payment method options. + */ + payco?: PaymentMethodOptions.Payco; + /** * contains details about the PayNow payment method options. */ @@ -1123,6 +1143,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodOptions.RevolutPay; + /** + * contains details about the Samsung Pay payment method options. + */ + samsung_pay?: PaymentMethodOptions.SamsungPay; + /** * contains details about the Sepa Debit payment method options. */ @@ -1544,6 +1569,23 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KakaoPay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KakaoPay.SetupFutureUsage; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1575,6 +1617,23 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KrCard.SetupFutureUsage; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1618,6 +1677,23 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: NaverPay.SetupFutureUsage; + } + + namespace NaverPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -1654,6 +1730,8 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco {} + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1753,6 +1831,8 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay {} + interface SepaDebit { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -1874,6 +1954,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1888,18 +1969,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 37dafc79fa..5a210c7154 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -151,6 +151,8 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodPreview.AllowRedisplay; + alma?: PaymentMethodPreview.Alma; + amazon_pay?: PaymentMethodPreview.AmazonPay; au_becs_debit?: PaymentMethodPreview.AuBecsDebit; @@ -190,20 +192,28 @@ declare module 'stripe' { interac_present?: PaymentMethodPreview.InteracPresent; + kakao_pay?: PaymentMethodPreview.KakaoPay; + klarna?: PaymentMethodPreview.Klarna; konbini?: PaymentMethodPreview.Konbini; + kr_card?: PaymentMethodPreview.KrCard; + link?: PaymentMethodPreview.Link; mobilepay?: PaymentMethodPreview.Mobilepay; multibanco?: PaymentMethodPreview.Multibanco; + naver_pay?: PaymentMethodPreview.NaverPay; + oxxo?: PaymentMethodPreview.Oxxo; p24?: PaymentMethodPreview.P24; + payco?: PaymentMethodPreview.Payco; + paynow?: PaymentMethodPreview.Paynow; paypal?: PaymentMethodPreview.Paypal; @@ -214,6 +224,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodPreview.RevolutPay; + samsung_pay?: PaymentMethodPreview.SamsungPay; + sepa_debit?: PaymentMethodPreview.SepaDebit; sofort?: PaymentMethodPreview.Sofort; @@ -270,6 +282,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1172,6 +1186,8 @@ declare module 'stripe' { | 'magnetic_stripe_track2'; } + interface KakaoPay {} + interface Klarna { /** * The customer's date of birth, if provided. @@ -1200,6 +1216,44 @@ declare module 'stripe' { interface Konbini {} + interface KrCard { + /** + * The local credit or debit card brand. + */ + brand: KrCard.Brand | null; + + /** + * The last four digits of the card. This may not be present for American Express cards. + */ + last4: string | null; + } + + namespace KrCard { + type Brand = + | 'bc' + | 'citi' + | 'hana' + | 'hyundai' + | 'jeju' + | 'jeonbuk' + | 'kakaobank' + | 'kbank' + | 'kdbbank' + | 'kookmin' + | 'kwangju' + | 'lotte' + | 'mg' + | 'nh' + | 'post' + | 'samsung' + | 'savingsbank' + | 'shinhan' + | 'shinhyup' + | 'suhyup' + | 'tossbank' + | 'woori'; + } + interface Link { /** * Account owner's email address. @@ -1217,6 +1271,17 @@ declare module 'stripe' { interface Multibanco {} + interface NaverPay { + /** + * Whether to fund this transaction with Naver Pay points or a card. + */ + funding: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -1256,6 +1321,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal { @@ -1277,6 +1344,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * Bank code of bank associated with the bank account. @@ -1339,6 +1408,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1355,18 +1425,23 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'interac_present' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/CreditNoteLineItems.d.ts b/types/CreditNoteLineItems.d.ts index 9395b6a7b0..28e46ceecb 100644 --- a/types/CreditNoteLineItems.d.ts +++ b/types/CreditNoteLineItems.d.ts @@ -51,6 +51,9 @@ declare module 'stripe' { */ livemode: boolean; + /** + * The pretax credit amounts (ex: discount, credit grants, etc) for this line item. + */ pretax_credit_amounts?: Array; /** diff --git a/types/CreditNotes.d.ts b/types/CreditNotes.d.ts index 9906a58586..7cda890c0a 100644 --- a/types/CreditNotes.d.ts +++ b/types/CreditNotes.d.ts @@ -106,6 +106,9 @@ declare module 'stripe' { */ pdf: string; + /** + * The pretax credit amounts (ex: discount, credit grants, etc) for all line items. + */ pretax_credit_amounts?: Array; /** diff --git a/types/CreditNotesResource.d.ts b/types/CreditNotesResource.d.ts index c3a3afcaff..ea8fb8a951 100644 --- a/types/CreditNotesResource.d.ts +++ b/types/CreditNotesResource.d.ts @@ -79,7 +79,7 @@ declare module 'stripe' { interface Line { /** - * The line item amount to credit. Only valid when `type` is `invoice_line_item`. + * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive */ amount?: number; @@ -289,7 +289,7 @@ declare module 'stripe' { interface Line { /** - * The line item amount to credit. Only valid when `type` is `invoice_line_item`. + * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive */ amount?: number; @@ -446,7 +446,7 @@ declare module 'stripe' { interface Line { /** - * The line item amount to credit. Only valid when `type` is `invoice_line_item`. + * The line item amount to credit. Only valid when `type` is `invoice_line_item`. If invoice is set up with `automatic_tax[enabled]=true`, this amount is tax exclusive */ amount?: number; diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index 6151f3097c..97bb8eb389 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -220,7 +220,7 @@ declare module 'stripe' { interface TaxIdDatum { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdDatum.Type; @@ -242,6 +242,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -277,6 +278,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -300,9 +303,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -524,7 +530,7 @@ declare module 'stripe' { } namespace Tax { - type ValidateLocation = 'deferred' | 'immediately'; + type ValidateLocation = 'auto' | 'deferred' | 'immediately'; } type TaxExempt = 'exempt' | 'none' | 'reverse'; @@ -663,7 +669,7 @@ declare module 'stripe' { interface CustomerCreateTaxIdParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: CustomerCreateTaxIdParams.Type; @@ -690,6 +696,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -725,6 +732,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -748,9 +757,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -807,6 +819,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -821,18 +834,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index 58b9257af7..c4c76ede2b 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -45,6 +45,11 @@ declare module 'stripe' { */ currency: string; + /** + * List of eligibility types that are included in `enhanced_evidence`. + */ + enhanced_eligibility_types: Array<'visa_compelling_evidence_3'>; + evidence: Dispute.Evidence; evidence_details: Dispute.EvidenceDetails; @@ -154,6 +159,8 @@ declare module 'stripe' { */ duplicate_charge_id: string | null; + enhanced_evidence: Evidence.EnhancedEvidence; + /** * A description of the product or service that was sold. */ @@ -225,12 +232,126 @@ declare module 'stripe' { uncategorized_text: string | null; } + 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 { /** * Date by which evidence must be submitted in order to successfully challenge dispute. Will be 0 if the customer's bank or credit card company doesn't allow a response for this particular dispute. */ due_by: number | null; + enhanced_eligibility: EvidenceDetails.EnhancedEligibility; + /** * Whether evidence has been staged for this dispute. */ @@ -247,6 +368,37 @@ declare module 'stripe' { submission_count: number; } + 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; + + /** + * 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 = 'not_qualified' | 'qualified' | 'requires_action'; + } + } + } + interface PaymentMethodDetails { amazon_pay?: PaymentMethodDetails.AmazonPay; diff --git a/types/DisputesResource.d.ts b/types/DisputesResource.d.ts index 3bbf30e906..a8c7a0c557 100644 --- a/types/DisputesResource.d.ts +++ b/types/DisputesResource.d.ts @@ -98,6 +98,11 @@ declare module 'stripe' { */ duplicate_charge_id?: string; + /** + * Additional evidence for qualifying evidence programs. + */ + enhanced_evidence?: Stripe.Emptyable; + /** * A description of the product or service that was sold. Has a maximum character count of 20,000. */ @@ -168,6 +173,121 @@ declare module 'stripe' { */ uncategorized_text?: string; } + + 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; + + /** + * 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; + + /** + * 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; + + /** + * The email address of the customer. + */ + customer_email_address?: Stripe.Emptyable; + + /** + * The IP address that the customer used when making the purchase. + */ + customer_purchase_ip?: Stripe.Emptyable; + + /** + * Categorization of disputed payment. + */ + merchandise_or_services?: DisputedTransaction.MerchandiseOrServices; + + /** + * A description of the product or service that was sold. + */ + product_description?: Stripe.Emptyable; + + /** + * 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; + + /** + * 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; + + /** + * 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; + + /** + * The email address of the customer. + */ + customer_email_address?: Stripe.Emptyable; + + /** + * The IP address that the customer used when making the purchase. + */ + customer_purchase_ip?: Stripe.Emptyable; + + /** + * A description of the product or service that was sold. + */ + product_description?: Stripe.Emptyable; + + /** + * 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; + } + } + } + } } interface DisputeListParams extends PaginationParams { diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index d22e466207..fd863eb4cb 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -123,6 +123,7 @@ declare module 'stripe' { | IssuingTokenCreatedEvent | IssuingTokenUpdatedEvent | IssuingTransactionCreatedEvent + | IssuingTransactionPurchaseDetailsReceiptUpdatedEvent | IssuingTransactionUpdatedEvent | MandateUpdatedEvent | PaymentIntentAmountCapturableUpdatedEvent @@ -166,6 +167,7 @@ declare module 'stripe' { | RadarEarlyFraudWarningCreatedEvent | RadarEarlyFraudWarningUpdatedEvent | RefundCreatedEvent + | RefundFailedEvent | RefundUpdatedEvent | ReportingReportRunFailedEvent | ReportingReportRunSucceededEvent @@ -2169,6 +2171,23 @@ declare module 'stripe' { } } + /** + * Occurs whenever an issuing transaction is updated with receipt data. + */ + interface IssuingTransactionPurchaseDetailsReceiptUpdatedEvent + extends EventBase { + type: 'issuing_transaction.purchase_details_receipt_updated'; + data: IssuingTransactionPurchaseDetailsReceiptUpdatedEvent.Data; + } + + namespace IssuingTransactionPurchaseDetailsReceiptUpdatedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Issuing.Transaction; + + previous_attributes?: Partial; + } + } + /** * Occurs whenever an issuing transaction is updated. */ @@ -2842,7 +2861,7 @@ declare module 'stripe' { } /** - * Occurs whenever a refund from a customer's cash balance is created. + * Occurs whenever a refund is created. */ interface RefundCreatedEvent extends EventBase { type: 'refund.created'; @@ -2858,7 +2877,23 @@ declare module 'stripe' { } /** - * Occurs whenever a refund from a customer's cash balance is updated. + * Occurs whenever a refund has failed. + */ + interface RefundFailedEvent extends EventBase { + type: 'refund.failed'; + data: RefundFailedEvent.Data; + } + + namespace RefundFailedEvent { + interface Data extends Stripe.Event.Data { + object: Stripe.Refund; + + previous_attributes?: Partial; + } + } + + /** + * Occurs whenever a refund is updated. */ interface RefundUpdatedEvent extends EventBase { type: 'refund.updated'; diff --git a/types/Events.d.ts b/types/Events.d.ts index 229505475a..889191e126 100644 --- a/types/Events.d.ts +++ b/types/Events.d.ts @@ -154,6 +154,7 @@ declare module 'stripe' { | 'issuing_token.created' | 'issuing_token.updated' | 'issuing_transaction.created' + | 'issuing_transaction.purchase_details_receipt_updated' | 'issuing_transaction.updated' | 'mandate.updated' | 'payment_intent.amount_capturable_updated' @@ -197,6 +198,7 @@ declare module 'stripe' { | 'radar.early_fraud_warning.created' | 'radar.early_fraud_warning.updated' | 'refund.created' + | 'refund.failed' | 'refund.updated' | 'reporting.report_run.failed' | 'reporting.report_run.succeeded' diff --git a/types/Forwarding/Requests.d.ts b/types/Forwarding/Requests.d.ts index 278f206228..aaeae30181 100644 --- a/types/Forwarding/Requests.d.ts +++ b/types/Forwarding/Requests.d.ts @@ -42,6 +42,11 @@ declare module 'stripe' { */ livemode: boolean; + /** + * 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; + /** * The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed. */ diff --git a/types/Forwarding/RequestsResource.d.ts b/types/Forwarding/RequestsResource.d.ts index 7ab588437a..9cf1c84653 100644 --- a/types/Forwarding/RequestsResource.d.ts +++ b/types/Forwarding/RequestsResource.d.ts @@ -28,6 +28,11 @@ declare module 'stripe' { * Specifies which fields in the response should be expanded. */ expand?: Array; + + /** + * 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 RequestCreateParams { diff --git a/types/InvoiceLineItems.d.ts b/types/InvoiceLineItems.d.ts index 53569a3951..d57ae60fae 100644 --- a/types/InvoiceLineItems.d.ts +++ b/types/InvoiceLineItems.d.ts @@ -80,6 +80,9 @@ declare module 'stripe' { */ plan: Stripe.Plan | null; + /** + * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this line item. + */ pretax_credit_amounts?: Array | null; /** diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 2658214f37..b775afc1b2 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -461,6 +461,9 @@ declare module 'stripe' { */ total_excluding_tax: number | null; + /** + * Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items. + */ total_pretax_credit_amounts?: Array< Invoice.TotalPretaxCreditAmount > | null; @@ -560,7 +563,7 @@ declare module 'stripe' { interface CustomerTaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: CustomerTaxId.Type; @@ -582,6 +585,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -617,6 +621,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -640,10 +646,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -1183,10 +1192,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 59ab729a1a..8ae7f7cf42 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -23,6 +23,11 @@ declare module 'stripe' { */ automatic_tax?: InvoiceCreateParams.AutomaticTax; + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. + */ + automatically_finalizes_at?: number; + /** * Either `charge_automatically`, or `send_invoice`. When charging automatically, Stripe will attempt to pay this invoice using the default source attached to the customer. When sending an invoice, Stripe will email this invoice to the customer with payment instructions. Defaults to `charge_automatically`. */ @@ -511,10 +516,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -764,6 +774,11 @@ declare module 'stripe' { */ automatic_tax?: InvoiceUpdateParams.AutomaticTax; + /** + * The time when this invoice should be scheduled to finalize. The invoice will be finalized at this time if it is still in draft state. To turn off automatic finalization, set `auto_advance` to false. + */ + automatically_finalizes_at?: number; + /** * Either `charge_automatically` or `send_invoice`. This field can be updated only on `draft` invoices. */ @@ -1215,10 +1230,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -1728,6 +1748,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -1900,7 +1921,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -1922,6 +1943,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -1957,6 +1979,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -1980,9 +2004,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -3078,7 +3105,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -3100,6 +3127,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -3135,6 +3163,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -3158,9 +3188,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -4464,7 +4497,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -4486,6 +4519,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -4521,6 +4555,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -4544,9 +4580,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -5814,6 +5853,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -6052,6 +6092,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Issuing/CardsResource.d.ts b/types/Issuing/CardsResource.d.ts index 6dda2d6910..bc141ec6a8 100644 --- a/types/Issuing/CardsResource.d.ts +++ b/types/Issuing/CardsResource.d.ts @@ -52,7 +52,7 @@ declare module 'stripe' { replacement_reason?: CardCreateParams.ReplacementReason; /** - * The second line to print on the card. + * The second line to print on the card. Max length: 24 characters. */ second_line?: Stripe.Emptyable; diff --git a/types/Mandates.d.ts b/types/Mandates.d.ts index 27b709e2b9..70c0e93ffa 100644 --- a/types/Mandates.d.ts +++ b/types/Mandates.d.ts @@ -100,6 +100,10 @@ declare module 'stripe' { cashapp?: PaymentMethodDetails.Cashapp; + kakao_pay?: PaymentMethodDetails.KakaoPay; + + kr_card?: PaymentMethodDetails.KrCard; + link?: PaymentMethodDetails.Link; paypal?: PaymentMethodDetails.Paypal; @@ -193,6 +197,10 @@ declare module 'stripe' { interface Cashapp {} + interface KakaoPay {} + + interface KrCard {} + interface Link {} interface Paypal { diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index d0c3b94a3a..456ae459a8 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -1286,6 +1286,8 @@ declare module 'stripe' { alipay?: PaymentMethodOptions.Alipay; + alma?: PaymentMethodOptions.Alma; + amazon_pay?: PaymentMethodOptions.AmazonPay; au_becs_debit?: PaymentMethodOptions.AuBecsDebit; @@ -1318,20 +1320,28 @@ declare module 'stripe' { interac_present?: PaymentMethodOptions.InteracPresent; + kakao_pay?: PaymentMethodOptions.KakaoPay; + klarna?: PaymentMethodOptions.Klarna; konbini?: PaymentMethodOptions.Konbini; + kr_card?: PaymentMethodOptions.KrCard; + link?: PaymentMethodOptions.Link; mobilepay?: PaymentMethodOptions.Mobilepay; multibanco?: PaymentMethodOptions.Multibanco; + naver_pay?: PaymentMethodOptions.NaverPay; + oxxo?: PaymentMethodOptions.Oxxo; p24?: PaymentMethodOptions.P24; + payco?: PaymentMethodOptions.Payco; + paynow?: PaymentMethodOptions.Paynow; paypal?: PaymentMethodOptions.Paypal; @@ -1342,6 +1352,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethodOptions.RevolutPay; + samsung_pay?: PaymentMethodOptions.SamsungPay; + sepa_debit?: PaymentMethodOptions.SepaDebit; sofort?: PaymentMethodOptions.Sofort; @@ -1476,6 +1488,13 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface AmazonPay { /** * Controls when the funds will be captured from the customer's account. @@ -1993,6 +2012,28 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KakaoPay.SetupFutureUsage; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds will be captured from the customer's account. @@ -2049,6 +2090,28 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KrCard.SetupFutureUsage; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds will be captured from the customer's account. @@ -2108,6 +2171,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Oxxo { /** * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -2139,6 +2209,13 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Payco { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2242,6 +2319,13 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + interface SepaDebit { mandate_options?: SepaDebit.MandateOptions; diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index a612f7262e..cc1b69607e 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -283,6 +283,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -358,6 +363,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -368,6 +378,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -388,6 +403,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -398,6 +418,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -428,6 +453,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -495,6 +525,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -643,7 +675,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -670,6 +702,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -698,12 +732,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -743,6 +790,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -760,6 +809,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -787,6 +838,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -800,18 +852,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -881,6 +938,11 @@ declare module 'stripe' { */ alipay?: Stripe.Emptyable; + /** + * If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + */ + alma?: Stripe.Emptyable; + /** * If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. */ @@ -963,6 +1025,11 @@ declare module 'stripe' { */ interac_present?: Stripe.Emptyable; + /** + * If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + */ + kakao_pay?: Stripe.Emptyable; + /** * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. */ @@ -973,6 +1040,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + */ + kr_card?: Stripe.Emptyable; + /** * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. */ @@ -988,6 +1060,11 @@ declare module 'stripe' { */ multibanco?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + */ + naver_pay?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -998,6 +1075,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + */ + payco?: Stripe.Emptyable; + /** * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. */ @@ -1023,6 +1105,11 @@ declare module 'stripe' { */ revolut_pay?: Stripe.Emptyable; + /** + * If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + */ + samsung_pay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -1199,6 +1286,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface AmazonPay { /** * Controls when the funds are captured from the customer's account. @@ -1861,6 +1959,32 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds are captured from the customer's account. @@ -1975,6 +2099,32 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds are captured from the customer's account. @@ -2048,6 +2198,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -2088,6 +2249,17 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -2231,6 +2403,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -2700,6 +2883,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -2775,6 +2963,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -2785,6 +2978,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -2805,6 +3003,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -2815,6 +3018,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -2845,6 +3053,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -2912,6 +3125,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -3060,7 +3275,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -3087,6 +3302,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -3115,12 +3332,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -3160,6 +3390,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -3177,6 +3409,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -3204,6 +3438,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -3217,18 +3452,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -3298,6 +3538,11 @@ declare module 'stripe' { */ alipay?: Stripe.Emptyable; + /** + * If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + */ + alma?: Stripe.Emptyable; + /** * If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. */ @@ -3380,6 +3625,11 @@ declare module 'stripe' { */ interac_present?: Stripe.Emptyable; + /** + * If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + */ + kakao_pay?: Stripe.Emptyable; + /** * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. */ @@ -3390,6 +3640,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + */ + kr_card?: Stripe.Emptyable; + /** * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. */ @@ -3405,6 +3660,11 @@ declare module 'stripe' { */ multibanco?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + */ + naver_pay?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -3415,6 +3675,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + */ + payco?: Stripe.Emptyable; + /** * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. */ @@ -3440,6 +3705,11 @@ declare module 'stripe' { */ revolut_pay?: Stripe.Emptyable; + /** + * If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + */ + samsung_pay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -3616,6 +3886,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface AmazonPay { /** * Controls when the funds are captured from the customer's account. @@ -4278,6 +4559,32 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds are captured from the customer's account. @@ -4392,6 +4699,32 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds are captured from the customer's account. @@ -4465,6 +4798,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -4505,6 +4849,17 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -4648,6 +5003,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -4954,11 +5320,9 @@ declare module 'stripe' { interface PaymentIntentApplyCustomerBalanceParams { /** - * Amount that you intend to apply to this PaymentIntent from the customer's cash balance. - * - * A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). + * Amount that you intend to apply to this PaymentIntent from the customer's cash balance. If the PaymentIntent was created by an Invoice, the full amount of the PaymentIntent is applied regardless of this parameter. * - * The maximum amount is the amount of the PaymentIntent. + * A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (for example, 100 cents to charge 1 USD or 100 to charge 100 JPY, a zero-decimal currency). The maximum amount is the amount of the PaymentIntent. * * When you omit the amount, it defaults to the remaining amount requested on the PaymentIntent. */ @@ -5229,6 +5593,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -5304,6 +5673,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -5314,6 +5688,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -5334,6 +5713,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -5344,6 +5728,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -5374,6 +5763,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -5441,6 +5835,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -5589,7 +5985,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -5616,6 +6012,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -5644,12 +6042,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -5689,6 +6100,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -5706,6 +6119,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -5733,6 +6148,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -5746,18 +6162,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -5827,6 +6248,11 @@ declare module 'stripe' { */ alipay?: Stripe.Emptyable; + /** + * If this is a `alma` PaymentMethod, this sub-hash contains details about the Alma payment method options. + */ + alma?: Stripe.Emptyable; + /** * If this is a `amazon_pay` PaymentMethod, this sub-hash contains details about the Amazon Pay payment method options. */ @@ -5909,6 +6335,11 @@ declare module 'stripe' { */ interac_present?: Stripe.Emptyable; + /** + * If this is a `kakao_pay` PaymentMethod, this sub-hash contains details about the Kakao Pay payment method options. + */ + kakao_pay?: Stripe.Emptyable; + /** * If this is a `klarna` PaymentMethod, this sub-hash contains details about the Klarna payment method options. */ @@ -5919,6 +6350,11 @@ declare module 'stripe' { */ konbini?: Stripe.Emptyable; + /** + * If this is a `kr_card` PaymentMethod, this sub-hash contains details about the KR Card payment method options. + */ + kr_card?: Stripe.Emptyable; + /** * If this is a `link` PaymentMethod, this sub-hash contains details about the Link payment method options. */ @@ -5934,6 +6370,11 @@ declare module 'stripe' { */ multibanco?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this sub-hash contains details about the Naver Pay payment method options. + */ + naver_pay?: Stripe.Emptyable; + /** * If this is a `oxxo` PaymentMethod, this sub-hash contains details about the OXXO payment method options. */ @@ -5944,6 +6385,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `payco` PaymentMethod, this sub-hash contains details about the PAYCO payment method options. + */ + payco?: Stripe.Emptyable; + /** * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. */ @@ -5969,6 +6415,11 @@ declare module 'stripe' { */ revolut_pay?: Stripe.Emptyable; + /** + * If this is a `samsung_pay` PaymentMethod, this sub-hash contains details about the Samsung Pay payment method options. + */ + samsung_pay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -6145,6 +6596,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface Alma { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface AmazonPay { /** * Controls when the funds are captured from the customer's account. @@ -6807,6 +7269,32 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KakaoPay { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Klarna { /** * Controls when the funds are captured from the customer's account. @@ -6921,6 +7409,32 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface KrCard { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Stripe.Emptyable; + } + + namespace KrCard { + type SetupFutureUsage = 'none' | 'off_session'; + } + interface Link { /** * Controls when the funds are captured from the customer's account. @@ -6994,6 +7508,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface NaverPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Oxxo { /** * The number of calendar days before an OXXO voucher expires. For example, if you create an OXXO voucher on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. @@ -7034,6 +7559,17 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Payco { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface Paynow { /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. @@ -7177,6 +7713,17 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface SamsungPay { + /** + * Controls when the funds are captured from the customer's account. + * + * If provided, this parameter overrides the behavior of the top-level [capture_method](https://stripe.com/api/payment_intents/update#update_payment_intent-capture_method) for this payment method type when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter unsets the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + } + interface SepaDebit { /** * Additional fields for Mandate creation diff --git a/types/PaymentLinks.d.ts b/types/PaymentLinks.d.ts index bc4b6cb641..4ee7ef62be 100644 --- a/types/PaymentLinks.d.ts +++ b/types/PaymentLinks.d.ts @@ -542,6 +542,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index da7bec4acf..c5d8aa6088 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -601,6 +601,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' @@ -1525,6 +1526,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' diff --git a/types/PaymentMethodConfigurations.d.ts b/types/PaymentMethodConfigurations.d.ts index 53aa3aadae..f5157ca0d3 100644 --- a/types/PaymentMethodConfigurations.d.ts +++ b/types/PaymentMethodConfigurations.d.ts @@ -42,6 +42,8 @@ declare module 'stripe' { alipay?: PaymentMethodConfiguration.Alipay; + alma?: PaymentMethodConfiguration.Alma; + amazon_pay?: PaymentMethodConfiguration.AmazonPay; apple_pay?: PaymentMethodConfiguration.ApplePay; @@ -277,6 +279,40 @@ declare module 'stripe' { } } + interface Alma { + /** + * 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: Alma.DisplayPreference; + } + + namespace Alma { + 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 AmazonPay { /** * Whether this payment method may be offered at checkout. True if `display_preference` is `on` and the payment method's capability is active. diff --git a/types/PaymentMethodConfigurationsResource.d.ts b/types/PaymentMethodConfigurationsResource.d.ts index c7ff55d37d..58f9efff96 100644 --- a/types/PaymentMethodConfigurationsResource.d.ts +++ b/types/PaymentMethodConfigurationsResource.d.ts @@ -23,6 +23,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodConfigurationCreateParams.Alipay; + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments. + */ + alma?: PaymentMethodConfigurationCreateParams.Alma; + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon. */ @@ -209,7 +214,7 @@ declare module 'stripe' { twint?: PaymentMethodConfigurationCreateParams.Twint; /** - * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. + * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details. */ us_bank_account?: PaymentMethodConfigurationCreateParams.UsBankAccount; @@ -305,6 +310,26 @@ declare module 'stripe' { } } + interface Alma { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Alma.DisplayPreference; + } + + namespace Alma { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface AmazonPay { /** * Whether or not the payment method should be displayed. @@ -1079,6 +1104,11 @@ declare module 'stripe' { */ alipay?: PaymentMethodConfigurationUpdateParams.Alipay; + /** + * Alma is a Buy Now, Pay Later payment method that offers customers the ability to pay in 2, 3, or 4 installments. + */ + alma?: PaymentMethodConfigurationUpdateParams.Alma; + /** * Amazon Pay is a wallet payment method that lets your customers check out the same way as on Amazon. */ @@ -1260,7 +1290,7 @@ declare module 'stripe' { twint?: PaymentMethodConfigurationUpdateParams.Twint; /** - * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-debit) for more details. + * Stripe users in the United States can accept ACH direct debit payments from customers with a US bank account using the Automated Clearing House (ACH) payments system operated by Nacha. Check this [page](https://stripe.com/docs/payments/ach-direct-debit) for more details. */ us_bank_account?: PaymentMethodConfigurationUpdateParams.UsBankAccount; @@ -1356,6 +1386,26 @@ declare module 'stripe' { } } + interface Alma { + /** + * Whether or not the payment method should be displayed. + */ + display_preference?: Alma.DisplayPreference; + } + + namespace Alma { + interface DisplayPreference { + /** + * The account's preference for whether or not to display this payment method. + */ + preference?: DisplayPreference.Preference; + } + + namespace DisplayPreference { + type Preference = 'none' | 'off' | 'on'; + } + } + interface AmazonPay { /** * Whether or not the payment method should be displayed. diff --git a/types/PaymentMethodDomains.d.ts b/types/PaymentMethodDomains.d.ts index f11f39a902..cefded0fee 100644 --- a/types/PaymentMethodDomains.d.ts +++ b/types/PaymentMethodDomains.d.ts @@ -19,6 +19,11 @@ declare module 'stripe' { */ object: 'payment_method_domain'; + /** + * Indicates the status of a specific payment method on a payment method domain. + */ + amazon_pay: PaymentMethodDomain.AmazonPay; + /** * Indicates the status of a specific payment method on a payment method domain. */ @@ -61,6 +66,29 @@ declare module 'stripe' { } namespace PaymentMethodDomain { + interface AmazonPay { + /** + * The status of the payment method on the domain. + */ + status: AmazonPay.Status; + + /** + * Contains additional details about the status of a payment method for a specific payment method domain. + */ + status_details?: AmazonPay.StatusDetails; + } + + namespace AmazonPay { + type Status = 'active' | 'inactive'; + + interface StatusDetails { + /** + * The error message associated with the status of the payment method on the domain. + */ + error_message: string; + } + } + interface ApplePay { /** * The status of the payment method on the domain. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index 3151ede73c..df50a4e7fd 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -33,6 +33,8 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethod.AllowRedisplay; + alma?: PaymentMethod.Alma; + amazon_pay?: PaymentMethod.AmazonPay; au_becs_debit?: PaymentMethod.AuBecsDebit; @@ -77,10 +79,14 @@ declare module 'stripe' { interac_present?: PaymentMethod.InteracPresent; + kakao_pay?: PaymentMethod.KakaoPay; + klarna?: PaymentMethod.Klarna; konbini?: PaymentMethod.Konbini; + kr_card?: PaymentMethod.KrCard; + link?: PaymentMethod.Link; /** @@ -97,10 +103,14 @@ declare module 'stripe' { multibanco?: PaymentMethod.Multibanco; + naver_pay?: PaymentMethod.NaverPay; + oxxo?: PaymentMethod.Oxxo; p24?: PaymentMethod.P24; + payco?: PaymentMethod.Payco; + paynow?: PaymentMethod.Paynow; paypal?: PaymentMethod.Paypal; @@ -116,6 +126,8 @@ declare module 'stripe' { revolut_pay?: PaymentMethod.RevolutPay; + samsung_pay?: PaymentMethod.SamsungPay; + sepa_debit?: PaymentMethod.SepaDebit; sofort?: PaymentMethod.Sofort; @@ -172,6 +184,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1074,6 +1088,8 @@ declare module 'stripe' { | 'magnetic_stripe_track2'; } + interface KakaoPay {} + interface Klarna { /** * The customer's date of birth, if provided. @@ -1102,6 +1118,44 @@ declare module 'stripe' { interface Konbini {} + interface KrCard { + /** + * The local credit or debit card brand. + */ + brand: KrCard.Brand | null; + + /** + * The last four digits of the card. This may not be present for American Express cards. + */ + last4: string | null; + } + + namespace KrCard { + type Brand = + | 'bc' + | 'citi' + | 'hana' + | 'hyundai' + | 'jeju' + | 'jeonbuk' + | 'kakaobank' + | 'kbank' + | 'kdbbank' + | 'kookmin' + | 'kwangju' + | 'lotte' + | 'mg' + | 'nh' + | 'post' + | 'samsung' + | 'savingsbank' + | 'shinhan' + | 'shinhyup' + | 'suhyup' + | 'tossbank' + | 'woori'; + } + interface Link { /** * Account owner's email address. @@ -1119,6 +1173,17 @@ declare module 'stripe' { interface Multibanco {} + interface NaverPay { + /** + * Whether to fund this transaction with Naver Pay points or a card. + */ + funding: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -1158,6 +1223,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal { @@ -1186,6 +1253,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * Bank code of bank associated with the bank account. @@ -1248,6 +1317,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1264,18 +1334,23 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'interac_present' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/PaymentMethodsResource.d.ts b/types/PaymentMethodsResource.d.ts index 9d2398e5e1..5b5d933872 100644 --- a/types/PaymentMethodsResource.d.ts +++ b/types/PaymentMethodsResource.d.ts @@ -28,6 +28,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodCreateParams.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodCreateParams.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -118,6 +123,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodCreateParams.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodCreateParams.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -128,6 +138,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodCreateParams.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodCreateParams.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -148,6 +163,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodCreateParams.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodCreateParams.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -158,6 +178,11 @@ declare module 'stripe' { */ p24?: PaymentMethodCreateParams.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodCreateParams.Payco; + /** * The PaymentMethod to share. */ @@ -193,6 +218,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodCreateParams.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodCreateParams.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -260,6 +290,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -453,7 +485,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -480,6 +512,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -508,12 +542,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -553,6 +600,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -570,6 +619,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -597,6 +648,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -611,18 +663,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -707,6 +764,11 @@ declare module 'stripe' { */ metadata?: Stripe.Emptyable; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodUpdateParams.NaverPay; + /** * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. */ @@ -770,6 +832,17 @@ declare module 'stripe' { interface Link {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface UsBankAccount { /** * Bank account holder type. @@ -812,6 +885,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -826,18 +900,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/Persons.d.ts b/types/Persons.d.ts index 15c611f98c..a641827f02 100644 --- a/types/Persons.d.ts +++ b/types/Persons.d.ts @@ -102,7 +102,7 @@ declare module 'stripe' { future_requirements?: Person.FutureRequirements | null; /** - * The person's gender (International regulations require either "male" or "female"). + * The person's gender. */ gender?: string | null; diff --git a/types/Refunds.d.ts b/types/Refunds.d.ts index e9bc8fd90a..2ffe05dcb9 100644 --- a/types/Refunds.d.ts +++ b/types/Refunds.d.ts @@ -113,6 +113,8 @@ declare module 'stripe' { alipay?: DestinationDetails.Alipay; + alma?: DestinationDetails.Alma; + amazon_pay?: DestinationDetails.AmazonPay; au_bank_transfer?: DestinationDetails.AuBankTransfer; @@ -180,6 +182,8 @@ declare module 'stripe' { interface Alipay {} + interface Alma {} + interface AmazonPay {} interface AuBankTransfer {} @@ -370,10 +374,7 @@ declare module 'stripe' { } interface NextAction { - /** - * Contains the refund details. - */ - display_details: NextAction.DisplayDetails | null; + display_details?: NextAction.DisplayDetails; /** * Type of the next action to perform. diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 39562514e2..0257ae56d0 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -110,8 +110,12 @@ declare module 'stripe' { ideal?: PaymentMethodDetails.Ideal; + kakao_pay?: PaymentMethodDetails.KakaoPay; + klarna?: PaymentMethodDetails.Klarna; + kr_card?: PaymentMethodDetails.KrCard; + link?: PaymentMethodDetails.Link; paypal?: PaymentMethodDetails.Paypal; @@ -462,8 +466,12 @@ declare module 'stripe' { | 'TRIONL2U'; } + interface KakaoPay {} + interface Klarna {} + interface KrCard {} + interface Link {} interface Paypal {} diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index cff8638b11..81184df594 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -209,6 +209,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -284,6 +289,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -294,6 +304,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -314,6 +329,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -324,6 +344,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -354,6 +379,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -421,6 +451,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -569,7 +601,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -596,6 +628,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -624,12 +658,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -669,6 +716,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -686,6 +735,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -713,6 +764,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -726,18 +778,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -1336,6 +1393,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -1411,6 +1473,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -1421,6 +1488,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -1441,6 +1513,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -1451,6 +1528,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -1481,6 +1563,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -1548,6 +1635,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -1696,7 +1785,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -1723,6 +1812,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -1751,12 +1842,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -1796,6 +1900,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -1813,6 +1919,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -1840,6 +1948,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -1853,18 +1962,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' @@ -2512,6 +2626,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -2587,6 +2706,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -2597,6 +2721,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -2617,6 +2746,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -2627,6 +2761,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -2657,6 +2796,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -2724,6 +2868,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -2872,7 +3018,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -2899,6 +3045,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -2927,12 +3075,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -2972,6 +3133,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -2989,6 +3152,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -3016,6 +3181,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -3029,18 +3195,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index 879ab18071..ccb349e153 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -645,10 +645,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 5033c38baf..c0b323bca1 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -782,10 +782,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -1656,10 +1661,15 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'jp_credit_transfer' + | 'kakao_pay' | 'konbini' + | 'kr_card' | 'link' | 'multibanco' + | 'naver_pay' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'promptpay' @@ -1817,7 +1827,7 @@ declare module 'stripe' { expand?: Array; /** - * Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `true`. + * Will generate a final invoice that invoices for any un-invoiced metered usage and new/pending proration invoice items. Defaults to `false`. */ invoice_now?: boolean; @@ -1857,7 +1867,7 @@ declare module 'stripe' { interface SubscriptionResumeParams { /** - * Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). Setting the value to `unchanged` advances the subscription's billing cycle anchor to the period that surrounds the current time. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). + * The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://stripe.com/docs/billing/subscriptions/billing-cycle). */ billing_cycle_anchor?: SubscriptionResumeParams.BillingCycleAnchor; diff --git a/types/Tax/CalculationLineItems.d.ts b/types/Tax/CalculationLineItems.d.ts index 1b106c5de3..eae8271ddc 100644 --- a/types/Tax/CalculationLineItems.d.ts +++ b/types/Tax/CalculationLineItems.d.ts @@ -169,6 +169,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 6d3364c255..0aef408064 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -120,7 +120,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -142,6 +142,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -177,6 +178,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -200,10 +203,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -352,6 +358,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -407,11 +414,21 @@ declare module 'stripe' { */ country: string | null; + /** + * The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + */ + flat_amount: TaxRateDetails.FlatAmount | null; + /** * The tax rate percentage as a string. For example, 8.5% is represented as `"8.5"`. */ percentage_decimal: string; + /** + * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. + */ + rate_type: TaxRateDetails.RateType | null; + /** * State, county, province, or region. */ @@ -424,6 +441,20 @@ declare module 'stripe' { } namespace TaxRateDetails { + interface FlatAmount { + /** + * Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge Ā„100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + amount: number; + + /** + * Three-letter ISO currency code, in lowercase. + */ + currency: string; + } + + type RateType = 'flat_amount' | 'percentage'; + type TaxType = | 'amusement_tax' | 'communications_tax' @@ -434,6 +465,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index eee0312e72..d1fb0dbe7f 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -115,7 +115,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -137,6 +137,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -172,6 +173,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -195,9 +198,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; diff --git a/types/Tax/Registrations.d.ts b/types/Tax/Registrations.d.ts index afe8693a57..149132dd86 100644 --- a/types/Tax/Registrations.d.ts +++ b/types/Tax/Registrations.d.ts @@ -68,6 +68,8 @@ declare module 'stripe' { bh?: CountryOptions.Bh; + by?: CountryOptions.By; + ca?: CountryOptions.Ca; ch?: CountryOptions.Ch; @@ -76,6 +78,8 @@ declare module 'stripe' { co?: CountryOptions.Co; + cr?: CountryOptions.Cr; + cy?: CountryOptions.Cy; cz?: CountryOptions.Cz; @@ -84,6 +88,8 @@ declare module 'stripe' { dk?: CountryOptions.Dk; + ec?: CountryOptions.Ec; + ee?: CountryOptions.Ee; eg?: CountryOptions.Eg; @@ -126,6 +132,10 @@ declare module 'stripe' { lv?: CountryOptions.Lv; + ma?: CountryOptions.Ma; + + md?: CountryOptions.Md; + mt?: CountryOptions.Mt; mx?: CountryOptions.Mx; @@ -148,6 +158,10 @@ declare module 'stripe' { ro?: CountryOptions.Ro; + rs?: CountryOptions.Rs; + + ru?: CountryOptions.Ru; + sa?: CountryOptions.Sa; se?: CountryOptions.Se; @@ -162,8 +176,12 @@ declare module 'stripe' { tr?: CountryOptions.Tr; + tz?: CountryOptions.Tz; + us?: CountryOptions.Us; + uz?: CountryOptions.Uz; + vn?: CountryOptions.Vn; za?: CountryOptions.Za; @@ -263,6 +281,13 @@ declare module 'stripe' { type: 'standard'; } + interface By { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Ca { province_standard?: Ca.ProvinceStandard; @@ -304,6 +329,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Cr { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Cy { standard?: Cy.Standard; @@ -400,6 +432,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ec { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Ee { standard?: Ee.Standard; @@ -751,6 +790,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ma { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + + interface Md { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Mt { standard?: Mt.Standard; @@ -913,6 +966,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Rs { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + interface Ru { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Sa { /** * Type of registration in `country`. @@ -1013,6 +1080,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Tz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Us { local_amusement_tax?: Us.LocalAmusementTax; @@ -1078,9 +1152,17 @@ declare module 'stripe' { | 'local_amusement_tax' | 'local_lease_tax' | 'state_communications_tax' + | 'state_retail_delivery_fee' | 'state_sales_tax'; } + interface Uz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Vn { /** * Type of registration in `country`. diff --git a/types/Tax/RegistrationsResource.d.ts b/types/Tax/RegistrationsResource.d.ts index 0e95503407..e73f9e5b1d 100644 --- a/types/Tax/RegistrationsResource.d.ts +++ b/types/Tax/RegistrationsResource.d.ts @@ -62,6 +62,11 @@ declare module 'stripe' { */ bh?: CountryOptions.Bh; + /** + * Options for the registration in BY. + */ + by?: CountryOptions.By; + /** * Options for the registration in CA. */ @@ -82,6 +87,11 @@ declare module 'stripe' { */ co?: CountryOptions.Co; + /** + * Options for the registration in CR. + */ + cr?: CountryOptions.Cr; + /** * Options for the registration in CY. */ @@ -102,6 +112,11 @@ declare module 'stripe' { */ dk?: CountryOptions.Dk; + /** + * Options for the registration in EC. + */ + ec?: CountryOptions.Ec; + /** * Options for the registration in EE. */ @@ -207,6 +222,16 @@ declare module 'stripe' { */ lv?: CountryOptions.Lv; + /** + * Options for the registration in MA. + */ + ma?: CountryOptions.Ma; + + /** + * Options for the registration in MD. + */ + md?: CountryOptions.Md; + /** * Options for the registration in MT. */ @@ -262,6 +287,16 @@ declare module 'stripe' { */ ro?: CountryOptions.Ro; + /** + * Options for the registration in RS. + */ + rs?: CountryOptions.Rs; + + /** + * Options for the registration in RU. + */ + ru?: CountryOptions.Ru; + /** * Options for the registration in SA. */ @@ -297,11 +332,21 @@ declare module 'stripe' { */ tr?: CountryOptions.Tr; + /** + * Options for the registration in TZ. + */ + tz?: CountryOptions.Tz; + /** * Options for the registration in US. */ us?: CountryOptions.Us; + /** + * Options for the registration in UZ. + */ + uz?: CountryOptions.Uz; + /** * Options for the registration in VN. */ @@ -416,6 +461,13 @@ declare module 'stripe' { type: 'standard'; } + interface By { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Ca { /** * Options for the provincial tax registration. @@ -460,6 +512,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Cr { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Cy { /** * Options for the standard registration. @@ -568,6 +627,13 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ec { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Ee { /** * Options for the standard registration. @@ -955,6 +1021,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Ma { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + + interface Md { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Mt { /** * Options for the standard registration. @@ -1132,6 +1212,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Rs { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + + interface Ru { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Sa { /** * Type of registration to be created in `country`. @@ -1241,6 +1335,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Tz { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Us { /** * Options for the local amusement tax registration. @@ -1315,9 +1416,17 @@ declare module 'stripe' { | 'local_amusement_tax' | 'local_lease_tax' | 'state_communications_tax' + | 'state_retail_delivery_fee' | 'state_sales_tax'; } + interface Uz { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Vn { /** * Type of registration to be created in `country`. diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index d3976e9fad..39a863a762 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -125,7 +125,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -147,6 +147,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -182,6 +183,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -205,10 +208,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; @@ -364,6 +370,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/TaxIds.d.ts b/types/TaxIds.d.ts index 8e40f4e485..d8127b04cf 100644 --- a/types/TaxIds.d.ts +++ b/types/TaxIds.d.ts @@ -70,7 +70,7 @@ declare module 'stripe' { owner: TaxId.Owner | null; /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` */ type: TaxId.Type; @@ -123,6 +123,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -158,6 +159,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -181,10 +184,13 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'unknown' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; diff --git a/types/TaxIdsResource.d.ts b/types/TaxIdsResource.d.ts index 2e4dc182d7..d92a6c5aee 100644 --- a/types/TaxIdsResource.d.ts +++ b/types/TaxIdsResource.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { interface TaxIdCreateParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdCreateParams.Type; @@ -57,6 +57,7 @@ declare module 'stripe' { | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' @@ -92,6 +93,8 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'ma_vat' + | 'md_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -115,9 +118,12 @@ declare module 'stripe' { | 'th_vat' | 'tr_tin' | 'tw_vat' + | 'tz_vat' | 'ua_vat' | 'us_ein' | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat'; diff --git a/types/TaxRates.d.ts b/types/TaxRates.d.ts index d720a5b6fe..76f9e75d16 100644 --- a/types/TaxRates.d.ts +++ b/types/TaxRates.d.ts @@ -50,6 +50,11 @@ declare module 'stripe' { */ effective_percentage: number | null; + /** + * The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + */ + flat_amount: TaxRate.FlatAmount | null; + /** * This specifies if the tax rate is inclusive or exclusive. */ @@ -80,6 +85,11 @@ declare module 'stripe' { */ percentage: number; + /** + * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. + */ + rate_type: TaxRate.RateType | null; + /** * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States. */ @@ -92,6 +102,18 @@ declare module 'stripe' { } namespace TaxRate { + interface FlatAmount { + /** + * Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge Ā„100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + amount: number; + + /** + * Three-letter ISO currency code, in lowercase. + */ + currency: string; + } + type JurisdictionLevel = | 'city' | 'country' @@ -100,6 +122,8 @@ declare module 'stripe' { | 'multiple' | 'state'; + type RateType = 'flat_amount' | 'percentage'; + type TaxType = | 'amusement_tax' | 'communications_tax' @@ -110,6 +134,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/TaxRatesResource.d.ts b/types/TaxRatesResource.d.ts index 80730fa6b8..944f013786 100644 --- a/types/TaxRatesResource.d.ts +++ b/types/TaxRatesResource.d.ts @@ -70,6 +70,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; @@ -140,6 +141,7 @@ declare module 'stripe' { | 'lease_tax' | 'pst' | 'qst' + | 'retail_delivery_fee' | 'rst' | 'sales_tax' | 'vat'; diff --git a/types/Terminal/Configurations.d.ts b/types/Terminal/Configurations.d.ts index b2e3a0c330..270845a303 100644 --- a/types/Terminal/Configurations.d.ts +++ b/types/Terminal/Configurations.d.ts @@ -107,6 +107,8 @@ declare module 'stripe' { nzd?: Tipping.Nzd; + pln?: Tipping.Pln; + sek?: Tipping.Sek; sgd?: Tipping.Sgd; @@ -302,6 +304,23 @@ declare module 'stripe' { smart_tip_threshold?: number; } + interface Pln { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; + + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } + interface Sek { /** * Fixed amounts displayed when collecting a tip diff --git a/types/Terminal/ConfigurationsResource.d.ts b/types/Terminal/ConfigurationsResource.d.ts index 663eeb88d7..c41207e35e 100644 --- a/types/Terminal/ConfigurationsResource.d.ts +++ b/types/Terminal/ConfigurationsResource.d.ts @@ -135,6 +135,11 @@ declare module 'stripe' { */ nzd?: Tipping.Nzd; + /** + * Tipping configuration for PLN + */ + pln?: Tipping.Pln; + /** * Tipping configuration for SEK */ @@ -339,6 +344,23 @@ declare module 'stripe' { smart_tip_threshold?: number; } + interface Pln { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array; + + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } + interface Sek { /** * Fixed amounts displayed when collecting a tip @@ -544,6 +566,11 @@ declare module 'stripe' { */ nzd?: Tipping.Nzd; + /** + * Tipping configuration for PLN + */ + pln?: Tipping.Pln; + /** * Tipping configuration for SEK */ @@ -748,6 +775,23 @@ declare module 'stripe' { smart_tip_threshold?: number; } + interface Pln { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array; + + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } + interface Sek { /** * Fixed amounts displayed when collecting a tip diff --git a/types/TestHelpers/ConfirmationTokensResource.d.ts b/types/TestHelpers/ConfirmationTokensResource.d.ts index b7dadfed78..616b3cd522 100644 --- a/types/TestHelpers/ConfirmationTokensResource.d.ts +++ b/types/TestHelpers/ConfirmationTokensResource.d.ts @@ -64,6 +64,11 @@ declare module 'stripe' { */ allow_redisplay?: PaymentMethodData.AllowRedisplay; + /** + * If this is a Alma PaymentMethod, this hash contains details about the Alma payment method. + */ + alma?: PaymentMethodData.Alma; + /** * If this is a AmazonPay PaymentMethod, this hash contains details about the AmazonPay payment method. */ @@ -139,6 +144,11 @@ declare module 'stripe' { */ interac_present?: PaymentMethodData.InteracPresent; + /** + * If this is a `kakao_pay` PaymentMethod, this hash contains details about the Kakao Pay payment method. + */ + kakao_pay?: PaymentMethodData.KakaoPay; + /** * If this is a `klarna` PaymentMethod, this hash contains details about the Klarna payment method. */ @@ -149,6 +159,11 @@ declare module 'stripe' { */ konbini?: PaymentMethodData.Konbini; + /** + * If this is a `kr_card` PaymentMethod, this hash contains details about the Korean Card payment method. + */ + kr_card?: PaymentMethodData.KrCard; + /** * If this is an `Link` PaymentMethod, this hash contains details about the Link payment method. */ @@ -169,6 +184,11 @@ declare module 'stripe' { */ multibanco?: PaymentMethodData.Multibanco; + /** + * If this is a `naver_pay` PaymentMethod, this hash contains details about the Naver Pay payment method. + */ + naver_pay?: PaymentMethodData.NaverPay; + /** * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method. */ @@ -179,6 +199,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `payco` PaymentMethod, this hash contains details about the PAYCO payment method. + */ + payco?: PaymentMethodData.Payco; + /** * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. */ @@ -209,6 +234,11 @@ declare module 'stripe' { */ revolut_pay?: PaymentMethodData.RevolutPay; + /** + * If this is a `samsung_pay` PaymentMethod, this hash contains details about the SamsungPay payment method. + */ + samsung_pay?: PaymentMethodData.SamsungPay; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -276,6 +306,8 @@ declare module 'stripe' { type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface Alma {} + interface AmazonPay {} interface AuBecsDebit { @@ -424,7 +456,7 @@ declare module 'stripe' { interface Ideal { /** - * The customer's bank. + * The customer's bank. Only use this parameter for existing customers. Don't use it for new customers. */ bank?: Ideal.Bank; } @@ -451,6 +483,8 @@ declare module 'stripe' { interface InteracPresent {} + interface KakaoPay {} + interface Klarna { /** * Customer's date of birth @@ -479,12 +513,25 @@ declare module 'stripe' { interface Konbini {} + interface KrCard {} + interface Link {} interface Mobilepay {} interface Multibanco {} + interface NaverPay { + /** + * Whether to use Naver Pay points or a card to fund this transaction. If not provided, this defaults to `card`. + */ + funding?: NaverPay.Funding; + } + + namespace NaverPay { + type Funding = 'card' | 'points'; + } + interface Oxxo {} interface P24 { @@ -524,6 +571,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Payco {} + interface Paynow {} interface Paypal {} @@ -541,6 +590,8 @@ declare module 'stripe' { interface RevolutPay {} + interface SamsungPay {} + interface SepaDebit { /** * IBAN of the bank account. @@ -568,6 +619,7 @@ declare module 'stripe' { | 'affirm' | 'afterpay_clearpay' | 'alipay' + | 'alma' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' @@ -581,18 +633,23 @@ declare module 'stripe' { | 'giropay' | 'grabpay' | 'ideal' + | 'kakao_pay' | 'klarna' | 'konbini' + | 'kr_card' | 'link' | 'mobilepay' | 'multibanco' + | 'naver_pay' | 'oxxo' | 'p24' + | 'payco' | 'paynow' | 'paypal' | 'pix' | 'promptpay' | 'revolut_pay' + | 'samsung_pay' | 'sepa_debit' | 'sofort' | 'swish' diff --git a/types/TestHelpers/Issuing/CardsResource.d.ts b/types/TestHelpers/Issuing/CardsResource.d.ts index 5fa8f02d6a..7dfde8fc65 100644 --- a/types/TestHelpers/Issuing/CardsResource.d.ts +++ b/types/TestHelpers/Issuing/CardsResource.d.ts @@ -39,6 +39,15 @@ declare module 'stripe' { } } + namespace Issuing { + interface CardSubmitCardParams { + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + } + namespace Issuing { class CardsResource { /** @@ -92,6 +101,19 @@ declare module 'stripe' { id: string, options?: RequestOptions ): Promise>; + + /** + * Updates the shipping status of the specified Issuing Card object to submitted. This method requires Stripe Version ā€˜2024-09-30.acacia' or later. + */ + submitCard( + id: string, + params?: CardSubmitCardParams, + options?: RequestOptions + ): Promise>; + submitCard( + id: string, + options?: RequestOptions + ): Promise>; } } } diff --git a/types/TokensResource.d.ts b/types/TokensResource.d.ts index 94faccca7f..fc9e94a304 100644 --- a/types/TokensResource.d.ts +++ b/types/TokensResource.d.ts @@ -288,7 +288,7 @@ declare module 'stripe' { full_name_aliases?: Stripe.Emptyable>; /** - * The individual's gender (International regulations require either "male" or "female"). + * The individual's gender */ gender?: string; @@ -890,7 +890,7 @@ declare module 'stripe' { class TokensResource { /** * Creates a single-use token that represents a bank account's details. - * You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. + * You can use this token with any v1 API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a [connected account](https://stripe.com/docs/api#accounts) where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is application, which includes Custom accounts. */ create( params?: TokenCreateParams, diff --git a/types/Treasury/FinancialAccounts.d.ts b/types/Treasury/FinancialAccounts.d.ts index 08c100409e..ba166a4d08 100644 --- a/types/Treasury/FinancialAccounts.d.ts +++ b/types/Treasury/FinancialAccounts.d.ts @@ -75,7 +75,7 @@ declare module 'stripe' { restricted_features?: Array; /** - * The enum specifying what state the account is in. + * Status of this FinancialAccount. */ status: FinancialAccount.Status; diff --git a/types/UsageRecordSummaries.d.ts b/types/UsageRecordSummaries.d.ts index e5d8223d02..12c046e4fe 100644 --- a/types/UsageRecordSummaries.d.ts +++ b/types/UsageRecordSummaries.d.ts @@ -3,7 +3,7 @@ declare module 'stripe' { namespace Stripe { /** - * The UsageRecordSummary object. + * A usage record summary represents an aggregated view of how much usage was accrued for a subscription item within a subscription billing period. */ interface UsageRecordSummary { /** diff --git a/types/V2/Core/EventDestinationsResource.d.ts b/types/V2/Core/EventDestinationsResource.d.ts new file mode 100644 index 0000000000..f6c2fe9b7b --- /dev/null +++ b/types/V2/Core/EventDestinationsResource.d.ts @@ -0,0 +1,281 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + namespace Core { + interface EventDestinationCreateParams { + /** + * The list of events to enable for this endpoint. + */ + enabled_events: Array; + + /** + * Payload type of events being subscribed to. + */ + event_payload: EventDestinationCreateParams.EventPayload; + + /** + * Event destination name. + */ + name: string; + + /** + * Event destination type. + */ + type: EventDestinationCreateParams.Type; + + /** + * Amazon EventBridge configuration. + */ + amazon_eventbridge?: EventDestinationCreateParams.AmazonEventbridge; + + /** + * An optional description of what the event destination is used for. + */ + description?: string; + + /** + * Where events should be routed from. + */ + events_from?: Array; + + /** + * Additional fields to include in the response. + */ + include?: Array; + + /** + * Metadata. + */ + metadata?: Stripe.MetadataParam; + + /** + * If using the snapshot event payload, the API version events are rendered as. + */ + snapshot_api_version?: string; + + /** + * Webhook endpoint configuration. + */ + webhook_endpoint?: EventDestinationCreateParams.WebhookEndpoint; + } + + namespace EventDestinationCreateParams { + interface AmazonEventbridge { + /** + * The AWS account ID. + */ + aws_account_id: string; + + /** + * The region of the AWS event source. + */ + aws_region: string; + } + + type EventPayload = 'snapshot' | 'thin'; + + type EventsFrom = 'other_accounts' | 'self'; + + type Include = + | 'webhook_endpoint.signing_secret' + | 'webhook_endpoint.url'; + + type Type = 'amazon_eventbridge' | 'webhook_endpoint'; + + interface WebhookEndpoint { + /** + * The URL of the webhook endpoint. + */ + url: string; + } + } + } + + namespace Core { + interface EventDestinationRetrieveParams { + /** + * Additional fields to include in the response. + */ + include?: Array<'webhook_endpoint.url'>; + } + } + + namespace Core { + interface EventDestinationUpdateParams { + /** + * An optional description of what the event destination is used for. + */ + description?: string; + + /** + * The list of events to enable for this endpoint. + */ + enabled_events?: Array; + + /** + * Additional fields to include in the response. Currently supports `webhook_endpoint.url`. + */ + include?: Array<'webhook_endpoint.url'>; + + /** + * Metadata. + */ + metadata?: Stripe.MetadataParam; + + /** + * Event destination name. + */ + name?: string; + + /** + * Webhook endpoint configuration. + */ + webhook_endpoint?: EventDestinationUpdateParams.WebhookEndpoint; + } + + namespace EventDestinationUpdateParams { + interface WebhookEndpoint { + /** + * The URL of the webhook endpoint. + */ + url: string; + } + } + } + + namespace Core { + interface EventDestinationListParams { + /** + * Additional fields to include in the response. Currently supports `webhook_endpoint.url`. + */ + include?: Array<'webhook_endpoint.url'>; + + /** + * The page size. + */ + limit?: number; + + /** + * The requested page. + */ + page?: string; + } + } + + namespace Core { + interface EventDestinationDeleteParams {} + } + + namespace Core { + interface EventDestinationDisableParams {} + } + + namespace Core { + interface EventDestinationEnableParams {} + } + + namespace Core { + interface EventDestinationPingParams {} + } + + namespace Core { + class EventDestinationsResource { + /** + * Create a new event destination. + */ + create( + params: EventDestinationCreateParams, + options?: RequestOptions + ): Promise>; + + /** + * Retrieves the details of an event destination. + */ + retrieve( + id: string, + params?: EventDestinationRetrieveParams, + options?: RequestOptions + ): Promise>; + retrieve( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Update the details of an event destination. + */ + update( + id: string, + params?: EventDestinationUpdateParams, + options?: RequestOptions + ): Promise>; + + /** + * Lists all event destinations. + */ + list( + params?: EventDestinationListParams, + options?: RequestOptions + ): ApiListPromise; + list( + options?: RequestOptions + ): ApiListPromise; + + /** + * Delete an event destination. + */ + del( + id: string, + params?: EventDestinationDeleteParams, + options?: RequestOptions + ): Promise>; + del( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Disable an event destination. + */ + disable( + id: string, + params?: EventDestinationDisableParams, + options?: RequestOptions + ): Promise>; + disable( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Enable an event destination. + */ + enable( + id: string, + params?: EventDestinationEnableParams, + options?: RequestOptions + ): Promise>; + enable( + id: string, + options?: RequestOptions + ): Promise>; + + /** + * Send a `ping` event to an event destination. + */ + ping( + id: string, + params?: EventDestinationPingParams, + options?: RequestOptions + ): Promise>; + ping( + id: string, + options?: RequestOptions + ): Promise>; + } + } + } + } +} diff --git a/types/V2/Core/EventsResource.d.ts b/types/V2/Core/EventsResource.d.ts index 21a09fa644..bb3489e290 100644 --- a/types/V2/Core/EventsResource.d.ts +++ b/types/V2/Core/EventsResource.d.ts @@ -22,7 +22,7 @@ declare module 'stripe' { limit?: number; /** - * The requested page number. + * The requested page. */ page?: string; } diff --git a/types/V2/CoreResource.d.ts b/types/V2/CoreResource.d.ts index f65f8a4b98..f9e54d2ffc 100644 --- a/types/V2/CoreResource.d.ts +++ b/types/V2/CoreResource.d.ts @@ -4,6 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace V2 { class CoreResource { + eventDestinations: Stripe.V2.Core.EventDestinationsResource; events: Stripe.V2.Core.EventsResource; } } diff --git a/types/V2/EventDestinations.d.ts b/types/V2/EventDestinations.d.ts new file mode 100644 index 0000000000..5eb69f715d --- /dev/null +++ b/types/V2/EventDestinations.d.ts @@ -0,0 +1,164 @@ +// File generated from our OpenAPI spec + +declare module 'stripe' { + namespace Stripe { + namespace V2 { + /** + * The EventDestination object. + */ + interface EventDestination { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value of the object field. + */ + object: 'v2.core.event_destination'; + + /** + * Amazon EventBridge configuration. + */ + amazon_eventbridge: EventDestination.AmazonEventbridge | null; + + /** + * Time at which the object was created. + */ + created: string; + + /** + * An optional description of what the event destination is used for. + */ + description: string; + + /** + * The list of events to enable for this endpoint. + */ + enabled_events: Array; + + /** + * Payload type of events being subscribed to. + */ + event_payload: EventDestination.EventPayload; + + /** + * Where events should be routed from. + */ + events_from: Array | null; + + /** + * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. + */ + livemode: boolean; + + /** + * Metadata. + */ + metadata: Stripe.Metadata | null; + + /** + * Event destination name. + */ + name: string; + + /** + * If using the snapshot event payload, the API version events are rendered as. + */ + snapshot_api_version: string | null; + + /** + * Status. It can be set to either enabled or disabled. + */ + status: EventDestination.Status; + + /** + * Additional information about event destination status. + */ + status_details: EventDestination.StatusDetails | null; + + /** + * Event destination type. + */ + type: EventDestination.Type; + + /** + * Time at which the object was last updated. + */ + updated: string; + + /** + * Webhook endpoint configuration. + */ + webhook_endpoint: EventDestination.WebhookEndpoint | null; + } + + namespace EventDestination { + interface AmazonEventbridge { + /** + * The AWS account ID. + */ + aws_account_id: string; + + /** + * The ARN of the AWS event source. + */ + aws_event_source_arn: string; + + /** + * The state of the AWS event source. + */ + aws_event_source_status: AmazonEventbridge.AwsEventSourceStatus; + } + + namespace AmazonEventbridge { + type AwsEventSourceStatus = + | 'active' + | 'deleted' + | 'pending' + | 'unknown'; + } + + type EventPayload = 'snapshot' | 'thin'; + + type EventsFrom = 'other_accounts' | 'self'; + + type Status = 'disabled' | 'enabled'; + + interface StatusDetails { + /** + * Details about why the event destination has been disabled. + */ + disabled: StatusDetails.Disabled | null; + } + + namespace StatusDetails { + interface Disabled { + /** + * Reason event destination has been disabled. + */ + reason: Disabled.Reason; + } + + namespace Disabled { + type Reason = 'no_aws_event_source_exists' | 'user'; + } + } + + type Type = 'amazon_eventbridge' | 'webhook_endpoint'; + + interface WebhookEndpoint { + /** + * The signing secret of the webhook endpoint, only includable on creation. + */ + signing_secret: string | null; + + /** + * The URL of the webhook endpoint, includable. + */ + url: string | null; + } + } + } + } +} diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index c4a38488ed..5749a44ee2 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -143,7 +143,8 @@ declare module 'stripe' { | '2023-10-16' | '2024-04-10' | '2024-06-20' - | '2024-09-30.acacia'; + | '2024-09-30.acacia' + | '2024-10-28.acacia'; type EnabledEvent = | '*' @@ -267,6 +268,7 @@ declare module 'stripe' { | 'issuing_token.created' | 'issuing_token.updated' | 'issuing_transaction.created' + | 'issuing_transaction.purchase_details_receipt_updated' | 'issuing_transaction.updated' | 'mandate.updated' | 'payment_intent.amount_capturable_updated' @@ -310,6 +312,7 @@ declare module 'stripe' { | 'radar.early_fraud_warning.created' | 'radar.early_fraud_warning.updated' | 'refund.created' + | 'refund.failed' | 'refund.updated' | 'reporting.report_run.failed' | 'reporting.report_run.succeeded' @@ -548,6 +551,7 @@ declare module 'stripe' { | 'issuing_token.created' | 'issuing_token.updated' | 'issuing_transaction.created' + | 'issuing_transaction.purchase_details_receipt_updated' | 'issuing_transaction.updated' | 'mandate.updated' | 'payment_intent.amount_capturable_updated' @@ -591,6 +595,7 @@ declare module 'stripe' { | 'radar.early_fraud_warning.created' | 'radar.early_fraud_warning.updated' | 'refund.created' + | 'refund.failed' | 'refund.updated' | 'reporting.report_run.failed' | 'reporting.report_run.succeeded' diff --git a/types/index.d.ts b/types/index.d.ts index fa1585e7a1..edaa52970a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -134,6 +134,7 @@ /// /// /// +/// /// /// /// @@ -281,6 +282,7 @@ /// /// /// +/// /// /// // Imports: The end of the section generated from our OpenAPI spec From 89124c10ed34fe2276e032ea0427a6474acc23e4 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Tue, 29 Oct 2024 14:17:15 -0700 Subject: [PATCH 16/27] Bump version to 17.3.0 --- CHANGELOG.md | 38 ++++++++++++++++++++++++++++++++++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 54f2908b74..3ea6b6194f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,42 @@ # Changelog +## 17.3.0 - 2024-10-29 +* [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code + * Add support for new resource `V2.EventDestinations` + * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` + * Add support for `submit_card` test helper method on resource `Issuing.Card` + * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account` + * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features` + * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` + * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional + * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence` + * Add support for `enhanced_eligibility_types` on `Dispute` + * Add support for `enhanced_eligibility` on `Dispute.evidence_details` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type` + * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request` + * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `amazon_pay` on `PaymentMethodDomain` + * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails` + * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate` + * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` + * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type` + * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + * Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version` + ## 17.2.1 - 2024-10-18 * [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes diff --git a/VERSION b/VERSION index 7c95a07592..5aadcd3f24 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.2.1 +17.3.0 diff --git a/package.json b/package.json index ca02bb0305..44ac4901cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.2.1", + "version": "17.3.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index ca7f9a4e88..c7c4e7b575 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.2.1'; + Stripe.PACKAGE_VERSION = '17.3.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From 6c42d3220c5ae068d997a6654abfb157bd687aa0 Mon Sep 17 00:00:00 2001 From: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:19:54 -0700 Subject: [PATCH 17/27] Update changelog with a note on 2024-10-28.acacia API version (#2217) --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ea6b6194f..4dc0d5a366 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog ## 17.3.0 - 2024-10-29 -* [#2204](https://github.com/stripe/stripe-node/pull/2204) Update generated code +* [#2204](https://github.com/stripe/stripe-node/pull/2204) This release changes the pinned API version to `2024-10-28.acacia`. * Add support for new resource `V2.EventDestinations` * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` * Add support for `submit_card` test helper method on resource `Issuing.Card` From 2f7a544c0d8e63194b601cf271b229b7f6a457ee Mon Sep 17 00:00:00 2001 From: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:34:11 -0400 Subject: [PATCH 18/27] Fixed API version in types (#2218) --- scripts/updateAPIVersion.js | 5 +---- types/lib.d.ts | 2 +- types/test/typescriptTest.ts | 6 +++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/scripts/updateAPIVersion.js b/scripts/updateAPIVersion.js index f70683852e..20eeb9780c 100755 --- a/scripts/updateAPIVersion.js +++ b/scripts/updateAPIVersion.js @@ -8,7 +8,7 @@ const read = (file) => fs.readFileSync(path.resolve(file)).toString(); const write = (file, str) => fs.writeFileSync(path.resolve(file), str); const edit = (file, cb) => write(file, cb(read(file))); -const API_VERSION = '2[0-9][2-9][0-9]-[0-9]{2}-[0-9]{2}'; +const API_VERSION = '2[0-9][2-9][0-9]-[0-9]{2}-[0-9]{2}.[a-z]+'; const main = () => { const matches = [ @@ -36,9 +36,6 @@ const main = () => { ); }); - replaceAPIVersion('README.md', 'apiVersion: [\'"]API_VERSION[\'"]'); - replaceAPIVersion('package.json', '"types": "types/API_VERSION/index.d.ts'); - replaceAPIVersion( 'types/lib.d.ts', 'export type LatestApiVersion = [\'"]API_VERSION[\'"]' diff --git a/types/lib.d.ts b/types/lib.d.ts index 66a33f2dc6..8accb6f3c2 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { }): (...args: any[]) => Response; //eslint-disable-line @typescript-eslint/no-explicit-any static MAX_BUFFERED_REQUEST_METRICS: number; } - export type LatestApiVersion = '2024-09-30.acacia'; + export type LatestApiVersion = '2024-10-28.acacia'; export type HttpAgent = Agent; export type HttpProtocol = 'http' | 'https'; diff --git a/types/test/typescriptTest.ts b/types/test/typescriptTest.ts index e83aaa73c3..a3ac094ca5 100644 --- a/types/test/typescriptTest.ts +++ b/types/test/typescriptTest.ts @@ -9,7 +9,7 @@ import Stripe from 'stripe'; let stripe = new Stripe('sk_test_123', { - apiVersion: '2024-09-30.acacia', + apiVersion: '2024-10-28.acacia', }); stripe = new Stripe('sk_test_123'); @@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', { // Check config object. stripe = new Stripe('sk_test_123', { - apiVersion: '2024-09-30.acacia', + apiVersion: '2024-10-28.acacia', typescript: true, maxNetworkRetries: 1, timeout: 1000, @@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', { description: 'test', }; const opts: Stripe.RequestOptions = { - apiVersion: '2024-09-30.acacia', + apiVersion: '2024-10-28.acacia', }; const customer: Stripe.Customer = await stripe.customers.create(params, opts); From 2df95d9b4fc1f0e25f08fa7f4312403fbd454927 Mon Sep 17 00:00:00 2001 From: Jesse Rosalia Date: Wed, 30 Oct 2024 16:49:59 -0700 Subject: [PATCH 19/27] updated instruction in snippets README --- examples/snippets/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/snippets/README.md b/examples/snippets/README.md index 05216ba79f..13a6732562 100644 --- a/examples/snippets/README.md +++ b/examples/snippets/README.md @@ -7,7 +7,7 @@ If on step 2 you see an error `Error: unsure how to copy this: /Users/jar/stripe run `rm /path/to/node/sdk/.git/fsmonitor--daemon.ipc && yarn` This file is used by a file monitor built into git. Removing it temporarily does not seem to affect its operation, and this one liner will let `yarn` succeed. -Note that if you modify the stripe-node code, you must delete your snippets `node_modules` folder and rerun these steps. +Note that if you modify the stripe-node code, rerun step 1 and then run `yarn upgrade stripe` from this folder to pull in the new built package. ## Running an example From bc230c4cc2c89a9e100b099e7f4f3cb1b7fc4988 Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Fri, 1 Nov 2024 16:09:12 -0700 Subject: [PATCH 20/27] Bump version to 17.3.1 --- CHANGELOG.md | 75 ++++++++++++++++++++++++---------------------- VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 42 insertions(+), 39 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4dc0d5a366..48bd8d50df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,45 +1,48 @@ # Changelog +## 17.3.1 - 2024-11-01 +* [#2218](https://github.com/stripe/stripe-node/pull/2218) Fixed a bug where `latestapiversion` was not updated to `2024-10-28.acacia` in the last release. + ## 17.3.0 - 2024-10-29 * [#2204](https://github.com/stripe/stripe-node/pull/2204) This release changes the pinned API version to `2024-10-28.acacia`. - * Add support for new resource `V2.EventDestinations` - * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` - * Add support for `submit_card` test helper method on resource `Issuing.Card` - * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account` - * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features` - * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` - * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional - * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` - * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location` - * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence` - * Add support for `enhanced_eligibility_types` on `Dispute` - * Add support for `enhanced_eligibility` on `Dispute.evidence_details` - * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type` - * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request` - * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams` - * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` - * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` - * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - * Add support for `amazon_pay` on `PaymentMethodDomain` - * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails` - * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate` - * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` - * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type` - * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` - * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - * Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version` + * Add support for new resource `V2.EventDestinations` + * Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` + * Add support for `submit_card` test helper method on resource `Issuing.Card` + * Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account` + * Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` + * Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features` + * Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` + * Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional + * Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type` + * Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` + * Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location` + * Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence` + * Add support for `enhanced_eligibility_types` on `Dispute` + * Add support for `enhanced_eligibility` on `Dispute.evidence_details` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type` + * Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request` + * Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams` + * Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` on enums `Invoice.payment_settings.payment_method_types[]`, `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Subscription.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_types[]` + * Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + * Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` + * Add support for `amazon_pay` on `PaymentMethodDomain` + * Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails` + * Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate` + * Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` + * Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type` + * Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` + * Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` + * Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version` ## 17.2.1 - 2024-10-18 * [#2210](https://github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes - + - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. * [#2208](https://github.com/stripe/stripe-node/pull/2208) Update signature verification docs link diff --git a/VERSION b/VERSION index 5aadcd3f24..1f33a6f48f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.3.0 +17.3.1 diff --git a/package.json b/package.json index 44ac4901cc..eaf294acc8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.3.0", + "version": "17.3.1", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index c7c4e7b575..1c5580e62b 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.3.0'; + Stripe.PACKAGE_VERSION = '17.3.1'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From d12717a912bb6c324ec4b18ea607e1e2ab017171 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Mon, 4 Nov 2024 16:11:36 -0800 Subject: [PATCH 21/27] Remove empty resources created for service groupings (#2215) --- src/resources.ts | 19 ++++++++++++++++++- src/resources/V2.ts | 12 ------------ src/resources/V2/Billing.ts | 16 ---------------- src/resources/V2/Core.ts | 12 ------------ types/V2/BillingResource.d.ts | 14 -------------- types/V2/CoreResource.d.ts | 12 ------------ types/V2Resource.d.ts | 10 ---------- types/index.d.ts | 16 ++++++++++++---- 8 files changed, 30 insertions(+), 81 deletions(-) delete mode 100644 src/resources/V2.ts delete mode 100644 src/resources/V2/Billing.ts delete mode 100644 src/resources/V2/Core.ts delete mode 100644 types/V2/BillingResource.d.ts delete mode 100644 types/V2/CoreResource.d.ts delete mode 100644 types/V2Resource.d.ts diff --git a/src/resources.ts b/src/resources.ts index b9ca904bf8..8a4fb310a7 100644 --- a/src/resources.ts +++ b/src/resources.ts @@ -22,13 +22,19 @@ import {Customers as TestHelpersCustomers} from './resources/TestHelpers/Custome import {DebitReversals as TreasuryDebitReversals} from './resources/Treasury/DebitReversals.js'; import {Disputes as IssuingDisputes} from './resources/Issuing/Disputes.js'; import {EarlyFraudWarnings as RadarEarlyFraudWarnings} from './resources/Radar/EarlyFraudWarnings.js'; +import {EventDestinations as V2CoreEventDestinations} from './resources/V2/Core/EventDestinations.js'; +import {Events as V2CoreEvents} from './resources/V2/Core/Events.js'; import {Features as EntitlementsFeatures} from './resources/Entitlements/Features.js'; import {FinancialAccounts as TreasuryFinancialAccounts} from './resources/Treasury/FinancialAccounts.js'; import {InboundTransfers as TestHelpersTreasuryInboundTransfers} from './resources/TestHelpers/Treasury/InboundTransfers.js'; import {InboundTransfers as TreasuryInboundTransfers} from './resources/Treasury/InboundTransfers.js'; import {Locations as TerminalLocations} from './resources/Terminal/Locations.js'; import {MeterEventAdjustments as BillingMeterEventAdjustments} from './resources/Billing/MeterEventAdjustments.js'; +import {MeterEventAdjustments as V2BillingMeterEventAdjustments} from './resources/V2/Billing/MeterEventAdjustments.js'; +import {MeterEventSession as V2BillingMeterEventSession} from './resources/V2/Billing/MeterEventSession.js'; +import {MeterEventStream as V2BillingMeterEventStream} from './resources/V2/Billing/MeterEventStream.js'; import {MeterEvents as BillingMeterEvents} from './resources/Billing/MeterEvents.js'; +import {MeterEvents as V2BillingMeterEvents} from './resources/V2/Billing/MeterEvents.js'; import {Meters as BillingMeters} from './resources/Billing/Meters.js'; import {Orders as ClimateOrders} from './resources/Climate/Orders.js'; import {OutboundPayments as TestHelpersTreasuryOutboundPayments} from './resources/TestHelpers/Treasury/OutboundPayments.js'; @@ -121,7 +127,6 @@ export {TaxRates} from './resources/TaxRates.js'; export {Tokens} from './resources/Tokens.js'; export {Topups} from './resources/Topups.js'; export {Transfers} from './resources/Transfers.js'; -export {V2} from './resources/V2.js'; export {WebhookEndpoints} from './resources/WebhookEndpoints.js'; export const Apps = resourceNamespace('apps', {Secrets: AppsSecrets}); export const Billing = resourceNamespace('billing', { @@ -229,3 +234,15 @@ export const Treasury = resourceNamespace('treasury', { TransactionEntries: TreasuryTransactionEntries, Transactions: TreasuryTransactions, }); +export const V2 = resourceNamespace('v2', { + Billing: resourceNamespace('billing', { + MeterEventAdjustments: V2BillingMeterEventAdjustments, + MeterEventSession: V2BillingMeterEventSession, + MeterEventStream: V2BillingMeterEventStream, + MeterEvents: V2BillingMeterEvents, + }), + Core: resourceNamespace('core', { + EventDestinations: V2CoreEventDestinations, + Events: V2CoreEvents, + }), +}); diff --git a/src/resources/V2.ts b/src/resources/V2.ts deleted file mode 100644 index c8ad50c2e0..0000000000 --- a/src/resources/V2.ts +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec - -import {StripeResource} from '../StripeResource.js'; -import {Billing} from './V2/Billing.js'; -import {Core} from './V2/Core.js'; -export const V2 = StripeResource.extend({ - constructor: function(...args: any) { - StripeResource.apply(this, args); - this.billing = new Billing(...args); - this.core = new Core(...args); - }, -}); diff --git a/src/resources/V2/Billing.ts b/src/resources/V2/Billing.ts deleted file mode 100644 index 752a0d3a10..0000000000 --- a/src/resources/V2/Billing.ts +++ /dev/null @@ -1,16 +0,0 @@ -// File generated from our OpenAPI spec - -import {StripeResource} from '../../StripeResource.js'; -import {MeterEventSession} from './Billing/MeterEventSession.js'; -import {MeterEventAdjustments} from './Billing/MeterEventAdjustments.js'; -import {MeterEventStream} from './Billing/MeterEventStream.js'; -import {MeterEvents} from './Billing/MeterEvents.js'; -export const Billing = StripeResource.extend({ - constructor: function(...args: any) { - StripeResource.apply(this, args); - this.meterEventSession = new MeterEventSession(...args); - this.meterEventAdjustments = new MeterEventAdjustments(...args); - this.meterEventStream = new MeterEventStream(...args); - this.meterEvents = new MeterEvents(...args); - }, -}); diff --git a/src/resources/V2/Core.ts b/src/resources/V2/Core.ts deleted file mode 100644 index 10210e8ed1..0000000000 --- a/src/resources/V2/Core.ts +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec - -import {StripeResource} from '../../StripeResource.js'; -import {EventDestinations} from './Core/EventDestinations.js'; -import {Events} from './Core/Events.js'; -export const Core = StripeResource.extend({ - constructor: function(...args: any) { - StripeResource.apply(this, args); - this.eventDestinations = new EventDestinations(...args); - this.events = new Events(...args); - }, -}); diff --git a/types/V2/BillingResource.d.ts b/types/V2/BillingResource.d.ts deleted file mode 100644 index a57eee05c7..0000000000 --- a/types/V2/BillingResource.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - namespace V2 { - class BillingResource { - meterEventSession: Stripe.V2.Billing.MeterEventSessionResource; - meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource; - meterEventStream: Stripe.V2.Billing.MeterEventStreamResource; - meterEvents: Stripe.V2.Billing.MeterEventsResource; - } - } - } -} diff --git a/types/V2/CoreResource.d.ts b/types/V2/CoreResource.d.ts deleted file mode 100644 index f9e54d2ffc..0000000000 --- a/types/V2/CoreResource.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - namespace V2 { - class CoreResource { - eventDestinations: Stripe.V2.Core.EventDestinationsResource; - events: Stripe.V2.Core.EventsResource; - } - } - } -} diff --git a/types/V2Resource.d.ts b/types/V2Resource.d.ts deleted file mode 100644 index b882341036..0000000000 --- a/types/V2Resource.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -// File generated from our OpenAPI spec - -declare module 'stripe' { - namespace Stripe { - class V2Resource { - billing: Stripe.V2.BillingResource; - core: Stripe.V2.CoreResource; - } - } -} diff --git a/types/index.d.ts b/types/index.d.ts index edaa52970a..fe2c0df35a 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -133,11 +133,8 @@ /// /// /// -/// /// /// -/// -/// /// /// /// @@ -355,7 +352,6 @@ declare module 'stripe' { tokens: Stripe.TokensResource; topups: Stripe.TopupsResource; transfers: Stripe.TransfersResource; - v2: Stripe.V2Resource; webhookEndpoints: Stripe.WebhookEndpointsResource; apps: { secrets: Stripe.Apps.SecretsResource; @@ -465,6 +461,18 @@ declare module 'stripe' { transactions: Stripe.Treasury.TransactionsResource; transactionEntries: Stripe.Treasury.TransactionEntriesResource; }; + v2: { + billing: { + meterEventSession: Stripe.V2.Billing.MeterEventSessionResource; + meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource; + meterEventStream: Stripe.V2.Billing.MeterEventStreamResource; + meterEvents: Stripe.V2.Billing.MeterEventsResource; + }; + core: { + eventDestinations: Stripe.V2.Core.EventDestinationsResource; + events: Stripe.V2.Core.EventsResource; + }; + }; // Fields: The end of the section generated from our OpenAPI spec webhooks: Stripe.Webhooks; oauth: Stripe.OAuthResource; From feca69df06f1279a0c990e7ebfcd796f8b1ba973 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 20 Nov 2024 15:24:02 -0800 Subject: [PATCH 22/27] Update generated code (#2222) * Update generated code for v1328 * Update generated code for v1341 * Update generated code for v1347 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/apiVersion.ts | 2 +- .../TestHelpers/Issuing/Authorizations.ts | 5 ++ .../resources/generated_examples_test.spec.js | 2 +- types/AccountSessions.d.ts | 10 +-- types/Accounts.d.ts | 42 ++++++++- types/AccountsResource.d.ts | 15 ++++ .../Billing/CreditBalanceSummaryResource.d.ts | 2 +- types/Billing/CreditGrants.d.ts | 11 ++- types/Billing/CreditGrantsResource.d.ts | 22 ++--- types/Billing/MeterEventsResource.d.ts | 2 +- types/Charges.d.ts | 10 +-- types/Checkout/Sessions.d.ts | 53 ++++++++++- types/Checkout/SessionsResource.d.ts | 89 +++++++++++++++++-- types/ConfirmationTokens.d.ts | 8 +- types/CustomersResource.d.ts | 6 +- types/Disputes.d.ts | 2 +- types/FileLinksResource.d.ts | 2 +- types/Files.d.ts | 1 + types/FilesResource.d.ts | 1 + types/FundingInstructions.d.ts | 28 ++++++ types/Identity/VerificationReports.d.ts | 2 +- types/Identity/VerificationSessions.d.ts | 2 +- .../VerificationSessionsResource.d.ts | 2 +- types/Invoices.d.ts | 3 +- types/InvoicesResource.d.ts | 12 ++- types/Issuing/Authorizations.d.ts | 42 ++++++++- types/Issuing/Cardholders.d.ts | 2 +- types/Issuing/Cards.d.ts | 4 +- types/PaymentIntents.d.ts | 31 ++++++- types/PaymentIntentsResource.d.ts | 9 +- types/PaymentLinks.d.ts | 2 +- types/PaymentLinksResource.d.ts | 13 ++- types/PaymentMethods.d.ts | 8 +- types/Payouts.d.ts | 17 ++++ types/Persons.d.ts | 5 ++ types/Refunds.d.ts | 10 +++ types/SetupAttempts.d.ts | 4 +- types/SetupIntents.d.ts | 3 +- types/SetupIntentsResource.d.ts | 11 ++- types/Subscriptions.d.ts | 5 +- types/SubscriptionsResource.d.ts | 6 +- types/Tax/CalculationLineItems.d.ts | 1 + types/Tax/Calculations.d.ts | 5 +- types/Tax/CalculationsResource.d.ts | 3 +- types/Tax/Transactions.d.ts | 4 +- types/TaxIds.d.ts | 3 +- types/TaxIdsResource.d.ts | 3 +- types/TaxRates.d.ts | 1 + types/TaxRatesResource.d.ts | 2 + .../Issuing/AuthorizationsResource.d.ts | 41 ++++++++- types/TokensResource.d.ts | 5 ++ types/Treasury/InboundTransfers.d.ts | 2 +- types/WebhookEndpointsResource.d.ts | 3 +- types/lib.d.ts | 2 +- types/test/typescriptTest.ts | 6 +- 56 files changed, 489 insertions(+), 100 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c626f7dd81..7ab08411da 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1319 \ No newline at end of file +v1347 \ No newline at end of file diff --git a/src/apiVersion.ts b/src/apiVersion.ts index 3ca0bbd17f..29dcb28c98 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec -export const ApiVersion = '2024-10-28.acacia'; +export const ApiVersion = '2024-11-20.acacia'; diff --git a/src/resources/TestHelpers/Issuing/Authorizations.ts b/src/resources/TestHelpers/Issuing/Authorizations.ts index 5da1fda25b..18b5212cc1 100644 --- a/src/resources/TestHelpers/Issuing/Authorizations.ts +++ b/src/resources/TestHelpers/Issuing/Authorizations.ts @@ -25,6 +25,11 @@ export const Authorizations = StripeResource.extend({ fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/increment', }), + respond: stripeMethod({ + method: 'POST', + fullPath: + '/v1/test_helpers/issuing/authorizations/{authorization}/fraud_challenges/respond', + }), reverse: stripeMethod({ method: 'POST', fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse', diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 721cc88a0c..83b1758928 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -176,7 +176,7 @@ describe('Generated tests', function() { method: 'GET', path: '/v1/accounts/acc_123', response: - '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"disabled_reason","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"business_icon","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"es_cif","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"es_cif","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', + '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"authorizer":true,"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"authorizer":true,"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"ad_nrt","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"ad_nrt","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index 1bfbed7248..951f5ea6fc 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -84,7 +84,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. @@ -107,7 +107,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. @@ -130,7 +130,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. @@ -181,7 +181,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. Otherwise, bank account collection is determined by compliance requirements. The default value for this feature is `true`. @@ -270,7 +270,7 @@ declare module 'stripe' { /** * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. */ - disable_stripe_user_authentication?: boolean; + disable_stripe_user_authentication: boolean; /** * Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise. diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index 445e6cb1db..ba456583da 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -909,9 +909,9 @@ declare module 'stripe' { currently_due: Array | null; /** - * This is typed as a string for consistency with `requirements.disabled_reason`. + * This is typed as an enum for consistency with `requirements.disabled_reason`. */ - disabled_reason: string | null; + disabled_reason: FutureRequirements.DisabledReason | null; /** * Fields that are `currently_due` and need to be collected again because validation or verification failed. @@ -947,6 +947,23 @@ declare module 'stripe' { original_fields_due: Array; } + type DisabledReason = + | 'action_required.requested_capabilities' + | 'listed' + | 'other' + | 'platform_paused' + | 'rejected.fraud' + | 'rejected.incomplete_verification' + | 'rejected.listed' + | 'rejected.other' + | 'rejected.platform_fraud' + | 'rejected.platform_other' + | 'rejected.platform_terms_of_service' + | 'rejected.terms_of_service' + | 'requirements.past_due' + | 'requirements.pending_verification' + | 'under_review'; + interface Error { /** * The code for the type of error. @@ -1083,9 +1100,9 @@ declare module 'stripe' { currently_due: Array | null; /** - * If the account is disabled, this string describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). Can be `action_required.requested_capabilities`, `requirements.past_due`, `requirements.pending_verification`, `listed`, `platform_paused`, `rejected.fraud`, `rejected.incomplete_verification`, `rejected.listed`, `rejected.other`, `rejected.terms_of_service`, `under_review`, or `other`. + * If the account is disabled, this enum describes why. [Learn more about handling verification issues](https://stripe.com/docs/connect/handling-api-verification). */ - disabled_reason: string | null; + disabled_reason: Requirements.DisabledReason | null; /** * Fields that are `currently_due` and need to be collected again because validation or verification failed. @@ -1121,6 +1138,23 @@ declare module 'stripe' { original_fields_due: Array; } + type DisabledReason = + | 'action_required.requested_capabilities' + | 'listed' + | 'other' + | 'platform_paused' + | 'rejected.fraud' + | 'rejected.incomplete_verification' + | 'rejected.listed' + | 'rejected.other' + | 'rejected.platform_fraud' + | 'rejected.platform_other' + | 'rejected.platform_terms_of_service' + | 'rejected.terms_of_service' + | 'requirements.past_due' + | 'requirements.pending_verification' + | 'under_review'; + interface Error { /** * The code for the type of error. diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index 5dbd3b701a..4bb38d12cf 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -3637,6 +3637,11 @@ declare module 'stripe' { } interface Relationship { + /** + * Whether the person is the authorizer of the account's representative. + */ + authorizer?: boolean; + /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. */ @@ -3753,6 +3758,11 @@ declare module 'stripe' { namespace AccountListPersonsParams { interface Relationship { + /** + * A filter on the list of people returned based on whether these people are authorizers of the account's representative. + */ + authorizer?: boolean; + /** * A filter on the list of people returned based on whether these people are directors of the account's company. */ @@ -4167,6 +4177,11 @@ declare module 'stripe' { } interface Relationship { + /** + * Whether the person is the authorizer of the account's representative. + */ + authorizer?: boolean; + /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. */ diff --git a/types/Billing/CreditBalanceSummaryResource.d.ts b/types/Billing/CreditBalanceSummaryResource.d.ts index a0f5f84ba0..400b16c95b 100644 --- a/types/Billing/CreditBalanceSummaryResource.d.ts +++ b/types/Billing/CreditBalanceSummaryResource.d.ts @@ -41,7 +41,7 @@ declare module 'stripe' { namespace Filter { interface ApplicabilityScope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. + * The price type for which credit grants can apply. We currently only support the `metered` price type. */ price_type: 'metered'; } diff --git a/types/Billing/CreditGrants.d.ts b/types/Billing/CreditGrants.d.ts index 3300eb0033..782161b6eb 100644 --- a/types/Billing/CreditGrants.d.ts +++ b/types/Billing/CreditGrants.d.ts @@ -7,7 +7,6 @@ declare module 'stripe' { * A credit grant is an API resource that documents the allocation of some billing credits to a customer. * * Related guide: [Billing credits](https://docs.stripe.com/billing/subscriptions/usage-based/billing-credits) - * end */ interface CreditGrant { /** @@ -25,7 +24,7 @@ declare module 'stripe' { applicability_config: CreditGrant.ApplicabilityConfig; /** - * The category of this credit grant. This is for tracking purposes and will not be displayed to the customer. + * The category of this credit grant. This is for tracking purposes and isn't displayed to the customer. */ category: CreditGrant.Category; @@ -35,17 +34,17 @@ declare module 'stripe' { created: number; /** - * ID of the customer to whom the billing credits are granted. + * ID of the customer receiving the billing credits. */ customer: string | Stripe.Customer | Stripe.DeletedCustomer; /** - * The time when the billing credits become effective i.e when they are eligible to be used. + * The time when the billing credits become effectiveā€”when they're eligible for use. */ effective_at: number | null; /** - * The time when the billing credits will expire. If not present, the billing credits will never expire. + * The time when the billing credits expire. If not present, the billing credits don't expire. */ expires_at: number | null; @@ -114,7 +113,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. + * The price type for which credit grants can apply. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. */ price_type: 'metered'; } diff --git a/types/Billing/CreditGrantsResource.d.ts b/types/Billing/CreditGrantsResource.d.ts index 6337db529d..9b5cbcc513 100644 --- a/types/Billing/CreditGrantsResource.d.ts +++ b/types/Billing/CreditGrantsResource.d.ts @@ -20,12 +20,12 @@ declare module 'stripe' { category: CreditGrantCreateParams.Category; /** - * ID of the customer to whom the billing credits should be granted. + * ID of the customer to receive the billing credits. */ customer: string; /** - * The time when the billing credits become effective i.e when they are eligible to be used. Defaults to the current timestamp if not specified. + * The time when the billing credits become effectiveā€”when they're eligible for use. Defaults to the current timestamp if not specified. */ effective_at?: number; @@ -35,17 +35,17 @@ declare module 'stripe' { expand?: Array; /** - * The time when the billing credits will expire. If not specified, the billing credits will never expire. + * The time when the billing credits will expire. If not specified, the billing credits don't expire. */ expires_at?: number; /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (ex: cost basis) in a structured format. + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. */ metadata?: Stripe.MetadataParam; /** - * A descriptive name shown in dashboard. + * A descriptive name shown in the Dashboard. */ name?: string; } @@ -87,7 +87,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type to which credit grants can apply to. We currently only support `metered` price type. + * The price type for which credit grants can apply. We currently only support the `metered` price type. */ price_type: 'metered'; } @@ -110,12 +110,12 @@ declare module 'stripe' { expand?: Array; /** - * The time when the billing credits created by this credit grant will expire. If set to empty, the billing credits will never expire. + * The time when the billing credits created by this credit grant expire. If set to empty, the billing credits never expire. */ expires_at?: Stripe.Emptyable; /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (ex: cost basis) in a structured format. + * Set of key-value pairs you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. */ metadata?: Stripe.MetadataParam; } @@ -178,7 +178,7 @@ declare module 'stripe' { ): Promise>; /** - * Retrieve a list of credit grants + * Retrieve a list of credit grants. */ list( params?: CreditGrantListParams, @@ -189,7 +189,7 @@ declare module 'stripe' { ): ApiListPromise; /** - * Expires a credit grant + * Expires a credit grant. */ expire( id: string, @@ -202,7 +202,7 @@ declare module 'stripe' { ): Promise>; /** - * Voids a credit grant + * Voids a credit grant. */ voidGrant( id: string, diff --git a/types/Billing/MeterEventsResource.d.ts b/types/Billing/MeterEventsResource.d.ts index 97fb3f86b2..4a1433e368 100644 --- a/types/Billing/MeterEventsResource.d.ts +++ b/types/Billing/MeterEventsResource.d.ts @@ -22,7 +22,7 @@ declare module 'stripe' { expand?: Array; /** - * A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period. + * A unique identifier for the event. If not provided, one will be generated. We strongly advise using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. */ identifier?: string; diff --git a/types/Charges.d.ts b/types/Charges.d.ts index 34d99f040c..a50f1ce002 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -725,7 +725,7 @@ declare module 'stripe' { authorization_code: string | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -810,7 +810,7 @@ declare module 'stripe' { multicapture?: Card.Multicapture; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -1106,7 +1106,7 @@ declare module 'stripe' { amount_authorized: number | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -1188,7 +1188,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -1585,7 +1585,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 56b9f7e367..f75eb03b9d 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -30,6 +30,11 @@ declare module 'stripe' { */ object: 'checkout.session'; + /** + * Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). + */ + adaptive_pricing: Session.AdaptivePricing | null; + /** * When set, provides configuration for actions to take if this Checkout Session expires. */ @@ -301,6 +306,13 @@ declare module 'stripe' { } namespace Session { + interface AdaptivePricing { + /** + * Whether Adaptive Pricing is enabled. + */ + enabled: boolean; + } + interface AfterExpiration { /** * When set, configuration used to recover the Checkout Session on expiry. @@ -490,7 +502,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -548,6 +560,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -1115,6 +1128,8 @@ declare module 'stripe' { } interface BacsDebit { + mandate_options?: BacsDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1128,6 +1143,8 @@ declare module 'stripe' { } namespace BacsDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -1169,6 +1186,26 @@ declare module 'stripe' { interface Card { installments?: Card.Installments; + /** + * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_extended_authorization?: Card.RequestExtendedAuthorization; + + /** + * Request ability to [increment the authorization](https://stripe.com/payments/incremental-authorization) for this CheckoutSession. + */ + request_incremental_authorization?: Card.RequestIncrementalAuthorization; + + /** + * Request ability to make [multiple captures](https://stripe.com/payments/multicapture) for this CheckoutSession. + */ + request_multicapture?: Card.RequestMulticapture; + + /** + * Request ability to [overcapture](https://stripe.com/payments/overcapture) for this CheckoutSession. + */ + request_overcapture?: Card.RequestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -1204,6 +1241,14 @@ declare module 'stripe' { enabled?: boolean; } + type RequestExtendedAuthorization = 'if_available' | 'never'; + + type RequestIncrementalAuthorization = 'if_available' | 'never'; + + type RequestMulticapture = 'if_available' | 'never'; + + type RequestOvercapture = 'if_available' | 'never'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; @@ -1600,6 +1645,8 @@ declare module 'stripe' { } interface SepaDebit { + mandate_options?: SepaDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1613,6 +1660,8 @@ declare module 'stripe' { } namespace SepaDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2100,7 +2149,7 @@ declare module 'stripe' { type Status = 'complete' | 'expired' | 'open'; - type SubmitType = 'auto' | 'book' | 'donate' | 'pay'; + type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; interface TaxIdCollection { /** diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 99d6740f21..8cc0dbe84b 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -4,6 +4,11 @@ declare module 'stripe' { namespace Stripe { namespace Checkout { interface SessionCreateParams { + /** + * Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). + */ + adaptive_pricing?: SessionCreateParams.AdaptivePricing; + /** * Configure actions after a Checkout Session has expired. */ @@ -260,6 +265,13 @@ declare module 'stripe' { } namespace SessionCreateParams { + interface AdaptivePricing { + /** + * Set to `true` to enable [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). Defaults to your [dashboard setting](https://dashboard.stripe.com/settings/adaptive-pricing). + */ + enabled?: boolean; + } + interface AfterExpiration { /** * Configure a Checkout Session that can be used to recover an expired session. @@ -1104,7 +1116,7 @@ declare module 'stripe' { multibanco?: PaymentMethodOptions.Multibanco; /** - * contains details about the Kakao Pay payment method options. + * contains details about the Naver Pay payment method options. */ naver_pay?: PaymentMethodOptions.NaverPay; @@ -1318,6 +1330,11 @@ declare module 'stripe' { } interface BacsDebit { + /** + * Additional fields for Mandate creation + */ + mandate_options?: BacsDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1331,6 +1348,8 @@ declare module 'stripe' { } namespace BacsDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -1375,6 +1394,26 @@ declare module 'stripe' { */ installments?: Card.Installments; + /** + * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_extended_authorization?: Card.RequestExtendedAuthorization; + + /** + * Request ability to [increment the authorization](https://stripe.com/payments/incremental-authorization) for this CheckoutSession. + */ + request_incremental_authorization?: Card.RequestIncrementalAuthorization; + + /** + * Request ability to make [multiple captures](https://stripe.com/payments/multicapture) for this CheckoutSession. + */ + request_multicapture?: Card.RequestMulticapture; + + /** + * Request ability to [overcapture](https://stripe.com/payments/overcapture) for this CheckoutSession. + */ + request_overcapture?: Card.RequestOvercapture; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ @@ -1411,6 +1450,14 @@ declare module 'stripe' { enabled?: boolean; } + type RequestExtendedAuthorization = 'if_available' | 'never'; + + type RequestIncrementalAuthorization = 'if_available' | 'never'; + + type RequestMulticapture = 'if_available' | 'never'; + + type RequestOvercapture = 'if_available' | 'never'; + type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; type SetupFutureUsage = 'off_session' | 'on_session'; @@ -1570,6 +1617,11 @@ declare module 'stripe' { } interface KakaoPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1618,6 +1670,11 @@ declare module 'stripe' { } interface KrCard { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1678,6 +1735,11 @@ declare module 'stripe' { } interface NaverPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1730,7 +1792,12 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } - interface Payco {} + interface Payco { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } interface Paynow { /** @@ -1831,9 +1898,19 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } - interface SamsungPay {} + interface SamsungPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } interface SepaDebit { + /** + * Additional fields for Mandate creation + */ + mandate_options?: SepaDebit.MandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -1847,6 +1924,8 @@ declare module 'stripe' { } namespace SepaDebit { + interface MandateOptions {} + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2043,7 +2122,7 @@ declare module 'stripe' { interface ShippingAddressCollection { /** * An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + * shipping locations. */ allowed_countries: Array; } @@ -2427,7 +2506,7 @@ declare module 'stripe' { } } - type SubmitType = 'auto' | 'book' | 'donate' | 'pay'; + type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; interface SubscriptionData { /** diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index 5a210c7154..b8d582382a 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -355,7 +355,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string; @@ -490,7 +490,7 @@ declare module 'stripe' { amount_authorized: number | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -572,7 +572,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -815,7 +815,7 @@ declare module 'stripe' { interface CardPresent { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index 97bb8eb389..4c7249031d 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -220,7 +220,7 @@ declare module 'stripe' { interface TaxIdDatum { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdDatum.Type; @@ -278,6 +278,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -669,7 +670,7 @@ declare module 'stripe' { interface CustomerCreateTaxIdParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: CustomerCreateTaxIdParams.Type; @@ -732,6 +733,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index c4c76ede2b..f774e4f674 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -428,7 +428,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string; diff --git a/types/FileLinksResource.d.ts b/types/FileLinksResource.d.ts index b1eb82f3f7..d0e5ee6f53 100644 --- a/types/FileLinksResource.d.ts +++ b/types/FileLinksResource.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { interface FileLinkCreateParams { /** - * The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. + * The ID of the file. The file's `purpose` must be one of the following: `business_icon`, `business_logo`, `customer_signature`, `dispute_evidence`, `finance_report_run`, `financial_account_statement`, `identity_document_downloadable`, `issuing_regulatory_reporting`, `pci_document`, `selfie`, `sigma_scheduled_query`, `tax_document_user_upload`, or `terminal_reader_splashscreen`. */ file: string; diff --git a/types/Files.d.ts b/types/Files.d.ts index f9dd386785..568e0a0906 100644 --- a/types/Files.d.ts +++ b/types/Files.d.ts @@ -78,6 +78,7 @@ declare module 'stripe' { | 'dispute_evidence' | 'document_provider_identity_document' | 'finance_report_run' + | 'financial_account_statement' | 'identity_document' | 'identity_document_downloadable' | 'issuing_regulatory_reporting' diff --git a/types/FilesResource.d.ts b/types/FilesResource.d.ts index 21b257530b..01ecefa189 100644 --- a/types/FilesResource.d.ts +++ b/types/FilesResource.d.ts @@ -90,6 +90,7 @@ declare module 'stripe' { | 'dispute_evidence' | 'document_provider_identity_document' | 'finance_report_run' + | 'financial_account_statement' | 'identity_document' | 'identity_document_downloadable' | 'issuing_regulatory_reporting' diff --git a/types/FundingInstructions.d.ts b/types/FundingInstructions.d.ts index e6f3710f69..7d10cf01cf 100644 --- a/types/FundingInstructions.d.ts +++ b/types/FundingInstructions.d.ts @@ -96,11 +96,25 @@ declare module 'stripe' { namespace FinancialAddress { interface Aba { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The ABA account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ @@ -179,11 +193,25 @@ declare module 'stripe' { | 'zengin'; interface Swift { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ diff --git a/types/Identity/VerificationReports.d.ts b/types/Identity/VerificationReports.d.ts index f48d8d071c..98d165be97 100644 --- a/types/Identity/VerificationReports.d.ts +++ b/types/Identity/VerificationReports.d.ts @@ -75,7 +75,7 @@ declare module 'stripe' { type: VerificationReport.Type; /** - * The configuration token of a Verification Flow from the dashboard. + * The configuration token of a verification flow from the dashboard. */ verification_flow?: string; diff --git a/types/Identity/VerificationSessions.d.ts b/types/Identity/VerificationSessions.d.ts index 8471de8f76..2509e5315f 100644 --- a/types/Identity/VerificationSessions.d.ts +++ b/types/Identity/VerificationSessions.d.ts @@ -101,7 +101,7 @@ declare module 'stripe' { url: string | null; /** - * The configuration token of a Verification Flow from the dashboard. + * The configuration token of a verification flow from the dashboard. */ verification_flow?: string; diff --git a/types/Identity/VerificationSessionsResource.d.ts b/types/Identity/VerificationSessionsResource.d.ts index c1cab70888..31ab42211d 100644 --- a/types/Identity/VerificationSessionsResource.d.ts +++ b/types/Identity/VerificationSessionsResource.d.ts @@ -45,7 +45,7 @@ declare module 'stripe' { type?: VerificationSessionCreateParams.Type; /** - * The ID of a Verification Flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows. + * The ID of a verification flow from the Dashboard. See https://docs.stripe.com/identity/verification-flows. */ verification_flow?: string; } diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index b775afc1b2..e98ab24acc 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -563,7 +563,7 @@ declare module 'stripe' { interface CustomerTaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: CustomerTaxId.Type; @@ -621,6 +621,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 8ae7f7cf42..308783826d 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -1751,6 +1751,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } @@ -1921,7 +1922,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -1979,6 +1980,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -3105,7 +3107,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -3163,6 +3165,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -4497,7 +4500,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -4555,6 +4558,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -5856,6 +5860,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } @@ -6095,6 +6100,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/Issuing/Authorizations.d.ts b/types/Issuing/Authorizations.d.ts index 56d01ceb0b..9586c1067d 100644 --- a/types/Issuing/Authorizations.d.ts +++ b/types/Issuing/Authorizations.d.ts @@ -47,7 +47,7 @@ declare module 'stripe' { balance_transactions: Array; /** - * You can [create physical or virtual cards](https://stripe.com/docs/issuing/cards) that are issued to cardholders. + * You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. */ card: Stripe.Issuing.Card; @@ -71,6 +71,11 @@ declare module 'stripe' { */ fleet: Authorization.Fleet | null; + /** + * Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. + */ + fraud_challenges?: Array | null; + /** * Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. */ @@ -135,6 +140,11 @@ declare module 'stripe' { verification_data: Authorization.VerificationData; + /** + * Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant. + */ + verified_by_fraud_challenge?: boolean | null; + /** * The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized. */ @@ -273,6 +283,36 @@ declare module 'stripe' { | 'self_service'; } + interface FraudChallenge { + /** + * The method by which the fraud challenge was delivered to the cardholder. + */ + channel: 'sms'; + + /** + * The status of the fraud challenge. + */ + status: FraudChallenge.Status; + + /** + * If the challenge is not deliverable, the reason why. + */ + undeliverable_reason: FraudChallenge.UndeliverableReason | null; + } + + namespace FraudChallenge { + type Status = + | 'expired' + | 'pending' + | 'rejected' + | 'undeliverable' + | 'verified'; + + type UndeliverableReason = + | 'no_phone_number' + | 'unsupported_phone_number'; + } + interface Fuel { /** * [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. diff --git a/types/Issuing/Cardholders.d.ts b/types/Issuing/Cardholders.d.ts index 2d6e1904d1..0c0558cf7b 100644 --- a/types/Issuing/Cardholders.d.ts +++ b/types/Issuing/Cardholders.d.ts @@ -6,7 +6,7 @@ declare module 'stripe' { /** * An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. * - * Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder) + * Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) */ interface Cardholder { /** diff --git a/types/Issuing/Cards.d.ts b/types/Issuing/Cards.d.ts index a87ef5d1f9..2e15aaa0de 100644 --- a/types/Issuing/Cards.d.ts +++ b/types/Issuing/Cards.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace Issuing { /** - * You can [create physical or virtual cards](https://stripe.com/docs/issuing/cards) that are issued to cardholders. + * You can [create physical or virtual cards](https://stripe.com/docs/issuing) that are issued to cardholders. */ interface Card { /** @@ -30,7 +30,7 @@ declare module 'stripe' { /** * An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://stripe.com/docs/issuing) cards. * - * Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards#create-cardholder) + * Related guide: [How to create a cardholder](https://stripe.com/docs/issuing/cards/virtual/issue-cards#create-cardholder) */ cardholder: Stripe.Issuing.Cardholder; diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 456ae459a8..d1a5b58bac 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -152,7 +152,7 @@ declare module 'stripe' { payment_method: string | Stripe.PaymentMethod | null; /** - * Information about the payment method configuration used for this PaymentIntent. + * Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this PaymentIntent. */ payment_method_configuration_details: PaymentIntent.PaymentMethodConfigurationDetails | null; @@ -774,11 +774,25 @@ declare module 'stripe' { namespace FinancialAddress { interface Aba { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The ABA account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ @@ -857,11 +871,25 @@ declare module 'stripe' { | 'zengin'; interface Swift { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + /** * The account number */ account_number: string; + /** + * The account type + */ + account_type: string; + + bank_address: Stripe.Address; + /** * The bank name */ @@ -1807,6 +1835,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index cc1b69607e..b6e48f3cfd 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -102,7 +102,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this PaymentIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent. */ payment_method_configuration?: string; @@ -119,7 +119,7 @@ declare module 'stripe' { payment_method_options?: PaymentIntentCreateParams.PaymentMethodOptions; /** - * The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, it defaults to ["card"]. Use `automatic_payment_methods` to manage payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). + * The list of payment method types (for example, a card) that this PaymentIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; @@ -1635,6 +1635,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -2785,7 +2786,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this PaymentIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this PaymentIntent. */ payment_method_configuration?: string; @@ -4235,6 +4236,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -6945,6 +6947,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/PaymentLinks.d.ts b/types/PaymentLinks.d.ts index 4ee7ef62be..75abf6e686 100644 --- a/types/PaymentLinks.d.ts +++ b/types/PaymentLinks.d.ts @@ -859,7 +859,7 @@ declare module 'stripe' { shipping_rate: string | Stripe.ShippingRate; } - type SubmitType = 'auto' | 'book' | 'donate' | 'pay'; + type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; interface SubscriptionData { /** diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index c5d8aa6088..044c4ff8cf 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -659,7 +659,7 @@ declare module 'stripe' { interface ShippingAddressCollection { /** * An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + * shipping locations. */ allowed_countries: Array; } @@ -912,7 +912,7 @@ declare module 'stripe' { shipping_rate?: string; } - type SubmitType = 'auto' | 'book' | 'donate' | 'pay'; + type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; interface SubscriptionData { /** @@ -1128,6 +1128,11 @@ declare module 'stripe' { PaymentLinkUpdateParams.ShippingAddressCollection >; + /** + * Describes the type of transaction being performed in order to customize relevant text on the page, such as the submit button. Changing this value will also affect the hostname in the [url](https://stripe.com/docs/api/payment_links/payment_links/object#url) property (example: `donate.stripe.com`). + */ + submit_type?: PaymentLinkUpdateParams.SubmitType; + /** * When creating a subscription, the specified configuration data will be used. There must be at least one line item with a recurring price to use `subscription_data`. */ @@ -1577,7 +1582,7 @@ declare module 'stripe' { interface ShippingAddressCollection { /** * An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SD, SY, UM, VI`. + * shipping locations. */ allowed_countries: Array; } @@ -1823,6 +1828,8 @@ declare module 'stripe' { | 'ZZ'; } + type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + interface SubscriptionData { /** * All invoices will be billed using the specified settings. diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index df50a4e7fd..7415a7b3c9 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -257,7 +257,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string; @@ -392,7 +392,7 @@ declare module 'stripe' { amount_authorized: number | null; /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -474,7 +474,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; @@ -717,7 +717,7 @@ declare module 'stripe' { interface CardPresent { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; diff --git a/types/Payouts.d.ts b/types/Payouts.d.ts index 5e79eaf6ea..26a0bbca63 100644 --- a/types/Payouts.d.ts +++ b/types/Payouts.d.ts @@ -137,6 +137,11 @@ declare module 'stripe' { */ status: string; + /** + * A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar. + */ + trace_id?: Payout.TraceId | null; + /** * Can be `bank_account` or `card`. */ @@ -149,6 +154,18 @@ declare module 'stripe' { | 'in_progress' | 'not_applicable'; + interface TraceId { + /** + * Possible values are `pending`, `supported`, and `unsupported`. When `payout.status` is `pending` or `in_transit`, this will be `pending`. When the payout transitions to `paid`, `failed`, or `canceled`, this status will become `supported` or `unsupported` shortly after in most cases. In some cases, this may appear as `pending` for up to 10 days after `arrival_date` until transitioning to `supported` or `unsupported`. + */ + status: string; + + /** + * The trace ID value if `trace_id.status` is `supported`, otherwise `nil`. + */ + value: string | null; + } + type Type = 'bank_account' | 'card'; } } diff --git a/types/Persons.d.ts b/types/Persons.d.ts index a641827f02..cc00395e12 100644 --- a/types/Persons.d.ts +++ b/types/Persons.d.ts @@ -451,6 +451,11 @@ declare module 'stripe' { type PoliticalExposure = 'existing' | 'none'; interface Relationship { + /** + * Whether the person is the authorizer of the account's representative. + */ + authorizer: boolean | null; + /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. */ diff --git a/types/Refunds.d.ts b/types/Refunds.d.ts index 2ffe05dcb9..d0dfaba75b 100644 --- a/types/Refunds.d.ts +++ b/types/Refunds.d.ts @@ -189,6 +189,11 @@ declare module 'stripe' { interface AuBankTransfer {} interface Blik { + /** + * For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. + */ + network_decline_code?: string | null; + /** * The reference assigned to the refund. */ @@ -333,6 +338,11 @@ declare module 'stripe' { interface Sofort {} interface Swish { + /** + * For refunds declined by the network, a decline code provided by the network which indicates the reason the refund failed. + */ + network_decline_code?: string | null; + /** * The reference assigned to the refund. */ diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 0257ae56d0..12a88262cf 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -195,7 +195,7 @@ declare module 'stripe' { interface Card { /** - * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ brand: string | null; @@ -252,7 +252,7 @@ declare module 'stripe' { last4: string | null; /** - * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `mastercard`, `unionpay`, `visa`, or `unknown`. + * Identifies which network this charge was processed on. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `interac`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. */ network: string | null; diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index 24c2168259..2f5d7d92fa 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -130,7 +130,7 @@ declare module 'stripe' { payment_method: string | Stripe.PaymentMethod | null; /** - * Information about the payment method configuration used for this Setup Intent. + * Information about the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) used for this Setup Intent. */ payment_method_configuration_details: SetupIntent.PaymentMethodConfigurationDetails | null; @@ -739,6 +739,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index 81184df594..a128ecd0e6 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -72,7 +72,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this SetupIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent. */ payment_method_configuration?: string; @@ -88,7 +88,7 @@ declare module 'stripe' { payment_method_options?: SetupIntentCreateParams.PaymentMethodOptions; /** - * The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, it defaults to ["card"]. + * The list of payment method types (for example, card) that this SetupIntent can use. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; @@ -1060,6 +1060,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -1343,7 +1344,7 @@ declare module 'stripe' { payment_method?: string; /** - * The ID of the payment method configuration to use with this SetupIntent. + * The ID of the [payment method configuration](https://stripe.com/docs/api/payment_method_configurations) to use with this SetupIntent. */ payment_method_configuration?: string; @@ -1359,7 +1360,7 @@ declare module 'stripe' { payment_method_options?: SetupIntentUpdateParams.PaymentMethodOptions; /** - * The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this array, it defaults to ["card"]. + * The list of payment method types (for example, card) that this SetupIntent can set up. If you don't provide this, Stripe will dynamically show relevant payment methods from your [payment method settings](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; } @@ -2244,6 +2245,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -3477,6 +3479,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index ccb349e153..32be01d729 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -172,7 +172,7 @@ declare module 'stripe' { on_behalf_of: string | Stripe.Account | 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). + * 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/docs/billing/subscriptions/pause-payment). */ pause_collection: Subscription.PauseCollection | null; @@ -213,7 +213,7 @@ declare module 'stripe' { * * A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. * - * A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. + * A subscription can only enter a `paused` status [when a trial ends without a payment method](https://stripe.com/docs/billing/subscriptions/trials#create-free-trials-without-payment). A `paused` subscription doesn't generate invoices and can be resumed after your customer adds their payment method. The `paused` status is different from [pausing collection](https://stripe.com/docs/billing/subscriptions/pause-payment), which still generates invoices and leaves the subscription's status unchanged. * * If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). * @@ -534,6 +534,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index c0b323bca1..bf0718eb17 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -663,6 +663,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -977,7 +978,7 @@ declare module 'stripe' { on_behalf_of?: Stripe.Emptyable; /** - * 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). + * 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/docs/billing/subscriptions/pause-payment). */ pause_collection?: Stripe.Emptyable< SubscriptionUpdateParams.PauseCollection @@ -1542,6 +1543,7 @@ declare module 'stripe' { | 'girocard' | 'interac' | 'jcb' + | 'link' | 'mastercard' | 'unionpay' | 'unknown' @@ -1958,7 +1960,7 @@ declare module 'stripe' { * A trial starts or ends. * * - * In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/billing/subscriptions/upgrade-downgrade#immediate-payment). + * In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date. Learn about how [Stripe immediately attempts payment for subscription changes](https://stripe.com/docs/billing/subscriptions/upgrade-downgrade#immediate-payment). * * If you want to charge for an upgrade immediately, pass proration_behavior as always_invoice to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass create_prorations, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription's renewal date, you need to manually [invoice the customer](https://stripe.com/docs/api/invoices/create). * diff --git a/types/Tax/CalculationLineItems.d.ts b/types/Tax/CalculationLineItems.d.ts index eae8271ddc..5ad96d0132 100644 --- a/types/Tax/CalculationLineItems.d.ts +++ b/types/Tax/CalculationLineItems.d.ts @@ -172,6 +172,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 0aef408064..564f1da7c8 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -120,7 +120,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -178,6 +178,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -361,6 +362,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } @@ -468,6 +470,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index d1fb0dbe7f..e170e8f5c3 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -115,7 +115,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxId.Type; @@ -173,6 +173,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index 39a863a762..80d4bc988d 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -125,7 +125,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` */ type: TaxId.Type; @@ -183,6 +183,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' @@ -373,6 +374,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/TaxIds.d.ts b/types/TaxIds.d.ts index d8127b04cf..a85a2cc098 100644 --- a/types/TaxIds.d.ts +++ b/types/TaxIds.d.ts @@ -70,7 +70,7 @@ declare module 'stripe' { owner: TaxId.Owner | null; /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` */ type: TaxId.Type; @@ -159,6 +159,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/TaxIdsResource.d.ts b/types/TaxIdsResource.d.ts index d92a6c5aee..cb3624019d 100644 --- a/types/TaxIdsResource.d.ts +++ b/types/TaxIdsResource.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { interface TaxIdCreateParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` */ type: TaxIdCreateParams.Type; @@ -93,6 +93,7 @@ declare module 'stripe' { | 'kr_brn' | 'kz_bin' | 'li_uid' + | 'li_vat' | 'ma_vat' | 'md_vat' | 'mx_rfc' diff --git a/types/TaxRates.d.ts b/types/TaxRates.d.ts index 76f9e75d16..367a957de6 100644 --- a/types/TaxRates.d.ts +++ b/types/TaxRates.d.ts @@ -137,6 +137,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } } diff --git a/types/TaxRatesResource.d.ts b/types/TaxRatesResource.d.ts index 944f013786..eb307b6f9b 100644 --- a/types/TaxRatesResource.d.ts +++ b/types/TaxRatesResource.d.ts @@ -73,6 +73,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } @@ -144,6 +145,7 @@ declare module 'stripe' { | 'retail_delivery_fee' | 'rst' | 'sales_tax' + | 'service_tax' | 'vat'; } diff --git a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts index 1734eff878..192ae042cd 100644 --- a/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +++ b/types/TestHelpers/Issuing/AuthorizationsResource.d.ts @@ -6,14 +6,14 @@ declare module 'stripe' { namespace Issuing { interface AuthorizationCreateParams { /** - * The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + * Card associated with this authorization. */ - amount: number; + card: string; /** - * Card associated with this authorization. + * The total amount to attempt to authorize. This amount is in the provided currency, or defaults to the card's currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). */ - card: string; + amount?: number; /** * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). @@ -50,6 +50,16 @@ declare module 'stripe' { */ is_amount_controllable?: boolean; + /** + * The total amount to attempt to authorize. This amount is in the provided merchant currency, and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal). + */ + merchant_amount?: number; + + /** + * The currency of the authorization. If not provided, defaults to the currency of the card. 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). + */ + merchant_currency?: string; + /** * Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened. */ @@ -1178,6 +1188,20 @@ declare module 'stripe' { } } + namespace Issuing { + interface AuthorizationRespondParams { + /** + * Whether to simulate the user confirming that the transaction was legitimate (true) or telling Stripe that it was fraudulent (false). + */ + confirmed: boolean; + + /** + * Specifies which fields in the response should be expanded. + */ + expand?: Array; + } + } + namespace Issuing { interface AuthorizationReverseParams { /** @@ -1246,6 +1270,15 @@ declare module 'stripe' { options?: RequestOptions ): Promise>; + /** + * Respond to a fraud challenge on a testmode Issuing authorization, simulating either a confirmation of fraud or a correction of legitimacy. + */ + respond( + id: string, + params: AuthorizationRespondParams, + options?: RequestOptions + ): Promise>; + /** * Reverse a test-mode Authorization. */ diff --git a/types/TokensResource.d.ts b/types/TokensResource.d.ts index fc9e94a304..9c50737bcd 100644 --- a/types/TokensResource.d.ts +++ b/types/TokensResource.d.ts @@ -797,6 +797,11 @@ declare module 'stripe' { } interface Relationship { + /** + * Whether the person is the authorizer of the account's representative. + */ + authorizer?: boolean; + /** * Whether the person is a director of the account's legal entity. Directors are typically members of the governing board of the company, or responsible for ensuring the company meets its regulatory obligations. */ diff --git a/types/Treasury/InboundTransfers.d.ts b/types/Treasury/InboundTransfers.d.ts index 0d6a4701b5..5c031a5064 100644 --- a/types/Treasury/InboundTransfers.d.ts +++ b/types/Treasury/InboundTransfers.d.ts @@ -74,7 +74,7 @@ declare module 'stripe' { /** * The origin payment method to be debited for an InboundTransfer. */ - origin_payment_method: string; + origin_payment_method: string | null; /** * Details about the PaymentMethod for an InboundTransfer. diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index 5749a44ee2..8773b259a5 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -144,7 +144,8 @@ declare module 'stripe' { | '2024-04-10' | '2024-06-20' | '2024-09-30.acacia' - | '2024-10-28.acacia'; + | '2024-10-28.acacia' + | '2024-11-20.acacia'; type EnabledEvent = | '*' diff --git a/types/lib.d.ts b/types/lib.d.ts index 8accb6f3c2..05e5479f4e 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { }): (...args: any[]) => Response; //eslint-disable-line @typescript-eslint/no-explicit-any static MAX_BUFFERED_REQUEST_METRICS: number; } - export type LatestApiVersion = '2024-10-28.acacia'; + export type LatestApiVersion = '2024-11-20.acacia'; export type HttpAgent = Agent; export type HttpProtocol = 'http' | 'https'; diff --git a/types/test/typescriptTest.ts b/types/test/typescriptTest.ts index a3ac094ca5..5e29962f70 100644 --- a/types/test/typescriptTest.ts +++ b/types/test/typescriptTest.ts @@ -9,7 +9,7 @@ import Stripe from 'stripe'; let stripe = new Stripe('sk_test_123', { - apiVersion: '2024-10-28.acacia', + apiVersion: '2024-11-20.acacia', }); stripe = new Stripe('sk_test_123'); @@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', { // Check config object. stripe = new Stripe('sk_test_123', { - apiVersion: '2024-10-28.acacia', + apiVersion: '2024-11-20.acacia', typescript: true, maxNetworkRetries: 1, timeout: 1000, @@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', { description: 'test', }; const opts: Stripe.RequestOptions = { - apiVersion: '2024-10-28.acacia', + apiVersion: '2024-11-20.acacia', }; const customer: Stripe.Customer = await stripe.customers.create(params, opts); From 925271fc255d54efa62105efbe9df8a4c2a0452e Mon Sep 17 00:00:00 2001 From: Ramya Rao Date: Wed, 20 Nov 2024 15:30:51 -0800 Subject: [PATCH 23/27] Bump version to 17.4.0 --- CHANGELOG.md | 28 ++++++++++++++++++++++++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 31 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 48bd8d50df..a5eeddb3c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,32 @@ # Changelog +## 17.4.0 - 2024-11-20 +* [#2222](https://github.com/stripe/stripe-node/pull/2222) This release changes the pinned API version to `2024-11-20.acacia`. + * Add support for `respond` test helper method on resource `Issuing.Authorization` + * Add support for `authorizer` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship` + * Change type of `Account.future_requirements.disabled_reason` and `Account.requirements.disabled_reason` from `string` to `enum` + * Change `AccountSession.components.account_management.features.disable_stripe_user_authentication`, `AccountSession.components.account_onboarding.features.disable_stripe_user_authentication`, `AccountSession.components.balances.features.disable_stripe_user_authentication`, `AccountSession.components.notification_banner.features.disable_stripe_user_authentication`, and `AccountSession.components.payouts.features.disable_stripe_user_authentication` to be required + * Add support for `adaptive_pricing` on `Checkout.SessionCreateParams` and `Checkout.Session` + * Add support for `mandate_options` on `Checkout.Session.payment_method_options.bacs_debit`, `Checkout.Session.payment_method_options.sepa_debit`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit`, and `Checkout.SessionCreateParams.payment_method_options.sepa_debit` + * Add support for `request_extended_authorization`, `request_incremental_authorization`, `request_multicapture`, and `request_overcapture` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card` + * Add support for `capture_method` on `Checkout.SessionCreateParams.payment_method_options.kakao_pay`, `Checkout.SessionCreateParams.payment_method_options.kr_card`, `Checkout.SessionCreateParams.payment_method_options.naver_pay`, `Checkout.SessionCreateParams.payment_method_options.payco`, and `Checkout.SessionCreateParams.payment_method_options.samsung_pay` + * Add support for new value `subscribe` on enums `Checkout.Session.submit_type`, `Checkout.SessionCreateParams.submit_type`, `PaymentLink.submit_type`, and `PaymentLinkCreateParams.submit_type` + * Add support for new value `li_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new value `li_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for new value `financial_account_statement` on enums `File.purpose` and `FileListParams.purpose` + * Add support for `account_holder_address`, `account_holder_name`, `account_type`, and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].aba`, `FundingInstructions.bank_transfer.financial_addresses[].swift`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].aba`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].swift` + * Add support for new value `service_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` + * Add support for `merchant_amount` and `merchant_currency` on `Issuing.AuthorizationCreateParams.testHelpers` + * Change `Issuing.AuthorizationCreateParams.testHelpers.amount` to be optional + * Add support for `fraud_challenges` and `verified_by_fraud_challenge` on `Issuing.Authorization` + * Add support for new value `link` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` + * Add support for `submit_type` on `PaymentLinkUpdateParams` + * Add support for `trace_id` on `Payout` + * Add support for `network_decline_code` on `Refund.destination_details.blik` and `Refund.destination_details.swish` + * Change type of `Treasury.InboundTransfer.origin_payment_method` from `string` to `string | null` + * Add support for new value `2024-11-20.acacia` on enum `WebhookEndpointCreateParams.api_version` +* [#2215](https://github.com/stripe/stripe-node/pull/2215) Remove empty resources created for service groupings + * Remove `Stripe.V2.BillingResource`, `Stripe.V2.CoreResource`, and `Stripe.V2Resource` types from the public interface as they are no longer needed. SDK usage will not be affected but any references to these types in your application will need to be removed. + ## 17.3.1 - 2024-11-01 * [#2218](https://github.com/stripe/stripe-node/pull/2218) Fixed a bug where `latestapiversion` was not updated to `2024-10-28.acacia` in the last release. diff --git a/VERSION b/VERSION index 1f33a6f48f..e64ad13cba 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.3.1 +17.4.0 diff --git a/package.json b/package.json index eaf294acc8..c7260a74cf 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.3.1", + "version": "17.4.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 1c5580e62b..23bd8e00bd 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.3.1'; + Stripe.PACKAGE_VERSION = '17.4.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From 69ac616a64126ba413cfd7346f53c1c7a372606d Mon Sep 17 00:00:00 2001 From: David Brownman <109395161+xavdid-stripe@users.noreply.github.com> Date: Mon, 16 Dec 2024 16:38:46 -0800 Subject: [PATCH 24/27] add missing key warning to README (#2238) --- README.md | 40 ++++++++++++++++++++++++++++++++++++---- 1 file changed, 36 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 2300d84ba8..174c0d38e6 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,39 @@ const customer = await stripe.customers.create({ console.log(customer.id); ``` +> [!WARNING] +> If you're using `v17.x.x` or later and getting an error about a missing API key despite being sure it's available, it's likely you're importing the file that instantiates `Stripe` while the key isn't present (for instance, during a build step). +> If that's the case, consider instantiating the client lazily: +> +> ```ts +> import Stripe from 'stripe'; +> +> let _stripe: Stripe | null = null; +> const getStripe = (): Stripe => { +> if (!_stripe) { +> _stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string, { +> // ... +> }); +> } +> return _stripe; +> }; +> +> const getCustomers = () => getStripe().customers.list(); +> ``` +> +> Alternatively, you can provide a placeholder for the real key (which will be enough to get the code through a build step): +> +> ```ts +> import Stripe from 'stripe'; +> +> export const stripe = new Stripe( +> process.env.STRIPE_SECRET_KEY || 'api_key_placeholder', +> { +> // ... +> } +> ); +> ``` + ### Usage with TypeScript As of 8.0.1, Stripe maintains types for the latest [API version][api-versions]. @@ -197,7 +230,7 @@ const stripe = Stripe('sk_test_...', { | `host` | `'api.stripe.com'` | Host that requests are made to. | | `port` | 443 | Port that requests are made to. | | `protocol` | `'https'` | `'https'` or `'http'`. `http` is never appropriate for sending requests to Stripe servers, and we strongly discourage `http`, even in local testing scenarios, as this can result in your credentials being transmitted over an insecure channel. | -| `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). | +| `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). | > **Note** > Both `maxNetworkRetries` and `timeout` can be overridden on a per-request basis. @@ -543,14 +576,13 @@ const stripe = new Stripe('sk_test_...'); const response = await stripe.rawRequest( 'POST', '/v1/beta_endpoint', - { param: 123 }, - { apiVersion: '2022-11-15; feature_beta=v3' } + {param: 123}, + {apiVersion: '2022-11-15; feature_beta=v3'} ); // handle response ``` - ## Support New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates. From d727b3e1af9ac45cc66d919f6d55b53ead143a3b Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 23:29:13 +0000 Subject: [PATCH 25/27] Update generated code (#2237) * Update generated code for v1399 * Update generated code for v1402 * Update generated code for v1409 * Update generated code for v1412 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: jar-stripe --- OPENAPI_VERSION | 2 +- src/apiVersion.ts | 2 +- .../resources/generated_examples_test.spec.js | 2 +- types/AccountSessions.d.ts | 10 +- types/AccountSessionsResource.d.ts | 10 +- types/Accounts.d.ts | 10 +- types/AccountsResource.d.ts | 4 +- types/BalanceTransactions.d.ts | 4 +- types/BalanceTransactionsResource.d.ts | 2 +- .../Billing/CreditBalanceSummaryResource.d.ts | 4 +- types/Billing/CreditBalanceTransactions.d.ts | 21 +- .../CreditBalanceTransactionsResource.d.ts | 4 +- types/Billing/CreditGrants.d.ts | 4 +- types/Billing/CreditGrantsResource.d.ts | 16 +- .../MeterEventAdjustmentsResource.d.ts | 2 +- types/Billing/MeterEvents.d.ts | 3 +- types/Billing/MeterEventsResource.d.ts | 4 +- types/Billing/Meters.d.ts | 2 +- types/Billing/MetersResource.d.ts | 16 +- types/BillingPortal/Configurations.d.ts | 2 +- types/Capabilities.d.ts | 6 +- types/Cards.d.ts | 14 + types/Charges.d.ts | 120 ++++++++- types/Checkout/Sessions.d.ts | 37 ++- types/Checkout/SessionsResource.d.ts | 18 +- types/ConfirmationTokens.d.ts | 7 + types/CustomersResource.d.ts | 48 +++- types/Disputes.d.ts | 22 ++ types/DisputesResource.d.ts | 12 + types/EventTypes.d.ts | 4 +- types/Forwarding/Requests.d.ts | 3 +- types/Forwarding/RequestsResource.d.ts | 3 +- types/FundingInstructions.d.ts | 21 ++ types/Invoices.d.ts | 42 ++- types/InvoicesResource.d.ts | 83 +++++- types/Issuing/Authorizations.d.ts | 7 +- types/Issuing/Transactions.d.ts | 5 + types/LineItems.d.ts | 2 +- types/PaymentIntents.d.ts | 47 +++- types/PaymentIntentsResource.d.ts | 48 +++- types/PaymentLinksResource.d.ts | 13 +- types/PaymentMethods.d.ts | 7 + types/Payouts.d.ts | 2 +- types/Persons.d.ts | 4 +- types/SetupAttempts.d.ts | 10 + types/SetupIntents.d.ts | 24 +- types/SetupIntentsResource.d.ts | 42 ++- types/Sources.d.ts | 7 + types/SubscriptionSchedules.d.ts | 10 + types/Subscriptions.d.ts | 5 + types/SubscriptionsResource.d.ts | 6 +- types/Tax/Calculations.d.ts | 23 +- types/Tax/CalculationsResource.d.ts | 23 +- types/Tax/Registrations.d.ts | 189 +++++++++++++ types/Tax/RegistrationsResource.d.ts | 252 ++++++++++++++++++ types/Tax/Transactions.d.ts | 23 +- types/TaxIds.d.ts | 23 +- types/TaxIdsResource.d.ts | 23 +- types/Terminal/LocationsResource.d.ts | 2 +- types/Treasury/FinancialAccountFeatures.d.ts | 6 +- types/WebhookEndpointsResource.d.ts | 3 +- types/lib.d.ts | 2 +- types/test/typescriptTest.ts | 6 +- 63 files changed, 1241 insertions(+), 137 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7ab08411da..bf0daa66a7 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1347 \ No newline at end of file +v1412 \ No newline at end of file diff --git a/src/apiVersion.ts b/src/apiVersion.ts index 29dcb28c98..f65da0438b 100644 --- a/src/apiVersion.ts +++ b/src/apiVersion.ts @@ -1,3 +1,3 @@ // File generated from our OpenAPI spec -export const ApiVersion = '2024-11-20.acacia'; +export const ApiVersion = '2024-12-18.acacia'; diff --git a/test/resources/generated_examples_test.spec.js b/test/resources/generated_examples_test.spec.js index 83b1758928..823360d5bc 100644 --- a/test/resources/generated_examples_test.spec.js +++ b/test/resources/generated_examples_test.spec.js @@ -176,7 +176,7 @@ describe('Generated tests', function() { method: 'GET', path: '/v1/accounts/acc_123', response: - '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"authorizer":true,"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"authorizer":true,"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"ad_nrt","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"ad_nrt","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', + '{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"authorizer":true,"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}},"details":"details","details_code":"details_code","document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"regulated_status":"regulated","three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":{"business_profile":{"annual_revenue":{"amount":1413853096,"currency":"currency","fiscal_year_end":"fiscal_year_end"},"estimated_worker_count":884794319,"mcc":"mcc","monthly_estimated_revenue":{"amount":1413853096,"currency":"currency"},"name":"name","product_description":"product_description","support_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"support_email":"support_email","support_phone":"support_phone","support_url":"support_url","url":"url"},"business_type":"government_entity","capabilities":{"acss_debit_payments":"inactive","affirm_payments":"pending","afterpay_clearpay_payments":"inactive","alma_payments":"pending","amazon_pay_payments":"inactive","au_becs_debit_payments":"active","bacs_debit_payments":"active","bancontact_payments":"inactive","bank_transfer_payments":"pending","blik_payments":"inactive","boleto_payments":"inactive","card_issuing":"active","card_payments":"active","cartes_bancaires_payments":"active","cashapp_payments":"active","eps_payments":"inactive","fpx_payments":"active","gb_bank_transfer_payments":"pending","giropay_payments":"active","grabpay_payments":"pending","ideal_payments":"inactive","india_international_payments":"inactive","jcb_payments":"inactive","jp_bank_transfer_payments":"pending","kakao_pay_payments":"active","klarna_payments":"active","konbini_payments":"active","kr_card_payments":"inactive","legacy_payments":"active","link_payments":"inactive","mobilepay_payments":"pending","multibanco_payments":"inactive","mx_bank_transfer_payments":"pending","naver_pay_payments":"active","oxxo_payments":"pending","p24_payments":"inactive","payco_payments":"inactive","paynow_payments":"active","promptpay_payments":"active","revolut_pay_payments":"inactive","samsung_pay_payments":"pending","sepa_bank_transfer_payments":"pending","sepa_debit_payments":"inactive","sofort_payments":"active","swish_payments":"inactive","tax_reporting_us_1099_k":"inactive","tax_reporting_us_1099_misc":"pending","transfers":"inactive","treasury":"pending","twint_payments":"inactive","us_bank_account_ach_payments":"pending","us_bank_transfer_payments":"pending","zip_payments":"pending"},"charges_enabled":true,"company":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"directors_provided":true,"executives_provided":true,"export_license_id":"export_license_id","export_purpose_code":"export_purpose_code","name":"name","name_kana":"name_kana","name_kanji":"name_kanji","owners_provided":true,"ownership_declaration":{"date":"3076014","ip":"ip","user_agent":"user_agent"},"phone":"phone","structure":"single_member_llc","tax_id_provided":true,"tax_id_registrar":"tax_id_registrar","vat_id_provided":true,"verification":{"document":{"back":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"details":"details","details_code":"details_code","front":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"}}}},"controller":{"fees":{"payer":"application"},"is_controller":true,"losses":{"payments":"stripe"},"requirement_collection":"application","stripe_dashboard":{"type":"express"},"type":"account"},"country":"country","created":"1028554472","default_currency":"default_currency","details_submitted":true,"email":"email","external_accounts":null,"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"groups":{"payments_pricing":"payments_pricing"},"id":"obj_123","individual":{"account":"account","additional_tos_acceptances":{"account":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"address_kana":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"address_kanji":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state","town":"town"},"created":"1028554472","dob":{"day":99228,"month":104080000,"year":3704893},"email":"email","first_name":"first_name","first_name_kana":"first_name_kana","first_name_kanji":"first_name_kanji","full_name_aliases":["full_name_aliases"],"future_requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"gender":"gender","id":"obj_123","id_number_provided":true,"id_number_secondary_provided":true,"last_name":"last_name","last_name_kana":"last_name_kana","last_name_kanji":"last_name_kanji","maiden_name":"maiden_name","metadata":{"undefined":"metadata"},"nationality":"nationality","object":"person","phone":"phone","political_exposure":"none","registered_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"relationship":{"authorizer":true,"director":true,"executive":true,"legal_guardian":true,"owner":true,"percent_ownership":760989685,"representative":true,"title":"title"},"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"currently_due":["currently_due"],"errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"ssn_last_4_provided":true,"verification":{"additional_document":{"back":null,"details":"details","details_code":"details_code","front":null},"details":"details","details_code":"details_code","document":{"back":null,"details":"details","details_code":"details_code","front":null},"status":"status"}},"metadata":{"undefined":"metadata"},"object":"account","payouts_enabled":true,"requirements":{"alternatives":[{"alternative_fields_due":["alternative_fields_due"],"original_fields_due":["original_fields_due"]}],"current_deadline":"270965154","currently_due":["currently_due"],"disabled_reason":"rejected.listed","errors":[{"code":"verification_failed_residential_address","reason":"reason","requirement":"requirement"}],"eventually_due":["eventually_due"],"past_due":["past_due"],"pending_verification":["pending_verification"]},"settings":{"bacs_debit_payments":{"display_name":"display_name","service_user_number":"service_user_number"},"branding":{"icon":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"logo":{"created":"1028554472","expires_at":"833811170","filename":"filename","id":"obj_123","links":null,"object":"file","purpose":"dispute_evidence","size":3530753,"title":"title","type":"type","url":"url"},"primary_color":"primary_color","secondary_color":"secondary_color"},"card_issuing":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}},"card_payments":{"decline_on":{"avs_failure":true,"cvc_failure":true},"statement_descriptor_prefix":"statement_descriptor_prefix","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"dashboard":{"display_name":"display_name","timezone":"timezone"},"invoices":{"default_account_tax_ids":[{"country":"country","created":"1028554472","customer":null,"id":"obj_123","livemode":true,"object":"tax_id","owner":{"account":null,"application":null,"customer":null,"type":"customer"},"type":"ba_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"},"application":{"id":"obj_123","name":"name","object":"application"},"customer":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"balance":339185956,"cash_balance":{"available":{"undefined":733902135},"customer":"customer","livemode":true,"object":"cash_balance","settings":{"reconciliation_mode":"manual","using_merchant_default":true}},"created":"1028554472","currency":"currency","default_source":null,"delinquent":true,"description":"description","discount":{"checkout_session":"checkout_session","coupon":null,"customer":null,"end":"100571","id":"obj_123","invoice":"invoice","invoice_item":"invoice_item","object":"discount","promotion_code":null,"start":"109757538","subscription":"subscription","subscription_item":"subscription_item"},"email":"email","id":"obj_123","invoice_credit_balance":{"undefined":1267696360},"invoice_prefix":"invoice_prefix","invoice_settings":{"custom_fields":[{"name":"name","value":"value"}],"default_payment_method":{"acss_debit":{"bank_name":"bank_name","fingerprint":"fingerprint","institution_number":"institution_number","last4":"last4","transit_number":"transit_number"},"affirm":{},"afterpay_clearpay":{},"alipay":{},"allow_redisplay":"unspecified","alma":{},"amazon_pay":{},"au_becs_debit":{"bsb_number":"bsb_number","fingerprint":"fingerprint","last4":"last4"},"bacs_debit":{"fingerprint":"fingerprint","last4":"last4","sort_code":"sort_code"},"bancontact":{},"billing_details":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","phone":"phone"},"blik":{},"boleto":{"tax_id":"tax_id"},"card":{"brand":"brand","checks":{"address_line1_check":"address_line1_check","address_postal_code_check":"address_postal_code_check","cvc_check":"cvc_check"},"country":"country","description":"description","display_brand":"display_brand","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_from":{"charge":"charge","payment_method_details":{"card_present":{"amount_authorized":1406151710,"brand":"brand","brand_product":"brand_product","capture_before":"2079401320","cardholder_name":"cardholder_name","country":"country","description":"description","emv_auth_data":"emv_auth_data","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","generated_card":"generated_card","iin":"iin","incremental_authorization_supported":true,"issuer":"issuer","last4":"last4","network":"network","network_transaction_id":"network_transaction_id","offline":{"stored_at":"1692436047","type":"deferred"},"overcapture_supported":true,"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","receipt":{"account_type":"checking","application_cryptogram":"application_cryptogram","application_preferred_name":"application_preferred_name","authorization_code":"authorization_code","authorization_response_code":"authorization_response_code","cardholder_verification_method":"cardholder_verification_method","dedicated_file_name":"dedicated_file_name","terminal_verification_results":"terminal_verification_results","transaction_status_information":"transaction_status_information"},"wallet":{"type":"samsung_pay"}},"type":"type"},"setup_attempt":null},"iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"regulated_status":"regulated","three_d_secure_usage":{"supported":true},"wallet":{"amex_express_checkout":{},"apple_pay":{},"dynamic_last4":"dynamic_last4","google_pay":{},"link":{},"masterpass":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}},"samsung_pay":{},"type":"link","visa_checkout":{"billing_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"email":"email","name":"name","shipping_address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"}}}},"card_present":{"brand":"brand","brand_product":"brand_product","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"offline":{"stored_at":"1692436047","type":"deferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2","wallet":{"type":"samsung_pay"}},"cashapp":{"buyer_id":"buyer_id","cashtag":"cashtag"},"created":"1028554472","customer":null,"customer_balance":{},"eps":{"bank":"btv_vier_lander_bank"},"fpx":{"account_holder_type":"individual","bank":"bsn"},"giropay":{},"grabpay":{},"id":"obj_123","ideal":{"bank":"sns_bank","bic":"BUNQNL2A"},"interac_present":{"brand":"brand","cardholder_name":"cardholder_name","country":"country","description":"description","exp_month":40417826,"exp_year":1940618977,"fingerprint":"fingerprint","funding":"funding","iin":"iin","issuer":"issuer","last4":"last4","networks":{"available":["available"],"preferred":"preferred"},"preferred_locales":["preferred_locales"],"read_method":"magnetic_stripe_track2"},"kakao_pay":{},"klarna":{"dob":{"day":99228,"month":104080000,"year":3704893}},"konbini":{},"kr_card":{"brand":"lotte","last4":"last4"},"link":{"email":"email","persistent_token":"persistent_token"},"livemode":true,"metadata":{"undefined":"metadata"},"mobilepay":{},"multibanco":{},"naver_pay":{"funding":"points"},"object":"payment_method","oxxo":{},"p24":{"bank":"noble_pay"},"payco":{},"paynow":{},"paypal":{"payer_email":"payer_email","payer_id":"payer_id"},"pix":{},"promptpay":{},"radar_options":{"session":"session"},"revolut_pay":{},"samsung_pay":{},"sepa_debit":{"bank_code":"bank_code","branch_code":"branch_code","country":"country","fingerprint":"fingerprint","generated_from":{"charge":null,"setup_attempt":null},"last4":"last4"},"sofort":{"country":"country"},"swish":{},"twint":{},"type":"acss_debit","us_bank_account":{"account_holder_type":"individual","account_type":"checking","bank_name":"bank_name","financial_connections_account":"financial_connections_account","fingerprint":"fingerprint","last4":"last4","networks":{"preferred":"preferred","supported":["ach"]},"routing_number":"routing_number","status_details":{"blocked":{"network_code":"R29","reason":"bank_account_unusable"}}},"wechat_pay":{},"zip":{}},"footer":"footer","rendering_options":{"amount_tax_display":"amount_tax_display","template":"template"}},"livemode":true,"metadata":{"undefined":"metadata"},"name":"name","next_invoice_sequence":1356358751,"object":"customer","phone":"phone","preferred_locales":["preferred_locales"],"shipping":{"address":{"city":"city","country":"country","line1":"line1","line2":"line2","postal_code":"postal_code","state":"state"},"carrier":"carrier","name":"name","phone":"phone","tracking_number":"tracking_number"},"sources":null,"subscriptions":null,"tax":{"automatic_tax":"unrecognized_location","ip_address":"ip_address","location":{"country":"country","source":"ip_address","state":"state"}},"tax_exempt":"reverse","tax_ids":null,"test_clock":{"created":"1028554472","deletes_after":"73213179","frozen_time":"2033541876","id":"obj_123","livemode":true,"name":"name","object":"test_helpers.test_clock","status":"advancing","status_details":{"advancing":{"target_frozen_time":"833971362"}}}},"type":"customer"},"type":"ba_tin","value":"value","verification":{"status":"unverified","verified_address":"verified_address","verified_name":"verified_name"}}]},"payments":{"statement_descriptor":"statement_descriptor","statement_descriptor_kana":"statement_descriptor_kana","statement_descriptor_kanji":"statement_descriptor_kanji","statement_descriptor_prefix_kana":"statement_descriptor_prefix_kana","statement_descriptor_prefix_kanji":"statement_descriptor_prefix_kanji"},"payouts":{"debit_negative_balances":true,"schedule":{"delay_days":1647351405,"interval":"interval","monthly_anchor":1920305369,"weekly_anchor":"weekly_anchor"},"statement_descriptor":"statement_descriptor"},"sepa_debit_payments":{"creditor_id":"creditor_id"},"treasury":{"tos_acceptance":{"date":"3076014","ip":"ip","user_agent":"user_agent"}}},"tos_acceptance":{"date":"3076014","ip":"ip","service_agreement":"service_agreement","user_agent":"user_agent"},"type":"none"}', }, ]); const account = await stripe.accounts.retrieve('acc_123'); diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index 951f5ea6fc..741dd6b752 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -82,7 +82,7 @@ declare module 'stripe' { namespace AccountManagement { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication: boolean; @@ -105,7 +105,7 @@ declare module 'stripe' { namespace AccountOnboarding { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication: boolean; @@ -128,7 +128,7 @@ declare module 'stripe' { namespace Balances { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication: boolean; @@ -179,7 +179,7 @@ declare module 'stripe' { namespace NotificationBanner { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication: boolean; @@ -268,7 +268,7 @@ declare module 'stripe' { namespace Payouts { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication: boolean; diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index 7ade440453..49bd196e43 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -93,7 +93,7 @@ declare module 'stripe' { namespace AccountManagement { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication?: boolean; @@ -119,7 +119,7 @@ declare module 'stripe' { namespace AccountOnboarding { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication?: boolean; @@ -145,7 +145,7 @@ declare module 'stripe' { namespace Balances { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication?: boolean; @@ -202,7 +202,7 @@ declare module 'stripe' { namespace NotificationBanner { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication?: boolean; @@ -300,7 +300,7 @@ declare module 'stripe' { namespace Payouts { interface Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be false for accounts where you're responsible for collecting updated information when requirements are due or change, like custom accounts. The default value for this feature is `false` when `external_account_collection` is enabled and `true` otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be true for accounts where `controller.requirement_collection` is `application`. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to true and `disable_stripe_user_authentication` defaults to false. */ disable_stripe_user_authentication?: boolean; diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index ba456583da..c9cd18ed1a 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -129,12 +129,12 @@ declare module 'stripe' { /** * The applicant's gross annual revenue for its preceding fiscal year. */ - annual_revenue: BusinessProfile.AnnualRevenue | null; + annual_revenue?: BusinessProfile.AnnualRevenue | null; /** * An estimated upper bound of employees, contractors, vendors, etc. currently working for the business. */ - estimated_worker_count: number | null; + estimated_worker_count?: number | null; /** * [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide. @@ -899,7 +899,7 @@ declare module 'stripe' { alternatives: Array | null; /** - * Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. + * Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on its enablement state prior to transitioning. */ current_deadline: number | null; @@ -919,7 +919,7 @@ declare module 'stripe' { errors: Array | null; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well. + * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well. */ eventually_due: Array | null; @@ -1110,7 +1110,7 @@ declare module 'stripe' { errors: Array | null; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. + * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. */ eventually_due: Array | null; diff --git a/types/AccountsResource.d.ts b/types/AccountsResource.d.ts index 4bb38d12cf..3a4b88b016 100644 --- a/types/AccountsResource.d.ts +++ b/types/AccountsResource.d.ts @@ -73,7 +73,7 @@ declare module 'stripe' { external_account?: string | AccountCreateParams.ExternalAccount; /** - * A hash of account group type to tokens. These are account groups this account should be added to + * A hash of account group type to tokens. These are account groups this account should be added to. */ groups?: AccountCreateParams.Groups; @@ -1719,7 +1719,7 @@ declare module 'stripe' { >; /** - * A hash of account group type to tokens. These are account groups this account should be added to + * A hash of account group type to tokens. These are account groups this account should be added to. */ groups?: AccountUpdateParams.Groups; diff --git a/types/BalanceTransactions.d.ts b/types/BalanceTransactions.d.ts index fa975313ef..f0a035b9ac 100644 --- a/types/BalanceTransactions.d.ts +++ b/types/BalanceTransactions.d.ts @@ -80,7 +80,7 @@ declare module 'stripe' { status: string; /** - * Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. + * Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead. */ type: BalanceTransaction.Type; } @@ -141,6 +141,8 @@ declare module 'stripe' { | 'payout' | 'payout_cancel' | 'payout_failure' + | 'payout_minimum_balance_hold' + | 'payout_minimum_balance_release' | 'refund' | 'refund_failure' | 'reserve_transaction' diff --git a/types/BalanceTransactionsResource.d.ts b/types/BalanceTransactionsResource.d.ts index 929c9bee4f..3538087e47 100644 --- a/types/BalanceTransactionsResource.d.ts +++ b/types/BalanceTransactionsResource.d.ts @@ -36,7 +36,7 @@ declare module 'stripe' { source?: string; /** - * Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. + * Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. */ type?: string; } diff --git a/types/Billing/CreditBalanceSummaryResource.d.ts b/types/Billing/CreditBalanceSummaryResource.d.ts index 400b16c95b..09cf01f44c 100644 --- a/types/Billing/CreditBalanceSummaryResource.d.ts +++ b/types/Billing/CreditBalanceSummaryResource.d.ts @@ -41,7 +41,7 @@ declare module 'stripe' { namespace Filter { interface ApplicabilityScope { /** - * The price type for which credit grants can apply. We currently only support the `metered` price type. + * The price type that credit grants can apply to. We currently only support the `metered` price type. */ price_type: 'metered'; } @@ -52,7 +52,7 @@ declare module 'stripe' { class CreditBalanceSummaryResource { /** - * Retrieves the credit balance summary for a customer + * Retrieves the credit balance summary for a customer. */ retrieve( params: CreditBalanceSummaryRetrieveParams, diff --git a/types/Billing/CreditBalanceTransactions.d.ts b/types/Billing/CreditBalanceTransactions.d.ts index 860ad23f74..6106d744ba 100644 --- a/types/Billing/CreditBalanceTransactions.d.ts +++ b/types/Billing/CreditBalanceTransactions.d.ts @@ -62,10 +62,15 @@ declare module 'stripe' { interface Credit { amount: Credit.Amount; + /** + * Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`. + */ + credits_application_invoice_voided?: Credit.CreditsApplicationInvoiceVoided | null; + /** * The type of credit transaction. */ - type: 'credits_granted'; + type: Credit.Type; } namespace Credit { @@ -94,6 +99,20 @@ declare module 'stripe' { value: number; } } + + interface CreditsApplicationInvoiceVoided { + /** + * The invoice to which the reinstated billing credits were originally applied. + */ + invoice: string | Stripe.Invoice; + + /** + * The invoice line item to which the reinstated billing credits were originally applied. + */ + invoice_line_item: string; + } + + type Type = 'credits_application_invoice_voided' | 'credits_granted'; } interface Debit { diff --git a/types/Billing/CreditBalanceTransactionsResource.d.ts b/types/Billing/CreditBalanceTransactionsResource.d.ts index 22eb502afa..6e700537f2 100644 --- a/types/Billing/CreditBalanceTransactionsResource.d.ts +++ b/types/Billing/CreditBalanceTransactionsResource.d.ts @@ -29,7 +29,7 @@ declare module 'stripe' { class CreditBalanceTransactionsResource { /** - * Retrieves a credit balance transaction + * Retrieves a credit balance transaction. */ retrieve( id: string, @@ -42,7 +42,7 @@ declare module 'stripe' { ): Promise>; /** - * Retrieve a list of credit balance transactions + * Retrieve a list of credit balance transactions. */ list( params: CreditBalanceTransactionListParams, diff --git a/types/Billing/CreditGrants.d.ts b/types/Billing/CreditGrants.d.ts index 782161b6eb..6f50ed5aea 100644 --- a/types/Billing/CreditGrants.d.ts +++ b/types/Billing/CreditGrants.d.ts @@ -39,7 +39,7 @@ declare module 'stripe' { customer: string | Stripe.Customer | Stripe.DeletedCustomer; /** - * The time when the billing credits become effectiveā€”when they're eligible for use. + * The time when the billing credits become effective-when they're eligible for use. */ effective_at: number | null; @@ -113,7 +113,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type for which credit grants can apply. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. + * The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. */ price_type: 'metered'; } diff --git a/types/Billing/CreditGrantsResource.d.ts b/types/Billing/CreditGrantsResource.d.ts index 9b5cbcc513..58509065b7 100644 --- a/types/Billing/CreditGrantsResource.d.ts +++ b/types/Billing/CreditGrantsResource.d.ts @@ -25,7 +25,7 @@ declare module 'stripe' { customer: string; /** - * The time when the billing credits become effectiveā€”when they're eligible for use. Defaults to the current timestamp if not specified. + * The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified. */ effective_at?: number; @@ -35,12 +35,12 @@ declare module 'stripe' { expand?: Array; /** - * The time when the billing credits will expire. If not specified, the billing credits don't expire. + * The time when the billing credits expire. If not specified, the billing credits don't expire. */ expires_at?: number; /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. + * Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format. */ metadata?: Stripe.MetadataParam; @@ -87,7 +87,7 @@ declare module 'stripe' { namespace ApplicabilityConfig { interface Scope { /** - * The price type for which credit grants can apply. We currently only support the `metered` price type. + * The price type that credit grants can apply to. We currently only support the `metered` price type. */ price_type: 'metered'; } @@ -115,7 +115,7 @@ declare module 'stripe' { expires_at?: Stripe.Emptyable; /** - * Set of key-value pairs you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format. + * Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format. */ metadata?: Stripe.MetadataParam; } @@ -148,7 +148,7 @@ declare module 'stripe' { class CreditGrantsResource { /** - * Creates a credit grant + * Creates a credit grant. */ create( params: CreditGrantCreateParams, @@ -156,7 +156,7 @@ declare module 'stripe' { ): Promise>; /** - * Retrieves a credit grant + * Retrieves a credit grant. */ retrieve( id: string, @@ -169,7 +169,7 @@ declare module 'stripe' { ): Promise>; /** - * Updates a credit grant + * Updates a credit grant. */ update( id: string, diff --git a/types/Billing/MeterEventAdjustmentsResource.d.ts b/types/Billing/MeterEventAdjustmentsResource.d.ts index 74ac21ad90..25129a97c5 100644 --- a/types/Billing/MeterEventAdjustmentsResource.d.ts +++ b/types/Billing/MeterEventAdjustmentsResource.d.ts @@ -36,7 +36,7 @@ declare module 'stripe' { class MeterEventAdjustmentsResource { /** - * Creates a billing meter event adjustment + * Creates a billing meter event adjustment. */ create( params: MeterEventAdjustmentCreateParams, diff --git a/types/Billing/MeterEvents.d.ts b/types/Billing/MeterEvents.d.ts index abcb35c586..1492b44367 100644 --- a/types/Billing/MeterEvents.d.ts +++ b/types/Billing/MeterEvents.d.ts @@ -4,8 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace Billing { /** - * A billing meter event represents a customer's usage of a product. Meter events are used to bill a customer based on their usage. - * Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing. + * Meter events represent actions that customers take in your system. You can use meter events to bill a customer based on their usage. Meter events are associated with billing meters, which define both the contents of the event's payload and how to aggregate those events. */ interface MeterEvent { /** diff --git a/types/Billing/MeterEventsResource.d.ts b/types/Billing/MeterEventsResource.d.ts index 4a1433e368..e8ec9753b8 100644 --- a/types/Billing/MeterEventsResource.d.ts +++ b/types/Billing/MeterEventsResource.d.ts @@ -22,7 +22,7 @@ declare module 'stripe' { expand?: Array; /** - * A unique identifier for the event. If not provided, one will be generated. We strongly advise using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. + * A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations. */ identifier?: string; @@ -34,7 +34,7 @@ declare module 'stripe' { class MeterEventsResource { /** - * Creates a billing meter event + * Creates a billing meter event. */ create( params: MeterEventCreateParams, diff --git a/types/Billing/Meters.d.ts b/types/Billing/Meters.d.ts index 4304c5b97d..f572530c66 100644 --- a/types/Billing/Meters.d.ts +++ b/types/Billing/Meters.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { namespace Billing { /** - * A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make. + * Meters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill. * * Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based) */ diff --git a/types/Billing/MetersResource.d.ts b/types/Billing/MetersResource.d.ts index 26bee2b879..b28eb72baa 100644 --- a/types/Billing/MetersResource.d.ts +++ b/types/Billing/MetersResource.d.ts @@ -10,7 +10,7 @@ declare module 'stripe' { default_aggregation: MeterCreateParams.DefaultAggregation; /** - * The meter's name. + * The meter's name. Not visible to the customer. */ display_name: string; @@ -43,7 +43,7 @@ declare module 'stripe' { namespace MeterCreateParams { interface CustomerMapping { /** - * The key in the usage event payload to use for mapping the event to a customer. + * The key in the meter event payload to use for mapping the event to a customer. */ event_payload_key: string; @@ -83,7 +83,7 @@ declare module 'stripe' { interface MeterUpdateParams { /** - * The meter's name. + * The meter's name. Not visible to the customer. */ display_name?: string; @@ -156,7 +156,7 @@ declare module 'stripe' { class MetersResource { /** - * Creates a billing meter + * Creates a billing meter. */ create( params: MeterCreateParams, @@ -164,7 +164,7 @@ declare module 'stripe' { ): Promise>; /** - * Retrieves a billing meter given an ID + * Retrieves a billing meter given an ID. */ retrieve( id: string, @@ -177,7 +177,7 @@ declare module 'stripe' { ): Promise>; /** - * Updates a billing meter + * Updates a billing meter. */ update( id: string, @@ -195,7 +195,7 @@ declare module 'stripe' { list(options?: RequestOptions): ApiListPromise; /** - * Deactivates a billing meter + * When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price. */ deactivate( id: string, @@ -217,7 +217,7 @@ declare module 'stripe' { ): ApiListPromise; /** - * Reactivates a billing meter + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price. */ reactivate( id: string, diff --git a/types/BillingPortal/Configurations.d.ts b/types/BillingPortal/Configurations.d.ts index e97fe78223..0b9ce422ab 100644 --- a/types/BillingPortal/Configurations.d.ts +++ b/types/BillingPortal/Configurations.d.ts @@ -210,7 +210,7 @@ declare module 'stripe' { */ proration_behavior: SubscriptionUpdate.ProrationBehavior; - schedule_at_period_end?: SubscriptionUpdate.ScheduleAtPeriodEnd; + schedule_at_period_end: SubscriptionUpdate.ScheduleAtPeriodEnd; } namespace SubscriptionUpdate { diff --git a/types/Capabilities.d.ts b/types/Capabilities.d.ts index 1e844cb75b..d77a45d5d9 100644 --- a/types/Capabilities.d.ts +++ b/types/Capabilities.d.ts @@ -51,7 +51,7 @@ declare module 'stripe' { alternatives: Array | null; /** - * Date on which `future_requirements` merges with the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. + * Date on which `future_requirements` becomes the main `requirements` hash and `future_requirements` becomes empty. After the transition, `currently_due` requirements may immediately become `past_due`, but the account may also be given a grace period depending on the capability's enablement state prior to transitioning. */ current_deadline: number | null; @@ -71,7 +71,7 @@ declare module 'stripe' { errors: Array; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well. + * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well. */ eventually_due: Array; @@ -250,7 +250,7 @@ declare module 'stripe' { errors: Array; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. + * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and `current_deadline` becomes set. */ eventually_due: Array; diff --git a/types/Cards.d.ts b/types/Cards.d.ts index a8411949ed..bdbb9b426f 100644 --- a/types/Cards.d.ts +++ b/types/Cards.d.ts @@ -65,6 +65,11 @@ declare module 'stripe' { */ address_zip_check: string | null; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to ā€œunspecifiedā€. + */ + allow_redisplay?: Card.AllowRedisplay | null; + /** * A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout. */ @@ -164,6 +169,11 @@ declare module 'stripe' { networks?: Card.Networks; + /** + * Status of a card based on the card issuer. + */ + regulated_status?: Card.RegulatedStatus | null; + /** * For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated. */ @@ -176,6 +186,8 @@ declare module 'stripe' { } namespace Card { + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + type AvailablePayoutMethod = 'instant' | 'standard'; interface Networks { @@ -184,6 +196,8 @@ declare module 'stripe' { */ preferred: string | null; } + + type RegulatedStatus = 'regulated' | 'unregulated'; } /** diff --git a/types/Charges.d.ts b/types/Charges.d.ts index a50f1ce002..f9e87b8f5a 100644 --- a/types/Charges.d.ts +++ b/types/Charges.d.ts @@ -312,6 +312,16 @@ declare module 'stripe' { } interface Outcome { + /** + * For charges declined by the network, a 2 digit code which indicates the advice returned by the network on how to proceed with an error. + */ + network_advice_code: string | null; + + /** + * For charges declined by the network, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + */ + network_decline_code: string | null; + /** * Possible values are `approved_by_network`, `declined_by_network`, `not_sent_to_network`, and `reversed_after_approval`. The value `reversed_after_approval` indicates the payment was [blocked by Stripe](https://stripe.com/docs/declines#blocked-payments) after bank authorization, and may temporarily appear as "pending" on a cardholder's statement. */ @@ -605,7 +615,54 @@ declare module 'stripe' { interface Alma {} - interface AmazonPay {} + interface AmazonPay { + funding?: AmazonPay.Funding; + } + + namespace AmazonPay { + interface Funding { + card?: Funding.Card; + + /** + * funding type of the underlying payment method. + */ + type: 'card' | null; + } + + namespace Funding { + interface Card { + /** + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + */ + brand: string | null; + + /** + * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + */ + country: string | null; + + /** + * Two-digit number representing the card's expiration month. + */ + exp_month: number | null; + + /** + * Four-digit number representing the card's expiration year. + */ + exp_year: number | null; + + /** + * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + */ + funding: string | null; + + /** + * The last four digits of the card. + */ + last4: string | null; + } + } + } interface AuBecsDebit { /** @@ -819,8 +876,18 @@ declare module 'stripe' { */ network_token?: Card.NetworkToken | null; + /** + * This is used by the financial networks to identify a transaction. Visa calls this the Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent the date (MM/DD). This field will be available for successful Visa, Mastercard, or American Express transactions and always null for other card brands. + */ + network_transaction_id?: string | null; + overcapture?: Card.Overcapture; + /** + * Status of a card based on the card issuer. + */ + regulated_status?: Card.RegulatedStatus | null; + /** * Populated if this transaction used 3D Secure authentication. */ @@ -933,6 +1000,8 @@ declare module 'stripe' { type Status = 'available' | 'unavailable'; } + type RegulatedStatus = 'regulated' | 'unregulated'; + interface ThreeDSecure { /** * For authenticated transactions: how the customer was authenticated by @@ -1973,7 +2042,54 @@ declare module 'stripe' { reference: string | null; } - interface RevolutPay {} + interface RevolutPay { + funding?: RevolutPay.Funding; + } + + namespace RevolutPay { + interface Funding { + card?: Funding.Card; + + /** + * funding type of the underlying payment method. + */ + type: 'card' | null; + } + + namespace Funding { + interface Card { + /** + * Card brand. Can be `amex`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa`, or `unknown`. + */ + brand: string | null; + + /** + * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + */ + country: string | null; + + /** + * Two-digit number representing the card's expiration month. + */ + exp_month: number | null; + + /** + * Four-digit number representing the card's expiration year. + */ + exp_year: number | null; + + /** + * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + */ + funding: string | null; + + /** + * The last four digits of the card. + */ + last4: string | null; + } + } + } interface SamsungPay { /** diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index f75eb03b9d..ab51a90518 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -502,7 +502,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` */ type: TaxId.Type; @@ -516,14 +516,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -531,6 +537,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -546,6 +553,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -557,12 +565,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -570,6 +582,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -582,12 +595,16 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' @@ -595,7 +612,9 @@ declare module 'stripe' { | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } @@ -1143,7 +1162,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: string; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -1660,7 +1684,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: string; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } diff --git a/types/Checkout/SessionsResource.d.ts b/types/Checkout/SessionsResource.d.ts index 8cc0dbe84b..9de715c731 100644 --- a/types/Checkout/SessionsResource.d.ts +++ b/types/Checkout/SessionsResource.d.ts @@ -297,7 +297,9 @@ declare module 'stripe' { interface AutomaticTax { /** - * Set to true to enable automatic taxes. + * Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + * + * Enabling this parameter causes Checkout to collect any billing address information necessary for tax calculation. */ enabled: boolean; @@ -1348,7 +1350,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -1924,7 +1931,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } diff --git a/types/ConfirmationTokens.d.ts b/types/ConfirmationTokens.d.ts index b8d582382a..d044fb92fc 100644 --- a/types/ConfirmationTokens.d.ts +++ b/types/ConfirmationTokens.d.ts @@ -426,6 +426,11 @@ declare module 'stripe' { */ networks: Card.Networks | null; + /** + * Status of a card based on the card issuer. + */ + regulated_status?: Card.RegulatedStatus | null; + /** * Contains details on how this Card may be used for 3D Secure authentication. */ @@ -714,6 +719,8 @@ declare module 'stripe' { preferred: string | null; } + type RegulatedStatus = 'regulated' | 'unregulated'; + interface ThreeDSecureUsage { /** * Whether 3D Secure is supported on this card. diff --git a/types/CustomersResource.d.ts b/types/CustomersResource.d.ts index 4c7249031d..fe4c3f7914 100644 --- a/types/CustomersResource.d.ts +++ b/types/CustomersResource.d.ts @@ -220,7 +220,7 @@ declare module 'stripe' { interface TaxIdDatum { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` */ type: TaxIdDatum.Type; @@ -234,14 +234,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -249,6 +255,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -264,6 +271,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -275,12 +283,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -288,6 +300,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -300,19 +313,25 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } @@ -525,7 +544,7 @@ declare module 'stripe' { ip_address?: Stripe.Emptyable; /** - * A flag that indicates when Stripe should validate the customer tax location. Defaults to `deferred`. + * A flag that indicates when Stripe should validate the customer tax location. Defaults to `auto`. */ validate_location?: Tax.ValidateLocation; } @@ -670,7 +689,7 @@ declare module 'stripe' { interface CustomerCreateTaxIdParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` */ type: CustomerCreateTaxIdParams.Type; @@ -689,14 +708,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -704,6 +729,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -719,6 +745,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -730,12 +757,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -743,6 +774,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -755,19 +787,25 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } interface CustomerDeleteDiscountParams {} diff --git a/types/Disputes.d.ts b/types/Disputes.d.ts index f774e4f674..9470ff5e83 100644 --- a/types/Disputes.d.ts +++ b/types/Disputes.d.ts @@ -235,6 +235,8 @@ declare module 'stripe' { namespace Evidence { interface EnhancedEvidence { visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3; + + visa_compliance?: EnhancedEvidence.VisaCompliance; } namespace EnhancedEvidence { @@ -341,6 +343,13 @@ declare module 'stripe' { shipping_address: Stripe.Address | null; } } + + interface VisaCompliance { + /** + * A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. + */ + fee_acknowledged: boolean; + } } } @@ -371,6 +380,8 @@ declare module 'stripe' { namespace EvidenceDetails { interface EnhancedEligibility { visa_compelling_evidence_3?: EnhancedEligibility.VisaCompellingEvidence3; + + visa_compliance?: EnhancedEligibility.VisaCompliance; } namespace EnhancedEligibility { @@ -396,6 +407,17 @@ declare module 'stripe' { type Status = 'not_qualified' | 'qualified' | 'requires_action'; } + + interface VisaCompliance { + /** + * Visa compliance eligibility status. + */ + status: VisaCompliance.Status; + } + + namespace VisaCompliance { + type Status = 'fee_acknowledged' | 'requires_fee_acknowledgement'; + } } } diff --git a/types/DisputesResource.d.ts b/types/DisputesResource.d.ts index a8c7a0c557..86965a31db 100644 --- a/types/DisputesResource.d.ts +++ b/types/DisputesResource.d.ts @@ -180,6 +180,11 @@ declare module 'stripe' { * Evidence provided for Visa Compelling Evidence 3.0 evidence submission. */ visa_compelling_evidence_3?: EnhancedEvidence.VisaCompellingEvidence3; + + /** + * Evidence provided for Visa compliance evidence submission. + */ + visa_compliance?: EnhancedEvidence.VisaCompliance; } namespace EnhancedEvidence { @@ -286,6 +291,13 @@ declare module 'stripe' { shipping_address?: Stripe.AddressParam; } } + + interface VisaCompliance { + /** + * A field acknowledging the fee incurred when countering a Visa compliance dispute. If this field is set to true, evidence can be submitted for the compliance dispute. Stripe collects a 500 USD (or local equivalent) amount to cover the network costs associated with resolving compliance disputes. Stripe refunds the 500 USD network fee if you win the dispute. + */ + fee_acknowledged?: boolean; + } } } } diff --git a/types/EventTypes.d.ts b/types/EventTypes.d.ts index fd863eb4cb..7547658c9a 100644 --- a/types/EventTypes.d.ts +++ b/types/EventTypes.d.ts @@ -646,7 +646,7 @@ declare module 'stripe' { } /** - * Occurs whenever a refund is updated, on selected payment methods. + * Occurs whenever a refund is updated on selected payment methods. For updates on all refunds, listen to `refund.updated` instead. */ interface ChargeRefundUpdatedEvent extends EventBase { type: 'charge.refund.updated'; @@ -662,7 +662,7 @@ declare module 'stripe' { } /** - * Occurs whenever a charge is refunded, including partial refunds. + * Occurs whenever a charge is refunded, including partial refunds. Listen to `refund.created` for information about the refund. */ interface ChargeRefundedEvent extends EventBase { type: 'charge.refunded'; diff --git a/types/Forwarding/Requests.d.ts b/types/Forwarding/Requests.d.ts index aaeae30181..9eef8b8b93 100644 --- a/types/Forwarding/Requests.d.ts +++ b/types/Forwarding/Requests.d.ts @@ -83,7 +83,8 @@ declare module 'stripe' { | 'card_cvc' | 'card_expiry' | 'card_number' - | 'cardholder_name'; + | 'cardholder_name' + | 'request_signature'; interface RequestContext { /** diff --git a/types/Forwarding/RequestsResource.d.ts b/types/Forwarding/RequestsResource.d.ts index 9cf1c84653..c6325fde6c 100644 --- a/types/Forwarding/RequestsResource.d.ts +++ b/types/Forwarding/RequestsResource.d.ts @@ -40,7 +40,8 @@ declare module 'stripe' { | 'card_cvc' | 'card_expiry' | 'card_number' - | 'cardholder_name'; + | 'cardholder_name' + | 'request_signature'; interface Request { /** diff --git a/types/FundingInstructions.d.ts b/types/FundingInstructions.d.ts index 7d10cf01cf..aae8d4573b 100644 --- a/types/FundingInstructions.d.ts +++ b/types/FundingInstructions.d.ts @@ -127,11 +127,15 @@ declare module 'stripe' { } interface Iban { + account_holder_address: Stripe.Address; + /** * The name of the person or business that owns the bank account */ account_holder_name: string; + bank_address: Stripe.Address; + /** * The BIC/SWIFT code of the account. */ @@ -149,6 +153,8 @@ declare module 'stripe' { } interface SortCode { + account_holder_address: Stripe.Address; + /** * The name of the person or business that owns the bank account */ @@ -159,6 +165,8 @@ declare module 'stripe' { */ account_number: string; + bank_address: Stripe.Address; + /** * The six-digit sort code */ @@ -166,6 +174,15 @@ declare module 'stripe' { } interface Spei { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + + bank_address: Stripe.Address; + /** * The three-digit bank code */ @@ -232,6 +249,8 @@ declare module 'stripe' { | 'zengin'; interface Zengin { + account_holder_address: Stripe.Address; + /** * The account holder name */ @@ -247,6 +266,8 @@ declare module 'stripe' { */ account_type: string | null; + bank_address: Stripe.Address; + /** * The bank code of the account */ diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index e98ab24acc..0249f36479 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -486,6 +486,11 @@ declare module 'stripe' { namespace Invoice { interface AutomaticTax { + /** + * If Stripe disabled automatic tax, this enum describes why. + */ + disabled_reason: AutomaticTax.DisabledReason | null; + /** * Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://stripe.com/docs/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices. */ @@ -503,6 +508,10 @@ declare module 'stripe' { } namespace AutomaticTax { + type DisabledReason = + | 'finalization_requires_location_inputs' + | 'finalization_system_error'; + interface Liability { /** * The connected account being referenced when `type` is `account`. @@ -563,7 +572,7 @@ declare module 'stripe' { interface CustomerTaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` */ type: CustomerTaxId.Type; @@ -577,14 +586,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -592,6 +607,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -607,6 +623,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -618,12 +635,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -631,6 +652,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -643,12 +665,16 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' @@ -656,7 +682,9 @@ declare module 'stripe' { | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } interface CustomField { @@ -725,6 +753,16 @@ declare module 'stripe' { */ message?: string; + /** + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + */ + network_advice_code?: string; + + /** + * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + */ + network_decline_code?: string; + /** * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. */ diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index 308783826d..718fa262b0 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -266,7 +266,7 @@ declare module 'stripe' { payment_method_options?: PaymentSettings.PaymentMethodOptions; /** - * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration */ payment_method_types?: Stripe.Emptyable< Array @@ -980,7 +980,7 @@ declare module 'stripe' { payment_method_options?: PaymentSettings.PaymentMethodOptions; /** - * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration */ payment_method_types?: Stripe.Emptyable< Array @@ -1922,7 +1922,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` */ type: TaxId.Type; @@ -1936,14 +1936,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -1951,6 +1957,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -1966,6 +1973,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -1977,12 +1985,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -1990,6 +2002,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -2002,19 +2015,25 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } @@ -2723,7 +2742,7 @@ declare module 'stripe' { billing_thresholds?: Stripe.Emptyable; /** - * Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. */ clear_usage?: boolean; @@ -3107,7 +3126,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` */ type: TaxId.Type; @@ -3121,14 +3140,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -3136,6 +3161,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -3151,6 +3177,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -3162,12 +3189,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -3175,6 +3206,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -3187,19 +3219,25 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } @@ -3910,7 +3948,7 @@ declare module 'stripe' { billing_thresholds?: Stripe.Emptyable; /** - * Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. */ clear_usage?: boolean; @@ -4053,7 +4091,7 @@ declare module 'stripe' { >; /** - * Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. */ clear_usage?: boolean; @@ -4500,7 +4538,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` */ type: TaxId.Type; @@ -4514,14 +4552,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -4529,6 +4573,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -4544,6 +4589,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -4555,12 +4601,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -4568,6 +4618,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -4580,19 +4631,25 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } @@ -5303,7 +5360,7 @@ declare module 'stripe' { billing_thresholds?: Stripe.Emptyable; /** - * Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. */ clear_usage?: boolean; @@ -5446,7 +5503,7 @@ declare module 'stripe' { >; /** - * Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. */ clear_usage?: boolean; diff --git a/types/Issuing/Authorizations.d.ts b/types/Issuing/Authorizations.d.ts index 9586c1067d..652fe8a176 100644 --- a/types/Issuing/Authorizations.d.ts +++ b/types/Issuing/Authorizations.d.ts @@ -143,7 +143,7 @@ declare module 'stripe' { /** * Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant. */ - verified_by_fraud_challenge?: boolean | null; + verified_by_fraud_challenge: boolean | null; /** * The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. Will populate as `null` when no digital wallet was utilized. @@ -400,6 +400,11 @@ declare module 'stripe' { */ state: string | null; + /** + * The seller's tax identification number. Currently populated for French merchants only. + */ + tax_id?: string | null; + /** * An ID assigned by the seller to the location of the sale. */ diff --git a/types/Issuing/Transactions.d.ts b/types/Issuing/Transactions.d.ts index 49b4dee5d7..8916e39fed 100644 --- a/types/Issuing/Transactions.d.ts +++ b/types/Issuing/Transactions.d.ts @@ -173,6 +173,11 @@ declare module 'stripe' { */ state: string | null; + /** + * The seller's tax identification number. Currently populated for French merchants only. + */ + tax_id?: string | null; + /** * An ID assigned by the seller to the location of the sale. */ diff --git a/types/LineItems.d.ts b/types/LineItems.d.ts index 04e6b8f558..c18577584a 100644 --- a/types/LineItems.d.ts +++ b/types/LineItems.d.ts @@ -44,7 +44,7 @@ declare module 'stripe' { /** * An arbitrary string attached to the object. Often useful for displaying to users. Defaults to product name. */ - description?: string; + description: string | null; /** * The discounts applied to the line item. diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index d1a5b58bac..84101ec4b3 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -305,6 +305,16 @@ declare module 'stripe' { */ message?: string; + /** + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + */ + network_advice_code?: string; + + /** + * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + */ + network_decline_code?: string; + /** * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. */ @@ -805,11 +815,15 @@ declare module 'stripe' { } interface Iban { + account_holder_address: Stripe.Address; + /** * The name of the person or business that owns the bank account */ account_holder_name: string; + bank_address: Stripe.Address; + /** * The BIC/SWIFT code of the account. */ @@ -827,6 +841,8 @@ declare module 'stripe' { } interface SortCode { + account_holder_address: Stripe.Address; + /** * The name of the person or business that owns the bank account */ @@ -837,6 +853,8 @@ declare module 'stripe' { */ account_number: string; + bank_address: Stripe.Address; + /** * The six-digit sort code */ @@ -844,6 +862,15 @@ declare module 'stripe' { } interface Spei { + account_holder_address: Stripe.Address; + + /** + * The account holder name + */ + account_holder_name: string; + + bank_address: Stripe.Address; + /** * The three-digit bank code */ @@ -910,6 +937,8 @@ declare module 'stripe' { | 'zengin'; interface Zengin { + account_holder_address: Stripe.Address; + /** * The account holder name */ @@ -925,6 +954,8 @@ declare module 'stripe' { */ account_type: string | null; + bank_address: Stripe.Address; + /** * The bank code of the account */ @@ -1578,7 +1609,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: string; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2371,7 +2407,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: string; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2409,7 +2450,7 @@ declare module 'stripe' { interface Swish { /** - * The order ID displayed in the Swish app after the payment is authorized. + * A reference for this payment to be displayed in the Swish app. */ reference: string | null; diff --git a/types/PaymentIntentsResource.d.ts b/types/PaymentIntentsResource.d.ts index b6e48f3cfd..d29e9dd74f 100644 --- a/types/PaymentIntentsResource.d.ts +++ b/types/PaymentIntentsResource.d.ts @@ -1363,7 +1363,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2436,7 +2441,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -2476,7 +2486,7 @@ declare module 'stripe' { interface Swish { /** - * The order ID displayed in the Swish app after the payment is authorized. + * A reference for this payment to be displayed in the Swish app. */ reference?: Stripe.Emptyable; @@ -3964,7 +3974,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -5037,7 +5052,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -5077,7 +5097,7 @@ declare module 'stripe' { interface Swish { /** - * The order ID displayed in the Swish app after the payment is authorized. + * A reference for this payment to be displayed in the Swish app. */ reference?: Stripe.Emptyable; @@ -6675,7 +6695,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -7748,7 +7773,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; } @@ -7788,7 +7818,7 @@ declare module 'stripe' { interface Swish { /** - * The order ID displayed in the Swish app after the payment is authorized. + * A reference for this payment to be displayed in the Swish app. */ reference?: Stripe.Emptyable; diff --git a/types/PaymentLinksResource.d.ts b/types/PaymentLinksResource.d.ts index 044c4ff8cf..70799a475e 100644 --- a/types/PaymentLinksResource.d.ts +++ b/types/PaymentLinksResource.d.ts @@ -188,7 +188,9 @@ declare module 'stripe' { interface AutomaticTax { /** - * If `true`, tax will be calculated automatically using the customer's location. + * Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + * + * Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation. */ enabled: boolean; @@ -1182,7 +1184,9 @@ declare module 'stripe' { interface AutomaticTax { /** - * If `true`, tax will be calculated automatically using the customer's location. + * Set to `true` to [calculate tax automatically](https://docs.stripe.com/tax) using the customer's location. + * + * Enabling this parameter causes the payment link to collect any billing address information necessary for tax calculation. */ enabled: boolean; @@ -1841,6 +1845,11 @@ declare module 'stripe' { */ metadata?: Stripe.Emptyable; + /** + * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. + */ + trial_period_days?: Stripe.Emptyable; + /** * Settings related to subscription trials. */ diff --git a/types/PaymentMethods.d.ts b/types/PaymentMethods.d.ts index 7415a7b3c9..b3407a2030 100644 --- a/types/PaymentMethods.d.ts +++ b/types/PaymentMethods.d.ts @@ -328,6 +328,11 @@ declare module 'stripe' { */ networks: Card.Networks | null; + /** + * Status of a card based on the card issuer. + */ + regulated_status?: Card.RegulatedStatus | null; + /** * Contains details on how this Card may be used for 3D Secure authentication. */ @@ -616,6 +621,8 @@ declare module 'stripe' { preferred: string | null; } + type RegulatedStatus = 'regulated' | 'unregulated'; + interface ThreeDSecureUsage { /** * Whether 3D Secure is supported on this card. diff --git a/types/Payouts.d.ts b/types/Payouts.d.ts index 26a0bbca63..92b9daa48c 100644 --- a/types/Payouts.d.ts +++ b/types/Payouts.d.ts @@ -140,7 +140,7 @@ declare module 'stripe' { /** * A value that generates from the beneficiary's bank that allows users to track payouts with their bank. Banks might call this a "reference number" or something similar. */ - trace_id?: Payout.TraceId | null; + trace_id: Payout.TraceId | null; /** * Can be `bank_account` or `card`. diff --git a/types/Persons.d.ts b/types/Persons.d.ts index cc00395e12..b55e6bdb84 100644 --- a/types/Persons.d.ts +++ b/types/Persons.d.ts @@ -308,7 +308,7 @@ declare module 'stripe' { errors: Array; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `future_requirements[current_deadline]` becomes set. + * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `future_requirements[current_deadline]` becomes set. */ eventually_due: Array; @@ -509,7 +509,7 @@ declare module 'stripe' { errors: Array; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `current_deadline` becomes set. + * Fields you must collect when all thresholds are reached. As they become required, they appear in `currently_due` as well, and the account's `current_deadline` becomes set. */ eventually_due: Array; diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index 12a88262cf..4d5b439a8b 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -557,6 +557,16 @@ declare module 'stripe' { */ message?: string; + /** + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + */ + network_advice_code?: string; + + /** + * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + */ + network_decline_code?: string; + /** * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. */ diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index 2f5d7d92fa..72d09a2d01 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -214,6 +214,16 @@ declare module 'stripe' { */ message?: string; + /** + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. + */ + network_advice_code?: string; + + /** + * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code which indicates the reason the authorization failed. + */ + network_decline_code?: string; + /** * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. */ @@ -651,7 +661,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: string; + } } interface Card { @@ -770,7 +785,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: string; + } } interface UsBankAccount { diff --git a/types/SetupIntentsResource.d.ts b/types/SetupIntentsResource.d.ts index a128ecd0e6..1daf85fbf2 100644 --- a/types/SetupIntentsResource.d.ts +++ b/types/SetupIntentsResource.d.ts @@ -959,7 +959,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } } interface Card { @@ -1183,7 +1188,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } } interface UsBankAccount { @@ -2144,7 +2154,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } } interface Card { @@ -2368,7 +2383,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } } interface UsBankAccount { @@ -3378,7 +3398,12 @@ declare module 'stripe' { } namespace BacsDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } } interface Card { @@ -3602,7 +3627,12 @@ declare module 'stripe' { } namespace SepaDebit { - interface MandateOptions {} + interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: Stripe.Emptyable; + } } interface UsBankAccount { diff --git a/types/Sources.d.ts b/types/Sources.d.ts index 8371931599..8b5984459f 100644 --- a/types/Sources.d.ts +++ b/types/Sources.d.ts @@ -33,6 +33,11 @@ declare module 'stripe' { alipay?: Source.Alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to ā€œunspecifiedā€. + */ + allow_redisplay: Source.AllowRedisplay | null; + /** * A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for Ā„1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources. */ @@ -200,6 +205,8 @@ declare module 'stripe' { statement_descriptor?: string | null; } + type AllowRedisplay = 'always' | 'limited' | 'unspecified'; + interface AuBecsDebit { bsb_number?: string | null; diff --git a/types/SubscriptionSchedules.d.ts b/types/SubscriptionSchedules.d.ts index 5fe955a248..954a69e6f3 100644 --- a/types/SubscriptionSchedules.d.ts +++ b/types/SubscriptionSchedules.d.ts @@ -161,6 +161,11 @@ declare module 'stripe' { namespace DefaultSettings { interface AutomaticTax { + /** + * If Stripe disabled automatic tax, this enum describes why. + */ + disabled_reason: 'requires_location_inputs' | null; + /** * Whether Stripe automatically computes tax on invoices created during this phase. */ @@ -402,6 +407,11 @@ declare module 'stripe' { } interface AutomaticTax { + /** + * If Stripe disabled automatic tax, this enum describes why. + */ + disabled_reason: 'requires_location_inputs' | null; + /** * Whether Stripe automatically computes tax on invoices created during this phase. */ diff --git a/types/Subscriptions.d.ts b/types/Subscriptions.d.ts index 32be01d729..08e2cba9a6 100644 --- a/types/Subscriptions.d.ts +++ b/types/Subscriptions.d.ts @@ -249,6 +249,11 @@ declare module 'stripe' { namespace Subscription { interface AutomaticTax { + /** + * If Stripe disabled automatic tax, this enum describes why. + */ + disabled_reason: 'requires_location_inputs' | null; + /** * Whether Stripe automatically computes tax on this subscription. */ diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index bf0718eb17..6e290d7025 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -522,7 +522,7 @@ declare module 'stripe' { payment_method_options?: PaymentSettings.PaymentMethodOptions; /** - * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration */ payment_method_types?: Stripe.Emptyable< Array @@ -1245,7 +1245,7 @@ declare module 'stripe' { billing_thresholds?: Stripe.Emptyable; /** - * Delete all usage for a given subscription item. Allowed only when `deleted` is set to `true` and the current plan's `usage_type` is `metered`. + * Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached. */ clear_usage?: boolean; @@ -1402,7 +1402,7 @@ declare module 'stripe' { payment_method_options?: PaymentSettings.PaymentMethodOptions; /** - * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). + * The list of payment method types (e.g. card) to provide to the invoice's PaymentIntent. If not set, Stripe attempts to automatically determine the types to use by looking at the invoice's default payment method, the subscription's default payment method, the customer's default payment method, and your [invoice template settings](https://dashboard.stripe.com/settings/billing/invoice). Should not be specified with payment_method_configuration */ payment_method_types?: Stripe.Emptyable< Array diff --git a/types/Tax/Calculations.d.ts b/types/Tax/Calculations.d.ts index 564f1da7c8..9eddd136fe 100644 --- a/types/Tax/Calculations.d.ts +++ b/types/Tax/Calculations.d.ts @@ -120,7 +120,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` */ type: TaxId.Type; @@ -134,14 +134,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -149,6 +155,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -164,6 +171,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -175,12 +183,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -188,6 +200,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -200,12 +213,16 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' @@ -213,7 +230,9 @@ declare module 'stripe' { | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } diff --git a/types/Tax/CalculationsResource.d.ts b/types/Tax/CalculationsResource.d.ts index e170e8f5c3..26543cd5ed 100644 --- a/types/Tax/CalculationsResource.d.ts +++ b/types/Tax/CalculationsResource.d.ts @@ -115,7 +115,7 @@ declare module 'stripe' { interface TaxId { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` */ type: TaxId.Type; @@ -129,14 +129,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -144,6 +150,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -159,6 +166,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -170,12 +178,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -183,6 +195,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -195,19 +208,25 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } diff --git a/types/Tax/Registrations.d.ts b/types/Tax/Registrations.d.ts index 149132dd86..58b7cb4aeb 100644 --- a/types/Tax/Registrations.d.ts +++ b/types/Tax/Registrations.d.ts @@ -58,20 +58,34 @@ declare module 'stripe' { interface CountryOptions { ae?: CountryOptions.Ae; + al?: CountryOptions.Al; + + am?: CountryOptions.Am; + + ao?: CountryOptions.Ao; + at?: CountryOptions.At; au?: CountryOptions.Au; + ba?: CountryOptions.Ba; + + bb?: CountryOptions.Bb; + be?: CountryOptions.Be; bg?: CountryOptions.Bg; bh?: CountryOptions.Bh; + bs?: CountryOptions.Bs; + by?: CountryOptions.By; ca?: CountryOptions.Ca; + cd?: CountryOptions.Cd; + ch?: CountryOptions.Ch; cl?: CountryOptions.Cl; @@ -104,6 +118,8 @@ declare module 'stripe' { ge?: CountryOptions.Ge; + gn?: CountryOptions.Gn; + gr?: CountryOptions.Gr; hr?: CountryOptions.Hr; @@ -122,6 +138,8 @@ declare module 'stripe' { ke?: CountryOptions.Ke; + kh?: CountryOptions.Kh; + kr?: CountryOptions.Kr; kz?: CountryOptions.Kz; @@ -136,6 +154,12 @@ declare module 'stripe' { md?: CountryOptions.Md; + me?: CountryOptions.Me; + + mk?: CountryOptions.Mk; + + mr?: CountryOptions.Mr; + mt?: CountryOptions.Mt; mx?: CountryOptions.Mx; @@ -148,10 +172,14 @@ declare module 'stripe' { no?: CountryOptions.No; + np?: CountryOptions.Np; + nz?: CountryOptions.Nz; om?: CountryOptions.Om; + pe?: CountryOptions.Pe; + pl?: CountryOptions.Pl; pt?: CountryOptions.Pt; @@ -172,19 +200,33 @@ declare module 'stripe' { sk?: CountryOptions.Sk; + sn?: CountryOptions.Sn; + + sr?: CountryOptions.Sr; + th?: CountryOptions.Th; + tj?: CountryOptions.Tj; + tr?: CountryOptions.Tr; tz?: CountryOptions.Tz; + ug?: CountryOptions.Ug; + us?: CountryOptions.Us; + uy?: CountryOptions.Uy; + uz?: CountryOptions.Uz; vn?: CountryOptions.Vn; za?: CountryOptions.Za; + + zm?: CountryOptions.Zm; + + zw?: CountryOptions.Zw; } namespace CountryOptions { @@ -195,6 +237,27 @@ declare module 'stripe' { type: 'standard'; } + interface Al { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + interface Am { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + + interface Ao { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface At { standard?: At.Standard; @@ -226,6 +289,20 @@ declare module 'stripe' { type: 'standard'; } + interface Ba { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + interface Bb { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Be { standard?: Be.Standard; @@ -281,6 +358,13 @@ declare module 'stripe' { type: 'standard'; } + interface Bs { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface By { /** * Type of registration in `country`. @@ -308,6 +392,13 @@ declare module 'stripe' { type Type = 'province_standard' | 'simplified' | 'standard'; } + interface Cd { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Ch { /** * Type of registration in `country`. @@ -556,6 +647,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Gn { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Gr { standard?: Gr.Standard; @@ -704,6 +802,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Kh { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Kr { /** * Type of registration in `country`. @@ -804,6 +909,27 @@ declare module 'stripe' { type: 'simplified'; } + interface Me { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + interface Mk { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + interface Mr { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Mt { standard?: Mt.Standard; @@ -880,6 +1006,13 @@ declare module 'stripe' { type: 'standard'; } + interface Np { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Nz { /** * Type of registration in `country`. @@ -894,6 +1027,13 @@ declare module 'stripe' { type: 'standard'; } + interface Pe { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Pl { standard?: Pl.Standard; @@ -1066,6 +1206,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Sn { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + + interface Sr { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Th { /** * Type of registration in `country`. @@ -1073,6 +1227,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Tj { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Tr { /** * Type of registration in `country`. @@ -1087,6 +1248,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Ug { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + interface Us { local_amusement_tax?: Us.LocalAmusementTax; @@ -1156,6 +1324,13 @@ declare module 'stripe' { | 'state_sales_tax'; } + interface Uy { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + interface Uz { /** * Type of registration in `country`. @@ -1176,6 +1351,20 @@ declare module 'stripe' { */ type: 'standard'; } + + interface Zm { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + + interface Zw { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } } type Status = 'active' | 'expired' | 'scheduled'; diff --git a/types/Tax/RegistrationsResource.d.ts b/types/Tax/RegistrationsResource.d.ts index e73f9e5b1d..938a9cdbfe 100644 --- a/types/Tax/RegistrationsResource.d.ts +++ b/types/Tax/RegistrationsResource.d.ts @@ -37,6 +37,21 @@ declare module 'stripe' { */ ae?: CountryOptions.Ae; + /** + * Options for the registration in AL. + */ + al?: CountryOptions.Al; + + /** + * Options for the registration in AM. + */ + am?: CountryOptions.Am; + + /** + * Options for the registration in AO. + */ + ao?: CountryOptions.Ao; + /** * Options for the registration in AT. */ @@ -47,6 +62,16 @@ declare module 'stripe' { */ au?: CountryOptions.Au; + /** + * Options for the registration in BA. + */ + ba?: CountryOptions.Ba; + + /** + * Options for the registration in BB. + */ + bb?: CountryOptions.Bb; + /** * Options for the registration in BE. */ @@ -62,6 +87,11 @@ declare module 'stripe' { */ bh?: CountryOptions.Bh; + /** + * Options for the registration in BS. + */ + bs?: CountryOptions.Bs; + /** * Options for the registration in BY. */ @@ -72,6 +102,11 @@ declare module 'stripe' { */ ca?: CountryOptions.Ca; + /** + * Options for the registration in CD. + */ + cd?: CountryOptions.Cd; + /** * Options for the registration in CH. */ @@ -152,6 +187,11 @@ declare module 'stripe' { */ ge?: CountryOptions.Ge; + /** + * Options for the registration in GN. + */ + gn?: CountryOptions.Gn; + /** * Options for the registration in GR. */ @@ -197,6 +237,11 @@ declare module 'stripe' { */ ke?: CountryOptions.Ke; + /** + * Options for the registration in KH. + */ + kh?: CountryOptions.Kh; + /** * Options for the registration in KR. */ @@ -232,6 +277,21 @@ declare module 'stripe' { */ md?: CountryOptions.Md; + /** + * Options for the registration in ME. + */ + me?: CountryOptions.Me; + + /** + * Options for the registration in MK. + */ + mk?: CountryOptions.Mk; + + /** + * Options for the registration in MR. + */ + mr?: CountryOptions.Mr; + /** * Options for the registration in MT. */ @@ -262,6 +322,11 @@ declare module 'stripe' { */ no?: CountryOptions.No; + /** + * Options for the registration in NP. + */ + np?: CountryOptions.Np; + /** * Options for the registration in NZ. */ @@ -272,6 +337,11 @@ declare module 'stripe' { */ om?: CountryOptions.Om; + /** + * Options for the registration in PE. + */ + pe?: CountryOptions.Pe; + /** * Options for the registration in PL. */ @@ -322,11 +392,26 @@ declare module 'stripe' { */ sk?: CountryOptions.Sk; + /** + * Options for the registration in SN. + */ + sn?: CountryOptions.Sn; + + /** + * Options for the registration in SR. + */ + sr?: CountryOptions.Sr; + /** * Options for the registration in TH. */ th?: CountryOptions.Th; + /** + * Options for the registration in TJ. + */ + tj?: CountryOptions.Tj; + /** * Options for the registration in TR. */ @@ -337,11 +422,21 @@ declare module 'stripe' { */ tz?: CountryOptions.Tz; + /** + * Options for the registration in UG. + */ + ug?: CountryOptions.Ug; + /** * Options for the registration in US. */ us?: CountryOptions.Us; + /** + * Options for the registration in UY. + */ + uy?: CountryOptions.Uy; + /** * Options for the registration in UZ. */ @@ -356,6 +451,16 @@ declare module 'stripe' { * Options for the registration in ZA. */ za?: CountryOptions.Za; + + /** + * Options for the registration in ZM. + */ + zm?: CountryOptions.Zm; + + /** + * Options for the registration in ZW. + */ + zw?: CountryOptions.Zw; } namespace CountryOptions { @@ -366,6 +471,27 @@ declare module 'stripe' { type: 'standard'; } + interface Al { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + + interface Am { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + + interface Ao { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface At { /** * Options for the standard registration. @@ -400,6 +526,20 @@ declare module 'stripe' { type: 'standard'; } + interface Ba { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + + interface Bb { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Be { /** * Options for the standard registration. @@ -461,6 +601,13 @@ declare module 'stripe' { type: 'standard'; } + interface Bs { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface By { /** * Type of registration to be created in `country`. @@ -491,6 +638,13 @@ declare module 'stripe' { type Type = 'province_standard' | 'simplified' | 'standard'; } + interface Cd { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Ch { /** * Type of registration to be created in `country`. @@ -763,6 +917,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Gn { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Gr { /** * Options for the standard registration. @@ -926,6 +1087,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Kh { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Kr { /** * Type of registration to be created in `country`. @@ -1035,6 +1203,27 @@ declare module 'stripe' { type: 'simplified'; } + interface Me { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + + interface Mk { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + + interface Mr { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Mt { /** * Options for the standard registration. @@ -1117,6 +1306,13 @@ declare module 'stripe' { type: 'standard'; } + interface Np { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Nz { /** * Type of registration to be created in `country`. @@ -1131,6 +1327,13 @@ declare module 'stripe' { type: 'standard'; } + interface Pe { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Pl { /** * Options for the standard registration. @@ -1321,6 +1524,20 @@ declare module 'stripe' { type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; } + interface Sn { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + + interface Sr { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Th { /** * Type of registration to be created in `country`. @@ -1328,6 +1545,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Tj { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Tr { /** * Type of registration to be created in `country`. @@ -1342,6 +1566,13 @@ declare module 'stripe' { type: 'simplified'; } + interface Ug { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + interface Us { /** * Options for the local amusement tax registration. @@ -1420,6 +1651,13 @@ declare module 'stripe' { | 'state_sales_tax'; } + interface Uy { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } + interface Uz { /** * Type of registration to be created in `country`. @@ -1440,6 +1678,20 @@ declare module 'stripe' { */ type: 'standard'; } + + interface Zm { + /** + * Type of registration to be created in `country`. + */ + type: 'simplified'; + } + + interface Zw { + /** + * Type of registration to be created in `country`. + */ + type: 'standard'; + } } } diff --git a/types/Tax/Transactions.d.ts b/types/Tax/Transactions.d.ts index 80d4bc988d..a398cd079a 100644 --- a/types/Tax/Transactions.d.ts +++ b/types/Tax/Transactions.d.ts @@ -125,7 +125,7 @@ declare module 'stripe' { interface TaxId { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown` + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, or `unknown` */ type: TaxId.Type; @@ -139,14 +139,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -154,6 +160,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -169,6 +176,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -180,12 +188,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -193,6 +205,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -205,12 +218,16 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' @@ -218,7 +235,9 @@ declare module 'stripe' { | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } } diff --git a/types/TaxIds.d.ts b/types/TaxIds.d.ts index a85a2cc098..221e982fb6 100644 --- a/types/TaxIds.d.ts +++ b/types/TaxIds.d.ts @@ -70,7 +70,7 @@ declare module 'stripe' { owner: TaxId.Owner | null; /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown` */ type: TaxId.Type; @@ -115,14 +115,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -130,6 +136,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -145,6 +152,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -156,12 +164,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -169,6 +181,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -181,12 +194,16 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' @@ -194,7 +211,9 @@ declare module 'stripe' { | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; interface Verification { /** diff --git a/types/TaxIdsResource.d.ts b/types/TaxIdsResource.d.ts index cb3624019d..169ff5e5fe 100644 --- a/types/TaxIdsResource.d.ts +++ b/types/TaxIdsResource.d.ts @@ -4,7 +4,7 @@ declare module 'stripe' { namespace Stripe { interface TaxIdCreateParams { /** - * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat` + * Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin` */ type: TaxIdCreateParams.Type; @@ -49,14 +49,20 @@ declare module 'stripe' { type Type = | 'ad_nrt' | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' + | 'ba_tin' + | 'bb_tin' | 'bg_uic' | 'bh_vat' | 'bo_tin' | 'br_cnpj' | 'br_cpf' + | 'bs_tin' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' @@ -64,6 +70,7 @@ declare module 'stripe' { | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' + | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' @@ -79,6 +86,7 @@ declare module 'stripe' { | 'eu_vat' | 'gb_vat' | 'ge_vat' + | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' @@ -90,12 +98,16 @@ declare module 'stripe' { | 'jp_rn' | 'jp_trn' | 'ke_pin' + | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'li_uid' | 'li_vat' | 'ma_vat' | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' @@ -103,6 +115,7 @@ declare module 'stripe' { | 'ng_tin' | 'no_vat' | 'no_voec' + | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' @@ -115,19 +128,25 @@ declare module 'stripe' { | 'sg_gst' | 'sg_uen' | 'si_tin' + | 'sn_ninea' + | 'sr_fin' | 'sv_nit' | 'th_vat' + | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' + | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' - | 'za_vat'; + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } interface TaxIdRetrieveParams { diff --git a/types/Terminal/LocationsResource.d.ts b/types/Terminal/LocationsResource.d.ts index 1c2f44b4e8..ecb1399540 100644 --- a/types/Terminal/LocationsResource.d.ts +++ b/types/Terminal/LocationsResource.d.ts @@ -73,7 +73,7 @@ declare module 'stripe' { interface LocationUpdateParams { /** - * The full address of the location. If you're updating the `address` field, avoid changing the `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location. + * The full address of the location. You can't change the location's `country`. If you need to modify the `country` field, create a new `Location` object and re-register any existing readers to that location. */ address?: Stripe.AddressParam; diff --git a/types/Treasury/FinancialAccountFeatures.d.ts b/types/Treasury/FinancialAccountFeatures.d.ts index 4113f12889..f8b9b53652 100644 --- a/types/Treasury/FinancialAccountFeatures.d.ts +++ b/types/Treasury/FinancialAccountFeatures.d.ts @@ -235,7 +235,7 @@ declare module 'stripe' { interface InboundTransfers { /** - * Toggle settings for enabling/disabling an ACH specific feature + * Toggle settings for enabling/disabling an inbound ACH specific feature */ ach?: InboundTransfers.Ach; } @@ -360,7 +360,7 @@ declare module 'stripe' { interface OutboundPayments { /** - * Toggle settings for enabling/disabling an ACH specific feature + * Toggle settings for enabling/disabling an outbound ACH specific feature */ ach?: OutboundPayments.Ach; @@ -490,7 +490,7 @@ declare module 'stripe' { interface OutboundTransfers { /** - * Toggle settings for enabling/disabling an ACH specific feature + * Toggle settings for enabling/disabling an outbound ACH specific feature */ ach?: OutboundTransfers.Ach; diff --git a/types/WebhookEndpointsResource.d.ts b/types/WebhookEndpointsResource.d.ts index 8773b259a5..6deb382e90 100644 --- a/types/WebhookEndpointsResource.d.ts +++ b/types/WebhookEndpointsResource.d.ts @@ -145,7 +145,8 @@ declare module 'stripe' { | '2024-06-20' | '2024-09-30.acacia' | '2024-10-28.acacia' - | '2024-11-20.acacia'; + | '2024-11-20.acacia' + | '2024-12-18.acacia'; type EnabledEvent = | '*' diff --git a/types/lib.d.ts b/types/lib.d.ts index 05e5479f4e..35068219bd 100644 --- a/types/lib.d.ts +++ b/types/lib.d.ts @@ -27,7 +27,7 @@ declare module 'stripe' { }): (...args: any[]) => Response; //eslint-disable-line @typescript-eslint/no-explicit-any static MAX_BUFFERED_REQUEST_METRICS: number; } - export type LatestApiVersion = '2024-11-20.acacia'; + export type LatestApiVersion = '2024-12-18.acacia'; export type HttpAgent = Agent; export type HttpProtocol = 'http' | 'https'; diff --git a/types/test/typescriptTest.ts b/types/test/typescriptTest.ts index 5e29962f70..2cb3ecb10b 100644 --- a/types/test/typescriptTest.ts +++ b/types/test/typescriptTest.ts @@ -9,7 +9,7 @@ import Stripe from 'stripe'; let stripe = new Stripe('sk_test_123', { - apiVersion: '2024-11-20.acacia', + apiVersion: '2024-12-18.acacia', }); stripe = new Stripe('sk_test_123'); @@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', { // Check config object. stripe = new Stripe('sk_test_123', { - apiVersion: '2024-11-20.acacia', + apiVersion: '2024-12-18.acacia', typescript: true, maxNetworkRetries: 1, timeout: 1000, @@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', { description: 'test', }; const opts: Stripe.RequestOptions = { - apiVersion: '2024-11-20.acacia', + apiVersion: '2024-12-18.acacia', }; const customer: Stripe.Customer = await stripe.customers.create(params, opts); From 4039dfe97ed4cb3bd8cf6550f268122e7adafd56 Mon Sep 17 00:00:00 2001 From: Jesse Rosalia Date: Wed, 18 Dec 2024 15:39:23 -0800 Subject: [PATCH 26/27] Bump version to 17.5.0 --- CHANGELOG.md | 27 +++++++++++++++++++++++++++ VERSION | 2 +- package.json | 2 +- src/stripe.core.ts | 2 +- 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5eeddb3c6..0fcb7c3974 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,31 @@ # Changelog +## 17.5.0 - 2024-12-18 +* [#2237](https://github.com/stripe/stripe-node/pull/2237) This release changes the pinned API version to `2024-12-18.acacia`. + * Change `Account.business_profile.annual_revenue` and `Account.business_profile.estimated_worker_count` to be optional + * Add support for `network_advice_code` and `network_decline_code` on `Charge.outcome`, `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError` + * Add support for new values `payout_minimum_balance_hold` and `payout_minimum_balance_release` on enum `BalanceTransaction.type` + * Add support for `credits_application_invoice_voided` on `Billing.CreditBalanceTransaction.credit` + * Change type of `Billing.CreditBalanceTransaction.credit.type` from `literal('credits_granted')` to `enum('credits_application_invoice_voided'|'credits_granted')` + * Change `BillingPortal.Configuration.features.subscription_update.schedule_at_period_end`, `Issuing.Authorization.verified_by_fraud_challenge`, `LineItem.description`, and `Payout.trace_id` to be required + * Add support for `allow_redisplay` on `Card` and `Source` + * Add support for `regulated_status` on `Card`, `Charge.payment_method_details.card`, `ConfirmationToken.payment_method_preview.card`, and `PaymentMethod.card` + * Add support for `funding` on `Charge.payment_method_details.amazon_pay` and `Charge.payment_method_details.revolut_pay` + * Add support for `network_transaction_id` on `Charge.payment_method_details.card` + * Add support for `reference_prefix` on `Checkout.Session.payment_method_options.bacs_debit.mandate_options`, `Checkout.Session.payment_method_options.sepa_debit.mandate_options`, `Checkout.SessionCreateParams.payment_method_options.bacs_debit.mandate_options`, `Checkout.SessionCreateParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntent.payment_method_options.bacs_debit.mandate_options`, `PaymentIntent.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, `PaymentIntentUpdateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntent.payment_method_options.bacs_debit.mandate_options`, `SetupIntent.payment_method_options.sepa_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentConfirmParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.bacs_debit.mandate_options`, `SetupIntentCreateParams.payment_method_options.sepa_debit.mandate_options`, `SetupIntentUpdateParams.payment_method_options.bacs_debit.mandate_options`, and `SetupIntentUpdateParams.payment_method_options.sepa_debit.mandate_options` + * Add support for new values `al_tin`, `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` + * Add support for new values `al_tin`, `am_tin`, `ao_tin`, `ba_tin`, `bb_tin`, `bs_tin`, `cd_nif`, `gn_nif`, `kh_tin`, `me_pib`, `mk_vat`, `mr_nif`, `np_pan`, `sn_ninea`, `sr_fin`, `tj_tin`, `ug_tin`, `zm_tin`, and `zw_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` + * Add support for `visa_compliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence` + * Add support for new value `request_signature` on enums `Forwarding.Request.replacements[]` and `Forwarding.RequestCreateParams.replacements[]` + * Add support for `account_holder_address` and `bank_address` on `FundingInstructions.bank_transfer.financial_addresses[].iban`, `FundingInstructions.bank_transfer.financial_addresses[].sort_code`, `FundingInstructions.bank_transfer.financial_addresses[].spei`, `FundingInstructions.bank_transfer.financial_addresses[].zengin`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].iban`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].sort_code`, `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei`, and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].zengin` + * Add support for `account_holder_name` on `FundingInstructions.bank_transfer.financial_addresses[].spei` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].spei` + * Add support for `disabled_reason` on `Invoice.automatic_tax`, `Subscription.automatic_tax`, `SubscriptionSchedule.default_settings.automatic_tax`, and `SubscriptionSchedule.phases[].automatic_tax` + * Add support for `tax_id` on `Issuing.Authorization.merchant_data` and `Issuing.Transaction.merchant_data` + * Change type of `LineItem.description` from `string` to `string | null` + * Add support for `trial_period_days` on `PaymentLinkUpdateParams.subscription_data` + * Add support for `al`, `am`, `ao`, `ba`, `bb`, `bs`, `cd`, `gn`, `kh`, `me`, `mk`, `mr`, `np`, `pe`, `sn`, `sr`, `tj`, `ug`, `uy`, `zm`, and `zw` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` + * Add support for new value `2024-12-18.acacia` on enum `WebhookEndpointCreateParams.api_version` +* [#2238](https://github.com/stripe/stripe-node/pull/2238) add missing key warning to README + ## 17.4.0 - 2024-11-20 * [#2222](https://github.com/stripe/stripe-node/pull/2222) This release changes the pinned API version to `2024-11-20.acacia`. * Add support for `respond` test helper method on resource `Issuing.Authorization` diff --git a/VERSION b/VERSION index e64ad13cba..6f0844e02b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -17.4.0 +17.5.0 diff --git a/package.json b/package.json index c7260a74cf..a527bf6426 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "stripe", - "version": "17.4.0", + "version": "17.5.0", "description": "Stripe API wrapper", "keywords": [ "stripe", diff --git a/src/stripe.core.ts b/src/stripe.core.ts index 23bd8e00bd..6d0d85af87 100644 --- a/src/stripe.core.ts +++ b/src/stripe.core.ts @@ -59,7 +59,7 @@ export function createStripe( platformFunctions: PlatformFunctions, requestSender: RequestSenderFactory = defaultRequestSenderFactory ): typeof Stripe { - Stripe.PACKAGE_VERSION = '17.4.0'; + Stripe.PACKAGE_VERSION = '17.5.0'; Stripe.USER_AGENT = { bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', From ac941b9d43f12f951ff57e0dca30fc0927e6bdb1 Mon Sep 17 00:00:00 2001 From: jar-stripe Date: Wed, 18 Dec 2024 16:47:44 -0800 Subject: [PATCH 27/27] Added pull request template (#2242) --- .github/pull_request_template.md | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000000..312540b61f --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,11 @@ +### Why? + + +### What? + + +### See Also +