Skip to content

Commit

Permalink
Merge pull request #2070 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] committed Apr 25, 2024
2 parents ecd8abd + 850dbb9 commit f114c4f
Show file tree
Hide file tree
Showing 38 changed files with 408 additions and 156 deletions.
29 changes: 20 additions & 9 deletions CHANGELOG.md
Expand Up @@ -6,17 +6,28 @@
* Add support for `external_account_collection` on `AccountSessionCreateParams.components.financial_account.features`
* Add support for `subscription_trial_from_plan` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams`

## 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 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.2.0-beta.1 - 2024-04-11
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v972
v993
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -88,6 +88,10 @@
"import": "./esm/stripe.esm.worker.js",
"require": "./cjs/stripe.cjs.worker.js"
},
"workerd": {
"import": "./esm/stripe.esm.worker.js",
"require": "./cjs/stripe.cjs.worker.js"
},
"default": {
"import": "./esm/stripe.esm.node.js",
"require": "./cjs/stripe.cjs.node.js"
Expand Down
21 changes: 21 additions & 0 deletions types/AccountSessionsResource.d.ts
Expand Up @@ -78,6 +78,11 @@ declare module 'stripe' {
*/
payment_details?: Components.PaymentDetails;

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

/**
* Configuration for the payments embedded component.
*/
Expand Down Expand Up @@ -366,6 +371,22 @@ declare module 'stripe' {
}
}

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

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

namespace PaymentMethodSettings {
interface Features {}
}

interface Payments {
/**
* Whether the embedded component is enabled.
Expand Down
26 changes: 15 additions & 11 deletions types/Accounts.d.ts
Expand Up @@ -7,9 +7,14 @@ declare module 'stripe' {
* properties on the account like its current requirements or if the account is
* enabled to make live charges or receive payouts.
*
* For Custom accounts, the properties below are always returned. For other accounts, some properties are returned until that
* account has started to go through Connect Onboarding. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions),
* some properties are only returned for Custom accounts. Learn about the differences [between accounts](https://stripe.com/docs/connect/accounts).
* For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
* is `application`, which includes Custom accounts, the properties below are always
* returned.
*
* For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
* is `stripe`, which includes Standard and Express accounts, some properties are only returned
* until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
* to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
*/
interface Account {
/**
Expand All @@ -28,7 +33,7 @@ declare module 'stripe' {
business_profile?: Account.BusinessProfile | null;

/**
* The business type. Once you create an [Account Link](https://stripe.com/docs/api/account_links) or [Account Session](https://stripe.com/docs/api/account_sessions), this property is only returned for Custom accounts.
* The business type. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
*/
business_type?: Account.BusinessType | null;

Expand Down Expand Up @@ -64,7 +69,7 @@ declare module 'stripe' {
deleted?: void;

/**
* Whether account details have been submitted. Standard accounts cannot receive payouts before this is true.
* Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true.
*/
details_submitted: boolean;

Expand All @@ -83,10 +88,9 @@ declare module 'stripe' {
/**
* This is an object representing a person associated with a Stripe account.
*
* 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.
* A platform cannot access a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
*
* Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/handling-api-verification#person-information)
* See the [Standard onboarding](https://stripe.com/connect/standard-accounts) or [Express onboarding](https://stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://stripe.com/connect/handling-api-verification#person-information).
*/
individual?: Stripe.Person;

Expand All @@ -112,7 +116,7 @@ declare module 'stripe' {
tos_acceptance?: Account.TosAcceptance;

/**
* The Stripe account type. Can be `standard`, `express`, or `custom`.
* The Stripe account type. Can be `standard`, `express`, `custom`, or `none`.
*/
type: Account.Type;
}
Expand Down Expand Up @@ -807,7 +811,7 @@ declare module 'stripe' {

interface Fees {
/**
* A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account.
* A value indicating the responsible payer of a bundle of Stripe fees for pricing-control eligible products on this account. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
*/
payer: Fees.Payer;
}
Expand Down Expand Up @@ -1357,7 +1361,7 @@ declare module 'stripe' {

interface Payouts {
/**
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See our [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances) documentation for details. Default value is `false` for Custom accounts, otherwise `true`.
* A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
*/
debit_negative_balances: boolean;

Expand Down

0 comments on commit f114c4f

Please sign in to comment.