Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #1906

Merged
merged 17 commits into from
Sep 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
* 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.6.0-beta.1 - 2023-09-07
* [#1898](https://github.com/stripe/stripe-node/pull/1898) Update generated code for beta
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v532
v545
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2023-08-16';
export const PreviewVersion = '2023-08-11.preview-v2';
export const PreviewVersion = '2023-09-15.preview-v2';
5 changes: 4 additions & 1 deletion types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ declare module 'stripe' {
*/
default_currency?: string;

/**
* Always true for a deleted object
*/
deleted?: void;

/**
Expand All @@ -84,7 +87,7 @@ declare module 'stripe' {
* A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
* See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps.
*
* Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information)
* Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/handling-api-verification#person-information)
*/
individual?: Stripe.Person;

Expand Down
16 changes: 8 additions & 8 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,12 +987,12 @@ declare module 'stripe' {
gender?: string;

/**
* The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number?: string;

/**
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number_secondary?: string;

Expand Down Expand Up @@ -2256,12 +2256,12 @@ declare module 'stripe' {
gender?: string;

/**
* The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The government-issued ID number of the individual, as appropriate for the representative's country. (Examples are a Social Security Number in the U.S., or a Social Insurance Number in Canada). Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number?: string;

/**
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The government-issued secondary ID number of the individual, as appropriate for the representative's country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token created with Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number_secondary?: string;

Expand Down Expand Up @@ -2727,12 +2727,12 @@ declare module 'stripe' {
gender?: string;

/**
* The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number?: string;

/**
* The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number_secondary?: string;

Expand Down Expand Up @@ -3206,12 +3206,12 @@ declare module 'stripe' {
gender?: string;

/**
* The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The person's ID number, as appropriate for their country. For example, a social security number in the U.S., social insurance number in Canada, etc. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number?: string;

/**
* The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens_sources/create_token?type=pii).
* The person's secondary ID number, as appropriate for their country, will be used for enhanced verification checks. In Thailand, this would be the laser code found on the back of an ID card. Instead of the number itself, you can also provide a [PII token provided by Stripe.js](https://stripe.com/docs/js/tokens/create_token?type=pii).
*/
id_number_secondary?: string;

Expand Down
3 changes: 3 additions & 0 deletions types/ApplePayDomains.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ declare module 'stripe' {
*/
created: number;

/**
* Always true for a deleted object
*/
deleted?: void;

domain_name: string;
Expand Down
3 changes: 3 additions & 0 deletions types/Applications.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ declare module 'stripe' {
*/
object: 'application';

/**
* Always true for a deleted object
*/
deleted?: void;

/**
Expand Down
3 changes: 3 additions & 0 deletions types/BankAccounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ declare module 'stripe' {
*/
default_for_currency?: boolean | null;

/**
* Always true for a deleted object
*/
deleted?: void;

/**
Expand Down
3 changes: 3 additions & 0 deletions types/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ declare module 'stripe' {
*/
default_for_currency?: boolean | null;

/**
* Always true for a deleted object
*/
deleted?: void;

/**
Expand Down
16 changes: 14 additions & 2 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -629,19 +629,31 @@ declare module 'stripe' {
* Custom text that should be displayed alongside the payment confirmation button.
*/
submit: CustomText.Submit | null;

/**
* Custom text that should be displayed in place of the default terms of service agreement text.
*/
terms_of_service_acceptance: CustomText.TermsOfServiceAcceptance | null;
}

namespace CustomText {
interface ShippingAddress {
/**
* Text may be up to 1000 characters in length.
* Text may be up to 1200 characters in length.
*/
message: string;
}

interface Submit {
/**
* Text may be up to 1000 characters in length.
* Text may be up to 1200 characters in length.
*/
message: string;
}

interface TermsOfServiceAcceptance {
/**
* Text may be up to 1200 characters in length.
*/
message: string;
}
Expand Down
18 changes: 16 additions & 2 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -423,19 +423,33 @@ declare module 'stripe' {
* Custom text that should be displayed alongside the payment confirmation button.
*/
submit?: Stripe.Emptyable<CustomText.Submit>;

/**
* Custom text that should be displayed in place of the default terms of service agreement text.
*/
terms_of_service_acceptance?: Stripe.Emptyable<
CustomText.TermsOfServiceAcceptance
>;
}

namespace CustomText {
interface ShippingAddress {
/**
* Text may be up to 1000 characters in length.
* Text may be up to 1200 characters in length.
*/
message: string;
}

interface Submit {
/**
* Text may be up to 1000 characters in length.
* Text may be up to 1200 characters in length.
*/
message: string;
}

interface TermsOfServiceAcceptance {
/**
* Text may be up to 1200 characters in length.
*/
message: string;
}
Expand Down
5 changes: 0 additions & 5 deletions types/ConfirmationTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ declare module 'stripe' {
*/
created: number;

/**
* ID of the Customer this ConfirmationToken belongs to.
*/
customer: string | null;

/**
* Time at which this ConfirmationToken expires and can no longer be used to confirm a PaymentIntent or SetupIntent. This is set to null once this ConfirmationToken has been used.
*/
Expand Down
3 changes: 3 additions & 0 deletions types/Coupons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ declare module 'stripe' {
[key: string]: Coupon.CurrencyOptions;
};

/**
* Always true for a deleted object
*/
deleted?: void;

/**
Expand Down
3 changes: 3 additions & 0 deletions types/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ declare module 'stripe' {
*/
default_source: string | Stripe.CustomerSource | null;

/**
* Always true for a deleted object
*/
deleted?: void;

/**
Expand Down
3 changes: 3 additions & 0 deletions types/Discounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ declare module 'stripe' {
*/
customer: string | Stripe.Customer | Stripe.DeletedCustomer | null;

/**
* Always true for a deleted object
*/
deleted?: void;

/**
Expand Down
6 changes: 3 additions & 3 deletions types/FileLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ declare module 'stripe' {
namespace Stripe {
/**
* To share the contents of a `File` object with non-Stripe users, you can
* create a `FileLink`. `FileLink`s contain a URL that can be used to
* create a `FileLink`. `FileLink`s contain a URL that you can use to
* retrieve the contents of the file without authentication.
*/
interface FileLink {
Expand All @@ -24,12 +24,12 @@ declare module 'stripe' {
created: number;

/**
* Whether this link is already expired.
* Returns if the link is already expired.
*/
expired: boolean;

/**
* Time at which the link expires.
* Time that the link expires.
*/
expires_at: number | null;

Expand Down
4 changes: 2 additions & 2 deletions types/FileLinksResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* A future timestamp after which the link will no longer be usable.
* The link isn't usable after this future timestamp.
*/
expires_at?: number;

Expand Down Expand Up @@ -57,7 +57,7 @@ declare module 'stripe' {
expand?: Array<string>;

/**
* Filter links by their expiration status. By default, all links are returned.
* Filter links by their expiration status. By default, Stripe returns all links.
*/
expired?: boolean;

Expand Down
20 changes: 10 additions & 10 deletions types/Files.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
declare module 'stripe' {
namespace Stripe {
/**
* This is an object representing a file hosted on Stripe's servers. The
* file may have been uploaded by yourself using the [create file](https://stripe.com/docs/api#create_file)
* request (for example, when uploading dispute evidence) or it may have
* been created by Stripe (for example, the results of a [Sigma scheduled
* This object represents files hosted on Stripe's servers. You can upload
* files with the [create file](https://stripe.com/docs/api#create_file) request
* (for example, when uploading dispute evidence). Stripe also
* creates files independetly (for example, the results of a [Sigma scheduled
* query](https://stripe.com/docs/api#scheduled_queries)).
*
* Related guide: [File upload guide](https://stripe.com/docs/file-upload)
Expand All @@ -28,12 +28,12 @@ declare module 'stripe' {
created: number;

/**
* The time at which the file expires and is no longer available in epoch seconds.
* The file expires and isn't available at this time in epoch seconds.
*/
expires_at: number | null;

/**
* A filename for the file, suitable for saving to a filesystem.
* The suitable name for saving the file to a filesystem.
*/
filename: string | null;

Expand All @@ -48,22 +48,22 @@ declare module 'stripe' {
purpose: File.Purpose;

/**
* The size in bytes of the file object.
* The size of the file object in bytes.
*/
size: number;

/**
* A user friendly title for the document.
* A suitable title for the document.
*/
title: string | null;

/**
* The type of the file returned (e.g., `csv`, `pdf`, `jpg`, or `png`).
* The returned file type (for example, `csv`, `pdf`, `jpg`, or `png`).
*/
type: string | null;

/**
* The URL from which the file can be downloaded using your live secret API key.
* Use your live secret API key to download the file from this URL.
*/
url: string | null;
}
Expand Down
Loading
Loading