@openbox/shared-types 0.2.62 → 0.2.63

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.
Files changed (95) hide show
  1. package/lib/invoices/DocumentTypes/GetSingle/Response.d.ts +2 -2
  2. package/lib/invoices/DocumentTypes/{invoices.document-types.interface.d.ts → invoices.document-types.type.d.ts} +0 -2
  3. package/lib/invoices/{Statuses/invoices.statuses.interfaces.js → DocumentTypes/invoices.document-types.type.js} +1 -1
  4. package/lib/invoices/DocumentTypes/invoices.document-types.type.js.map +1 -0
  5. package/lib/invoices/Documents/CreateSingle/Request.d.ts +4 -2
  6. package/lib/invoices/Documents/GetMany/Response.d.ts +2 -2
  7. package/lib/invoices/Documents/GetSingle/Response.d.ts +2 -2
  8. package/lib/invoices/Documents/UpdateSingle/Request.d.ts +2 -2
  9. package/lib/invoices/Documents/invoices.documents.type.d.ts +12 -0
  10. package/lib/invoices/{Zones/invoices.zones.interfaces.js → Documents/invoices.documents.type.js} +1 -1
  11. package/lib/invoices/Documents/invoices.documents.type.js.map +1 -0
  12. package/lib/invoices/Invoices/GetDocumentTypes/Response.d.ts +1 -1
  13. package/lib/invoices/Invoices/GetMany/Response.d.ts +2 -2
  14. package/lib/invoices/Invoices/GetSingle/Response.d.ts +1 -1
  15. package/lib/invoices/Invoices/invoices.types.d.ts +51 -0
  16. package/lib/invoices/Invoices/{invoices.interfaces.js → invoices.types.js} +1 -1
  17. package/lib/invoices/Invoices/invoices.types.js.map +1 -0
  18. package/lib/invoices/PaymentConditions/CreateSingle/Request.d.ts +2 -2
  19. package/lib/invoices/PaymentConditions/GetMany/Response.d.ts +2 -2
  20. package/lib/invoices/PaymentConditions/GetSingle/Response.d.ts +2 -2
  21. package/lib/invoices/PaymentConditions/UpdateSingle/Request.d.ts +2 -2
  22. package/lib/invoices/PaymentConditions/invoices.payment-conditions.type.d.ts +6 -0
  23. package/lib/invoices/{Documents/invoices.documents.interfaces.js → PaymentConditions/invoices.payment-conditions.type.js} +1 -1
  24. package/lib/invoices/PaymentConditions/invoices.payment-conditions.type.js.map +1 -0
  25. package/lib/invoices/Sellers/CreateSingle/Request.d.ts +4 -2
  26. package/lib/invoices/Sellers/GetMany/Response.d.ts +2 -2
  27. package/lib/invoices/Sellers/GetSingle/Response.d.ts +2 -2
  28. package/lib/invoices/Sellers/UpdateSingle/Request.d.ts +2 -2
  29. package/lib/invoices/Sellers/invoices.sellers.type.d.ts +7 -0
  30. package/lib/invoices/Sellers/{invoices.sellers.interface.js → invoices.sellers.type.js} +1 -1
  31. package/lib/invoices/Sellers/invoices.sellers.type.js.map +1 -0
  32. package/lib/invoices/Statuses/GetMany/Response.d.ts +2 -2
  33. package/lib/invoices/Statuses/GetSingle/Response.d.ts +2 -2
  34. package/lib/invoices/Statuses/invoices.statuses.type.d.ts +6 -0
  35. package/lib/invoices/Statuses/invoices.statuses.type.js +3 -0
  36. package/lib/invoices/Statuses/invoices.statuses.type.js.map +1 -0
  37. package/lib/invoices/Zones/CreateSingle/Request.d.ts +2 -2
  38. package/lib/invoices/Zones/GetMany/Response.d.ts +2 -2
  39. package/lib/invoices/Zones/GetSingle/Response.d.ts +2 -2
  40. package/lib/invoices/Zones/UpdateSingle/Request.d.ts +2 -2
  41. package/lib/invoices/Zones/invoices.zones.type.d.ts +5 -0
  42. package/lib/invoices/Zones/invoices.zones.type.js +3 -0
  43. package/lib/invoices/Zones/invoices.zones.type.js.map +1 -0
  44. package/package.json +1 -1
  45. package/src/invoices/DocumentTypes/GetSingle/Response.ts +2 -2
  46. package/src/invoices/DocumentTypes/invoices.document-types.type.ts +7 -0
  47. package/src/invoices/Documents/CreateSingle/Request.ts +7 -2
  48. package/src/invoices/Documents/GetMany/Response.ts +2 -2
  49. package/src/invoices/Documents/GetSingle/Response.ts +2 -2
  50. package/src/invoices/Documents/UpdateSingle/Request.ts +2 -2
  51. package/src/invoices/Documents/invoices.documents.type.ts +13 -0
  52. package/src/invoices/Invoices/GetDocumentTypes/Response.ts +1 -1
  53. package/src/invoices/Invoices/GetMany/Response.ts +2 -2
  54. package/src/invoices/Invoices/GetSingle/Response.ts +1 -1
  55. package/src/invoices/Invoices/invoices.types.ts +58 -0
  56. package/src/invoices/PaymentConditions/CreateSingle/Request.ts +5 -2
  57. package/src/invoices/PaymentConditions/GetMany/Response.ts +2 -2
  58. package/src/invoices/PaymentConditions/GetSingle/Response.ts +2 -2
  59. package/src/invoices/PaymentConditions/UpdateSingle/Request.ts +3 -2
  60. package/src/invoices/PaymentConditions/invoices.payment-conditions.type.ts +6 -0
  61. package/src/invoices/Sellers/CreateSingle/Request.ts +7 -2
  62. package/src/invoices/Sellers/GetMany/Response.ts +2 -2
  63. package/src/invoices/Sellers/GetSingle/Response.ts +2 -2
  64. package/src/invoices/Sellers/UpdateSingle/Request.ts +2 -2
  65. package/src/invoices/Sellers/invoices.sellers.type.ts +8 -0
  66. package/src/invoices/Statuses/GetMany/Response.ts +2 -2
  67. package/src/invoices/Statuses/GetSingle/Response.ts +2 -2
  68. package/src/invoices/Statuses/invoices.statuses.type.ts +7 -0
  69. package/src/invoices/Zones/CreateSingle/Request.ts +2 -2
  70. package/src/invoices/Zones/GetMany/Response.ts +2 -2
  71. package/src/invoices/Zones/GetSingle/Response.ts +2 -2
  72. package/src/invoices/Zones/UpdateSingle/Request.ts +2 -2
  73. package/src/invoices/Zones/invoices.zones.type.ts +5 -0
  74. package/lib/invoices/DocumentTypes/invoices.document-types.interface.js +0 -3
  75. package/lib/invoices/DocumentTypes/invoices.document-types.interface.js.map +0 -1
  76. package/lib/invoices/Documents/invoices.documents.interfaces.d.ts +0 -16
  77. package/lib/invoices/Documents/invoices.documents.interfaces.js.map +0 -1
  78. package/lib/invoices/Invoices/invoices.interfaces.d.ts +0 -50
  79. package/lib/invoices/Invoices/invoices.interfaces.js.map +0 -1
  80. package/lib/invoices/PaymentConditions/invoices.payment-conditions.interface.d.ts +0 -8
  81. package/lib/invoices/PaymentConditions/invoices.payment-conditions.interface.js +0 -3
  82. package/lib/invoices/PaymentConditions/invoices.payment-conditions.interface.js.map +0 -1
  83. package/lib/invoices/Sellers/invoices.sellers.interface.d.ts +0 -11
  84. package/lib/invoices/Sellers/invoices.sellers.interface.js.map +0 -1
  85. package/lib/invoices/Statuses/invoices.statuses.interfaces.d.ts +0 -6
  86. package/lib/invoices/Statuses/invoices.statuses.interfaces.js.map +0 -1
  87. package/lib/invoices/Zones/invoices.zones.interfaces.d.ts +0 -7
  88. package/lib/invoices/Zones/invoices.zones.interfaces.js.map +0 -1
  89. package/src/invoices/DocumentTypes/invoices.document-types.interface.ts +0 -10
  90. package/src/invoices/Documents/invoices.documents.interfaces.ts +0 -22
  91. package/src/invoices/Invoices/invoices.interfaces.ts +0 -59
  92. package/src/invoices/PaymentConditions/invoices.payment-conditions.interface.ts +0 -10
  93. package/src/invoices/Sellers/invoices.sellers.interface.ts +0 -12
  94. package/src/invoices/Statuses/invoices.statuses.interfaces.ts +0 -7
  95. package/src/invoices/Zones/invoices.zones.interfaces.ts +0 -8
@@ -1,2 +1,2 @@
1
- import { InvoicesDocumentTypesResponse } from '../invoices.document-types.interface';
2
- export type InvoicesDocumentTypesGetSingleResponse = InvoicesDocumentTypesResponse;
1
+ import { InvoicesDocumentTypes } from '../invoices.document-types.type';
2
+ export type InvoicesDocumentTypesGetSingleResponse = InvoicesDocumentTypes;
@@ -5,5 +5,3 @@ export type InvoicesDocumentTypes = {
5
5
  includeInTaxes: boolean;
6
6
  showForNonTaxers: boolean;
7
7
  };
8
- export type InvoicesDocumentTypesRequest = Omit<InvoicesDocumentTypes, 'id'>;
9
- export type InvoicesDocumentTypesResponse = InvoicesDocumentTypes;
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.statuses.interfaces.js.map
3
+ //# sourceMappingURL=invoices.document-types.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.document-types.type.js","sourceRoot":"","sources":["../../../src/invoices/DocumentTypes/invoices.document-types.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,4 @@
1
- import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces';
2
- export type InvoicesDocumentsCreateSingleRequest = InvoicesDocumentsRequest;
1
+ import { InvoicesDocuments } from '../invoices.documents.type';
2
+ export type InvoicesDocumentsCreateSingleRequest = Pick<InvoicesDocuments, 'authorization' | 'initial' | 'final'> & {
3
+ documentType: number;
4
+ };
@@ -1,5 +1,5 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces';
2
+ import { InvoicesDocuments } from '../invoices.documents.type';
3
3
  export type InvoicesDocumentsGetManyResponse = GetManyResponse & {
4
- data: Array<InvoicesDocumentsResponse>;
4
+ data: Array<InvoicesDocuments>;
5
5
  };
@@ -1,2 +1,2 @@
1
- import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces';
2
- export type InvoicesDocumentsGetSingleResponse = InvoicesDocumentsResponse;
1
+ import { InvoicesDocuments } from '../invoices.documents.type';
2
+ export type InvoicesDocumentsGetSingleResponse = InvoicesDocuments;
@@ -1,2 +1,2 @@
1
- import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces';
2
- export type InvoicesDocumentsUpdateSingleRequest = Partial<InvoicesDocumentsRequest>;
1
+ import { InvoicesDocumentsCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type InvoicesDocumentsUpdateSingleRequest = Partial<InvoicesDocumentsCreateSingleRequest>;
@@ -0,0 +1,12 @@
1
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type';
2
+ export type InvoicesDocuments = {
3
+ id: string;
4
+ authorization?: string;
5
+ initial?: number;
6
+ final?: number;
7
+ current?: number;
8
+ active: boolean;
9
+ used: boolean;
10
+ isCurrentDocument: boolean;
11
+ documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>;
12
+ };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.zones.interfaces.js.map
3
+ //# sourceMappingURL=invoices.documents.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.documents.type.js","sourceRoot":"","sources":["../../../src/invoices/Documents/invoices.documents.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.interface';
1
+ import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.type';
2
2
  export type InvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[];
@@ -1,7 +1,7 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { InvoicesResponse } from '../invoices.interfaces';
2
+ import { Invoices } from '../invoices.types';
3
3
  export type InvoicesGetManyResponse = GetManyResponse & {
4
- data: Array<InvoicesResponse & {
4
+ data: Array<Pick<Invoices, 'id' | 'sequence'> & {
5
5
  index: number;
6
6
  }>;
7
7
  };
@@ -1,2 +1,2 @@
1
- import { Invoices } from '../invoices.interfaces';
1
+ import { Invoices } from '../invoices.types';
2
2
  export type InvoicesGetSingleRequest = Invoices;
@@ -0,0 +1,51 @@
1
+ import { CustomersBranches } from '../../customers/Branches/customers.branches.types';
2
+ import { Customers } from '../../customers/Customers/customers.types';
3
+ import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types';
4
+ import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types';
5
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type';
6
+ import { InvoicesPaymentConditions } from '../PaymentConditions/invoices.payment-conditions.type';
7
+ import { InvoicesSellers } from '../Sellers/invoices.sellers.type';
8
+ import { InvoicesStatuses } from '../Statuses/invoices.statuses.type';
9
+ import { InvoicesZones } from '../Zones/invoices.zones.type';
10
+ export type Invoices = {
11
+ id: string;
12
+ authorization: string;
13
+ sequence: string;
14
+ customerName: string;
15
+ customerAddress1: string;
16
+ customerAddress2: string;
17
+ customerCountry: string;
18
+ customerState: string;
19
+ customerCity: string;
20
+ customerDui: string;
21
+ customerNit: string;
22
+ customerNrc: string;
23
+ customerGiro: string;
24
+ sum: number;
25
+ iva: number;
26
+ ivaPercibido: number;
27
+ renta5: number;
28
+ renta10: number;
29
+ subtotal: number;
30
+ ivaRetenido: number;
31
+ ventasExentas: number;
32
+ ventasNoSujetas: number;
33
+ ventaTotal: number;
34
+ ventaTotalText: string;
35
+ origin: string;
36
+ invoiceDate: string;
37
+ paymentConditionName: string;
38
+ sellerName: string;
39
+ zoneName: string;
40
+ createEntry: boolean;
41
+ NCDTotal: boolean;
42
+ customerBranch: Omit<CustomersBranches, 'customer'>;
43
+ customer: Customers;
44
+ invoicesPaymentsCondition: Pick<InvoicesPaymentConditions, 'id' | 'name'>;
45
+ invoicesSeller: Pick<InvoicesSellers, 'id' | 'name'>;
46
+ invoicesZone: Pick<InvoicesZones, 'id' | 'name'>;
47
+ status: Pick<InvoicesStatuses, 'id' | 'name'>;
48
+ personType: Pick<SystemPersonTypes, 'id' | 'name'>;
49
+ customerTypeNatural: Pick<SystemNaturalTypes, 'id' | 'name'>;
50
+ documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>;
51
+ };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.interfaces.js.map
3
+ //# sourceMappingURL=invoices.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.types.js","sourceRoot":"","sources":["../../../src/invoices/Invoices/invoices.types.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface';
2
- export type InvoicesPaymentConditionsCreateSingleRequest = InvoicesPaymentConditionsRequest;
1
+ import { InvoicesPaymentConditions } from '../invoices.payment-conditions.type';
2
+ export type InvoicesPaymentConditionsCreateSingleRequest = Omit<InvoicesPaymentConditions, 'id' | 'active'>;
@@ -1,7 +1,7 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface';
2
+ import { InvoicesPaymentConditions } from '../invoices.payment-conditions.type';
3
3
  export type InvoicesPaymentConditionsGetManyResponse = GetManyResponse & {
4
- data: Array<InvoicesPaymentConditionsResponse & {
4
+ data: Array<InvoicesPaymentConditions & {
5
5
  index: number;
6
6
  }>;
7
7
  };
@@ -1,2 +1,2 @@
1
- import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface';
2
- export type InvoicesPaymentConditionsGetSingleResponse = InvoicesPaymentConditionsResponse;
1
+ import { InvoicesPaymentConditions } from '../invoices.payment-conditions.type';
2
+ export type InvoicesPaymentConditionsGetSingleResponse = InvoicesPaymentConditions;
@@ -1,2 +1,2 @@
1
- import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface';
2
- export type InvoicesPaymentConditionsUpdateSingleRequest = Partial<InvoicesPaymentConditionsRequest>;
1
+ import { InvoicesPaymentConditionsCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type InvoicesPaymentConditionsUpdateSingleRequest = Partial<InvoicesPaymentConditionsCreateSingleRequest>;
@@ -0,0 +1,6 @@
1
+ export type InvoicesPaymentConditions = {
2
+ id: string;
3
+ name: string;
4
+ active: boolean;
5
+ cashPayment: boolean;
6
+ };
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.documents.interfaces.js.map
3
+ //# sourceMappingURL=invoices.payment-conditions.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.payment-conditions.type.js","sourceRoot":"","sources":["../../../src/invoices/PaymentConditions/invoices.payment-conditions.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,4 @@
1
- import { InvoicesSellersRequest } from '../invoices.sellers.interface';
2
- export type InvoicesSellersCreateSingleRequest = InvoicesSellersRequest;
1
+ import { InvoicesSellers } from '../invoices.sellers.type';
2
+ export type InvoicesSellersCreateSingleRequest = Omit<InvoicesSellers, 'id' | 'active' | 'invoicesZone'> & {
3
+ invoicesZone: string;
4
+ };
@@ -1,7 +1,7 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { InvoicesSellersResponse } from '../invoices.sellers.interface';
2
+ import { InvoicesSellers } from '../invoices.sellers.type';
3
3
  export type InvoicesSellersGetManyResponse = GetManyResponse & {
4
- data: Array<InvoicesSellersResponse & {
4
+ data: Array<InvoicesSellers & {
5
5
  index: number;
6
6
  }>;
7
7
  };
@@ -1,2 +1,2 @@
1
- import { InvoicesSellersResponse } from '../invoices.sellers.interface';
2
- export type InvoicesSellersGetSingleResponse = InvoicesSellersResponse;
1
+ import { InvoicesSellers } from '../invoices.sellers.type';
2
+ export type InvoicesSellersGetSingleResponse = InvoicesSellers;
@@ -1,2 +1,2 @@
1
- import { InvoicesSellersRequest } from '../invoices.sellers.interface';
2
- export type InvoicesSellersUpdateSingleRequest = Partial<InvoicesSellersRequest>;
1
+ import { InvoicesSellersCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type InvoicesSellersUpdateSingleRequest = Partial<InvoicesSellersCreateSingleRequest>;
@@ -0,0 +1,7 @@
1
+ import { InvoicesZones } from '../Zones/invoices.zones.type';
2
+ export interface InvoicesSellers {
3
+ id: string;
4
+ name: string;
5
+ active: boolean;
6
+ invoicesZone: Pick<InvoicesZones, 'id' | 'name'>;
7
+ }
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.sellers.interface.js.map
3
+ //# sourceMappingURL=invoices.sellers.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.sellers.type.js","sourceRoot":"","sources":["../../../src/invoices/Sellers/invoices.sellers.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import { InvoicesStatusesResponse } from '../invoices.statuses.interfaces';
2
- export type InvoicesStatusesGetManyResponse = Array<InvoicesStatusesResponse>;
1
+ import { InvoicesStatusesGetSingleResponse } from '../GetSingle/Response';
2
+ export type InvoicesStatusesGetManyResponse = Array<InvoicesStatusesGetSingleResponse>;
@@ -1,2 +1,2 @@
1
- import { InvoicesStatusesResponse } from '../invoices.statuses.interfaces';
2
- export type InvoicesStatusesGetSingleResponse = InvoicesStatusesResponse;
1
+ import { InvoicesStatuses } from '../invoices.statuses.type';
2
+ export type InvoicesStatusesGetSingleResponse = InvoicesStatuses;
@@ -0,0 +1,6 @@
1
+ import { Invoices } from '../Invoices/invoices.types';
2
+ export type InvoicesStatuses = {
3
+ id: number;
4
+ name: string;
5
+ invoices: Invoices[];
6
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=invoices.statuses.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.statuses.type.js","sourceRoot":"","sources":["../../../src/invoices/Statuses/invoices.statuses.type.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
2
- export type InvoicesZonesCreateSingleRequest = InvoicesZonesRequest;
1
+ import { InvoicesZones } from '../invoices.zones.type';
2
+ export type InvoicesZonesCreateSingleRequest = Pick<InvoicesZones, 'name' | 'active'>;
@@ -1,7 +1,7 @@
1
1
  import { GetManyResponse } from '../../../interfaces';
2
- import { InvoicesZonesResponse } from '../invoices.zones.interfaces';
2
+ import { InvoicesZones } from '../invoices.zones.type';
3
3
  export type InvoicesZonesGetManyResponse = GetManyResponse & {
4
- data: Array<InvoicesZonesResponse & {
4
+ data: Array<InvoicesZones & {
5
5
  index: number;
6
6
  }>;
7
7
  };
@@ -1,2 +1,2 @@
1
- import { InvoicesZonesResponse } from '../invoices.zones.interfaces';
2
- export type InvoicesZonesGetSingleResponse = InvoicesZonesResponse;
1
+ import { InvoicesZones } from '../invoices.zones.type';
2
+ export type InvoicesZonesGetSingleResponse = InvoicesZones;
@@ -1,2 +1,2 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces';
2
- export type InvoicesZonesUpdateSingleRequest = InvoicesZonesRequest;
1
+ import { InvoicesZonesCreateSingleRequest } from '../CreateSingle/Request';
2
+ export type InvoicesZonesUpdateSingleRequest = Partial<InvoicesZonesCreateSingleRequest>;
@@ -0,0 +1,5 @@
1
+ export type InvoicesZones = {
2
+ id: string;
3
+ name: string;
4
+ active: boolean;
5
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=invoices.zones.type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"invoices.zones.type.js","sourceRoot":"","sources":["../../../src/invoices/Zones/invoices.zones.type.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openbox/shared-types",
3
- "version": "0.2.62",
3
+ "version": "0.2.63",
4
4
  "description": "Shared Types for Openbox Cloud. ",
5
5
  "types": "lib/index.d.js",
6
6
  "main": "lib/index.js",
@@ -1,3 +1,3 @@
1
- import { InvoicesDocumentTypesResponse } from '../invoices.document-types.interface'
1
+ import { InvoicesDocumentTypes } from '../invoices.document-types.type'
2
2
 
3
- export type InvoicesDocumentTypesGetSingleResponse = InvoicesDocumentTypesResponse
3
+ export type InvoicesDocumentTypesGetSingleResponse = InvoicesDocumentTypes
@@ -0,0 +1,7 @@
1
+ export type InvoicesDocumentTypes = {
2
+ id: number
3
+ name: string
4
+ code: string
5
+ includeInTaxes: boolean
6
+ showForNonTaxers: boolean
7
+ }
@@ -1,3 +1,8 @@
1
- import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces'
1
+ import { InvoicesDocuments } from '../invoices.documents.type'
2
2
 
3
- export type InvoicesDocumentsCreateSingleRequest = InvoicesDocumentsRequest
3
+ export type InvoicesDocumentsCreateSingleRequest = Pick<
4
+ InvoicesDocuments,
5
+ 'authorization' | 'initial' | 'final'
6
+ > & {
7
+ documentType: number
8
+ }
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces'
2
+ import { InvoicesDocuments } from '../invoices.documents.type'
3
3
 
4
4
  export type InvoicesDocumentsGetManyResponse = GetManyResponse & {
5
- data: Array<InvoicesDocumentsResponse>
5
+ data: Array<InvoicesDocuments>
6
6
  }
@@ -1,3 +1,3 @@
1
- import { InvoicesDocumentsResponse } from '../invoices.documents.interfaces'
1
+ import { InvoicesDocuments } from '../invoices.documents.type'
2
2
 
3
- export type InvoicesDocumentsGetSingleResponse = InvoicesDocumentsResponse
3
+ export type InvoicesDocumentsGetSingleResponse = InvoicesDocuments
@@ -1,3 +1,3 @@
1
- import { InvoicesDocumentsRequest } from '../invoices.documents.interfaces'
1
+ import { InvoicesDocumentsCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export type InvoicesDocumentsUpdateSingleRequest = Partial<InvoicesDocumentsRequest>
3
+ export type InvoicesDocumentsUpdateSingleRequest = Partial<InvoicesDocumentsCreateSingleRequest>
@@ -0,0 +1,13 @@
1
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type'
2
+
3
+ export type InvoicesDocuments = {
4
+ id: string
5
+ authorization?: string
6
+ initial?: number
7
+ final?: number
8
+ current?: number
9
+ active: boolean
10
+ used: boolean
11
+ isCurrentDocument: boolean
12
+ documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>
13
+ }
@@ -1,3 +1,3 @@
1
- import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.interface'
1
+ import { InvoicesDocumentTypes } from '../../DocumentTypes/invoices.document-types.type'
2
2
 
3
3
  export type InvoicesGetManyDocumentTypesResponse = InvoicesDocumentTypes[]
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesResponse } from '../invoices.interfaces'
2
+ import { Invoices } from '../invoices.types'
3
3
 
4
4
  export type InvoicesGetManyResponse = GetManyResponse & {
5
- data: Array<InvoicesResponse & { index: number }>
5
+ data: Array<Pick<Invoices, 'id' | 'sequence'> & { index: number }>
6
6
  }
@@ -1,3 +1,3 @@
1
- import { Invoices } from '../invoices.interfaces'
1
+ import { Invoices } from '../invoices.types'
2
2
 
3
3
  export type InvoicesGetSingleRequest = Invoices
@@ -0,0 +1,58 @@
1
+ import { CustomersBranches } from '../../customers/Branches/customers.branches.types'
2
+ import { Customers } from '../../customers/Customers/customers.types'
3
+ import { SystemNaturalTypes } from '../../system/NaturalTypes/system.natural-types.types'
4
+ import { SystemPersonTypes } from '../../system/PersonTypes/system.person-types.types'
5
+ import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.type'
6
+ import { InvoicesPaymentConditions } from '../PaymentConditions/invoices.payment-conditions.type'
7
+ import { InvoicesSellers } from '../Sellers/invoices.sellers.type'
8
+ import { InvoicesStatuses } from '../Statuses/invoices.statuses.type'
9
+ import { InvoicesZones } from '../Zones/invoices.zones.type'
10
+
11
+ export type Invoices = {
12
+ id: string
13
+ authorization: string
14
+ sequence: string
15
+ customerName: string
16
+ customerAddress1: string
17
+ customerAddress2: string
18
+ customerCountry: string
19
+ customerState: string
20
+ customerCity: string
21
+ customerDui: string
22
+ customerNit: string
23
+ customerNrc: string
24
+ customerGiro: string
25
+ sum: number
26
+ iva: number
27
+ ivaPercibido: number
28
+ renta5: number
29
+ renta10: number
30
+ subtotal: number
31
+ ivaRetenido: number
32
+ ventasExentas: number
33
+ ventasNoSujetas: number
34
+ ventaTotal: number
35
+ ventaTotalText: string
36
+ origin: string
37
+ invoiceDate: string
38
+ paymentConditionName: string
39
+ sellerName: string
40
+ zoneName: string
41
+ createEntry: boolean
42
+ NCDTotal: boolean
43
+ customerBranch: Omit<CustomersBranches, 'customer'>
44
+ customer: Customers
45
+ invoicesPaymentsCondition: Pick<InvoicesPaymentConditions, 'id' | 'name'>
46
+ invoicesSeller: Pick<InvoicesSellers, 'id' | 'name'>
47
+ invoicesZone: Pick<InvoicesZones, 'id' | 'name'>
48
+ status: Pick<InvoicesStatuses, 'id' | 'name'>
49
+ personType: Pick<SystemPersonTypes, 'id' | 'name'>
50
+ customerTypeNatural: Pick<SystemNaturalTypes, 'id' | 'name'>
51
+ documentType: Pick<InvoicesDocumentTypes, 'id' | 'name' | 'code'>
52
+ // invoiceDetails: InvoicesDetailsEntity[]
53
+ // echarges: Echarges
54
+ // accountingEntry: AccountingEntriesEntity
55
+ // relatedDocument: InvoicesEntity
56
+ // invoices: InvoicesEntity[]
57
+ // legalInstallments: LegalInstallmentsEntity[]
58
+ }
@@ -1,3 +1,6 @@
1
- import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface'
1
+ import { InvoicesPaymentConditions } from '../invoices.payment-conditions.type'
2
2
 
3
- export type InvoicesPaymentConditionsCreateSingleRequest = InvoicesPaymentConditionsRequest
3
+ export type InvoicesPaymentConditionsCreateSingleRequest = Omit<
4
+ InvoicesPaymentConditions,
5
+ 'id' | 'active'
6
+ >
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface'
2
+ import { InvoicesPaymentConditions } from '../invoices.payment-conditions.type'
3
3
 
4
4
  export type InvoicesPaymentConditionsGetManyResponse = GetManyResponse & {
5
- data: Array<InvoicesPaymentConditionsResponse & { index: number }>
5
+ data: Array<InvoicesPaymentConditions & { index: number }>
6
6
  }
@@ -1,3 +1,3 @@
1
- import { InvoicesPaymentConditionsResponse } from '../invoices.payment-conditions.interface'
1
+ import { InvoicesPaymentConditions } from '../invoices.payment-conditions.type'
2
2
 
3
- export type InvoicesPaymentConditionsGetSingleResponse = InvoicesPaymentConditionsResponse
3
+ export type InvoicesPaymentConditionsGetSingleResponse = InvoicesPaymentConditions
@@ -1,3 +1,4 @@
1
- import { InvoicesPaymentConditionsRequest } from '../invoices.payment-conditions.interface'
1
+ import { InvoicesPaymentConditionsCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export type InvoicesPaymentConditionsUpdateSingleRequest = Partial<InvoicesPaymentConditionsRequest>
3
+ export type InvoicesPaymentConditionsUpdateSingleRequest =
4
+ Partial<InvoicesPaymentConditionsCreateSingleRequest>
@@ -0,0 +1,6 @@
1
+ export type InvoicesPaymentConditions = {
2
+ id: string
3
+ name: string
4
+ active: boolean
5
+ cashPayment: boolean
6
+ }
@@ -1,3 +1,8 @@
1
- import { InvoicesSellersRequest } from '../invoices.sellers.interface'
1
+ import { InvoicesSellers } from '../invoices.sellers.type'
2
2
 
3
- export type InvoicesSellersCreateSingleRequest = InvoicesSellersRequest
3
+ export type InvoicesSellersCreateSingleRequest = Omit<
4
+ InvoicesSellers,
5
+ 'id' | 'active' | 'invoicesZone'
6
+ > & {
7
+ invoicesZone: string
8
+ }
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesSellersResponse } from '../invoices.sellers.interface'
2
+ import { InvoicesSellers } from '../invoices.sellers.type'
3
3
 
4
4
  export type InvoicesSellersGetManyResponse = GetManyResponse & {
5
- data: Array<InvoicesSellersResponse & { index: number }>
5
+ data: Array<InvoicesSellers & { index: number }>
6
6
  }
@@ -1,3 +1,3 @@
1
- import { InvoicesSellersResponse } from '../invoices.sellers.interface'
1
+ import { InvoicesSellers } from '../invoices.sellers.type'
2
2
 
3
- export type InvoicesSellersGetSingleResponse = InvoicesSellersResponse
3
+ export type InvoicesSellersGetSingleResponse = InvoicesSellers
@@ -1,3 +1,3 @@
1
- import { InvoicesSellersRequest } from '../invoices.sellers.interface'
1
+ import { InvoicesSellersCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export type InvoicesSellersUpdateSingleRequest = Partial<InvoicesSellersRequest>
3
+ export type InvoicesSellersUpdateSingleRequest = Partial<InvoicesSellersCreateSingleRequest>
@@ -0,0 +1,8 @@
1
+ import { InvoicesZones } from '../Zones/invoices.zones.type'
2
+
3
+ export interface InvoicesSellers {
4
+ id: string
5
+ name: string
6
+ active: boolean
7
+ invoicesZone: Pick<InvoicesZones, 'id' | 'name'>
8
+ }
@@ -1,3 +1,3 @@
1
- import { InvoicesStatusesResponse } from '../invoices.statuses.interfaces'
1
+ import { InvoicesStatusesGetSingleResponse } from '../GetSingle/Response'
2
2
 
3
- export type InvoicesStatusesGetManyResponse = Array<InvoicesStatusesResponse>
3
+ export type InvoicesStatusesGetManyResponse = Array<InvoicesStatusesGetSingleResponse>
@@ -1,3 +1,3 @@
1
- import { InvoicesStatusesResponse } from '../invoices.statuses.interfaces'
1
+ import { InvoicesStatuses } from '../invoices.statuses.type'
2
2
 
3
- export type InvoicesStatusesGetSingleResponse = InvoicesStatusesResponse
3
+ export type InvoicesStatusesGetSingleResponse = InvoicesStatuses
@@ -0,0 +1,7 @@
1
+ import { Invoices } from '../Invoices/invoices.types'
2
+
3
+ export type InvoicesStatuses = {
4
+ id: number
5
+ name: string
6
+ invoices: Invoices[]
7
+ }
@@ -1,3 +1,3 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
1
+ import { InvoicesZones } from '../invoices.zones.type'
2
2
 
3
- export type InvoicesZonesCreateSingleRequest = InvoicesZonesRequest
3
+ export type InvoicesZonesCreateSingleRequest = Pick<InvoicesZones, 'name' | 'active'>
@@ -1,6 +1,6 @@
1
1
  import { GetManyResponse } from '../../../interfaces'
2
- import { InvoicesZonesResponse } from '../invoices.zones.interfaces'
2
+ import { InvoicesZones } from '../invoices.zones.type'
3
3
 
4
4
  export type InvoicesZonesGetManyResponse = GetManyResponse & {
5
- data: Array<InvoicesZonesResponse & { index: number }>
5
+ data: Array<InvoicesZones & { index: number }>
6
6
  }
@@ -1,3 +1,3 @@
1
- import { InvoicesZonesResponse } from '../invoices.zones.interfaces'
1
+ import { InvoicesZones } from '../invoices.zones.type'
2
2
 
3
- export type InvoicesZonesGetSingleResponse = InvoicesZonesResponse
3
+ export type InvoicesZonesGetSingleResponse = InvoicesZones
@@ -1,3 +1,3 @@
1
- import { InvoicesZonesRequest } from '../invoices.zones.interfaces'
1
+ import { InvoicesZonesCreateSingleRequest } from '../CreateSingle/Request'
2
2
 
3
- export type InvoicesZonesUpdateSingleRequest = InvoicesZonesRequest
3
+ export type InvoicesZonesUpdateSingleRequest = Partial<InvoicesZonesCreateSingleRequest>
@@ -0,0 +1,5 @@
1
+ export type InvoicesZones = {
2
+ id: string
3
+ name: string
4
+ active: boolean
5
+ }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.document-types.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.document-types.interface.js","sourceRoot":"","sources":["../../../src/invoices/DocumentTypes/invoices.document-types.interface.ts"],"names":[],"mappings":""}
@@ -1,16 +0,0 @@
1
- import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface';
2
- export type InvoicesDocuments = {
3
- id: string;
4
- authorization?: string;
5
- initial?: number;
6
- final?: number;
7
- current?: number;
8
- active: boolean;
9
- used: boolean;
10
- isCurrentDocument: boolean;
11
- documentType: Omit<InvoicesDocumentTypes, 'includeInTaxes, showForNonTaxers'>;
12
- };
13
- export type InvoicesDocumentsRequest = Omit<InvoicesDocuments, 'id' | 'active' | 'used' | 'isCurrentDocument' | 'documentType'> & {
14
- documentType: number;
15
- };
16
- export type InvoicesDocumentsResponse = InvoicesDocuments;
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.documents.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Documents/invoices.documents.interfaces.ts"],"names":[],"mappings":""}
@@ -1,50 +0,0 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types';
2
- import { CustomersResponse } from '../../customers/Customers/customers.types';
3
- import { SystemNaturalTypesResponse } from '../../system/NaturalTypes/system.natural-types.types';
4
- import { SystemPersonTypesResponse } from '../../system/PersonTypes/system.person-types.types';
5
- import { InvoicesDocumentTypesResponse } from '../DocumentTypes/invoices.document-types.interface';
6
- import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface';
7
- import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface';
8
- import { InvoicesZonesResponse } from '../Zones/invoices.zones.interfaces';
9
- export type Invoices = {
10
- id: string;
11
- authorization: string;
12
- sequence: string;
13
- customerName: string;
14
- customerAddress1: string;
15
- customerAddress2: string;
16
- customerCountry: string;
17
- customerState: string;
18
- customerCity: string;
19
- customerDui: string;
20
- customerNit: string;
21
- customerNrc: string;
22
- customerGiro: string;
23
- sum: number;
24
- iva: number;
25
- ivaPercibido: number;
26
- renta5: number;
27
- renta10: number;
28
- subtotal: number;
29
- ivaRetenido: number;
30
- ventasExentas: number;
31
- ventasNoSujetas: number;
32
- ventaTotal: number;
33
- ventaTotalText: string;
34
- origin: string;
35
- invoiceDate: string;
36
- paymentConditionName: string;
37
- sellerName: string;
38
- zoneName: string;
39
- createEntry: boolean;
40
- NCDTotal: boolean;
41
- customerBranch: CustomersBranchesResponse;
42
- customer: CustomersResponse;
43
- invoicesPaymentsCondition: InvoicesPaymentConditionsResponse;
44
- invoicesSeller: InvoicesSellersResponse;
45
- invoicesZone: InvoicesZonesResponse;
46
- personType: SystemPersonTypesResponse;
47
- customerTypeNatural: SystemNaturalTypesResponse;
48
- documentType: InvoicesDocumentTypesResponse;
49
- };
50
- export type InvoicesResponse = Invoices;
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Invoices/invoices.interfaces.ts"],"names":[],"mappings":""}
@@ -1,8 +0,0 @@
1
- export type InvoicesPaymentConditons = {
2
- id: string;
3
- name: string;
4
- active: boolean;
5
- cashPayment: boolean;
6
- };
7
- export type InvoicesPaymentConditionsRequest = Omit<InvoicesPaymentConditons, 'id' | 'active'>;
8
- export type InvoicesPaymentConditionsResponse = InvoicesPaymentConditons;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=invoices.payment-conditions.interface.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.payment-conditions.interface.js","sourceRoot":"","sources":["../../../src/invoices/PaymentConditions/invoices.payment-conditions.interface.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- import { InvoicesZones } from '../Zones/invoices.zones.interfaces';
2
- export interface InvoicesSellers {
3
- id: string;
4
- name: string;
5
- active: boolean;
6
- invoicesZone: InvoicesZones;
7
- }
8
- export type InvoicesSellersRequest = Omit<InvoicesSellers, 'id' | 'active' | 'invoicesZone'> & {
9
- invoicesZone: string;
10
- };
11
- export type InvoicesSellersResponse = InvoicesSellers;
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.sellers.interface.js","sourceRoot":"","sources":["../../../src/invoices/Sellers/invoices.sellers.interface.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- export type InvoicesStatuses = {
2
- id: number;
3
- name: string;
4
- };
5
- export type InvoicesStatusesRequest = Omit<InvoicesStatuses, 'id'>;
6
- export type InvoicesStatusesResponse = InvoicesStatuses;
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.statuses.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Statuses/invoices.statuses.interfaces.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- export type InvoicesZones = {
2
- id: string;
3
- name: string;
4
- active: boolean;
5
- };
6
- export type InvoicesZonesRequest = Omit<InvoicesZones, 'id' | 'active'>;
7
- export type InvoicesZonesResponse = InvoicesZones;
@@ -1 +0,0 @@
1
- {"version":3,"file":"invoices.zones.interfaces.js","sourceRoot":"","sources":["../../../src/invoices/Zones/invoices.zones.interfaces.ts"],"names":[],"mappings":""}
@@ -1,10 +0,0 @@
1
- export type InvoicesDocumentTypes = {
2
- id: number
3
- name: string
4
- code: string
5
- includeInTaxes: boolean
6
- showForNonTaxers: boolean
7
- }
8
-
9
- export type InvoicesDocumentTypesRequest = Omit<InvoicesDocumentTypes, 'id'>
10
- export type InvoicesDocumentTypesResponse = InvoicesDocumentTypes
@@ -1,22 +0,0 @@
1
- import { InvoicesDocumentTypes } from '../DocumentTypes/invoices.document-types.interface'
2
-
3
- export type InvoicesDocuments = {
4
- id: string
5
- authorization?: string
6
- initial?: number
7
- final?: number
8
- current?: number
9
- active: boolean
10
- used: boolean
11
- isCurrentDocument: boolean
12
- documentType: Omit<InvoicesDocumentTypes, 'includeInTaxes, showForNonTaxers'>
13
- }
14
-
15
- export type InvoicesDocumentsRequest = Omit<
16
- InvoicesDocuments,
17
- 'id' | 'active' | 'used' | 'isCurrentDocument' | 'documentType'
18
- > & {
19
- documentType: number
20
- }
21
-
22
- export type InvoicesDocumentsResponse = InvoicesDocuments
@@ -1,59 +0,0 @@
1
- import { CustomersBranchesResponse } from '../../customers/Branches/customers.branches.types'
2
- import { CustomersResponse } from '../../customers/Customers/customers.types'
3
- import { SystemNaturalTypesResponse } from '../../system/NaturalTypes/system.natural-types.types'
4
- import { SystemPersonTypesResponse } from '../../system/PersonTypes/system.person-types.types'
5
- import { InvoicesDocumentTypesResponse } from '../DocumentTypes/invoices.document-types.interface'
6
- import { InvoicesPaymentConditionsResponse } from '../PaymentConditions/invoices.payment-conditions.interface'
7
- import { InvoicesSellersResponse } from '../Sellers/invoices.sellers.interface'
8
- import { InvoicesZonesResponse } from '../Zones/invoices.zones.interfaces'
9
-
10
- export type Invoices = {
11
- id: string
12
- authorization: string
13
- sequence: string
14
- customerName: string
15
- customerAddress1: string
16
- customerAddress2: string
17
- customerCountry: string
18
- customerState: string
19
- customerCity: string
20
- customerDui: string
21
- customerNit: string
22
- customerNrc: string
23
- customerGiro: string
24
- sum: number
25
- iva: number
26
- ivaPercibido: number
27
- renta5: number
28
- renta10: number
29
- subtotal: number
30
- ivaRetenido: number
31
- ventasExentas: number
32
- ventasNoSujetas: number
33
- ventaTotal: number
34
- ventaTotalText: string
35
- origin: string
36
- invoiceDate: string
37
- paymentConditionName: string
38
- sellerName: string
39
- zoneName: string
40
- createEntry: boolean
41
- NCDTotal: boolean
42
- customerBranch: CustomersBranchesResponse
43
- customer: CustomersResponse
44
- invoicesPaymentsCondition: InvoicesPaymentConditionsResponse
45
- invoicesSeller: InvoicesSellersResponse
46
- invoicesZone: InvoicesZonesResponse
47
- // status: InvoicesStatusesEntity
48
- personType: SystemPersonTypesResponse
49
- customerTypeNatural: SystemNaturalTypesResponse
50
- documentType: InvoicesDocumentTypesResponse
51
- // invoiceDetails: InvoicesDetailsEntity[]
52
- // echarges: Echarges
53
- // accountingEntry: AccountingEntriesEntity
54
- // relatedDocument: InvoicesEntity
55
- // invoices: InvoicesEntity[]
56
- // legalInstallments: LegalInstallmentsEntity[]
57
- }
58
-
59
- export type InvoicesResponse = Invoices
@@ -1,10 +0,0 @@
1
- export type InvoicesPaymentConditons = {
2
- id: string
3
- name: string
4
- active: boolean
5
- cashPayment: boolean
6
- }
7
-
8
- export type InvoicesPaymentConditionsRequest = Omit<InvoicesPaymentConditons, 'id' | 'active'>
9
-
10
- export type InvoicesPaymentConditionsResponse = InvoicesPaymentConditons
@@ -1,12 +0,0 @@
1
- import { InvoicesZones } from '../Zones/invoices.zones.interfaces'
2
-
3
- export interface InvoicesSellers {
4
- id: string
5
- name: string
6
- active: boolean
7
- invoicesZone: InvoicesZones
8
- }
9
- export type InvoicesSellersRequest = Omit<InvoicesSellers, 'id' | 'active' | 'invoicesZone'> & {
10
- invoicesZone: string
11
- }
12
- export type InvoicesSellersResponse = InvoicesSellers
@@ -1,7 +0,0 @@
1
- export type InvoicesStatuses = {
2
- id: number
3
- name: string
4
- }
5
-
6
- export type InvoicesStatusesRequest = Omit<InvoicesStatuses, 'id'>
7
- export type InvoicesStatusesResponse = InvoicesStatuses
@@ -1,8 +0,0 @@
1
- export type InvoicesZones = {
2
- id: string
3
- name: string
4
- active: boolean
5
- }
6
-
7
- export type InvoicesZonesRequest = Omit<InvoicesZones, 'id' | 'active'>
8
- export type InvoicesZonesResponse = InvoicesZones