starta.apiclient 1.37.1100 → 1.37.1122
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.
|
@@ -19,7 +19,7 @@ export default class Orders {
|
|
|
19
19
|
skipOrderId: any;
|
|
20
20
|
scheduleId: any;
|
|
21
21
|
}): Promise<import("../../types").StartaResponse>;
|
|
22
|
-
get(
|
|
22
|
+
get(organizationOrCustomerLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
23
23
|
add(organizationLogin: any, { product: { type, id, executor }, starttime, endtime, customerId, price, duration, scheduleId, status, repeatSettings }: {
|
|
24
24
|
product: {
|
|
25
25
|
type: any;
|
|
@@ -50,4 +50,7 @@ export default class Orders {
|
|
|
50
50
|
repeatSettings?: OrderRepeatSettings;
|
|
51
51
|
}): Promise<import("../../types").StartaResponse>;
|
|
52
52
|
delete(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
53
|
+
setConfirmation(organizationOrCustomerLogin: any, orderId: any, { isConfirmed }: {
|
|
54
|
+
isConfirmed: any;
|
|
55
|
+
}): Promise<import("../../types").StartaResponse>;
|
|
53
56
|
}
|
|
@@ -30,9 +30,9 @@ var Orders = /** @class */ (function () {
|
|
|
30
30
|
method: 'GET',
|
|
31
31
|
});
|
|
32
32
|
};
|
|
33
|
-
Orders.prototype.get = function (
|
|
33
|
+
Orders.prototype.get = function (organizationOrCustomerLogin, orderId) {
|
|
34
34
|
return this._requestRunner.performRequest({
|
|
35
|
-
url: "accounts/".concat(
|
|
35
|
+
url: "accounts/".concat(organizationOrCustomerLogin, "/orders/").concat(orderId),
|
|
36
36
|
method: 'GET',
|
|
37
37
|
});
|
|
38
38
|
};
|
|
@@ -77,6 +77,16 @@ var Orders = /** @class */ (function () {
|
|
|
77
77
|
method: 'DELETE',
|
|
78
78
|
});
|
|
79
79
|
};
|
|
80
|
+
Orders.prototype.setConfirmation = function (organizationOrCustomerLogin, orderId, _a) {
|
|
81
|
+
var isConfirmed = _a.isConfirmed;
|
|
82
|
+
return this._requestRunner.performRequest({
|
|
83
|
+
url: "accounts/".concat(organizationOrCustomerLogin, "/orders/").concat(orderId, "/confirmation"),
|
|
84
|
+
method: 'PUT',
|
|
85
|
+
body: {
|
|
86
|
+
isConfirmed: isConfirmed
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
};
|
|
80
90
|
return Orders;
|
|
81
91
|
}());
|
|
82
92
|
exports.default = Orders;
|
|
@@ -9,7 +9,6 @@ export default class Public {
|
|
|
9
9
|
month: any;
|
|
10
10
|
scheduleId: any;
|
|
11
11
|
}): Promise<import("../../types").StartaResponse>;
|
|
12
|
-
getOrder(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
13
12
|
cancelOrder(organizationLogin: any, orderId: any): Promise<import("../../types").StartaResponse>;
|
|
14
13
|
getOrders(organizationLogin: any): Promise<import("../../types").StartaResponse>;
|
|
15
14
|
createOrder(organizationLogin: any, { product, starttime, scheduleId }: {
|
|
@@ -23,12 +23,6 @@ var Public = /** @class */ (function () {
|
|
|
23
23
|
method: 'GET',
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
|
-
Public.prototype.getOrder = function (organizationLogin, orderId) {
|
|
27
|
-
return this._requestRunner.performRequest({
|
|
28
|
-
url: "accounts/".concat(organizationLogin, "/public/orders/").concat(orderId),
|
|
29
|
-
method: 'GET',
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
26
|
Public.prototype.cancelOrder = function (organizationLogin, orderId) {
|
|
33
27
|
return this._requestRunner.performRequest({
|
|
34
28
|
url: "accounts/".concat(organizationLogin, "/public/orders/").concat(orderId, "/status"),
|