@openbox/shared-types 0.5.87 → 0.5.88
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.
|
@@ -17,6 +17,7 @@ type InvoicesCalculationsDetailsBaseRequest = {
|
|
|
17
17
|
* // Service detail
|
|
18
18
|
* const serviceDetail: InvoicesCalculationsDetailsRequest = {
|
|
19
19
|
* service: "service-id-123",
|
|
20
|
+
* product: null,
|
|
20
21
|
* quantity: 1,
|
|
21
22
|
* unitPrice: 100,
|
|
22
23
|
* price: 100,
|
|
@@ -30,6 +31,7 @@ type InvoicesCalculationsDetailsBaseRequest = {
|
|
|
30
31
|
* // Product detail
|
|
31
32
|
* const productDetail: InvoicesCalculationsDetailsRequest = {
|
|
32
33
|
* product: "product-id-123",
|
|
34
|
+
* service: null,
|
|
33
35
|
* quantity: 2,
|
|
34
36
|
* unitPrice: 50,
|
|
35
37
|
* price: 100,
|
|
@@ -41,10 +43,10 @@ type InvoicesCalculationsDetailsBaseRequest = {
|
|
|
41
43
|
*/
|
|
42
44
|
export type InvoicesCalculationsDetailsRequest = (InvoicesCalculationsDetailsBaseRequest & {
|
|
43
45
|
service: string;
|
|
44
|
-
product
|
|
46
|
+
product: null;
|
|
45
47
|
}) | (InvoicesCalculationsDetailsBaseRequest & {
|
|
46
48
|
product: string;
|
|
47
|
-
service
|
|
49
|
+
service: null;
|
|
48
50
|
});
|
|
49
51
|
export type InvoicesCalculationsDiscountsRequest = {
|
|
50
52
|
id?: string;
|
|
@@ -30,6 +30,7 @@ type InvoicesCalculationsDetailsBaseResponse = {
|
|
|
30
30
|
* // Service detail response
|
|
31
31
|
* const serviceResponse: InvoicesCalculationsDetailsResponse = {
|
|
32
32
|
* service: "service-id-123",
|
|
33
|
+
* product: null,
|
|
33
34
|
* quantity: 1,
|
|
34
35
|
* chargeDescription: "Service charge",
|
|
35
36
|
* price: 100,
|
|
@@ -45,10 +46,10 @@ type InvoicesCalculationsDetailsBaseResponse = {
|
|
|
45
46
|
*/
|
|
46
47
|
export type InvoicesCalculationsDetailsResponse = (InvoicesCalculationsDetailsBaseResponse & {
|
|
47
48
|
service: string;
|
|
48
|
-
product
|
|
49
|
+
product: null;
|
|
49
50
|
}) | (InvoicesCalculationsDetailsBaseResponse & {
|
|
50
51
|
product: string;
|
|
51
|
-
service
|
|
52
|
+
service: null;
|
|
52
53
|
});
|
|
53
54
|
export type InvoicesCalculationsDiscountsResponse = {
|
|
54
55
|
id?: string;
|