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 #2157

Merged
merged 5 commits into from
Aug 15, 2024
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: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1196
v1201
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

45 changes: 45 additions & 0 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,19 @@ declare module 'stripe' {
*/
balances?: Components.Balances;

/**
* Configuration for the capital financing embedded component.
*/
capital_financing?: Components.CapitalFinancing;

/**
* Configuration for the capital financing application embedded component.
*/
capital_financing_application?: Components.CapitalFinancingApplication;

/**
* Configuration for the capital financing promotion embedded component.
*/
capital_financing_promotion?: Components.CapitalFinancingPromotion;

/**
Expand Down Expand Up @@ -240,6 +253,38 @@ declare module 'stripe' {
}
}

interface CapitalFinancing {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: CapitalFinancing.Features;
}

namespace CapitalFinancing {
interface Features {}
}

interface CapitalFinancingApplication {
/**
* Whether the embedded component is enabled.
*/
enabled: boolean;

/**
* The list of features enabled in the embedded component.
*/
features?: CapitalFinancingApplication.Features;
}

namespace CapitalFinancingApplication {
interface Features {}
}

interface CapitalFinancingPromotion {
/**
* Whether the embedded component is enabled.
Expand Down
10 changes: 5 additions & 5 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ declare module 'stripe' {

interface Documents {
/**
* One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
* One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
*/
bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification;

Expand Down Expand Up @@ -2746,7 +2746,7 @@ declare module 'stripe' {

interface Documents {
/**
* One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a voided check.
* One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
*/
bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification;

Expand Down Expand Up @@ -3490,7 +3490,7 @@ declare module 'stripe' {

interface AccountCreatePersonParams {
/**
* Details on the legal guardian's acceptance of the required Stripe agreements.
* Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
*/
additional_tos_acceptances?: AccountCreatePersonParams.AdditionalTosAcceptances;

Expand Down Expand Up @@ -4003,7 +4003,7 @@ declare module 'stripe' {

interface Documents {
/**
* One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a voided check.
* One or more documents that support the [Bank account ownership verification](https://support.stripe.com/questions/bank-account-ownership-verification) requirement. Must be a document associated with the bank account that displays the last 4 digits of the account number, either a statement or a check.
*/
bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification;
}
Expand All @@ -4020,7 +4020,7 @@ declare module 'stripe' {

interface AccountUpdatePersonParams {
/**
* Details on the legal guardian's acceptance of the required Stripe agreements.
* Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements.
*/
additional_tos_acceptances?: AccountUpdatePersonParams.AdditionalTosAcceptances;

Expand Down
27 changes: 17 additions & 10 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ declare module 'stripe' {
source: Stripe.CustomerSource | null;

/**
* The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://stripe.com/docs/connect/destination-charges) for details.
* The transfer ID which created this charge. Only present if the charge came from another Stripe account. [See the Connect documentation](https://docs.stripe.com/connect/destination-charges) for details.
*/
source_transfer: string | Stripe.Transfer | null;

Expand All @@ -219,7 +219,7 @@ declare module 'stripe' {
statement_descriptor: string | null;

/**
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
*/
statement_descriptor_suffix: string | null;

Expand Down Expand Up @@ -1194,10 +1194,7 @@ declare module 'stripe' {
network: string | 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.
* 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;

Expand Down Expand Up @@ -1225,6 +1222,8 @@ declare module 'stripe' {
* A collection of fields required to be displayed on receipts. Only required for EMV transactions.
*/
receipt: CardPresent.Receipt | null;

wallet?: CardPresent.Wallet;
}

namespace CardPresent {
Expand Down Expand Up @@ -1297,6 +1296,17 @@ declare module 'stripe' {
namespace Receipt {
type AccountType = 'checking' | 'credit' | 'prepaid' | 'unknown';
}

interface Wallet {
/**
* The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`.
*/
type: Wallet.Type;
}

namespace Wallet {
type Type = 'apple_pay' | 'google_pay' | 'samsung_pay' | 'unknown';
}
}

interface Cashapp {
Expand Down Expand Up @@ -1581,10 +1591,7 @@ declare module 'stripe' {
network: string | 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.
* 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;

Expand Down
4 changes: 2 additions & 2 deletions types/ChargesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ declare module 'stripe' {
statement_descriptor?: string;

/**
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
*/
statement_descriptor_suffix?: string;

Expand Down Expand Up @@ -953,7 +953,7 @@ declare module 'stripe' {
statement_descriptor?: string;

/**
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement. If the account has no prefix value, the suffix is concatenated to the account's statement descriptor.
*/
statement_descriptor_suffix?: string;

Expand Down
69 changes: 69 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ declare module 'stripe' {
*/
client_secret: string | null;

/**
* Information about the customer collected within the Checkout Session.
*/
collected_information?: Session.CollectedInformation | null;

/**
* Results of `consent_collection` for this session.
*/
Expand Down Expand Up @@ -211,6 +216,13 @@ declare module 'stripe' {
*/
payment_status: Session.PaymentStatus;

/**
* This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object.
*
* For specific permissions, please refer to their dedicated subsections, such as `permissions.update.shipping_details`.
*/
permissions?: Session.Permissions | null;

phone_number_collection?: Session.PhoneNumberCollection;

/**
Expand Down Expand Up @@ -373,6 +385,39 @@ declare module 'stripe' {

type BillingAddressCollection = 'auto' | 'required';

interface CollectedInformation {
/**
* Shipping information for this Checkout Session.
*/
shipping_details: CollectedInformation.ShippingDetails | null;
}

namespace CollectedInformation {
interface ShippingDetails {
address?: Stripe.Address;

/**
* The delivery service that shipped a physical product, such as Fedex, UPS, USPS, etc.
*/
carrier?: string | null;

/**
* Recipient name.
*/
name?: string;

/**
* Recipient phone (including extension).
*/
phone?: string | null;

/**
* The tracking number for a physical product, obtained from the delivery service. If multiple tracking numbers were generated for this purchase, please separate them with commas.
*/
tracking_number?: string | null;
}
}

interface Consent {
/**
* If `opt_in`, the customer consents to receiving promotional communications
Expand Down Expand Up @@ -1735,6 +1780,30 @@ declare module 'stripe' {

type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';

interface Permissions {
/**
* Permissions for updating the Checkout Session.
*/
update: Permissions.Update | null;
}

namespace Permissions {
interface Update {
/**
* Determines which entity is allowed to update the shipping details.
*
* Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details.
*
* When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API.
*/
shipping_details: Update.ShippingDetails | null;
}

namespace Update {
type ShippingDetails = 'client_only' | 'server_only';
}
}

interface PhoneNumberCollection {
/**
* Indicates whether phone number collection is enabled for the session
Expand Down
Loading
Loading