starta.apiclient 1.112.12578 → 1.112.12581
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.
|
@@ -46,4 +46,5 @@ export default class Orders {
|
|
|
46
46
|
setConfirmation(organizationOrCustomerLogin: string, orderId: string, { isConfirmed }: {
|
|
47
47
|
isConfirmed: boolean;
|
|
48
48
|
}): Promise<import("../../types").StartaResponse>;
|
|
49
|
+
addPromocode(organizationLogin: string, orderId: string, promocode: string): Promise<import("../../types").StartaResponse>;
|
|
49
50
|
}
|
|
@@ -118,5 +118,14 @@ class Orders {
|
|
|
118
118
|
},
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
|
+
addPromocode(organizationLogin, orderId, promocode) {
|
|
122
|
+
return this._requestRunner.performRequest({
|
|
123
|
+
url: `accounts/${organizationLogin}/orders/${orderId}/promocodes`,
|
|
124
|
+
method: 'POST',
|
|
125
|
+
body: {
|
|
126
|
+
promocode,
|
|
127
|
+
},
|
|
128
|
+
});
|
|
129
|
+
}
|
|
121
130
|
}
|
|
122
131
|
exports.default = Orders;
|