Skip to content

Commit 6b6cc8a

Browse files
Update generated code (#1897)
* Update generated code for v515 * Update generated code for v516 * Update generated code for v517 * Update generated code for v519 * Update generated code for v520 * Update generated code for v522 * Update generated code for v523 * Update generated code for v524 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com>
1 parent 5bfdaca commit 6b6cc8a

18 files changed

+1938
-12
lines changed

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v514
1+
v524

src/resources.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import {resourceNamespace} from './ResourceNamespace.js';
44
import {Accounts as FinancialConnectionsAccounts} from './resources/FinancialConnections/Accounts.js';
5+
import {Authorizations as TestHelpersIssuingAuthorizations} from './resources/TestHelpers/Issuing/Authorizations.js';
56
import {Authorizations as IssuingAuthorizations} from './resources/Issuing/Authorizations.js';
67
import {Calculations as TaxCalculations} from './resources/Tax/Calculations.js';
78
import {Cardholders as IssuingCardholders} from './resources/Issuing/Cardholders.js';
@@ -40,6 +41,7 @@ import {Sessions as FinancialConnectionsSessions} from './resources/FinancialCon
4041
import {Settings as TaxSettings} from './resources/Tax/Settings.js';
4142
import {TestClocks as TestHelpersTestClocks} from './resources/TestHelpers/TestClocks.js';
4243
import {TransactionEntries as TreasuryTransactionEntries} from './resources/Treasury/TransactionEntries.js';
44+
import {Transactions as TestHelpersIssuingTransactions} from './resources/TestHelpers/Issuing/Transactions.js';
4345
import {Transactions as IssuingTransactions} from './resources/Issuing/Transactions.js';
4446
import {Transactions as TaxTransactions} from './resources/Tax/Transactions.js';
4547
import {Transactions as TreasuryTransactions} from './resources/Treasury/Transactions.js';
@@ -145,7 +147,11 @@ export const TestHelpers = resourceNamespace('testHelpers', {
145147
Customers: TestHelpersCustomers,
146148
Refunds: TestHelpersRefunds,
147149
TestClocks: TestHelpersTestClocks,
148-
Issuing: resourceNamespace('issuing', {Cards: TestHelpersIssuingCards}),
150+
Issuing: resourceNamespace('issuing', {
151+
Authorizations: TestHelpersIssuingAuthorizations,
152+
Cards: TestHelpersIssuingCards,
153+
Transactions: TestHelpersIssuingTransactions,
154+
}),
149155
Terminal: resourceNamespace('terminal', {
150156
Readers: TestHelpersTerminalReaders,
151157
}),
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
// File generated from our OpenAPI spec
2+
3+
import {StripeResource} from '../../../StripeResource.js';
4+
const stripeMethod = StripeResource.method;
5+
export const Authorizations = StripeResource.extend({
6+
create: stripeMethod({
7+
method: 'POST',
8+
fullPath: '/v1/test_helpers/issuing/authorizations',
9+
}),
10+
capture: stripeMethod({
11+
method: 'POST',
12+
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/capture',
13+
}),
14+
expire: stripeMethod({
15+
method: 'POST',
16+
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/expire',
17+
}),
18+
increment: stripeMethod({
19+
method: 'POST',
20+
fullPath:
21+
'/v1/test_helpers/issuing/authorizations/{authorization}/increment',
22+
}),
23+
reverse: stripeMethod({
24+
method: 'POST',
25+
fullPath: '/v1/test_helpers/issuing/authorizations/{authorization}/reverse',
26+
}),
27+
});
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// File generated from our OpenAPI spec
2+
3+
import {StripeResource} from '../../../StripeResource.js';
4+
const stripeMethod = StripeResource.method;
5+
export const Transactions = StripeResource.extend({
6+
createForceCapture: stripeMethod({
7+
method: 'POST',
8+
fullPath: '/v1/test_helpers/issuing/transactions/create_force_capture',
9+
}),
10+
createUnlinkedRefund: stripeMethod({
11+
method: 'POST',
12+
fullPath: '/v1/test_helpers/issuing/transactions/create_unlinked_refund',
13+
}),
14+
refund: stripeMethod({
15+
method: 'POST',
16+
fullPath: '/v1/test_helpers/issuing/transactions/{transaction}/refund',
17+
}),
18+
});

types/Balance.d.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ declare module 'stripe' {
2222
object: 'balance';
2323

2424
/**
25-
* Funds that are available to be transferred or paid out, whether automatically by Stripe or explicitly via the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). The available balance for each currency and payment type can be found in the `source_types` property.
25+
* Available funds that you can transfer or pay out automatically by Stripe or explicitly through the [Transfers API](https://stripe.com/docs/api#transfers) or [Payouts API](https://stripe.com/docs/api#payouts). You can find the available balance for each currency and payment type in the `source_types` property.
2626
*/
2727
available: Array<Balance.Available>;
2828

2929
/**
30-
* Funds held due to negative balances on connected Custom accounts. The connect reserve balance for each currency and payment type can be found in the `source_types` property.
30+
* Funds held due to negative balances on connected Custom accounts. You can find the connect reserve balance for each currency and payment type in the `source_types` property.
3131
*/
3232
connect_reserved?: Array<Balance.ConnectReserved>;
3333

3434
/**
35-
* Funds that can be paid out using Instant Payouts.
35+
* Funds that you can pay out using Instant Payouts.
3636
*/
3737
instant_available?: Array<Balance.InstantAvailable>;
3838

@@ -44,7 +44,7 @@ declare module 'stripe' {
4444
livemode: boolean;
4545

4646
/**
47-
* Funds that are not yet available in the balance. The pending balance for each currency, and for each payment type, can be found in the `source_types` property.
47+
* Funds that aren't available in the balance yet. You can find the pending balance for each currency and each payment type in the `source_types` property.
4848
*/
4949
pending: Array<Balance.Pending>;
5050
}

types/CustomersResource.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ declare module 'stripe' {
11061106
): Promise<Stripe.Response<Stripe.CustomerSource>>;
11071107

11081108
/**
1109-
* Creates a new TaxID object for a customer.
1109+
* Creates a new tax_id object for a customer.
11101110
*/
11111111
createTaxId(
11121112
id: string,
@@ -1151,7 +1151,7 @@ declare module 'stripe' {
11511151
>;
11521152

11531153
/**
1154-
* Deletes an existing TaxID object.
1154+
* Deletes an existing tax_id object.
11551155
*/
11561156
deleteTaxId(
11571157
customerId: string,
@@ -1304,7 +1304,7 @@ declare module 'stripe' {
13041304
): Promise<Stripe.Response<Stripe.CustomerSource>>;
13051305

13061306
/**
1307-
* Retrieves the TaxID object with the given identifier.
1307+
* Retrieves the tax_id object with the given identifier.
13081308
*/
13091309
retrieveTaxId(
13101310
customerId: string,

types/EphemeralKeysResource.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ declare module 'stripe' {
1818
*/
1919
issuing_card?: string;
2020

21+
/**
22+
* A single-use token, created by Stripe.js, used for creating ephemeral keys for Issuing Cards without exchanging sensitive information.
23+
*/
24+
nonce?: string;
25+
2126
/**
2227
* The ID of the Identity VerificationSession you'd like to access using the resulting ephemeral key
2328
*/

types/Invoices.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,7 @@ declare module 'stripe' {
856856
| 'sku_inactive'
857857
| 'state_unsupported'
858858
| 'status_transition_invalid'
859+
| 'stripe_tax_inactive'
859860
| 'tax_id_invalid'
860861
| 'taxes_calculation_failed'
861862
| 'terminal_location_country_unsupported'

types/Issuing/Authorizations.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ declare module 'stripe' {
132132
* The fee charged by the ATM for the cash withdrawal.
133133
*/
134134
atm_fee: number | null;
135+
136+
/**
137+
* The amount of cash requested by the cardholder.
138+
*/
139+
cashback_amount: number | null;
135140
}
136141

137142
type AuthorizationMethod =
@@ -233,6 +238,11 @@ declare module 'stripe' {
233238
* The fee charged by the ATM for the cash withdrawal.
234239
*/
235240
atm_fee: number | null;
241+
242+
/**
243+
* The amount of cash requested by the cardholder.
244+
*/
245+
cashback_amount: number | null;
236246
}
237247
}
238248

@@ -289,6 +299,11 @@ declare module 'stripe' {
289299
* The fee charged by the ATM for the cash withdrawal.
290300
*/
291301
atm_fee: number | null;
302+
303+
/**
304+
* The amount of cash requested by the cardholder.
305+
*/
306+
cashback_amount: number | null;
292307
}
293308

294309
type Reason =

types/Issuing/Transactions.d.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,11 @@ declare module 'stripe' {
115115
* The fee charged by the ATM for the cash withdrawal.
116116
*/
117117
atm_fee: number | null;
118+
119+
/**
120+
* The amount of cash requested by the cardholder.
121+
*/
122+
cashback_amount: number | null;
118123
}
119124

120125
interface MerchantData {

0 commit comments

Comments
 (0)