@openbox/shared-types 0.2.85 → 0.2.86
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,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type InvoicesCreateSingleReservedRequest = Pick<
|
|
1
|
+
import { InvoiceHeaderSection } from '../CreateSingle/Request';
|
|
2
|
+
export type InvoicesCreateSingleReservedRequest = Pick<InvoiceHeaderSection, 'document' | 'authorization'> & {
|
|
3
3
|
sequenceFrom: number;
|
|
4
4
|
sequenceTo: number;
|
|
5
5
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type InvoiceHeaderSection = {
|
|
2
2
|
customer: string;
|
|
3
3
|
customerBranch: string;
|
|
4
4
|
invoicesSeller: string;
|
|
@@ -8,7 +8,7 @@ export type InvoiceHeader = {
|
|
|
8
8
|
document: string;
|
|
9
9
|
authorization: string;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
11
|
+
export type InvoiceTotalsSection = {
|
|
12
12
|
sum: number;
|
|
13
13
|
iva: number;
|
|
14
14
|
subtotal: number;
|
|
@@ -21,7 +21,7 @@ export type InvoiceTotals = {
|
|
|
21
21
|
ventaTotal: number;
|
|
22
22
|
ventaTotalText: string;
|
|
23
23
|
};
|
|
24
|
-
export type
|
|
24
|
+
export type InvoiceDetailsSection = {
|
|
25
25
|
quantity: number;
|
|
26
26
|
unitPrice: number;
|
|
27
27
|
chargeDescription: string;
|
|
@@ -38,7 +38,7 @@ export type InvoiceDetails = {
|
|
|
38
38
|
service: string;
|
|
39
39
|
};
|
|
40
40
|
export type InvoicesCreateSingleRequest = {
|
|
41
|
-
header:
|
|
42
|
-
totals:
|
|
43
|
-
details:
|
|
41
|
+
header: InvoiceHeaderSection;
|
|
42
|
+
totals: InvoiceTotalsSection;
|
|
43
|
+
details: InvoiceDetailsSection[];
|
|
44
44
|
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InvoiceHeaderSection } from '../CreateSingle/Request'
|
|
2
2
|
|
|
3
3
|
export type InvoicesCreateSingleReservedRequest = Pick<
|
|
4
|
-
|
|
4
|
+
InvoiceHeaderSection,
|
|
5
5
|
'document' | 'authorization'
|
|
6
6
|
> & {
|
|
7
7
|
sequenceFrom: number
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type
|
|
1
|
+
export type InvoiceHeaderSection = {
|
|
2
2
|
customer: string
|
|
3
3
|
customerBranch: string
|
|
4
4
|
invoicesSeller: string
|
|
@@ -9,7 +9,7 @@ export type InvoiceHeader = {
|
|
|
9
9
|
authorization: string
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type InvoiceTotalsSection = {
|
|
13
13
|
sum: number
|
|
14
14
|
iva: number
|
|
15
15
|
subtotal: number
|
|
@@ -23,7 +23,7 @@ export type InvoiceTotals = {
|
|
|
23
23
|
ventaTotalText: string
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export type
|
|
26
|
+
export type InvoiceDetailsSection = {
|
|
27
27
|
quantity: number
|
|
28
28
|
unitPrice: number
|
|
29
29
|
chargeDescription: string
|
|
@@ -41,7 +41,7 @@ export type InvoiceDetails = {
|
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
export type InvoicesCreateSingleRequest = {
|
|
44
|
-
header:
|
|
45
|
-
totals:
|
|
46
|
-
details:
|
|
44
|
+
header: InvoiceHeaderSection
|
|
45
|
+
totals: InvoiceTotalsSection
|
|
46
|
+
details: InvoiceDetailsSection[]
|
|
47
47
|
}
|