@kiminix/tp-client 2.11.2 → 2.11.3
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,4 +1,15 @@
|
|
|
1
|
+
import { CreateOrdersAdminAPI } from "./create-orders-api";
|
|
1
2
|
export declare class CreateBillAPI {
|
|
3
|
+
/**
|
|
4
|
+
*
|
|
5
|
+
* @param props
|
|
6
|
+
* @throws
|
|
7
|
+
* unauthorized_action, item_unavailable, item_not_found,
|
|
8
|
+
* variant_not_found, qrcode_not_found, internal_error,
|
|
9
|
+
* order_not_found, order_already_linked
|
|
10
|
+
*
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
2
13
|
static create(props: {
|
|
3
14
|
token?: string;
|
|
4
15
|
request: CreateBillAPI.Request;
|
|
@@ -9,5 +20,6 @@ export declare namespace CreateBillAPI {
|
|
|
9
20
|
orders: string[];
|
|
10
21
|
discount?: number;
|
|
11
22
|
name?: string;
|
|
23
|
+
createOrder?: CreateOrdersAdminAPI.Request | undefined;
|
|
12
24
|
}
|
|
13
25
|
}
|
|
@@ -40,6 +40,16 @@ import { RequestUtils } from "../../../utils/request-utils";
|
|
|
40
40
|
var CreateBillAPI = /** @class */ (function () {
|
|
41
41
|
function CreateBillAPI() {
|
|
42
42
|
}
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param props
|
|
46
|
+
* @throws
|
|
47
|
+
* unauthorized_action, item_unavailable, item_not_found,
|
|
48
|
+
* variant_not_found, qrcode_not_found, internal_error,
|
|
49
|
+
* order_not_found, order_already_linked
|
|
50
|
+
*
|
|
51
|
+
* @returns
|
|
52
|
+
*/
|
|
43
53
|
CreateBillAPI.create = function (props) {
|
|
44
54
|
return __awaiter(this, void 0, void 0, function () {
|
|
45
55
|
return __generator(this, function (_a) {
|