@wenex/sdk 1.1.44 → 1.1.45

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.
@@ -1,5 +1,6 @@
1
1
  import type { Document } from 'mongoose';
2
2
  import { Pay, PayDto } from '../common';
3
+ import { State } from '../../../core/enums';
3
4
  import { InvoiceType } from '../../../enums/financial';
4
5
  import { Core, Dto, NesteDto } from '../../../core/interfaces';
5
6
  import { InvoiceItem, InvoiceItemDto } from './item.interface';
@@ -12,13 +13,14 @@ export interface Invoice<Properties extends object = object> extends Core<Proper
12
13
  payers?: Pay<Properties>[];
13
14
  currency?: string;
14
15
  items?: InvoiceItem<Properties>[];
16
+ state: State;
15
17
  closed_at?: Date;
16
18
  expires_at?: Date;
17
19
  replication?: number;
18
20
  subscription?: string;
19
21
  }
20
22
  export type InvoiceDoc<Properties extends object = object> = Invoice<Properties> & Document;
21
- export type InvoiceDto<Properties extends object = object> = NesteDto<Dto<Invoice<Properties>, 'type'>, {
23
+ export type InvoiceDto<Properties extends object = object> = NesteDto<Dto<Invoice<Properties>, 'type' | 'state'>, {
22
24
  payees: PayDto[];
23
25
  payers?: PayDto[];
24
26
  items?: InvoiceItemDto[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wenex/sdk",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "Wenex SDK",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",