Skip to content

Commit

Permalink
Update generated code for v1328
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Nov 4, 2024
1 parent bc230c4 commit 931c0e3
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 82 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1319
v1328
19 changes: 18 additions & 1 deletion src/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,19 @@ import {Customers as TestHelpersCustomers} from './resources/TestHelpers/Custome
import {DebitReversals as TreasuryDebitReversals} from './resources/Treasury/DebitReversals.js';
import {Disputes as IssuingDisputes} from './resources/Issuing/Disputes.js';
import {EarlyFraudWarnings as RadarEarlyFraudWarnings} from './resources/Radar/EarlyFraudWarnings.js';
import {EventDestinations as V2CoreEventDestinations} from './resources/V2/Core/EventDestinations.js';
import {Events as V2CoreEvents} from './resources/V2/Core/Events.js';
import {Features as EntitlementsFeatures} from './resources/Entitlements/Features.js';
import {FinancialAccounts as TreasuryFinancialAccounts} from './resources/Treasury/FinancialAccounts.js';
import {InboundTransfers as TestHelpersTreasuryInboundTransfers} from './resources/TestHelpers/Treasury/InboundTransfers.js';
import {InboundTransfers as TreasuryInboundTransfers} from './resources/Treasury/InboundTransfers.js';
import {Locations as TerminalLocations} from './resources/Terminal/Locations.js';
import {MeterEventAdjustments as BillingMeterEventAdjustments} from './resources/Billing/MeterEventAdjustments.js';
import {MeterEventAdjustments as V2BillingMeterEventAdjustments} from './resources/V2/Billing/MeterEventAdjustments.js';
import {MeterEventSession as V2BillingMeterEventSession} from './resources/V2/Billing/MeterEventSession.js';
import {MeterEventStream as V2BillingMeterEventStream} from './resources/V2/Billing/MeterEventStream.js';
import {MeterEvents as BillingMeterEvents} from './resources/Billing/MeterEvents.js';
import {MeterEvents as V2BillingMeterEvents} from './resources/V2/Billing/MeterEvents.js';
import {Meters as BillingMeters} from './resources/Billing/Meters.js';
import {Orders as ClimateOrders} from './resources/Climate/Orders.js';
import {OutboundPayments as TestHelpersTreasuryOutboundPayments} from './resources/TestHelpers/Treasury/OutboundPayments.js';
Expand Down Expand Up @@ -121,7 +127,6 @@ export {TaxRates} from './resources/TaxRates.js';
export {Tokens} from './resources/Tokens.js';
export {Topups} from './resources/Topups.js';
export {Transfers} from './resources/Transfers.js';
export {V2} from './resources/V2.js';
export {WebhookEndpoints} from './resources/WebhookEndpoints.js';
export const Apps = resourceNamespace('apps', {Secrets: AppsSecrets});
export const Billing = resourceNamespace('billing', {
Expand Down Expand Up @@ -229,3 +234,15 @@ export const Treasury = resourceNamespace('treasury', {
TransactionEntries: TreasuryTransactionEntries,
Transactions: TreasuryTransactions,
});
export const V2 = resourceNamespace('v2', {
Billing: resourceNamespace('billing', {
MeterEventAdjustments: V2BillingMeterEventAdjustments,
MeterEventSession: V2BillingMeterEventSession,
MeterEventStream: V2BillingMeterEventStream,
MeterEvents: V2BillingMeterEvents,
}),
Core: resourceNamespace('core', {
EventDestinations: V2CoreEventDestinations,
Events: V2CoreEvents,
}),
});
12 changes: 0 additions & 12 deletions src/resources/V2.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/resources/V2/Billing.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/resources/V2/Core.ts

This file was deleted.

14 changes: 0 additions & 14 deletions types/V2/BillingResource.d.ts

This file was deleted.

12 changes: 0 additions & 12 deletions types/V2/CoreResource.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions types/V2Resource.d.ts

This file was deleted.

16 changes: 12 additions & 4 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,8 @@
///<reference path='./V2/Billing/MeterEventSessionResource.d.ts' />
///<reference path='./V2/Billing/MeterEventStreamResource.d.ts' />
///<reference path='./V2/Billing/MeterEventsResource.d.ts' />
///<reference path='./V2/BillingResource.d.ts' />
///<reference path='./V2/Core/EventDestinationsResource.d.ts' />
///<reference path='./V2/Core/EventsResource.d.ts' />
///<reference path='./V2/CoreResource.d.ts' />
///<reference path='./V2Resource.d.ts' />
///<reference path='./WebhookEndpointsResource.d.ts' />
///<reference path='./AccountLinks.d.ts' />
///<reference path='./AccountSessions.d.ts' />
Expand Down Expand Up @@ -355,7 +352,6 @@ declare module 'stripe' {
tokens: Stripe.TokensResource;
topups: Stripe.TopupsResource;
transfers: Stripe.TransfersResource;
v2: Stripe.V2Resource;
webhookEndpoints: Stripe.WebhookEndpointsResource;
apps: {
secrets: Stripe.Apps.SecretsResource;
Expand Down Expand Up @@ -465,6 +461,18 @@ declare module 'stripe' {
transactions: Stripe.Treasury.TransactionsResource;
transactionEntries: Stripe.Treasury.TransactionEntriesResource;
};
v2: {
billing: {
meterEventSession: Stripe.V2.Billing.MeterEventSessionResource;
meterEventAdjustments: Stripe.V2.Billing.MeterEventAdjustmentsResource;
meterEventStream: Stripe.V2.Billing.MeterEventStreamResource;
meterEvents: Stripe.V2.Billing.MeterEventsResource;
};
core: {
eventDestinations: Stripe.V2.Core.EventDestinationsResource;
events: Stripe.V2.Core.EventsResource;
};
};
// Fields: The end of the section generated from our OpenAPI spec
webhooks: Stripe.Webhooks;
oauth: Stripe.OAuthResource;
Expand Down

0 comments on commit 931c0e3

Please sign in to comment.