Skip to content

Commit 522db65

Browse files
committed
codegen
1 parent b12e55e commit 522db65

59 files changed

Lines changed: 394 additions & 349 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/resources.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -352,11 +352,6 @@ export const V2 = resourceNamespace('v2', {
352352
Imports: V2CommerceProductCatalogImports,
353353
}),
354354
}),
355-
Commerce: resourceNamespace('commerce', {
356-
ProductCatalog: resourceNamespace('productCatalog', {
357-
Imports: V2CommerceProductCatalogImports,
358-
}),
359-
}),
360355
Core: resourceNamespace('core', {
361356
AccountLinks: V2CoreAccountLinks,
362357
AccountTokens: V2CoreAccountTokens,

src/resources/AccountNotices.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class AccountNoticeResource extends StripeResource {
2626
): Promise<Response<AccountNotice>> {
2727
return this._makeRequest(
2828
'GET',
29-
`/v1/account_notices/${id}`,
29+
`/v1/account_notices/${encodeURIComponent(id)}`,
3030
params,
3131
options
3232
) as any;
@@ -41,7 +41,7 @@ export class AccountNoticeResource extends StripeResource {
4141
): Promise<Response<AccountNotice>> {
4242
return this._makeRequest(
4343
'POST',
44-
`/v1/account_notices/${id}`,
44+
`/v1/account_notices/${encodeURIComponent(id)}`,
4545
params,
4646
options
4747
) as any;

src/resources/Capital/FinancingOffers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class FinancingOfferResource extends StripeResource {
3232
): Promise<Response<FinancingOffer>> {
3333
return this._makeRequest(
3434
'GET',
35-
`/v1/capital/financing_offers/${id}`,
35+
`/v1/capital/financing_offers/${encodeURIComponent(id)}`,
3636
params,
3737
options
3838
) as any;
@@ -48,7 +48,7 @@ export class FinancingOfferResource extends StripeResource {
4848
): Promise<Response<FinancingOffer>> {
4949
return this._makeRequest(
5050
'POST',
51-
`/v1/capital/financing_offers/${id}/mark_delivered`,
51+
`/v1/capital/financing_offers/${encodeURIComponent(id)}/mark_delivered`,
5252
params,
5353
options
5454
) as any;

src/resources/Capital/FinancingTransactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export class FinancingTransactionResource extends StripeResource {
3333
): Promise<Response<FinancingTransaction>> {
3434
return this._makeRequest(
3535
'GET',
36-
`/v1/capital/financing_transactions/${id}`,
36+
`/v1/capital/financing_transactions/${encodeURIComponent(id)}`,
3737
params,
3838
options
3939
) as any;

src/resources/ExternalAccounts.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class ExternalAccountResource extends StripeResource {
1717
): Promise<Response<DeletedExternalAccount>> {
1818
return this._makeRequest(
1919
'DELETE',
20-
`/v1/external_accounts/${id}`,
20+
`/v1/external_accounts/${encodeURIComponent(id)}`,
2121
params,
2222
options
2323
) as any;
@@ -32,7 +32,7 @@ export class ExternalAccountResource extends StripeResource {
3232
): Promise<Response<ExternalAccount>> {
3333
return this._makeRequest(
3434
'GET',
35-
`/v1/external_accounts/${id}`,
35+
`/v1/external_accounts/${encodeURIComponent(id)}`,
3636
params,
3737
options
3838
) as any;
@@ -54,7 +54,7 @@ export class ExternalAccountResource extends StripeResource {
5454
): Promise<Response<ExternalAccount>> {
5555
return this._makeRequest(
5656
'POST',
57-
`/v1/external_accounts/${id}`,
57+
`/v1/external_accounts/${encodeURIComponent(id)}`,
5858
params,
5959
options
6060
) as any;

src/resources/FinancialConnections/Accounts.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ export class AccountResource extends StripeResource {
114114
): ApiListPromise<AccountInferredBalance> {
115115
return this._makeRequest(
116116
'GET',
117-
`/v1/financial_connections/accounts/${id}/inferred_balances`,
117+
`/v1/financial_connections/accounts/${encodeURIComponent(
118+
id
119+
)}/inferred_balances`,
118120
params,
119121
options,
120122
{

src/resources/FinancialConnections/Authorizations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class AuthorizationResource extends StripeResource {
1717
): Promise<Response<Authorization>> {
1818
return this._makeRequest(
1919
'GET',
20-
`/v1/financial_connections/authorizations/${id}`,
20+
`/v1/financial_connections/authorizations/${encodeURIComponent(id)}`,
2121
params,
2222
options
2323
) as any;

src/resources/FinancialConnections/Institutions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class InstitutionResource extends StripeResource {
3232
): Promise<Response<Institution>> {
3333
return this._makeRequest(
3434
'GET',
35-
`/v1/financial_connections/institutions/${id}`,
35+
`/v1/financial_connections/institutions/${encodeURIComponent(id)}`,
3636
params,
3737
options
3838
) as any;

src/resources/FxQuotes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class FxQuoteResource extends StripeResource {
3535
): Promise<Response<FxQuote>> {
3636
return this._makeRequest(
3737
'GET',
38-
`/v1/fx_quotes/${id}`,
38+
`/v1/fx_quotes/${encodeURIComponent(id)}`,
3939
params,
4040
options
4141
) as any;

src/resources/Invoices.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ export class InvoiceResource extends StripeResource {
451451
): Promise<Response<Invoice>> {
452452
return this._makeRequest(
453453
'POST',
454-
`/v1/invoices/${id}/detach_payment`,
454+
`/v1/invoices/${encodeURIComponent(id)}/detach_payment`,
455455
params,
456456
options,
457457
{

0 commit comments

Comments
 (0)