@openbox/shared-types 0.4.91 → 0.4.93
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/lib/invoices/Calculation/CalculateSingle/Request.d.ts +0 -8
- package/lib/invoices/Calculation/CalculateSingle/Response.d.ts +12 -26
- package/lib/invoices/Invoices/CreateSingle/Request.d.ts +1 -7
- package/lib/invoices/invoices.enums.d.ts +0 -4
- package/lib/invoices/invoices.enums.js +1 -6
- package/lib/invoices/invoices.enums.js.map +1 -1
- package/package.json +1 -1
- package/src/invoices/Calculation/CalculateSingle/Request.ts +0 -10
- package/src/invoices/Calculation/CalculateSingle/Response.ts +11 -46
- package/src/invoices/Invoices/CreateSingle/Request.ts +1 -9
- package/src/invoices/invoices.enums.ts +0 -5
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
|
|
2
1
|
export type InvoicesCalculationsDetailsRequest = {
|
|
3
2
|
id?: string;
|
|
4
3
|
service: string;
|
|
@@ -10,15 +9,8 @@ export type InvoicesCalculationsDetailsRequest = {
|
|
|
10
9
|
incRenta10: boolean;
|
|
11
10
|
chargeDescription: string;
|
|
12
11
|
};
|
|
13
|
-
export type InvoicesCalculationsDiscountsRequest = {
|
|
14
|
-
id?: string;
|
|
15
|
-
type: InvoicesDiscountsTypesKeys;
|
|
16
|
-
quantity: number;
|
|
17
|
-
description: string;
|
|
18
|
-
};
|
|
19
12
|
export type InvoicesCalculationsCalculateSingleRequest = {
|
|
20
13
|
documentType: number;
|
|
21
14
|
customer: string;
|
|
22
15
|
details: InvoicesCalculationsDetailsRequest[];
|
|
23
|
-
discounts: InvoicesCalculationsDiscountsRequest[] | null;
|
|
24
16
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
|
|
2
1
|
export type InvoicesCalculationsDetailsResponse = {
|
|
3
2
|
id?: string;
|
|
4
3
|
service: string;
|
|
@@ -23,12 +22,6 @@ export type InvoicesCalculationsDetailsResponse = {
|
|
|
23
22
|
vNoSujetaToShow: number;
|
|
24
23
|
vGravadaToShow: number;
|
|
25
24
|
};
|
|
26
|
-
export type InvoicesCalculationsDiscountsResponse = {
|
|
27
|
-
id?: string;
|
|
28
|
-
type: InvoicesDiscountsTypesKeys;
|
|
29
|
-
quantity: number;
|
|
30
|
-
description: string;
|
|
31
|
-
};
|
|
32
25
|
export type InvoicesCalculationsTotalsItem = {
|
|
33
26
|
id: string;
|
|
34
27
|
name: string;
|
|
@@ -36,27 +29,20 @@ export type InvoicesCalculationsTotalsItem = {
|
|
|
36
29
|
amount: number;
|
|
37
30
|
style?: string[];
|
|
38
31
|
show: true | false;
|
|
39
|
-
type?: 'currency' | 'percentage';
|
|
40
32
|
};
|
|
41
|
-
export
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
reteRenta: InvoicesCalculationsTotalsItem;
|
|
54
|
-
montoTotalOperacion: InvoicesCalculationsTotalsItem;
|
|
55
|
-
totalIva: InvoicesCalculationsTotalsItem;
|
|
56
|
-
totalPagar: InvoicesCalculationsTotalsItem;
|
|
57
|
-
}
|
|
33
|
+
export type InvoicesCalculationsTotalsResponse = {
|
|
34
|
+
sum: InvoicesCalculationsTotalsItem;
|
|
35
|
+
iva: InvoicesCalculationsTotalsItem;
|
|
36
|
+
subtotal: InvoicesCalculationsTotalsItem;
|
|
37
|
+
ivaRetenido: InvoicesCalculationsTotalsItem;
|
|
38
|
+
ivaPercibido: InvoicesCalculationsTotalsItem;
|
|
39
|
+
renta5: InvoicesCalculationsTotalsItem;
|
|
40
|
+
renta10: InvoicesCalculationsTotalsItem;
|
|
41
|
+
ventasExentas: InvoicesCalculationsTotalsItem;
|
|
42
|
+
ventasNoSujetas: InvoicesCalculationsTotalsItem;
|
|
43
|
+
ventaTotal: InvoicesCalculationsTotalsItem;
|
|
44
|
+
};
|
|
58
45
|
export type InvoicesCalculationsCalculateSingleResponse = {
|
|
59
46
|
details: InvoicesCalculationsDetailsResponse[];
|
|
60
|
-
discounts: InvoicesCalculationsDiscountsResponse[];
|
|
61
47
|
totals: InvoicesCalculationsTotalsResponse;
|
|
62
48
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
|
|
2
1
|
export type InvoicesCreateSingleHeader = {
|
|
3
2
|
document: string;
|
|
4
3
|
documentType: number;
|
|
@@ -10,6 +9,7 @@ export type InvoicesCreateSingleHeader = {
|
|
|
10
9
|
paymentCondition: string;
|
|
11
10
|
invoicesSeller: string;
|
|
12
11
|
copyFrom?: string;
|
|
12
|
+
creditFor?: string;
|
|
13
13
|
};
|
|
14
14
|
export type InvoicesCreateSingleTotals = {
|
|
15
15
|
sum: number;
|
|
@@ -42,14 +42,8 @@ export type InvoicesCreateSingleDetail = {
|
|
|
42
42
|
rentaPrice10?: number;
|
|
43
43
|
sellingType: number;
|
|
44
44
|
};
|
|
45
|
-
export type InvoicesCreateSingleDiscount = {
|
|
46
|
-
type: InvoicesDiscountsTypesKeys;
|
|
47
|
-
quantity: number;
|
|
48
|
-
description: string;
|
|
49
|
-
};
|
|
50
45
|
export type InvoicesCreateSingleRequest = {
|
|
51
46
|
header: InvoicesCreateSingleHeader;
|
|
52
47
|
totals: InvoicesCreateSingleTotals;
|
|
53
48
|
details: InvoicesCreateSingleDetail[];
|
|
54
|
-
discounts: InvoicesCreateSingleDiscount[];
|
|
55
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.InvoicesStatusesTypesEnum = exports.InvoicesDocumentTypesEnum = void 0;
|
|
4
4
|
var InvoicesDocumentTypesEnum;
|
|
5
5
|
(function (InvoicesDocumentTypesEnum) {
|
|
6
6
|
InvoicesDocumentTypesEnum[InvoicesDocumentTypesEnum["FCF"] = 1] = "FCF";
|
|
@@ -20,9 +20,4 @@ var InvoicesStatusesTypesEnum;
|
|
|
20
20
|
InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Presentada"] = 6] = "Presentada";
|
|
21
21
|
InvoicesStatusesTypesEnum[InvoicesStatusesTypesEnum["Contingencia"] = 7] = "Contingencia";
|
|
22
22
|
})(InvoicesStatusesTypesEnum = exports.InvoicesStatusesTypesEnum || (exports.InvoicesStatusesTypesEnum = {}));
|
|
23
|
-
var InvoicesDiscountsTypesKeys;
|
|
24
|
-
(function (InvoicesDiscountsTypesKeys) {
|
|
25
|
-
InvoicesDiscountsTypesKeys["AMOUNT_DISCOUNT"] = "AMOUNT_DISCOUNT";
|
|
26
|
-
InvoicesDiscountsTypesKeys["PERCENTAGE_DISCOUNT"] = "PERCENTAGE_DISCOUNT";
|
|
27
|
-
})(InvoicesDiscountsTypesKeys = exports.InvoicesDiscountsTypesKeys || (exports.InvoicesDiscountsTypesKeys = {}));
|
|
28
23
|
//# sourceMappingURL=invoices.enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"invoices.enums.js","sourceRoot":"","sources":["../../src/invoices/invoices.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,qEAAM,CAAA;IACN,qEAAM,CAAA;IACN,qEAAM,CAAA;AACR,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC;AAED,IAAY,yBAQX;AARD,WAAY,yBAAyB;IACnC,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,mFAAa,CAAA;IACb,6EAAU,CAAA;IACV,qFAAc,CAAA;IACd,yFAAgB,CAAA;AAClB,CAAC,EARW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAQpC
|
|
1
|
+
{"version":3,"file":"invoices.enums.js","sourceRoot":"","sources":["../../src/invoices/invoices.enums.ts"],"names":[],"mappings":";;;AAAA,IAAY,yBAOX;AAPD,WAAY,yBAAyB;IACnC,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,uEAAO,CAAA;IACP,qEAAM,CAAA;IACN,qEAAM,CAAA;IACN,qEAAM,CAAA;AACR,CAAC,EAPW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAOpC;AAED,IAAY,yBAQX;AARD,WAAY,yBAAyB;IACnC,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,+EAAW,CAAA;IACX,mFAAa,CAAA;IACb,6EAAU,CAAA;IACV,qFAAc,CAAA;IACd,yFAAgB,CAAA;AAClB,CAAC,EARW,yBAAyB,GAAzB,iCAAyB,KAAzB,iCAAyB,QAQpC"}
|
package/package.json
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
|
|
2
|
-
|
|
3
1
|
export type InvoicesCalculationsDetailsRequest = {
|
|
4
2
|
id?: string
|
|
5
3
|
service: string
|
|
@@ -12,16 +10,8 @@ export type InvoicesCalculationsDetailsRequest = {
|
|
|
12
10
|
chargeDescription: string
|
|
13
11
|
}
|
|
14
12
|
|
|
15
|
-
export type InvoicesCalculationsDiscountsRequest = {
|
|
16
|
-
id?: string
|
|
17
|
-
type: InvoicesDiscountsTypesKeys
|
|
18
|
-
quantity: number
|
|
19
|
-
description: string
|
|
20
|
-
}
|
|
21
|
-
|
|
22
13
|
export type InvoicesCalculationsCalculateSingleRequest = {
|
|
23
14
|
documentType: number
|
|
24
15
|
customer: string
|
|
25
16
|
details: InvoicesCalculationsDetailsRequest[]
|
|
26
|
-
discounts: InvoicesCalculationsDiscountsRequest[] | null
|
|
27
17
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
|
|
2
|
-
|
|
3
1
|
export type InvoicesCalculationsDetailsResponse = {
|
|
4
2
|
// Returns the same information received
|
|
5
3
|
id?: string
|
|
@@ -30,14 +28,6 @@ export type InvoicesCalculationsDetailsResponse = {
|
|
|
30
28
|
vGravadaToShow: number
|
|
31
29
|
}
|
|
32
30
|
|
|
33
|
-
export type InvoicesCalculationsDiscountsResponse = {
|
|
34
|
-
// Returns the same information received
|
|
35
|
-
id?: string
|
|
36
|
-
type: InvoicesDiscountsTypesKeys
|
|
37
|
-
quantity: number
|
|
38
|
-
description: string
|
|
39
|
-
}
|
|
40
|
-
|
|
41
31
|
export type InvoicesCalculationsTotalsItem = {
|
|
42
32
|
id: string
|
|
43
33
|
name: string
|
|
@@ -45,47 +35,22 @@ export type InvoicesCalculationsTotalsItem = {
|
|
|
45
35
|
amount: number
|
|
46
36
|
style?: string[]
|
|
47
37
|
show: true | false
|
|
48
|
-
type?: 'currency' | 'percentage'
|
|
49
38
|
}
|
|
50
39
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
// }
|
|
63
|
-
|
|
64
|
-
export interface InvoicesCalculationsTotalsResponse {
|
|
65
|
-
// Totales antes de impuestos
|
|
66
|
-
totalNoSuj: InvoicesCalculationsTotalsItem // ventasNoSujetas
|
|
67
|
-
totalExenta: InvoicesCalculationsTotalsItem // ventasExentas
|
|
68
|
-
totalGravada: InvoicesCalculationsTotalsItem
|
|
69
|
-
subTotalVentas: InvoicesCalculationsTotalsItem // sum
|
|
70
|
-
|
|
71
|
-
// Descuentos
|
|
72
|
-
descuNoSuj: InvoicesCalculationsTotalsItem
|
|
73
|
-
descuExenta: InvoicesCalculationsTotalsItem
|
|
74
|
-
descuGravada: InvoicesCalculationsTotalsItem
|
|
75
|
-
porcentajeDescuento: InvoicesCalculationsTotalsItem
|
|
76
|
-
totalDescu: InvoicesCalculationsTotalsItem
|
|
77
|
-
|
|
78
|
-
// Totales con impuestos
|
|
79
|
-
subTotal: InvoicesCalculationsTotalsItem // subtotal
|
|
80
|
-
ivaRete1: InvoicesCalculationsTotalsItem // ivaRetenido
|
|
81
|
-
reteRenta: InvoicesCalculationsTotalsItem
|
|
82
|
-
montoTotalOperacion: InvoicesCalculationsTotalsItem
|
|
83
|
-
totalIva: InvoicesCalculationsTotalsItem // iva
|
|
84
|
-
totalPagar: InvoicesCalculationsTotalsItem // ventaTotal
|
|
40
|
+
export type InvoicesCalculationsTotalsResponse = {
|
|
41
|
+
sum: InvoicesCalculationsTotalsItem
|
|
42
|
+
iva: InvoicesCalculationsTotalsItem
|
|
43
|
+
subtotal: InvoicesCalculationsTotalsItem
|
|
44
|
+
ivaRetenido: InvoicesCalculationsTotalsItem
|
|
45
|
+
ivaPercibido: InvoicesCalculationsTotalsItem
|
|
46
|
+
renta5: InvoicesCalculationsTotalsItem
|
|
47
|
+
renta10: InvoicesCalculationsTotalsItem
|
|
48
|
+
ventasExentas: InvoicesCalculationsTotalsItem
|
|
49
|
+
ventasNoSujetas: InvoicesCalculationsTotalsItem
|
|
50
|
+
ventaTotal: InvoicesCalculationsTotalsItem
|
|
85
51
|
}
|
|
86
52
|
|
|
87
53
|
export type InvoicesCalculationsCalculateSingleResponse = {
|
|
88
54
|
details: InvoicesCalculationsDetailsResponse[]
|
|
89
|
-
discounts: InvoicesCalculationsDiscountsResponse[]
|
|
90
55
|
totals: InvoicesCalculationsTotalsResponse
|
|
91
56
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
|
|
2
|
-
|
|
3
1
|
export type InvoicesCreateSingleHeader = {
|
|
4
2
|
document: string
|
|
5
3
|
documentType: number
|
|
@@ -11,6 +9,7 @@ export type InvoicesCreateSingleHeader = {
|
|
|
11
9
|
paymentCondition: string
|
|
12
10
|
invoicesSeller: string
|
|
13
11
|
copyFrom?: string
|
|
12
|
+
creditFor?: string
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
export type InvoicesCreateSingleTotals = {
|
|
@@ -49,15 +48,8 @@ export type InvoicesCreateSingleDetail = {
|
|
|
49
48
|
sellingType: number
|
|
50
49
|
}
|
|
51
50
|
|
|
52
|
-
export type InvoicesCreateSingleDiscount = {
|
|
53
|
-
type: InvoicesDiscountsTypesKeys
|
|
54
|
-
quantity: number
|
|
55
|
-
description: string
|
|
56
|
-
}
|
|
57
|
-
|
|
58
51
|
export type InvoicesCreateSingleRequest = {
|
|
59
52
|
header: InvoicesCreateSingleHeader
|
|
60
53
|
totals: InvoicesCreateSingleTotals
|
|
61
54
|
details: InvoicesCreateSingleDetail[]
|
|
62
|
-
discounts: InvoicesCreateSingleDiscount[]
|
|
63
55
|
}
|