Skip to content

Commit

Permalink
Merge pull request #2093 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 May 23, 2024
2 parents a04a6ba + 259ef37 commit e9416db
Show file tree
Hide file tree
Showing 22 changed files with 124 additions and 76 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,22 @@
## 15.8.0-beta.1 - 2024-05-16
* [#2087](https://github.com/stripe/stripe-node/pull/2087) Update generated code for beta

## 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.7.0-beta.1 - 2024-05-09
* [#2079](https://github.com/stripe/stripe-node/pull/2079) 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 @@
v1039
v1048
10 changes: 10 additions & 0 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ declare module 'stripe' {
*/
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.
*/
external_account_collection: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down Expand Up @@ -258,6 +263,11 @@ declare module 'stripe' {
*/
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.
*/
external_account_collection: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down
10 changes: 10 additions & 0 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ declare module 'stripe' {
*/
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.
*/
external_account_collection?: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down Expand Up @@ -442,6 +447,11 @@ declare module 'stripe' {
*/
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.
*/
external_account_collection?: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ declare module 'stripe' {
link_payments?: Capabilities.LinkPayments;

/**
* The status of the MobilepPay capability of the account, or whether the account can directly process MobilePay charges.
* The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

Expand Down
7 changes: 7 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1572,6 +1572,11 @@ declare module 'stripe' {
SavedPaymentMethodOptions.AllowRedisplayFilter
> | null;

/**
* Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
*/
payment_method_remove: SavedPaymentMethodOptions.PaymentMethodRemove | null;

/**
* Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
*/
Expand All @@ -1581,6 +1586,8 @@ declare module 'stripe' {
namespace SavedPaymentMethodOptions {
type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified';

type PaymentMethodRemove = 'disabled' | 'enabled';

type PaymentMethodSave = 'disabled' | 'enabled';
}

Expand Down
6 changes: 3 additions & 3 deletions types/CreditNotesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ declare module 'stripe' {
/**
* ID of an existing refund to link this credit note to.
*/
refund: string;
refund?: string;
}

interface ShippingCost {
Expand Down Expand Up @@ -378,7 +378,7 @@ declare module 'stripe' {
/**
* ID of an existing refund to link this credit note to.
*/
refund: string;
refund?: string;
}

interface ShippingCost {
Expand Down Expand Up @@ -545,7 +545,7 @@ declare module 'stripe' {
/**
* ID of an existing refund to link this credit note to.
*/
refund: string;
refund?: string;
}

interface ShippingCost {
Expand Down
8 changes: 4 additions & 4 deletions types/InvoiceItemsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,12 @@ declare module 'stripe' {
period?: InvoiceItemCreateParams.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceItemCreateParams.PriceData;

Expand Down Expand Up @@ -261,12 +261,12 @@ declare module 'stripe' {
period?: InvoiceItemUpdateParams.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceItemUpdateParams.PriceData;

Expand Down
1 change: 1 addition & 0 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
| 'testmode_charges_only'
Expand Down
Loading

0 comments on commit e9416db

Please sign in to comment.