@openbox/shared-types 0.5.32 → 0.5.34
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/Response.d.ts +4 -4
- package/lib/invoices/Invoices/CreateSingle/Request.d.ts +8 -7
- package/lib/invoices/Invoices/invoices.types.d.ts +4 -3
- package/lib/partners/V1/invoices/CreateSingle/Request.d.ts +0 -2
- package/lib/partners/V1/invoices/CreateSingle/Request.js.map +1 -1
- package/package.json +1 -1
- package/src/invoices/Calculation/CalculateSingle/Response.ts +4 -4
- package/src/invoices/Invoices/CreateSingle/Request.ts +19 -7
- package/src/invoices/Invoices/invoices.types.ts +4 -3
- package/src/partners/V1/invoices/CreateSingle/Request.ts +0 -6
|
@@ -45,20 +45,20 @@ export type InvoicesCalculationsTotalsItem = {
|
|
|
45
45
|
type?: 'currency' | 'percentage';
|
|
46
46
|
};
|
|
47
47
|
export interface InvoicesCalculationsTotalsResponse {
|
|
48
|
-
totalNoSuj: InvoicesCalculationsTotalsItem;
|
|
49
48
|
totalExenta: InvoicesCalculationsTotalsItem;
|
|
49
|
+
totalNoSuj: InvoicesCalculationsTotalsItem;
|
|
50
50
|
totalGravada: InvoicesCalculationsTotalsItem;
|
|
51
51
|
subTotalVentas: InvoicesCalculationsTotalsItem;
|
|
52
|
-
descuNoSuj: InvoicesCalculationsTotalsItem;
|
|
53
52
|
descuExenta: InvoicesCalculationsTotalsItem;
|
|
53
|
+
descuNoSuj: InvoicesCalculationsTotalsItem;
|
|
54
54
|
descuGravada: InvoicesCalculationsTotalsItem;
|
|
55
|
-
porcentajeDescuento: InvoicesCalculationsTotalsItem;
|
|
56
55
|
totalDescu: InvoicesCalculationsTotalsItem;
|
|
56
|
+
porcentajeDescuento: InvoicesCalculationsTotalsItem;
|
|
57
|
+
totalIva: InvoicesCalculationsTotalsItem;
|
|
57
58
|
subTotal: InvoicesCalculationsTotalsItem;
|
|
58
59
|
ivaRete1: InvoicesCalculationsTotalsItem;
|
|
59
60
|
reteRenta: InvoicesCalculationsTotalsItem;
|
|
60
61
|
montoTotalOperacion: InvoicesCalculationsTotalsItem;
|
|
61
|
-
totalIva: InvoicesCalculationsTotalsItem;
|
|
62
62
|
totalPagar: InvoicesCalculationsTotalsItem;
|
|
63
63
|
}
|
|
64
64
|
export type InvoicesCalculationsCalculateSingleResponse = {
|
|
@@ -13,21 +13,22 @@ export type InvoicesCreateSingleHeader = {
|
|
|
13
13
|
creditFor?: string;
|
|
14
14
|
};
|
|
15
15
|
export type InvoicesCreateSingleTotals = {
|
|
16
|
+
totalExenta: number;
|
|
17
|
+
totalNoSuj: number;
|
|
18
|
+
totalGravada: number;
|
|
16
19
|
subTotalVentas: number;
|
|
20
|
+
descuExenta?: number;
|
|
21
|
+
descuNoSuj?: number;
|
|
22
|
+
descuGravada?: number;
|
|
23
|
+
totalDescu?: number;
|
|
24
|
+
porcentajeDescuento?: number;
|
|
17
25
|
totalIva: number;
|
|
18
26
|
subTotal: number;
|
|
19
27
|
ivaRete1: number;
|
|
20
28
|
ivaPercibido?: number;
|
|
21
29
|
renta5?: number;
|
|
22
30
|
renta10?: number;
|
|
23
|
-
totalExenta: number;
|
|
24
|
-
totalNoSuj: number;
|
|
25
31
|
totalPagar: number;
|
|
26
|
-
descuExenta?: number;
|
|
27
|
-
descuGravada?: number;
|
|
28
|
-
descuNoSuj?: number;
|
|
29
|
-
totalDescu?: number;
|
|
30
|
-
porcentajeDescuento?: number;
|
|
31
32
|
};
|
|
32
33
|
export type InvoicesCreateSingleDetail = {
|
|
33
34
|
service: string;
|
|
@@ -24,15 +24,16 @@ export type Invoices = {
|
|
|
24
24
|
customerNrc: string;
|
|
25
25
|
customerGiro: string;
|
|
26
26
|
customerPassport: string;
|
|
27
|
+
totalExenta: number;
|
|
28
|
+
totalNoSuj: number;
|
|
29
|
+
totalGravada: number;
|
|
27
30
|
subTotalVentas: number;
|
|
28
31
|
totalIva: number;
|
|
32
|
+
subTotal: number;
|
|
29
33
|
ivaPercibido: number;
|
|
30
34
|
renta5: number;
|
|
31
35
|
renta10: number;
|
|
32
|
-
subTotal: number;
|
|
33
36
|
ivaRete1: number;
|
|
34
|
-
totalExenta: number;
|
|
35
|
-
totalNoSuj: number;
|
|
36
37
|
totalPagar: number;
|
|
37
38
|
totalPagarText: string;
|
|
38
39
|
origin: string;
|
|
@@ -9,12 +9,10 @@ export type PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerZone =
|
|
|
9
9
|
id: string;
|
|
10
10
|
name: string;
|
|
11
11
|
};
|
|
12
|
-
export type PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerSvFields = Pick<PartnersV1InvoicesCreateSingleRequestDataHeaderCustomerSvFields, 'dui'>;
|
|
13
12
|
export type PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSeller = {
|
|
14
13
|
id: string;
|
|
15
14
|
name: string;
|
|
16
15
|
zone: PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerZone;
|
|
17
|
-
svFields: PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerSvFields;
|
|
18
16
|
};
|
|
19
17
|
export declare enum PartnersV1InvoicesCreateSingleRequestDataHeaderCustomerType {
|
|
20
18
|
NO_SUJETO = 1,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/partners/V1/invoices/CreateSingle/Request.ts"],"names":[],"mappings":";;;AAEA,IAAY,mDAEX;AAFD,WAAY,mDAAmD;IAC7D,sEAAe,CAAA;AACjB,CAAC,EAFW,mDAAmD,GAAnD,2DAAmD,KAAnD,2DAAmD,QAE9D;
|
|
1
|
+
{"version":3,"file":"Request.js","sourceRoot":"","sources":["../../../../../src/partners/V1/invoices/CreateSingle/Request.ts"],"names":[],"mappings":";;;AAEA,IAAY,mDAEX;AAFD,WAAY,mDAAmD;IAC7D,sEAAe,CAAA;AACjB,CAAC,EAFW,mDAAmD,GA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
|
|
|
74
74
|
export interface InvoicesCalculationsTotalsResponse {
|
|
75
75
|
// Totales antes de impuestos
|
|
76
|
-
totalNoSuj: InvoicesCalculationsTotalsItem // previously ventasNoSujetas
|
|
77
76
|
totalExenta: InvoicesCalculationsTotalsItem // previously ventasExentas
|
|
77
|
+
totalNoSuj: InvoicesCalculationsTotalsItem // previously ventasNoSujetas
|
|
78
78
|
totalGravada: InvoicesCalculationsTotalsItem
|
|
79
79
|
subTotalVentas: InvoicesCalculationsTotalsItem // previously sum
|
|
80
80
|
|
|
81
81
|
// Descuentos
|
|
82
|
-
descuNoSuj: InvoicesCalculationsTotalsItem
|
|
83
82
|
descuExenta: InvoicesCalculationsTotalsItem
|
|
83
|
+
descuNoSuj: InvoicesCalculationsTotalsItem
|
|
84
84
|
descuGravada: InvoicesCalculationsTotalsItem
|
|
85
|
-
porcentajeDescuento: InvoicesCalculationsTotalsItem
|
|
86
85
|
totalDescu: InvoicesCalculationsTotalsItem
|
|
86
|
+
porcentajeDescuento: InvoicesCalculationsTotalsItem
|
|
87
87
|
|
|
88
88
|
// Totales con impuestos
|
|
89
|
+
totalIva: InvoicesCalculationsTotalsItem // previously iva
|
|
89
90
|
subTotal: InvoicesCalculationsTotalsItem // previously subtotal
|
|
90
91
|
ivaRete1: InvoicesCalculationsTotalsItem // previously ivaRetenido
|
|
91
92
|
reteRenta: InvoicesCalculationsTotalsItem
|
|
92
93
|
montoTotalOperacion: InvoicesCalculationsTotalsItem
|
|
93
|
-
totalIva: InvoicesCalculationsTotalsItem // previously iva
|
|
94
94
|
totalPagar: InvoicesCalculationsTotalsItem // previously ventaTotal
|
|
95
95
|
}
|
|
96
96
|
|
|
@@ -15,21 +15,33 @@ export type InvoicesCreateSingleHeader = {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export type InvoicesCreateSingleTotals = {
|
|
18
|
+
// Summary values
|
|
19
|
+
totalExenta: number // previously ventasExentas
|
|
20
|
+
totalNoSuj: number // previously ventasNoSujetas
|
|
21
|
+
totalGravada: number
|
|
18
22
|
subTotalVentas: number // previously sum
|
|
23
|
+
|
|
24
|
+
// Discounts values
|
|
25
|
+
descuExenta?: number
|
|
26
|
+
descuNoSuj?: number
|
|
27
|
+
descuGravada?: number
|
|
28
|
+
totalDescu?: number
|
|
29
|
+
porcentajeDescuento?: number
|
|
30
|
+
|
|
31
|
+
// Tax values
|
|
19
32
|
totalIva: number // previously iva
|
|
33
|
+
|
|
34
|
+
// Subtotal values
|
|
20
35
|
subTotal: number // previously subtotal
|
|
36
|
+
|
|
37
|
+
// Other retention values
|
|
21
38
|
ivaRete1: number // previously ivaRetenido
|
|
22
39
|
ivaPercibido?: number
|
|
23
40
|
renta5?: number
|
|
24
41
|
renta10?: number
|
|
25
|
-
|
|
26
|
-
|
|
42
|
+
|
|
43
|
+
// Total values
|
|
27
44
|
totalPagar: number // previously ventaTotal
|
|
28
|
-
descuExenta?: number
|
|
29
|
-
descuGravada?: number
|
|
30
|
-
descuNoSuj?: number
|
|
31
|
-
totalDescu?: number
|
|
32
|
-
porcentajeDescuento?: number
|
|
33
45
|
}
|
|
34
46
|
|
|
35
47
|
export type InvoicesCreateSingleDetail = {
|
|
@@ -25,15 +25,16 @@ export type Invoices = {
|
|
|
25
25
|
customerNrc: string
|
|
26
26
|
customerGiro: string
|
|
27
27
|
customerPassport: string
|
|
28
|
+
totalExenta: number // previously ventasExentas
|
|
29
|
+
totalNoSuj: number // previously ventasNoSujetas
|
|
30
|
+
totalGravada: number
|
|
28
31
|
subTotalVentas: number // previously sum
|
|
29
32
|
totalIva: number // previously iva
|
|
33
|
+
subTotal: number // previously subtotal
|
|
30
34
|
ivaPercibido: number
|
|
31
35
|
renta5: number
|
|
32
36
|
renta10: number
|
|
33
|
-
subTotal: number // previously subtotal
|
|
34
37
|
ivaRete1: number // previously ivaRetenido
|
|
35
|
-
totalExenta: number // previously ventasExentas
|
|
36
|
-
totalNoSuj: number // previously ventasNoSujetas
|
|
37
38
|
totalPagar: number // previously ventaTotal
|
|
38
39
|
totalPagarText: string // previously ventaTotalText
|
|
39
40
|
origin: string
|
|
@@ -13,16 +13,10 @@ export type PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerZone =
|
|
|
13
13
|
name: string
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
export type PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerSvFields = Pick<
|
|
17
|
-
PartnersV1InvoicesCreateSingleRequestDataHeaderCustomerSvFields,
|
|
18
|
-
'dui'
|
|
19
|
-
>
|
|
20
|
-
|
|
21
16
|
export type PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSeller = {
|
|
22
17
|
id: string
|
|
23
18
|
name: string
|
|
24
19
|
zone: PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerZone
|
|
25
|
-
svFields: PartnersV1InvoicesCreateSingleRequestDataHeaderInvoicesSellerSvFields
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
export enum PartnersV1InvoicesCreateSingleRequestDataHeaderCustomerType {
|