Skip to content

Commit

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

* Update generated code for v1494

* Update generated code for v1495

* Update generated code for v1501

* Update generated code for v1505

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <[email protected]>
  • Loading branch information
stripe-openapi[bot] and prathmesh-stripe authored Feb 24, 2025
1 parent 54d423e commit f395139
Show file tree
Hide file tree
Showing 30 changed files with 425 additions and 103 deletions.
25 changes: 0 additions & 25 deletions CONTRIBUTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1455
v1505
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2025-01-27.acacia';
export const ApiVersion = '2025-02-24.acacia';
36 changes: 18 additions & 18 deletions types/Balance.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ declare module 'stripe' {
namespace Available {
interface SourceTypes {
/**
* Amount for bank account.
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount for card.
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount for FPX.
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
Expand All @@ -100,17 +100,17 @@ declare module 'stripe' {
namespace ConnectReserved {
interface SourceTypes {
/**
* Amount for bank account.
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount for card.
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount for FPX.
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
Expand Down Expand Up @@ -153,35 +153,35 @@ declare module 'stripe' {
namespace NetAvailable {
interface SourceTypes {
/**
* Amount for bank account.
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount for card.
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount for FPX.
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
}

interface SourceTypes {
/**
* Amount for bank account.
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount for card.
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount for FPX.
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
Expand Down Expand Up @@ -212,17 +212,17 @@ declare module 'stripe' {
namespace Available {
interface SourceTypes {
/**
* Amount for bank account.
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount for card.
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount for FPX.
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
Expand All @@ -246,17 +246,17 @@ declare module 'stripe' {
namespace Pending {
interface SourceTypes {
/**
* Amount for bank account.
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
*/
bank_account?: number;

/**
* Amount for card.
* Amount coming from most payment methods, including cards as well as [non-legacy bank debits](https://docs.stripe.com/payments/bank-debits).
*/
card?: number;

/**
* Amount for FPX.
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
*/
fpx?: number;
}
Expand Down
16 changes: 15 additions & 1 deletion types/Billing/CreditBalanceSummaryResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,21 @@ declare module 'stripe' {
/**
* The price type that credit grants can apply to. We currently only support the `metered` price type.
*/
price_type: 'metered';
price_type?: 'metered';

/**
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
*/
prices?: Array<ApplicabilityScope.Price>;
}

namespace ApplicabilityScope {
interface Price {
/**
* The price ID this credit grant should apply to.
*/
id: string;
}
}

type Type = 'applicability_scope' | 'credit_grant';
Expand Down
21 changes: 20 additions & 1 deletion types/Billing/CreditGrants.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ declare module 'stripe' {
*/
name: string | null;

/**
* The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
*/
priority?: number | null;

/**
* ID of the test clock this credit grant belongs to.
*/
Expand Down Expand Up @@ -115,7 +120,21 @@ declare module 'stripe' {
/**
* The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
*/
price_type: 'metered';
price_type?: 'metered';

/**
* The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
*/
prices?: Array<Scope.Price>;
}

namespace Scope {
interface Price {
/**
* Unique identifier for the object.
*/
id: string | null;
}
}
}

Expand Down
23 changes: 21 additions & 2 deletions types/Billing/CreditGrantsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ declare module 'stripe' {
amount: CreditGrantCreateParams.Amount;

/**
* Configuration specifying what this credit grant applies to.
* Configuration specifying what this credit grant applies to. We currently only support `metered` prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them.
*/
applicability_config: CreditGrantCreateParams.ApplicabilityConfig;

Expand Down Expand Up @@ -48,6 +48,11 @@ declare module 'stripe' {
* A descriptive name shown in the Dashboard.
*/
name?: string;

/**
* The desired priority for applying this credit grant. If not specified, it will be set to the default value of 50. The highest priority is 0 and the lowest is 100.
*/
priority?: number;
}

namespace CreditGrantCreateParams {
Expand Down Expand Up @@ -89,7 +94,21 @@ declare module 'stripe' {
/**
* The price type that credit grants can apply to. We currently only support the `metered` price type.
*/
price_type: 'metered';
price_type?: 'metered';

/**
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
*/
prices?: Array<Scope.Price>;
}

namespace Scope {
interface Price {
/**
* The price ID this credit grant should apply to.
*/
id: string;
}
}
}

Expand Down
2 changes: 2 additions & 0 deletions types/Billing/MeterEventSummaries.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ declare module 'stripe' {
/**
* A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much
* usage was accrued by a customer for that period.
*
* Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
*/
interface MeterEventSummary {
/**
Expand Down
8 changes: 4 additions & 4 deletions types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ declare module 'stripe' {
twint?: PaymentMethodDetails.Twint;

/**
* The type of transaction-specific details of the payment method used in the payment, one of `ach_credit_transfer`, `ach_debit`, `acss_debit`, `alipay`, `au_becs_debit`, `bancontact`, `card`, `card_present`, `eps`, `giropay`, `ideal`, `klarna`, `multibanco`, `p24`, `sepa_debit`, `sofort`, `stripe_account`, or `wechat`.
* The type of transaction-specific details of the payment method used in the payment. See [PaymentMethod.type](https://stripe.com/docs/api/payment_methods/object#payment_method_object-type) for the full list of possible types.
* An additional hash is included on `payment_method_details` with a name matching this value.
* It contains information specific to the payment method.
*/
Expand Down Expand Up @@ -889,7 +889,7 @@ declare module 'stripe' {
network_token?: Card.NetworkToken | 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. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
*/
network_transaction_id: string | null;

Expand Down Expand Up @@ -1274,7 +1274,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. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
*/
network_transaction_id: string | null;

Expand Down Expand Up @@ -1671,7 +1671,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. This value will be present if it is returned by the financial network in the authorization response, and null otherwise.
*/
network_transaction_id: string | null;

Expand Down
Loading

0 comments on commit f395139

Please sign in to comment.