starta.apiclient 1.37.3601 → 1.37.3608
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.
|
@@ -95,6 +95,12 @@ export default class Organizations {
|
|
|
95
95
|
setForYearBonus(organizationLogin: string, bonusForYearUntil: string): Promise<import("../../types").StartaResponse>;
|
|
96
96
|
getBillingInfo(organizationLogin: string, month?: string): Promise<import("../../types").StartaResponse>;
|
|
97
97
|
setTariff(organizationLogin: string, { tariff, period, successUrl, cancelUrl }: TariffDetails): Promise<import("../../types").StartaResponse>;
|
|
98
|
+
addBalance(organizationLogin: string, { amount, comment, type, currency }: {
|
|
99
|
+
amount: number;
|
|
100
|
+
comment: string;
|
|
101
|
+
type: 'manual';
|
|
102
|
+
currency: 'PLN' | 'EUR' | 'UAH';
|
|
103
|
+
}): Promise<import("../../types").StartaResponse>;
|
|
98
104
|
get orders(): Orders;
|
|
99
105
|
get customers(): Customers;
|
|
100
106
|
get rooms(): Rooms;
|
|
@@ -208,6 +208,13 @@ class Organizations {
|
|
|
208
208
|
body: { tariff, period, successUrl, cancelUrl },
|
|
209
209
|
});
|
|
210
210
|
}
|
|
211
|
+
addBalance(organizationLogin, { amount, comment, type, currency }) {
|
|
212
|
+
return this._requestRunner.performRequest({
|
|
213
|
+
url: `accounts/${organizationLogin}/balance`,
|
|
214
|
+
method: 'POST',
|
|
215
|
+
body: { amount, comment, type, currency },
|
|
216
|
+
});
|
|
217
|
+
}
|
|
211
218
|
get orders() {
|
|
212
219
|
return new orders_1.default(this._requestRunner);
|
|
213
220
|
}
|