@openbox/shared-types 0.4.81 → 0.4.82
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,3 +1,4 @@
|
|
|
1
|
+
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
|
|
1
2
|
export type InvoicesCalculationsDetailsRequest = {
|
|
2
3
|
id?: string;
|
|
3
4
|
service: string;
|
|
@@ -9,8 +10,15 @@ export type InvoicesCalculationsDetailsRequest = {
|
|
|
9
10
|
incRenta10: boolean;
|
|
10
11
|
chargeDescription: string;
|
|
11
12
|
};
|
|
13
|
+
export type InvoicesDiscountsRequest = {
|
|
14
|
+
id?: string;
|
|
15
|
+
type: InvoicesDiscountsTypesKeys;
|
|
16
|
+
quantity: number;
|
|
17
|
+
description: string;
|
|
18
|
+
};
|
|
12
19
|
export type InvoicesCalculationsCalculateSingleRequest = {
|
|
13
20
|
documentType: number;
|
|
14
21
|
customer: string;
|
|
15
22
|
details: InvoicesCalculationsDetailsRequest[];
|
|
23
|
+
discounts: InvoicesDiscountsRequest[] | null;
|
|
16
24
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums';
|
|
1
2
|
export type InvoicesCreateSingleHeader = {
|
|
2
3
|
document: string;
|
|
3
4
|
documentType: number;
|
|
@@ -41,8 +42,14 @@ export type InvoicesCreateSingleDetail = {
|
|
|
41
42
|
rentaPrice10?: number;
|
|
42
43
|
sellingType: number;
|
|
43
44
|
};
|
|
45
|
+
export type InvoicesCreateSingleDiscount = {
|
|
46
|
+
type: InvoicesDiscountsTypesKeys;
|
|
47
|
+
quantity: number;
|
|
48
|
+
description: string;
|
|
49
|
+
};
|
|
44
50
|
export type InvoicesCreateSingleRequest = {
|
|
45
51
|
header: InvoicesCreateSingleHeader;
|
|
46
52
|
totals: InvoicesCreateSingleTotals;
|
|
47
53
|
details: InvoicesCreateSingleDetail[];
|
|
54
|
+
discounts: InvoicesCreateSingleDiscount[];
|
|
48
55
|
};
|
package/package.json
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
|
|
2
|
+
|
|
1
3
|
export type InvoicesCalculationsDetailsRequest = {
|
|
2
4
|
id?: string
|
|
3
5
|
service: string
|
|
@@ -10,8 +12,16 @@ export type InvoicesCalculationsDetailsRequest = {
|
|
|
10
12
|
chargeDescription: string
|
|
11
13
|
}
|
|
12
14
|
|
|
15
|
+
export type InvoicesDiscountsRequest = {
|
|
16
|
+
id?: string
|
|
17
|
+
type: InvoicesDiscountsTypesKeys
|
|
18
|
+
quantity: number
|
|
19
|
+
description: string
|
|
20
|
+
}
|
|
21
|
+
|
|
13
22
|
export type InvoicesCalculationsCalculateSingleRequest = {
|
|
14
23
|
documentType: number
|
|
15
24
|
customer: string
|
|
16
25
|
details: InvoicesCalculationsDetailsRequest[]
|
|
26
|
+
discounts: InvoicesDiscountsRequest[] | null
|
|
17
27
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { InvoicesDiscountsTypesKeys } from '../../invoices.enums'
|
|
2
|
+
|
|
1
3
|
export type InvoicesCreateSingleHeader = {
|
|
2
4
|
document: string
|
|
3
5
|
documentType: number
|
|
@@ -47,8 +49,15 @@ export type InvoicesCreateSingleDetail = {
|
|
|
47
49
|
sellingType: number
|
|
48
50
|
}
|
|
49
51
|
|
|
52
|
+
export type InvoicesCreateSingleDiscount = {
|
|
53
|
+
type: InvoicesDiscountsTypesKeys
|
|
54
|
+
quantity: number
|
|
55
|
+
description: string
|
|
56
|
+
}
|
|
57
|
+
|
|
50
58
|
export type InvoicesCreateSingleRequest = {
|
|
51
59
|
header: InvoicesCreateSingleHeader
|
|
52
60
|
totals: InvoicesCreateSingleTotals
|
|
53
61
|
details: InvoicesCreateSingleDetail[]
|
|
62
|
+
discounts: InvoicesCreateSingleDiscount[]
|
|
54
63
|
}
|