Skip to content

Commit 3b6da69

Browse files
Merge pull request #2232 from stripe/latest-codegen-beta
Update generated code for beta
2 parents 922bd6c + 95381ab commit 3b6da69

35 files changed

+271
-76
lines changed

OPENAPI_VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1370
1+
v1384

test/resources/generated_examples_test.spec.js

+1-1
Large diffs are not rendered by default.

types/Accounts.d.ts

+7
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ declare module 'stripe' {
249249
*/
250250
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;
251251

252+
/**
253+
* The status of the automatic_indirect_tax capability of the account.
254+
*/
255+
automatic_indirect_tax?: Capabilities.AutomaticIndirectTax;
256+
252257
/**
253258
* The status of the Bacs Direct Debits payments capability of the account, or whether the account can directly process Bacs Direct Debits charges.
254259
*/
@@ -558,6 +563,8 @@ declare module 'stripe' {
558563

559564
type AuBecsDebitPayments = 'active' | 'inactive' | 'pending';
560565

566+
type AutomaticIndirectTax = 'active' | 'inactive' | 'pending';
567+
561568
type BacsDebitPayments = 'active' | 'inactive' | 'pending';
562569

563570
type BancontactPayments = 'active' | 'inactive' | 'pending';

types/AccountsResource.d.ts

+26-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ declare module 'stripe' {
7373
external_account?: string | AccountCreateParams.ExternalAccount;
7474

7575
/**
76-
* A hash of account group type to tokens. These are account groups this account should be added to
76+
* A hash of account group type to tokens. These are account groups this account should be added to.
7777
*/
7878
groups?: AccountCreateParams.Groups;
7979

@@ -234,6 +234,11 @@ declare module 'stripe' {
234234
*/
235235
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;
236236

237+
/**
238+
* The automatic_indirect_tax capability.
239+
*/
240+
automatic_indirect_tax?: Capabilities.AutomaticIndirectTax;
241+
237242
/**
238243
* The bacs_debit_payments capability.
239244
*/
@@ -573,6 +578,13 @@ declare module 'stripe' {
573578
requested?: boolean;
574579
}
575580

581+
interface AutomaticIndirectTax {
582+
/**
583+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
584+
*/
585+
requested?: boolean;
586+
}
587+
576588
interface BacsDebitPayments {
577589
/**
578590
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -1986,7 +1998,7 @@ declare module 'stripe' {
19861998
>;
19871999

19882000
/**
1989-
* A hash of account group type to tokens. These are account groups this account should be added to
2001+
* A hash of account group type to tokens. These are account groups this account should be added to.
19902002
*/
19912003
groups?: AccountUpdateParams.Groups;
19922004

@@ -2180,6 +2192,11 @@ declare module 'stripe' {
21802192
*/
21812193
au_becs_debit_payments?: Capabilities.AuBecsDebitPayments;
21822194

2195+
/**
2196+
* The automatic_indirect_tax capability.
2197+
*/
2198+
automatic_indirect_tax?: Capabilities.AutomaticIndirectTax;
2199+
21832200
/**
21842201
* The bacs_debit_payments capability.
21852202
*/
@@ -2519,6 +2536,13 @@ declare module 'stripe' {
25192536
requested?: boolean;
25202537
}
25212538

2539+
interface AutomaticIndirectTax {
2540+
/**
2541+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2542+
*/
2543+
requested?: boolean;
2544+
}
2545+
25222546
interface BacsDebitPayments {
25232547
/**
25242548
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.

types/BalanceTransactions.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ declare module 'stripe' {
8080
status: string;
8181

8282
/**
83-
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
83+
* Transaction type: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`. Learn more about [balance transaction types and what they represent](https://stripe.com/docs/reports/balance-transaction-types). To classify transactions for accounting purposes, consider `reporting_category` instead.
8484
*/
8585
type: BalanceTransaction.Type;
8686
}
@@ -141,6 +141,8 @@ declare module 'stripe' {
141141
| 'payout'
142142
| 'payout_cancel'
143143
| 'payout_failure'
144+
| 'payout_minimum_balance_hold'
145+
| 'payout_minimum_balance_release'
144146
| 'refund'
145147
| 'refund_failure'
146148
| 'reserve_transaction'

types/BalanceTransactionsResource.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare module 'stripe' {
3636
source?: string;
3737

3838
/**
39-
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
39+
* Only returns transactions of the given type. One of: `adjustment`, `advance`, `advance_funding`, `anticipation_repayment`, `application_fee`, `application_fee_refund`, `charge`, `climate_order_purchase`, `climate_order_refund`, `connect_collection_transfer`, `contribution`, `issuing_authorization_hold`, `issuing_authorization_release`, `issuing_dispute`, `issuing_transaction`, `obligation_outbound`, `obligation_reversal_inbound`, `payment`, `payment_failure_refund`, `payment_network_reserve_hold`, `payment_network_reserve_release`, `payment_refund`, `payment_reversal`, `payment_unreconciled`, `payout`, `payout_cancel`, `payout_failure`, `payout_minimum_balance_hold`, `payout_minimum_balance_release`, `refund`, `refund_failure`, `reserve_transaction`, `reserved_funds`, `stripe_fee`, `stripe_fx_fee`, `tax_fee`, `topup`, `topup_reversal`, `transfer`, `transfer_cancel`, `transfer_failure`, or `transfer_refund`.
4040
*/
4141
type?: string;
4242
}

types/Billing/CreditBalanceSummaryResource.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ declare module 'stripe' {
4141
namespace Filter {
4242
interface ApplicabilityScope {
4343
/**
44-
* The price type for which credit grants can apply. We currently only support the `metered` price type.
44+
* The price type that credit grants can apply to. We currently only support the `metered` price type.
4545
*/
4646
price_type: 'metered';
4747
}
@@ -52,7 +52,7 @@ declare module 'stripe' {
5252

5353
class CreditBalanceSummaryResource {
5454
/**
55-
* Retrieves the credit balance summary for a customer
55+
* Retrieves the credit balance summary for a customer.
5656
*/
5757
retrieve(
5858
params: CreditBalanceSummaryRetrieveParams,

types/Billing/CreditBalanceTransactionsResource.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ declare module 'stripe' {
2929

3030
class CreditBalanceTransactionsResource {
3131
/**
32-
* Retrieves a credit balance transaction
32+
* Retrieves a credit balance transaction.
3333
*/
3434
retrieve(
3535
id: string,
@@ -42,7 +42,7 @@ declare module 'stripe' {
4242
): Promise<Stripe.Response<Stripe.Billing.CreditBalanceTransaction>>;
4343

4444
/**
45-
* Retrieve a list of credit balance transactions
45+
* Retrieve a list of credit balance transactions.
4646
*/
4747
list(
4848
params: CreditBalanceTransactionListParams,

types/Billing/CreditGrants.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ declare module 'stripe' {
3939
customer: string | Stripe.Customer | Stripe.DeletedCustomer;
4040

4141
/**
42-
* The time when the billing credits become effectivewhen they're eligible for use.
42+
* The time when the billing credits become effective-when they're eligible for use.
4343
*/
4444
effective_at: number | null;
4545

@@ -113,7 +113,7 @@ declare module 'stripe' {
113113
namespace ApplicabilityConfig {
114114
interface Scope {
115115
/**
116-
* The price type for which credit grants can apply. 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.
116+
* 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.
117117
*/
118118
price_type: 'metered';
119119
}

types/Billing/CreditGrantsResource.d.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ declare module 'stripe' {
2525
customer: string;
2626

2727
/**
28-
* The time when the billing credits become effectivewhen they're eligible for use. Defaults to the current timestamp if not specified.
28+
* The time when the billing credits become effective-when they're eligible for use. It defaults to the current timestamp if not specified.
2929
*/
3030
effective_at?: number;
3131

@@ -35,12 +35,12 @@ declare module 'stripe' {
3535
expand?: Array<string>;
3636

3737
/**
38-
* The time when the billing credits will expire. If not specified, the billing credits don't expire.
38+
* The time when the billing credits expire. If not specified, the billing credits don't expire.
3939
*/
4040
expires_at?: number;
4141

4242
/**
43-
* Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format.
43+
* Set of key-value pairs that you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
4444
*/
4545
metadata?: Stripe.MetadataParam;
4646

@@ -87,7 +87,7 @@ declare module 'stripe' {
8787
namespace ApplicabilityConfig {
8888
interface Scope {
8989
/**
90-
* The price type for which credit grants can apply. We currently only support the `metered` price type.
90+
* The price type that credit grants can apply to. We currently only support the `metered` price type.
9191
*/
9292
price_type: 'metered';
9393
}
@@ -115,7 +115,7 @@ declare module 'stripe' {
115115
expires_at?: Stripe.Emptyable<number>;
116116

117117
/**
118-
* Set of key-value pairs you can attach to an object. This can be useful for storing additional information about the object (for example, cost basis) in a structured format.
118+
* Set of key-value pairs you can attach to an object. You can use this to store additional information about the object (for example, cost basis) in a structured format.
119119
*/
120120
metadata?: Stripe.MetadataParam;
121121
}
@@ -148,15 +148,15 @@ declare module 'stripe' {
148148

149149
class CreditGrantsResource {
150150
/**
151-
* Creates a credit grant
151+
* Creates a credit grant.
152152
*/
153153
create(
154154
params: CreditGrantCreateParams,
155155
options?: RequestOptions
156156
): Promise<Stripe.Response<Stripe.Billing.CreditGrant>>;
157157

158158
/**
159-
* Retrieves a credit grant
159+
* Retrieves a credit grant.
160160
*/
161161
retrieve(
162162
id: string,
@@ -169,7 +169,7 @@ declare module 'stripe' {
169169
): Promise<Stripe.Response<Stripe.Billing.CreditGrant>>;
170170

171171
/**
172-
* Updates a credit grant
172+
* Updates a credit grant.
173173
*/
174174
update(
175175
id: string,

types/Billing/MeterEventAdjustmentsResource.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ declare module 'stripe' {
3636

3737
class MeterEventAdjustmentsResource {
3838
/**
39-
* Creates a billing meter event adjustment
39+
* Creates a billing meter event adjustment.
4040
*/
4141
create(
4242
params: MeterEventAdjustmentCreateParams,

types/Billing/MeterEvents.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ declare module 'stripe' {
44
namespace Stripe {
55
namespace Billing {
66
/**
7-
* A billing meter event represents a customer's usage of a product. Meter events are used to bill a customer based on their usage.
8-
* Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing.
7+
* Meter events represent actions that customers take in your system. You can use meter events to bill a customer based on their usage. Meter events are associated with billing meters, which define both the contents of the event's payload and how to aggregate those events.
98
*/
109
interface MeterEvent {
1110
/**

types/Billing/MeterEventsResource.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare module 'stripe' {
2222
expand?: Array<string>;
2323

2424
/**
25-
* A unique identifier for the event. If not provided, one will be generated. We strongly advise using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations.
25+
* A unique identifier for the event. If not provided, one is generated. We recommend using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries or other problems occurring within extremely brief time intervals. This approach helps prevent duplicate entries and ensures data integrity in high-frequency operations.
2626
*/
2727
identifier?: string;
2828

@@ -34,7 +34,7 @@ declare module 'stripe' {
3434

3535
class MeterEventsResource {
3636
/**
37-
* Creates a billing meter event
37+
* Creates a billing meter event.
3838
*/
3939
create(
4040
params: MeterEventCreateParams,

types/Billing/Meters.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ declare module 'stripe' {
44
namespace Stripe {
55
namespace Billing {
66
/**
7-
* A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make.
7+
* Meters specify how to aggregate meter events over a billing period. Meter events represent the actions that customers take in your system. Meters attach to prices and form the basis of the bill.
88
*
99
* Related guide: [Usage based billing](https://docs.stripe.com/billing/subscriptions/usage-based)
1010
*/

types/Billing/MetersResource.d.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare module 'stripe' {
1010
default_aggregation: MeterCreateParams.DefaultAggregation;
1111

1212
/**
13-
* The meter's name.
13+
* The meter's name. Not visible to the customer.
1414
*/
1515
display_name: string;
1616

@@ -43,7 +43,7 @@ declare module 'stripe' {
4343
namespace MeterCreateParams {
4444
interface CustomerMapping {
4545
/**
46-
* The key in the usage event payload to use for mapping the event to a customer.
46+
* The key in the meter event payload to use for mapping the event to a customer.
4747
*/
4848
event_payload_key: string;
4949

@@ -83,7 +83,7 @@ declare module 'stripe' {
8383

8484
interface MeterUpdateParams {
8585
/**
86-
* The meter's name.
86+
* The meter's name. Not visible to the customer.
8787
*/
8888
display_name?: string;
8989

@@ -156,15 +156,15 @@ declare module 'stripe' {
156156

157157
class MetersResource {
158158
/**
159-
* Creates a billing meter
159+
* Creates a billing meter.
160160
*/
161161
create(
162162
params: MeterCreateParams,
163163
options?: RequestOptions
164164
): Promise<Stripe.Response<Stripe.Billing.Meter>>;
165165

166166
/**
167-
* Retrieves a billing meter given an ID
167+
* Retrieves a billing meter given an ID.
168168
*/
169169
retrieve(
170170
id: string,
@@ -177,7 +177,7 @@ declare module 'stripe' {
177177
): Promise<Stripe.Response<Stripe.Billing.Meter>>;
178178

179179
/**
180-
* Updates a billing meter
180+
* Updates a billing meter.
181181
*/
182182
update(
183183
id: string,
@@ -195,7 +195,7 @@ declare module 'stripe' {
195195
list(options?: RequestOptions): ApiListPromise<Stripe.Billing.Meter>;
196196

197197
/**
198-
* Deactivates a billing meter
198+
* When a meter is deactivated, no more meter events will be accepted for this meter. You can't attach a deactivated meter to a price.
199199
*/
200200
deactivate(
201201
id: string,
@@ -217,7 +217,7 @@ declare module 'stripe' {
217217
): ApiListPromise<Stripe.Billing.MeterEventSummary>;
218218

219219
/**
220-
* Reactivates a billing meter
220+
* When a meter is reactivated, events for this meter can be accepted and you can attach the meter to a price.
221221
*/
222222
reactivate(
223223
id: string,

0 commit comments

Comments
 (0)