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

Merged
merged 24 commits into from Apr 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
0383654
Update generated code (#2069)
stripe-openapi[bot] Apr 18, 2024
d66abe7
Bump version to 15.3.0
ramya-stripe Apr 18, 2024
c459b49
Merge upstream and update generated code for v972
stripe-openapi[bot] Apr 19, 2024
472b421
Update generated code for v974
stripe-openapi[bot] Apr 19, 2024
5db36e6
Update generated code for v975
stripe-openapi[bot] Apr 19, 2024
2c834c6
Update generated code for v976
stripe-openapi[bot] Apr 22, 2024
3898eb6
Update generated code for v977
stripe-openapi[bot] Apr 22, 2024
e8ed1a4
Make cloudflare package export (#2061)
bitofbreeze Apr 22, 2024
018fc27
Merge upstream and update generated code for v977
stripe-openapi[bot] Apr 22, 2024
d57ef67
Update generated code for v978
stripe-openapi[bot] Apr 22, 2024
b95a0ac
Update generated code for v979
stripe-openapi[bot] Apr 22, 2024
50fd6e0
Update generated code for v980
stripe-openapi[bot] Apr 22, 2024
7647f41
Update generated code for v981
stripe-openapi[bot] Apr 23, 2024
a979b2c
Update generated code for v982
stripe-openapi[bot] Apr 23, 2024
7faab44
Update generated code for v983
stripe-openapi[bot] Apr 23, 2024
3398ce9
Update generated code for v984
stripe-openapi[bot] Apr 23, 2024
85c7bda
Update generated code for v985
stripe-openapi[bot] Apr 24, 2024
50c21ce
Update generated code for v987
stripe-openapi[bot] Apr 24, 2024
fec336d
Update generated code for v988
stripe-openapi[bot] Apr 24, 2024
2daf407
Update generated code for v989
stripe-openapi[bot] Apr 24, 2024
3aec729
Update generated code for v990
stripe-openapi[bot] Apr 25, 2024
b8c668d
Update generated code for v991
stripe-openapi[bot] Apr 25, 2024
be33310
Update generated code for v992
stripe-openapi[bot] Apr 25, 2024
850dbb9
Update generated code for v993
stripe-openapi[bot] Apr 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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