Skip to content

Commit f395139

Browse files
Update generated code (#2256)
* 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]>
1 parent 54d423e commit f395139

30 files changed

+425
-103
lines changed

CONTRIBUTING.md

Lines changed: 0 additions & 25 deletions
This file was deleted.

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1455
1+
v1505

src/apiVersion.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// File generated from our OpenAPI spec
22

3-
export const ApiVersion = '2025-01-27.acacia';
3+
export const ApiVersion = '2025-02-24.acacia';

types/Balance.d.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,17 @@ declare module 'stripe' {
6767
namespace Available {
6868
interface SourceTypes {
6969
/**
70-
* Amount for bank account.
70+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
7171
*/
7272
bank_account?: number;
7373

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

7979
/**
80-
* Amount for FPX.
80+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
8181
*/
8282
fpx?: number;
8383
}
@@ -100,17 +100,17 @@ declare module 'stripe' {
100100
namespace ConnectReserved {
101101
interface SourceTypes {
102102
/**
103-
* Amount for bank account.
103+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
104104
*/
105105
bank_account?: number;
106106

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

112112
/**
113-
* Amount for FPX.
113+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
114114
*/
115115
fpx?: number;
116116
}
@@ -153,35 +153,35 @@ declare module 'stripe' {
153153
namespace NetAvailable {
154154
interface SourceTypes {
155155
/**
156-
* Amount for bank account.
156+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
157157
*/
158158
bank_account?: number;
159159

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

165165
/**
166-
* Amount for FPX.
166+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
167167
*/
168168
fpx?: number;
169169
}
170170
}
171171

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

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

183183
/**
184-
* Amount for FPX.
184+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
185185
*/
186186
fpx?: number;
187187
}
@@ -212,17 +212,17 @@ declare module 'stripe' {
212212
namespace Available {
213213
interface SourceTypes {
214214
/**
215-
* Amount for bank account.
215+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
216216
*/
217217
bank_account?: number;
218218

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

224224
/**
225-
* Amount for FPX.
225+
* Amount coming from [FPX](https://docs.stripe.com/payments/fpx), a Malaysian payment method.
226226
*/
227227
fpx?: number;
228228
}
@@ -246,17 +246,17 @@ declare module 'stripe' {
246246
namespace Pending {
247247
interface SourceTypes {
248248
/**
249-
* Amount for bank account.
249+
* Amount coming from [legacy US ACH payments](https://docs.stripe.com/ach-deprecated).
250250
*/
251251
bank_account?: number;
252252

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

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

types/Billing/CreditBalanceSummaryResource.d.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,21 @@ declare module 'stripe' {
4343
/**
4444
* The price type that credit grants can apply to. We currently only support the `metered` price type.
4545
*/
46-
price_type: 'metered';
46+
price_type?: 'metered';
47+
48+
/**
49+
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
50+
*/
51+
prices?: Array<ApplicabilityScope.Price>;
52+
}
53+
54+
namespace ApplicabilityScope {
55+
interface Price {
56+
/**
57+
* The price ID this credit grant should apply to.
58+
*/
59+
id: string;
60+
}
4761
}
4862

4963
type Type = 'applicability_scope' | 'credit_grant';

types/Billing/CreditGrants.d.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ declare module 'stripe' {
6363
*/
6464
name: string | null;
6565

66+
/**
67+
* The priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
68+
*/
69+
priority?: number | null;
70+
6671
/**
6772
* ID of the test clock this credit grant belongs to.
6873
*/
@@ -115,7 +120,21 @@ declare module 'stripe' {
115120
/**
116121
* 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.
117122
*/
118-
price_type: 'metered';
123+
price_type?: 'metered';
124+
125+
/**
126+
* 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.
127+
*/
128+
prices?: Array<Scope.Price>;
129+
}
130+
131+
namespace Scope {
132+
interface Price {
133+
/**
134+
* Unique identifier for the object.
135+
*/
136+
id: string | null;
137+
}
119138
}
120139
}
121140

types/Billing/CreditGrantsResource.d.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare module 'stripe' {
1010
amount: CreditGrantCreateParams.Amount;
1111

1212
/**
13-
* Configuration specifying what this credit grant applies to.
13+
* 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.
1414
*/
1515
applicability_config: CreditGrantCreateParams.ApplicabilityConfig;
1616

@@ -48,6 +48,11 @@ declare module 'stripe' {
4848
* A descriptive name shown in the Dashboard.
4949
*/
5050
name?: string;
51+
52+
/**
53+
* 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.
54+
*/
55+
priority?: number;
5156
}
5257

5358
namespace CreditGrantCreateParams {
@@ -89,7 +94,21 @@ declare module 'stripe' {
8994
/**
9095
* The price type that credit grants can apply to. We currently only support the `metered` price type.
9196
*/
92-
price_type: 'metered';
97+
price_type?: 'metered';
98+
99+
/**
100+
* A list of prices that the credit grant can apply to. We currently only support the `metered` prices.
101+
*/
102+
prices?: Array<Scope.Price>;
103+
}
104+
105+
namespace Scope {
106+
interface Price {
107+
/**
108+
* The price ID this credit grant should apply to.
109+
*/
110+
id: string;
111+
}
93112
}
94113
}
95114

types/Billing/MeterEventSummaries.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ declare module 'stripe' {
66
/**
77
* A billing meter event summary represents an aggregated view of a customer's billing meter events within a specified timeframe. It indicates how much
88
* usage was accrued by a customer for that period.
9+
*
10+
* Note: Meters events are aggregated asynchronously so the meter event summaries provide an eventually consistent view of the reported usage.
911
*/
1012
interface MeterEventSummary {
1113
/**

types/Charges.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ declare module 'stripe' {
483483
twint?: PaymentMethodDetails.Twint;
484484

485485
/**
486-
* 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`.
486+
* 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.
487487
* An additional hash is included on `payment_method_details` with a name matching this value.
488488
* It contains information specific to the payment method.
489489
*/
@@ -889,7 +889,7 @@ declare module 'stripe' {
889889
network_token?: Card.NetworkToken | null;
890890

891891
/**
892-
* 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.
892+
* 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.
893893
*/
894894
network_transaction_id: string | null;
895895

@@ -1274,7 +1274,7 @@ declare module 'stripe' {
12741274
network: string | null;
12751275

12761276
/**
1277-
* 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.
1277+
* 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.
12781278
*/
12791279
network_transaction_id: string | null;
12801280

@@ -1671,7 +1671,7 @@ declare module 'stripe' {
16711671
network: string | null;
16721672

16731673
/**
1674-
* 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.
1674+
* 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.
16751675
*/
16761676
network_transaction_id: string | null;
16771677

0 commit comments

Comments
 (0)