Skip to content

Commit

Permalink
Update generated code (#2064)
Browse files Browse the repository at this point in the history
* Update generated code for v951

* Update generated code for v954

* Update generated code for v955

* Update generated code for v956

* Update generated code for v957

* Update generated code for v958

* Update generated code for v960

* Update generated code for v961

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed Apr 16, 2024
1 parent dc5e944 commit 389442f
Show file tree
Hide file tree
Showing 19 changed files with 309 additions and 46 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
@@ -1 +1 @@
v950
v961
49 changes: 47 additions & 2 deletions types/AccountSessions.d.ts
Expand Up @@ -50,6 +50,8 @@ declare module 'stripe' {

account_onboarding: Components.AccountOnboarding;

balances: Components.Balances;

documents: Components.Documents;

notification_banner: Components.NotificationBanner;
Expand All @@ -59,6 +61,8 @@ declare module 'stripe' {
payments: Components.Payments;

payouts: Components.Payouts;

payouts_list: Components.PayoutsList;
}

namespace Components {
Expand Down Expand Up @@ -98,6 +102,34 @@ declare module 'stripe' {
}
}

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

features: Balances.Features;
}

namespace Balances {
interface Features {
/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
instant_payouts: boolean;

/**
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
standard_payouts: boolean;
}
}

interface Documents {
/**
* Whether the embedded component is enabled.
Expand Down Expand Up @@ -148,7 +180,7 @@ declare module 'stripe' {
/**
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
*/
destination_on_behalf_of_charge_management?: boolean;
destination_on_behalf_of_charge_management: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
Expand Down Expand Up @@ -181,7 +213,7 @@ declare module 'stripe' {
/**
* Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
*/
destination_on_behalf_of_charge_management?: boolean;
destination_on_behalf_of_charge_management: boolean;

/**
* Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
Expand Down Expand Up @@ -222,6 +254,19 @@ declare module 'stripe' {
standard_payouts: boolean;
}
}

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

features: PayoutsList.Features;
}

namespace PayoutsList {
interface Features {}
}
}
}
}
Expand Down
57 changes: 57 additions & 0 deletions types/AccountSessionsResource.d.ts
Expand Up @@ -31,6 +31,11 @@ declare module 'stripe' {
*/
account_onboarding?: Components.AccountOnboarding;

/**
* Configuration for the balances embedded component.
*/
balances?: Components.Balances;

/**
* Configuration for the documents embedded component.
*/
Expand All @@ -55,6 +60,11 @@ declare module 'stripe' {
* Configuration for the payouts embedded component.
*/
payouts?: Components.Payouts;

/**
* Configuration for the payouts list embedded component.
*/
payouts_list?: Components.PayoutsList;
}

namespace Components {
Expand Down Expand Up @@ -100,6 +110,37 @@ declare module 'stripe' {
}
}

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

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

namespace Balances {
interface Features {
/**
* Whether to allow payout schedule to be changed. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
edit_payout_schedule?: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
instant_payouts?: boolean;

/**
* Whether to allow creation of standard payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
standard_payouts?: boolean;
}
}

interface Documents {
/**
* Whether the embedded component is enabled.
Expand Down Expand Up @@ -239,6 +280,22 @@ declare module 'stripe' {
standard_payouts?: boolean;
}
}

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

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

namespace PayoutsList {
interface Features {}
}
}
}

Expand Down
10 changes: 5 additions & 5 deletions types/Billing/MeterEventsResource.d.ts
Expand Up @@ -16,11 +16,6 @@ declare module 'stripe' {
[key: string]: string;
};

/**
* The time of the event. Measured in seconds since the Unix epoch.
*/
timestamp: number;

/**
* Specifies which fields in the response should be expanded.
*/
Expand All @@ -30,6 +25,11 @@ declare module 'stripe' {
* A unique identifier for the event. If not provided, one will be generated. We recommend using a globally unique identifier for this. We'll enforce uniqueness within a rolling 24 hour period.
*/
identifier?: string;

/**
* The time of the event. Measured in seconds since the Unix epoch. Defaults to current timestamp if not specified.
*/
timestamp?: number;
}

class MeterEventsResource {
Expand Down
5 changes: 1 addition & 4 deletions types/Disputes.d.ts
Expand Up @@ -248,10 +248,7 @@ declare module 'stripe' {
}

interface PaymentMethodDetails {
/**
* Card specific dispute details.
*/
card: PaymentMethodDetails.Card | null;
card?: PaymentMethodDetails.Card;

/**
* Payment method type.
Expand Down
32 changes: 32 additions & 0 deletions types/Entitlements/ActiveEntitlementSummaries.d.ts
@@ -0,0 +1,32 @@
// File generated from our OpenAPI spec

declare module 'stripe' {
namespace Stripe {
namespace Entitlements {
/**
* A summary of a customer's active entitlements.
*/
interface ActiveEntitlementSummary {
/**
* String representing the object's type. Objects of the same type share the same value.
*/
object: 'entitlements.active_entitlement_summary';

/**
* The customer that is entitled to this feature.
*/
customer: string;

/**
* The list of entitlements this customer has.
*/
entitlements: ApiList<Stripe.Entitlements.ActiveEntitlement>;

/**
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
*/
livemode: boolean;
}
}
}
}
20 changes: 20 additions & 0 deletions types/EventTypes.d.ts
Expand Up @@ -70,6 +70,7 @@ declare module 'stripe' {
| CustomerTaxIdUpdatedEvent
| CustomerUpdatedEvent
| CustomerCashBalanceTransactionCreatedEvent
| EntitlementsActiveEntitlementSummaryUpdatedEvent
| FileCreatedEvent
| FinancialConnectionsAccountCreatedEvent
| FinancialConnectionsAccountDeactivatedEvent
Expand Down Expand Up @@ -1302,6 +1303,25 @@ declare module 'stripe' {
}
}

/**
* Occurs whenever a customer's entitlements change.
*/
interface EntitlementsActiveEntitlementSummaryUpdatedEvent
extends EventBase {
type: 'entitlements.active_entitlement_summary.updated';
data: EntitlementsActiveEntitlementSummaryUpdatedEvent.Data;
}

namespace EntitlementsActiveEntitlementSummaryUpdatedEvent {
interface Data extends Stripe.Event.Data {
object: Stripe.Entitlements.ActiveEntitlementSummary;

previous_attributes?: Partial<
Stripe.Entitlements.ActiveEntitlementSummary
>;
}
}

/**
* Occurs whenever a new Stripe-generated file is available for your account.
*/
Expand Down
1 change: 1 addition & 0 deletions types/Events.d.ts
Expand Up @@ -101,6 +101,7 @@ declare module 'stripe' {
| 'customer.tax_id.updated'
| 'customer.updated'
| 'customer_cash_balance_transaction.created'
| 'entitlements.active_entitlement_summary.updated'
| 'file.created'
| 'financial_connections.account.created'
| 'financial_connections.account.deactivated'
Expand Down
11 changes: 3 additions & 8 deletions types/Forwarding/Requests.d.ts
Expand Up @@ -4,9 +4,9 @@ declare module 'stripe' {
namespace Stripe {
namespace Forwarding {
/**
* Instructs Stripe to make a request on your behalf using the destination URL and HTTP method in the config.
* A config is set up for each destination URL by Stripe at the time of onboarding. Stripe verifies requests with
* your credentials in the config, and injects card details from the payment_method into the request.
* Instructs Stripe to make a request on your behalf using the destination URL. The destination URL
* is activated by Stripe at the time of onboarding. Stripe verifies requests with your credentials
* provided during onboarding, and injects card details from the payment_method into the request.
*
* Stripe redacts all sensitive fields and headers, including authentication credentials and card numbers,
* before storing the request and response data in the forwarding Request object, which are subject to a
Expand All @@ -32,11 +32,6 @@ declare module 'stripe' {
*/
object: 'forwarding.request';

/**
* The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs.
*/
config: string;

/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
Expand Down
5 changes: 0 additions & 5 deletions types/Forwarding/RequestsResource.d.ts
Expand Up @@ -4,11 +4,6 @@ declare module 'stripe' {
namespace Stripe {
namespace Forwarding {
interface RequestCreateParams {
/**
* The Forwarding Config used when making the forwarded request. The config specifes the HTTP method, merchant credentials, connection settings, and supported destination URLs.
*/
config: string;

/**
* The PaymentMethod to insert into the forwarded request. Forwarding previously consumed PaymentMethods is allowed.
*/
Expand Down
8 changes: 4 additions & 4 deletions types/Invoices.d.ts
Expand Up @@ -749,21 +749,21 @@ declare module 'stripe' {
*
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
* The SetupIntent transitions through multiple [statuses](https://stripe.com/docs/payments/intents#intent-statuses) as it guides
* The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
* you through the setup process.
*
* Successful SetupIntents result in payment credentials that are optimized for future payments.
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
* [Strong Customer Authentication](https://stripe.com/docs/strong-customer-authentication) during payment method collection
* to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents).
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
* If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
* it automatically attaches the resulting payment method to that Customer after successful setup.
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
* PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
*
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
*
* Related guide: [Setup Intents API](https://stripe.com/docs/payments/setup-intents)
* Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
*/
setup_intent?: Stripe.SetupIntent;

Expand Down
15 changes: 10 additions & 5 deletions types/PaymentIntents.d.ts
Expand Up @@ -347,21 +347,21 @@ declare module 'stripe' {
*
* Create a SetupIntent when you're ready to collect your customer's payment credentials.
* Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid.
* The SetupIntent transitions through multiple [statuses](https://stripe.com/docs/payments/intents#intent-statuses) as it guides
* The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides
* you through the setup process.
*
* Successful SetupIntents result in payment credentials that are optimized for future payments.
* For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through
* [Strong Customer Authentication](https://stripe.com/docs/strong-customer-authentication) during payment method collection
* to streamline later [off-session payments](https://stripe.com/docs/payments/setup-intents).
* [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection
* to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents).
* If you use the SetupIntent with a [Customer](https://stripe.com/docs/api#setup_intent_object-customer),
* it automatically attaches the resulting payment method to that Customer after successful setup.
* We recommend using SetupIntents or [setup_future_usage](https://stripe.com/docs/api#payment_intent_object-setup_future_usage) on
* PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods.
*
* By using SetupIntents, you can reduce friction for your customers, even as regulations change over time.
*
* Related guide: [Setup Intents API](https://stripe.com/docs/payments/setup-intents)
* Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents)
*/
setup_intent?: Stripe.SetupIntent;

Expand Down Expand Up @@ -2084,7 +2084,12 @@ declare module 'stripe' {
setup_future_usage?: 'none';
}

interface RevolutPay {}
interface RevolutPay {
/**
* Controls when the funds will be captured from the customer's account.
*/
capture_method?: 'manual';
}

interface SepaDebit {
mandate_options?: SepaDebit.MandateOptions;
Expand Down

0 comments on commit 389442f

Please sign in to comment.