@openmeter/sdk 1.0.0-beta-d31257038c1a → 1.0.0-beta-c9b1c26c84dc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/src/client/billing.cjs +11 -3
- package/dist/cjs/src/client/billing.d.cts +14 -59
- package/dist/cjs/src/client/billing.js.map +1 -1
- package/dist/cjs/src/client/schemas.d.cts +110 -99
- package/dist/cjs/src/zod/index.cjs +877 -884
- package/dist/cjs/src/zod/index.d.cts +1237 -1965
- package/dist/cjs/src/zod/index.js.map +1 -1
- package/dist/cjs/{tsconfig.4cb1b89b.tsbuildinfo → tsconfig.417729cd.tsbuildinfo} +1 -1
- package/dist/cjs/{tsconfig.6a6f8ca4.tsbuildinfo → tsconfig.6a6e1f53.tsbuildinfo} +1 -1
- package/dist/src/client/billing.d.ts +14 -59
- package/dist/src/client/billing.js +11 -3
- package/dist/src/client/billing.js.map +1 -1
- package/dist/src/client/schemas.d.ts +110 -99
- package/dist/src/zod/index.d.ts +1237 -1965
- package/dist/src/zod/index.js +856 -862
- package/dist/src/zod/index.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -258,14 +258,22 @@ class BillingInvoices {
|
|
|
258
258
|
}
|
|
259
259
|
/**
|
|
260
260
|
* Create pending line items
|
|
261
|
-
* @description Create new pending line items (charges).
|
|
261
|
+
* @description Create new pending line items (charges).
|
|
262
|
+
* This call is used to create a new pending line item for the customer if required a new
|
|
263
|
+
* gathering invoice will be created.
|
|
264
|
+
*
|
|
265
|
+
* A new invoice will be created if:
|
|
266
|
+
* - there is no invoice in gathering state
|
|
267
|
+
* - the currency of the line item doesn't match the currency of any invoices in gathering state
|
|
268
|
+
* @param customerId - The ID of the customer to create the line items for
|
|
262
269
|
* @param body - The line items to create
|
|
263
270
|
* @param signal - An optional abort signal
|
|
264
271
|
* @returns The created line items
|
|
265
272
|
*/
|
|
266
|
-
async createLineItems(body, options) {
|
|
267
|
-
const resp = await this.client.POST('/api/v1/billing/invoices/lines', {
|
|
273
|
+
async createLineItems(customerId, body, options) {
|
|
274
|
+
const resp = await this.client.POST('/api/v1/billing/customers/{customerId}/invoices/pending-lines', {
|
|
268
275
|
body,
|
|
276
|
+
params: { path: { customerId } },
|
|
269
277
|
...options,
|
|
270
278
|
});
|
|
271
279
|
return (0, utils_js_1.transformResponse)(resp);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RequestOptions } from './common.cjs';
|
|
2
|
-
import type { BillingProfileCreate, BillingProfileCustomerOverrideCreate, BillingProfileReplaceUpdateWithWorkflow,
|
|
2
|
+
import type { BillingProfileCreate, BillingProfileCustomerOverrideCreate, BillingProfileReplaceUpdateWithWorkflow, InvoicePendingLineCreateInput, InvoiceReplaceUpdate, InvoiceSimulationInput, operations, paths, VoidInvoiceActionInput } from './schemas.cjs';
|
|
3
3
|
import type { Client } from 'openapi-fetch';
|
|
4
4
|
/**
|
|
5
5
|
* Billing
|
|
@@ -410,68 +410,23 @@ export declare class BillingInvoices {
|
|
|
410
410
|
}>;
|
|
411
411
|
/**
|
|
412
412
|
* Create pending line items
|
|
413
|
-
* @description Create new pending line items (charges).
|
|
413
|
+
* @description Create new pending line items (charges).
|
|
414
|
+
* This call is used to create a new pending line item for the customer if required a new
|
|
415
|
+
* gathering invoice will be created.
|
|
416
|
+
*
|
|
417
|
+
* A new invoice will be created if:
|
|
418
|
+
* - there is no invoice in gathering state
|
|
419
|
+
* - the currency of the line item doesn't match the currency of any invoices in gathering state
|
|
420
|
+
* @param customerId - The ID of the customer to create the line items for
|
|
414
421
|
* @param body - The line items to create
|
|
415
422
|
* @param signal - An optional abort signal
|
|
416
423
|
* @returns The created line items
|
|
417
424
|
*/
|
|
418
|
-
createLineItems(
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
readonly updatedAt: Date;
|
|
424
|
-
readonly deletedAt?: Date;
|
|
425
|
-
id: string;
|
|
426
|
-
readonly managedBy: import("./schemas.cjs").components["schemas"]["InvoiceLineManagedBy"];
|
|
427
|
-
readonly status: import("./schemas.cjs").components["schemas"]["InvoiceLineStatus"];
|
|
428
|
-
readonly discounts?: import("./schemas.cjs").components["schemas"]["InvoiceLineDiscounts"];
|
|
429
|
-
invoice?: import("./schemas.cjs").components["schemas"]["InvoiceReference"];
|
|
430
|
-
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
431
|
-
readonly taxes?: import("./schemas.cjs").components["schemas"]["InvoiceLineTaxItem"][];
|
|
432
|
-
taxConfig?: import("./schemas.cjs").components["schemas"]["TaxConfig"];
|
|
433
|
-
readonly children?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
434
|
-
readonly totals: import("./schemas.cjs").components["schemas"]["InvoiceTotals"];
|
|
435
|
-
period: import("./schemas.cjs").components["schemas"]["Period"];
|
|
436
|
-
invoiceAt: Date;
|
|
437
|
-
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceLineAppExternalIds"];
|
|
438
|
-
readonly subscription?: import("./schemas.cjs").components["schemas"]["InvoiceLineSubscriptionReference"];
|
|
439
|
-
type: "usage_based";
|
|
440
|
-
price?: import("./schemas.cjs").components["schemas"]["RateCardUsageBasedPrice"];
|
|
441
|
-
featureKey?: string;
|
|
442
|
-
rateCard?: import("./schemas.cjs").components["schemas"]["InvoiceUsageBasedRateCard"];
|
|
443
|
-
readonly quantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
444
|
-
readonly meteredQuantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
445
|
-
readonly preLinePeriodQuantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
446
|
-
readonly meteredPreLinePeriodQuantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
447
|
-
} | {
|
|
448
|
-
name: string;
|
|
449
|
-
description?: string;
|
|
450
|
-
metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
|
|
451
|
-
readonly createdAt: Date;
|
|
452
|
-
readonly updatedAt: Date;
|
|
453
|
-
readonly deletedAt?: Date;
|
|
454
|
-
id: string;
|
|
455
|
-
readonly managedBy: import("./schemas.cjs").components["schemas"]["InvoiceLineManagedBy"];
|
|
456
|
-
readonly status: import("./schemas.cjs").components["schemas"]["InvoiceLineStatus"];
|
|
457
|
-
readonly discounts?: import("./schemas.cjs").components["schemas"]["InvoiceLineDiscounts"];
|
|
458
|
-
invoice?: import("./schemas.cjs").components["schemas"]["InvoiceReference"];
|
|
459
|
-
currency: import("./schemas.cjs").components["schemas"]["CurrencyCode"];
|
|
460
|
-
readonly taxes?: import("./schemas.cjs").components["schemas"]["InvoiceLineTaxItem"][];
|
|
461
|
-
taxConfig?: import("./schemas.cjs").components["schemas"]["TaxConfig"];
|
|
462
|
-
readonly children?: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
463
|
-
readonly totals: import("./schemas.cjs").components["schemas"]["InvoiceTotals"];
|
|
464
|
-
period: import("./schemas.cjs").components["schemas"]["Period"];
|
|
465
|
-
invoiceAt: Date;
|
|
466
|
-
readonly externalIds?: import("./schemas.cjs").components["schemas"]["InvoiceLineAppExternalIds"];
|
|
467
|
-
readonly subscription?: import("./schemas.cjs").components["schemas"]["InvoiceLineSubscriptionReference"];
|
|
468
|
-
type: "flat_fee";
|
|
469
|
-
perUnitAmount?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
470
|
-
paymentTerm?: import("./schemas.cjs").components["schemas"]["PricePaymentTerm"];
|
|
471
|
-
quantity?: import("./schemas.cjs").components["schemas"]["Numeric"];
|
|
472
|
-
rateCard?: import("./schemas.cjs").components["schemas"]["InvoiceFlatFeeRateCard"];
|
|
473
|
-
category?: import("./schemas.cjs").components["schemas"]["InvoiceFlatFeeCategory"];
|
|
474
|
-
})[]>;
|
|
425
|
+
createLineItems(customerId: operations['createPendingInvoiceLine']['parameters']['path']['customerId'], body: InvoicePendingLineCreateInput, options?: RequestOptions): Promise<{
|
|
426
|
+
readonly lines: import("./schemas.cjs").components["schemas"]["InvoiceLine"][];
|
|
427
|
+
readonly invoice: import("./schemas.cjs").components["schemas"]["Invoice"];
|
|
428
|
+
readonly isInvoiceNew: boolean;
|
|
429
|
+
}>;
|
|
475
430
|
/**
|
|
476
431
|
* Invoice a customer based on the pending line items
|
|
477
432
|
* @description Create a new invoice from the pending line items. This should only be called if for some reason we need to invoice a customer outside of the normal billing cycle.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../../../src/client/billing.ts"],"names":[],"mappings":";;;AAAA,yCAA8C;AAc9C;;GAEG;AACH,MAAa,OAAO;IAKE;IAJb,QAAQ,CAAiB;IACzB,QAAQ,CAAiB;IACzB,SAAS,CAAkB;IAElC,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;QAC9D,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,QAAQ,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAChD,IAAI,CAAC,SAAS,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;IACpD,CAAC;CACF;AAVD,0BAUC;AAED;;GAEG;AACH,MAAa,eAAe;IACN;IAApB,YAAoB,MAA4C;QAA5C,WAAM,GAAN,MAAM,CAAsC;IAAG,CAAC;IAEpE;;;;;OAKG;IACI,KAAK,CAAC,MAAM,CACjB,cAAoC,EACpC,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,0BAA0B,EAAE;YAC9D,IAAI,EAAE,cAAc;YACpB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,GAAG,C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,CAAC,GAAG,CAChC,wCAAwC,EACxC;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;YACpC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,aAAa,CACxB,KAAgF,EAChF,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,2BAA2B,EAAE;YAC9D,MAAM,EAAE,EAAE,KAAK,EAAE;YACjB,GAAG,OAAO;SACX,CAAC,CAAA;QAEF,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,cAAc,CACzB,EAA0F,EAC1F,OAAwB;QAExB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,MAAM,CACnC,wCAAwC,EACxC;YACE,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE;YACpC,GAAG,OAAO;SACX,CACF,CAAA;QAED,OAAO,IAAA,4BAAiB,EAAC,IAAI,CAAC,CAAA;IAChC,CAAC;CACF;AAtFD,4CAsFC"}
|
|
@@ -281,6 +281,33 @@ export interface paths {
|
|
|
281
281
|
patch?: never;
|
|
282
282
|
trace?: never;
|
|
283
283
|
};
|
|
284
|
+
'/api/v1/billing/customers/{customerId}/invoices/pending-lines': {
|
|
285
|
+
parameters: {
|
|
286
|
+
query?: never;
|
|
287
|
+
header?: never;
|
|
288
|
+
path?: never;
|
|
289
|
+
cookie?: never;
|
|
290
|
+
};
|
|
291
|
+
get?: never;
|
|
292
|
+
put?: never;
|
|
293
|
+
/**
|
|
294
|
+
* Create pending line items
|
|
295
|
+
* @description Create a new pending line item (charge).
|
|
296
|
+
*
|
|
297
|
+
* This call is used to create a new pending line item for the customer if required a new
|
|
298
|
+
* gathering invoice will be created.
|
|
299
|
+
*
|
|
300
|
+
* A new invoice will be created if:
|
|
301
|
+
* - there is no invoice in gathering state
|
|
302
|
+
* - the currency of the line item doesn't match the currency of any invoices in gathering state
|
|
303
|
+
*/
|
|
304
|
+
post: operations['createPendingInvoiceLine'];
|
|
305
|
+
delete?: never;
|
|
306
|
+
options?: never;
|
|
307
|
+
head?: never;
|
|
308
|
+
patch?: never;
|
|
309
|
+
trace?: never;
|
|
310
|
+
};
|
|
284
311
|
'/api/v1/billing/customers/{customerId}/invoices/simulate': {
|
|
285
312
|
parameters: {
|
|
286
313
|
query?: never;
|
|
@@ -353,33 +380,6 @@ export interface paths {
|
|
|
353
380
|
patch?: never;
|
|
354
381
|
trace?: never;
|
|
355
382
|
};
|
|
356
|
-
'/api/v1/billing/invoices/lines': {
|
|
357
|
-
parameters: {
|
|
358
|
-
query?: never;
|
|
359
|
-
header?: never;
|
|
360
|
-
path?: never;
|
|
361
|
-
cookie?: never;
|
|
362
|
-
};
|
|
363
|
-
get?: never;
|
|
364
|
-
put?: never;
|
|
365
|
-
/**
|
|
366
|
-
* Create pending line items
|
|
367
|
-
* @description Create a new pending line item (charge).
|
|
368
|
-
*
|
|
369
|
-
* This call is used to create a new pending line item for the customer if required a new
|
|
370
|
-
* gathering invoice will be created.
|
|
371
|
-
*
|
|
372
|
-
* A new invoice will be created if:
|
|
373
|
-
* - there is no invoice in gathering state
|
|
374
|
-
* - the currency of the line item doesn't match the currency of any invoices in gathering state
|
|
375
|
-
*/
|
|
376
|
-
post: operations['createPendingInvoiceLine'];
|
|
377
|
-
delete?: never;
|
|
378
|
-
options?: never;
|
|
379
|
-
head?: never;
|
|
380
|
-
patch?: never;
|
|
381
|
-
trace?: never;
|
|
382
|
-
};
|
|
383
383
|
'/api/v1/billing/invoices/{invoiceId}': {
|
|
384
384
|
parameters: {
|
|
385
385
|
query?: never;
|
|
@@ -5423,8 +5423,6 @@ export interface components {
|
|
|
5423
5423
|
* @description Additional metadata for the resource.
|
|
5424
5424
|
*/
|
|
5425
5425
|
metadata?: components['schemas']['Metadata'] | null;
|
|
5426
|
-
/** @description The currency of this line. */
|
|
5427
|
-
currency: components['schemas']['CurrencyCode'];
|
|
5428
5426
|
/**
|
|
5429
5427
|
* @deprecated
|
|
5430
5428
|
* @description Tax config specify the tax configuration for this line.
|
|
@@ -5468,11 +5466,6 @@ export interface components {
|
|
|
5468
5466
|
* @default regular
|
|
5469
5467
|
*/
|
|
5470
5468
|
category?: components['schemas']['InvoiceFlatFeeCategory'];
|
|
5471
|
-
/**
|
|
5472
|
-
* @description The customer this line item belongs to.
|
|
5473
|
-
* @example 01G65Z755AFWAKHE12NY0CQ9FH
|
|
5474
|
-
*/
|
|
5475
|
-
customerId: string;
|
|
5476
5469
|
};
|
|
5477
5470
|
/** @description InvoiceFlatFeeRateCard represents the rate card (intent) for a flat fee line. */
|
|
5478
5471
|
InvoiceFlatFeeRateCard: {
|
|
@@ -5708,6 +5701,22 @@ export interface components {
|
|
|
5708
5701
|
};
|
|
5709
5702
|
/** @description InvoiceLineCreate represents the create model for an invoice line. */
|
|
5710
5703
|
InvoicePendingLineCreate: components['schemas']['InvoiceUsageBasedPendingLineCreate'] | components['schemas']['InvoiceFlatFeePendingLineCreate'];
|
|
5704
|
+
/** @description InvoicePendingLineCreate represents the create model for a pending invoice line. */
|
|
5705
|
+
InvoicePendingLineCreateInput: {
|
|
5706
|
+
/** @description The currency of the lines to be created. */
|
|
5707
|
+
currency: components['schemas']['CurrencyCode'];
|
|
5708
|
+
/** @description The lines to be created. */
|
|
5709
|
+
lines: components['schemas']['InvoicePendingLineCreate'][];
|
|
5710
|
+
};
|
|
5711
|
+
/** @description InvoicePendingLineCreateResponse represents the response from the create pending line endpoint. */
|
|
5712
|
+
InvoicePendingLineCreateResponse: {
|
|
5713
|
+
/** @description The lines that were created. */
|
|
5714
|
+
readonly lines: components['schemas']['InvoiceLine'][];
|
|
5715
|
+
/** @description The invoice containing the created lines. */
|
|
5716
|
+
readonly invoice: components['schemas']['Invoice'];
|
|
5717
|
+
/** @description Whether the invoice was newly created. */
|
|
5718
|
+
readonly isInvoiceNew: boolean;
|
|
5719
|
+
};
|
|
5711
5720
|
/** @description InvoicePendingLinesActionFiltersInput specifies which lines to include in the invoice. */
|
|
5712
5721
|
InvoicePendingLinesActionFiltersInput: {
|
|
5713
5722
|
/** @description The pending line items to include in the invoice, if not provided:
|
|
@@ -5738,6 +5747,11 @@ export interface components {
|
|
|
5738
5747
|
* @example 01G65Z755AFWAKHE12NY0CQ9FH
|
|
5739
5748
|
*/
|
|
5740
5749
|
customerId: string;
|
|
5750
|
+
/** @description Override the progressive billing setting of the customer.
|
|
5751
|
+
*
|
|
5752
|
+
* Can be used to disable/enable progressive billing in case the business logic
|
|
5753
|
+
* requires it, if not provided the billing profile's progressive billing setting will be used. */
|
|
5754
|
+
progressiveBillingOverride?: boolean;
|
|
5741
5755
|
};
|
|
5742
5756
|
/** @description Reference to an invoice. */
|
|
5743
5757
|
InvoiceReference: {
|
|
@@ -6163,8 +6177,6 @@ export interface components {
|
|
|
6163
6177
|
* @description Additional metadata for the resource.
|
|
6164
6178
|
*/
|
|
6165
6179
|
metadata?: components['schemas']['Metadata'] | null;
|
|
6166
|
-
/** @description The currency of this line. */
|
|
6167
|
-
currency: components['schemas']['CurrencyCode'];
|
|
6168
6180
|
/**
|
|
6169
6181
|
* @deprecated
|
|
6170
6182
|
* @description Tax config specify the tax configuration for this line.
|
|
@@ -6199,11 +6211,6 @@ export interface components {
|
|
|
6199
6211
|
*
|
|
6200
6212
|
* The rate card captures the intent of the price and discounts for the usage-based item. */
|
|
6201
6213
|
rateCard?: components['schemas']['InvoiceUsageBasedRateCard'];
|
|
6202
|
-
/**
|
|
6203
|
-
* @description The customer this line item belongs to.
|
|
6204
|
-
* @example 01G65Z755AFWAKHE12NY0CQ9FH
|
|
6205
|
-
*/
|
|
6206
|
-
customerId: string;
|
|
6207
6214
|
};
|
|
6208
6215
|
/** @description InvoiceUsageBasedRateCard represents the rate card (intent) for an usage-based line. */
|
|
6209
6216
|
InvoiceUsageBasedRateCard: {
|
|
@@ -10321,6 +10328,8 @@ export type InvoiceOrderBy = components['schemas']['InvoiceOrderBy'];
|
|
|
10321
10328
|
export type InvoicePaginatedResponse = components['schemas']['InvoicePaginatedResponse'];
|
|
10322
10329
|
export type InvoicePaymentTerms = components['schemas']['InvoicePaymentTerms'];
|
|
10323
10330
|
export type InvoicePendingLineCreate = components['schemas']['InvoicePendingLineCreate'];
|
|
10331
|
+
export type InvoicePendingLineCreateInput = components['schemas']['InvoicePendingLineCreateInput'];
|
|
10332
|
+
export type InvoicePendingLineCreateResponse = components['schemas']['InvoicePendingLineCreateResponse'];
|
|
10324
10333
|
export type InvoicePendingLinesActionFiltersInput = components['schemas']['InvoicePendingLinesActionFiltersInput'];
|
|
10325
10334
|
export type InvoicePendingLinesActionInput = components['schemas']['InvoicePendingLinesActionInput'];
|
|
10326
10335
|
export type InvoiceReference = components['schemas']['InvoiceReference'];
|
|
@@ -12480,7 +12489,7 @@ export interface operations {
|
|
|
12480
12489
|
};
|
|
12481
12490
|
};
|
|
12482
12491
|
};
|
|
12483
|
-
|
|
12492
|
+
createPendingInvoiceLine: {
|
|
12484
12493
|
parameters: {
|
|
12485
12494
|
query?: never;
|
|
12486
12495
|
header?: never;
|
|
@@ -12491,17 +12500,17 @@ export interface operations {
|
|
|
12491
12500
|
};
|
|
12492
12501
|
requestBody: {
|
|
12493
12502
|
content: {
|
|
12494
|
-
'application/json': components['schemas']['
|
|
12503
|
+
'application/json': components['schemas']['InvoicePendingLineCreateInput'];
|
|
12495
12504
|
};
|
|
12496
12505
|
};
|
|
12497
12506
|
responses: {
|
|
12498
|
-
/** @description The request has succeeded. */
|
|
12499
|
-
|
|
12507
|
+
/** @description The request has succeeded and a new resource has been created as a result. */
|
|
12508
|
+
201: {
|
|
12500
12509
|
headers: {
|
|
12501
12510
|
[name: string]: unknown;
|
|
12502
12511
|
};
|
|
12503
12512
|
content: {
|
|
12504
|
-
'application/json': components['schemas']['
|
|
12513
|
+
'application/json': components['schemas']['InvoicePendingLineCreateResponse'];
|
|
12505
12514
|
};
|
|
12506
12515
|
};
|
|
12507
12516
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12569,49 +12578,20 @@ export interface operations {
|
|
|
12569
12578
|
};
|
|
12570
12579
|
};
|
|
12571
12580
|
};
|
|
12572
|
-
|
|
12581
|
+
simulateInvoice: {
|
|
12573
12582
|
parameters: {
|
|
12574
|
-
query?:
|
|
12575
|
-
/** @description Filter by the invoice status. */
|
|
12576
|
-
statuses?: components['parameters']['InvoiceListParams.statuses'];
|
|
12577
|
-
/** @description Filter by invoice extended statuses */
|
|
12578
|
-
extendedStatuses?: components['parameters']['InvoiceListParams.extendedStatuses'];
|
|
12579
|
-
/** @description Filter by invoice issued time.
|
|
12580
|
-
* Inclusive. */
|
|
12581
|
-
issuedAfter?: components['parameters']['InvoiceListParams.issuedAfter'];
|
|
12582
|
-
/** @description Filter by invoice issued time.
|
|
12583
|
-
* Inclusive. */
|
|
12584
|
-
issuedBefore?: components['parameters']['InvoiceListParams.issuedBefore'];
|
|
12585
|
-
/** @description Filter by invoice created time.
|
|
12586
|
-
* Inclusive. */
|
|
12587
|
-
createdAfter?: components['parameters']['InvoiceListParams.createdAfter'];
|
|
12588
|
-
/** @description Filter by invoice created time.
|
|
12589
|
-
* Inclusive. */
|
|
12590
|
-
createdBefore?: components['parameters']['InvoiceListParams.createdBefore'];
|
|
12591
|
-
/** @description What parts of the list output to expand in listings */
|
|
12592
|
-
expand?: components['parameters']['InvoiceListParams.expand'];
|
|
12593
|
-
/** @description Filter by customer ID */
|
|
12594
|
-
customers?: components['parameters']['InvoiceListParams.customers'];
|
|
12595
|
-
/** @description Include deleted invoices */
|
|
12596
|
-
includeDeleted?: components['parameters']['InvoiceListParams.includeDeleted'];
|
|
12597
|
-
/** @description Page index.
|
|
12598
|
-
*
|
|
12599
|
-
* Default is 1. */
|
|
12600
|
-
page?: components['parameters']['Pagination.page'];
|
|
12601
|
-
/** @description The maximum number of items per page.
|
|
12602
|
-
*
|
|
12603
|
-
* Default is 100. */
|
|
12604
|
-
pageSize?: components['parameters']['Pagination.pageSize'];
|
|
12605
|
-
/** @description The order direction. */
|
|
12606
|
-
order?: components['parameters']['InvoiceOrderByOrdering.order'];
|
|
12607
|
-
/** @description The order by field. */
|
|
12608
|
-
orderBy?: components['parameters']['InvoiceOrderByOrdering.orderBy'];
|
|
12609
|
-
};
|
|
12583
|
+
query?: never;
|
|
12610
12584
|
header?: never;
|
|
12611
|
-
path
|
|
12585
|
+
path: {
|
|
12586
|
+
customerId: string;
|
|
12587
|
+
};
|
|
12612
12588
|
cookie?: never;
|
|
12613
12589
|
};
|
|
12614
|
-
requestBody
|
|
12590
|
+
requestBody: {
|
|
12591
|
+
content: {
|
|
12592
|
+
'application/json': components['schemas']['InvoiceSimulationInput'];
|
|
12593
|
+
};
|
|
12594
|
+
};
|
|
12615
12595
|
responses: {
|
|
12616
12596
|
/** @description The request has succeeded. */
|
|
12617
12597
|
200: {
|
|
@@ -12619,7 +12599,7 @@ export interface operations {
|
|
|
12619
12599
|
[name: string]: unknown;
|
|
12620
12600
|
};
|
|
12621
12601
|
content: {
|
|
12622
|
-
'application/json': components['schemas']['
|
|
12602
|
+
'application/json': components['schemas']['Invoice'];
|
|
12623
12603
|
};
|
|
12624
12604
|
};
|
|
12625
12605
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12687,26 +12667,57 @@ export interface operations {
|
|
|
12687
12667
|
};
|
|
12688
12668
|
};
|
|
12689
12669
|
};
|
|
12690
|
-
|
|
12670
|
+
listInvoices: {
|
|
12691
12671
|
parameters: {
|
|
12692
|
-
query?:
|
|
12672
|
+
query?: {
|
|
12673
|
+
/** @description Filter by the invoice status. */
|
|
12674
|
+
statuses?: components['parameters']['InvoiceListParams.statuses'];
|
|
12675
|
+
/** @description Filter by invoice extended statuses */
|
|
12676
|
+
extendedStatuses?: components['parameters']['InvoiceListParams.extendedStatuses'];
|
|
12677
|
+
/** @description Filter by invoice issued time.
|
|
12678
|
+
* Inclusive. */
|
|
12679
|
+
issuedAfter?: components['parameters']['InvoiceListParams.issuedAfter'];
|
|
12680
|
+
/** @description Filter by invoice issued time.
|
|
12681
|
+
* Inclusive. */
|
|
12682
|
+
issuedBefore?: components['parameters']['InvoiceListParams.issuedBefore'];
|
|
12683
|
+
/** @description Filter by invoice created time.
|
|
12684
|
+
* Inclusive. */
|
|
12685
|
+
createdAfter?: components['parameters']['InvoiceListParams.createdAfter'];
|
|
12686
|
+
/** @description Filter by invoice created time.
|
|
12687
|
+
* Inclusive. */
|
|
12688
|
+
createdBefore?: components['parameters']['InvoiceListParams.createdBefore'];
|
|
12689
|
+
/** @description What parts of the list output to expand in listings */
|
|
12690
|
+
expand?: components['parameters']['InvoiceListParams.expand'];
|
|
12691
|
+
/** @description Filter by customer ID */
|
|
12692
|
+
customers?: components['parameters']['InvoiceListParams.customers'];
|
|
12693
|
+
/** @description Include deleted invoices */
|
|
12694
|
+
includeDeleted?: components['parameters']['InvoiceListParams.includeDeleted'];
|
|
12695
|
+
/** @description Page index.
|
|
12696
|
+
*
|
|
12697
|
+
* Default is 1. */
|
|
12698
|
+
page?: components['parameters']['Pagination.page'];
|
|
12699
|
+
/** @description The maximum number of items per page.
|
|
12700
|
+
*
|
|
12701
|
+
* Default is 100. */
|
|
12702
|
+
pageSize?: components['parameters']['Pagination.pageSize'];
|
|
12703
|
+
/** @description The order direction. */
|
|
12704
|
+
order?: components['parameters']['InvoiceOrderByOrdering.order'];
|
|
12705
|
+
/** @description The order by field. */
|
|
12706
|
+
orderBy?: components['parameters']['InvoiceOrderByOrdering.orderBy'];
|
|
12707
|
+
};
|
|
12693
12708
|
header?: never;
|
|
12694
12709
|
path?: never;
|
|
12695
12710
|
cookie?: never;
|
|
12696
12711
|
};
|
|
12697
|
-
requestBody
|
|
12698
|
-
content: {
|
|
12699
|
-
'application/json': components['schemas']['InvoicePendingLinesActionInput'];
|
|
12700
|
-
};
|
|
12701
|
-
};
|
|
12712
|
+
requestBody?: never;
|
|
12702
12713
|
responses: {
|
|
12703
|
-
/** @description The request has succeeded
|
|
12704
|
-
|
|
12714
|
+
/** @description The request has succeeded. */
|
|
12715
|
+
200: {
|
|
12705
12716
|
headers: {
|
|
12706
12717
|
[name: string]: unknown;
|
|
12707
12718
|
};
|
|
12708
12719
|
content: {
|
|
12709
|
-
'application/json': components['schemas']['
|
|
12720
|
+
'application/json': components['schemas']['InvoicePaginatedResponse'];
|
|
12710
12721
|
};
|
|
12711
12722
|
};
|
|
12712
12723
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|
|
@@ -12774,7 +12785,7 @@ export interface operations {
|
|
|
12774
12785
|
};
|
|
12775
12786
|
};
|
|
12776
12787
|
};
|
|
12777
|
-
|
|
12788
|
+
invoicePendingLinesAction: {
|
|
12778
12789
|
parameters: {
|
|
12779
12790
|
query?: never;
|
|
12780
12791
|
header?: never;
|
|
@@ -12783,7 +12794,7 @@ export interface operations {
|
|
|
12783
12794
|
};
|
|
12784
12795
|
requestBody: {
|
|
12785
12796
|
content: {
|
|
12786
|
-
'application/json': components['schemas']['
|
|
12797
|
+
'application/json': components['schemas']['InvoicePendingLinesActionInput'];
|
|
12787
12798
|
};
|
|
12788
12799
|
};
|
|
12789
12800
|
responses: {
|
|
@@ -12793,7 +12804,7 @@ export interface operations {
|
|
|
12793
12804
|
[name: string]: unknown;
|
|
12794
12805
|
};
|
|
12795
12806
|
content: {
|
|
12796
|
-
'application/json': components['schemas']['
|
|
12807
|
+
'application/json': components['schemas']['Invoice'][];
|
|
12797
12808
|
};
|
|
12798
12809
|
};
|
|
12799
12810
|
/** @description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing). */
|