@openmeter/sdk 1.0.0-beta-e49464db8b22 → 1.0.0-beta-5e4e38ebc196

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.
@@ -258,14 +258,22 @@ class BillingInvoices {
258
258
  }
259
259
  /**
260
260
  * Create pending line items
261
- * @description Create new pending line items (charges). If required, a new gathering invoice will be created.
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, InvoicePendingLineCreate, InvoiceReplaceUpdate, InvoiceSimulationInput, operations, paths, VoidInvoiceActionInput } from './schemas.cjs';
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). If required, a new gathering invoice will be created.
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(body: InvoicePendingLineCreate[], options?: RequestOptions): Promise<({
419
- name: string;
420
- description?: string;
421
- metadata?: import("./schemas.cjs").components["schemas"]["Metadata"] | null;
422
- readonly createdAt: Date;
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,CACd,EAA+D,EAC/D,OAAwB;QAExB,MAAM,IAAI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ACnC,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:
@@ -6163,8 +6172,6 @@ export interface components {
6163
6172
  * @description Additional metadata for the resource.
6164
6173
  */
6165
6174
  metadata?: components['schemas']['Metadata'] | null;
6166
- /** @description The currency of this line. */
6167
- currency: components['schemas']['CurrencyCode'];
6168
6175
  /**
6169
6176
  * @deprecated
6170
6177
  * @description Tax config specify the tax configuration for this line.
@@ -6199,11 +6206,6 @@ export interface components {
6199
6206
  *
6200
6207
  * The rate card captures the intent of the price and discounts for the usage-based item. */
6201
6208
  rateCard?: components['schemas']['InvoiceUsageBasedRateCard'];
6202
- /**
6203
- * @description The customer this line item belongs to.
6204
- * @example 01G65Z755AFWAKHE12NY0CQ9FH
6205
- */
6206
- customerId: string;
6207
6209
  };
6208
6210
  /** @description InvoiceUsageBasedRateCard represents the rate card (intent) for an usage-based line. */
6209
6211
  InvoiceUsageBasedRateCard: {
@@ -10321,6 +10323,8 @@ export type InvoiceOrderBy = components['schemas']['InvoiceOrderBy'];
10321
10323
  export type InvoicePaginatedResponse = components['schemas']['InvoicePaginatedResponse'];
10322
10324
  export type InvoicePaymentTerms = components['schemas']['InvoicePaymentTerms'];
10323
10325
  export type InvoicePendingLineCreate = components['schemas']['InvoicePendingLineCreate'];
10326
+ export type InvoicePendingLineCreateInput = components['schemas']['InvoicePendingLineCreateInput'];
10327
+ export type InvoicePendingLineCreateResponse = components['schemas']['InvoicePendingLineCreateResponse'];
10324
10328
  export type InvoicePendingLinesActionFiltersInput = components['schemas']['InvoicePendingLinesActionFiltersInput'];
10325
10329
  export type InvoicePendingLinesActionInput = components['schemas']['InvoicePendingLinesActionInput'];
10326
10330
  export type InvoiceReference = components['schemas']['InvoiceReference'];
@@ -12480,7 +12484,7 @@ export interface operations {
12480
12484
  };
12481
12485
  };
12482
12486
  };
12483
- simulateInvoice: {
12487
+ createPendingInvoiceLine: {
12484
12488
  parameters: {
12485
12489
  query?: never;
12486
12490
  header?: never;
@@ -12491,17 +12495,17 @@ export interface operations {
12491
12495
  };
12492
12496
  requestBody: {
12493
12497
  content: {
12494
- 'application/json': components['schemas']['InvoiceSimulationInput'];
12498
+ 'application/json': components['schemas']['InvoicePendingLineCreateInput'];
12495
12499
  };
12496
12500
  };
12497
12501
  responses: {
12498
- /** @description The request has succeeded. */
12499
- 200: {
12502
+ /** @description The request has succeeded and a new resource has been created as a result. */
12503
+ 201: {
12500
12504
  headers: {
12501
12505
  [name: string]: unknown;
12502
12506
  };
12503
12507
  content: {
12504
- 'application/json': components['schemas']['Invoice'];
12508
+ 'application/json': components['schemas']['InvoicePendingLineCreateResponse'];
12505
12509
  };
12506
12510
  };
12507
12511
  /** @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 +12573,20 @@ export interface operations {
12569
12573
  };
12570
12574
  };
12571
12575
  };
12572
- listInvoices: {
12576
+ simulateInvoice: {
12573
12577
  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
- };
12578
+ query?: never;
12610
12579
  header?: never;
12611
- path?: never;
12580
+ path: {
12581
+ customerId: string;
12582
+ };
12612
12583
  cookie?: never;
12613
12584
  };
12614
- requestBody?: never;
12585
+ requestBody: {
12586
+ content: {
12587
+ 'application/json': components['schemas']['InvoiceSimulationInput'];
12588
+ };
12589
+ };
12615
12590
  responses: {
12616
12591
  /** @description The request has succeeded. */
12617
12592
  200: {
@@ -12619,7 +12594,7 @@ export interface operations {
12619
12594
  [name: string]: unknown;
12620
12595
  };
12621
12596
  content: {
12622
- 'application/json': components['schemas']['InvoicePaginatedResponse'];
12597
+ 'application/json': components['schemas']['Invoice'];
12623
12598
  };
12624
12599
  };
12625
12600
  /** @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 +12662,57 @@ export interface operations {
12687
12662
  };
12688
12663
  };
12689
12664
  };
12690
- invoicePendingLinesAction: {
12665
+ listInvoices: {
12691
12666
  parameters: {
12692
- query?: never;
12667
+ query?: {
12668
+ /** @description Filter by the invoice status. */
12669
+ statuses?: components['parameters']['InvoiceListParams.statuses'];
12670
+ /** @description Filter by invoice extended statuses */
12671
+ extendedStatuses?: components['parameters']['InvoiceListParams.extendedStatuses'];
12672
+ /** @description Filter by invoice issued time.
12673
+ * Inclusive. */
12674
+ issuedAfter?: components['parameters']['InvoiceListParams.issuedAfter'];
12675
+ /** @description Filter by invoice issued time.
12676
+ * Inclusive. */
12677
+ issuedBefore?: components['parameters']['InvoiceListParams.issuedBefore'];
12678
+ /** @description Filter by invoice created time.
12679
+ * Inclusive. */
12680
+ createdAfter?: components['parameters']['InvoiceListParams.createdAfter'];
12681
+ /** @description Filter by invoice created time.
12682
+ * Inclusive. */
12683
+ createdBefore?: components['parameters']['InvoiceListParams.createdBefore'];
12684
+ /** @description What parts of the list output to expand in listings */
12685
+ expand?: components['parameters']['InvoiceListParams.expand'];
12686
+ /** @description Filter by customer ID */
12687
+ customers?: components['parameters']['InvoiceListParams.customers'];
12688
+ /** @description Include deleted invoices */
12689
+ includeDeleted?: components['parameters']['InvoiceListParams.includeDeleted'];
12690
+ /** @description Page index.
12691
+ *
12692
+ * Default is 1. */
12693
+ page?: components['parameters']['Pagination.page'];
12694
+ /** @description The maximum number of items per page.
12695
+ *
12696
+ * Default is 100. */
12697
+ pageSize?: components['parameters']['Pagination.pageSize'];
12698
+ /** @description The order direction. */
12699
+ order?: components['parameters']['InvoiceOrderByOrdering.order'];
12700
+ /** @description The order by field. */
12701
+ orderBy?: components['parameters']['InvoiceOrderByOrdering.orderBy'];
12702
+ };
12693
12703
  header?: never;
12694
12704
  path?: never;
12695
12705
  cookie?: never;
12696
12706
  };
12697
- requestBody: {
12698
- content: {
12699
- 'application/json': components['schemas']['InvoicePendingLinesActionInput'];
12700
- };
12701
- };
12707
+ requestBody?: never;
12702
12708
  responses: {
12703
- /** @description The request has succeeded and a new resource has been created as a result. */
12704
- 201: {
12709
+ /** @description The request has succeeded. */
12710
+ 200: {
12705
12711
  headers: {
12706
12712
  [name: string]: unknown;
12707
12713
  };
12708
12714
  content: {
12709
- 'application/json': components['schemas']['Invoice'][];
12715
+ 'application/json': components['schemas']['InvoicePaginatedResponse'];
12710
12716
  };
12711
12717
  };
12712
12718
  /** @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 +12780,7 @@ export interface operations {
12774
12780
  };
12775
12781
  };
12776
12782
  };
12777
- createPendingInvoiceLine: {
12783
+ invoicePendingLinesAction: {
12778
12784
  parameters: {
12779
12785
  query?: never;
12780
12786
  header?: never;
@@ -12783,7 +12789,7 @@ export interface operations {
12783
12789
  };
12784
12790
  requestBody: {
12785
12791
  content: {
12786
- 'application/json': components['schemas']['InvoicePendingLineCreate'][];
12792
+ 'application/json': components['schemas']['InvoicePendingLinesActionInput'];
12787
12793
  };
12788
12794
  };
12789
12795
  responses: {
@@ -12793,7 +12799,7 @@ export interface operations {
12793
12799
  [name: string]: unknown;
12794
12800
  };
12795
12801
  content: {
12796
- 'application/json': components['schemas']['InvoiceLine'][];
12802
+ 'application/json': components['schemas']['Invoice'][];
12797
12803
  };
12798
12804
  };
12799
12805
  /** @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). */