starta.apiclient 1.37.3501 → 1.37.3512
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.
|
@@ -91,6 +91,7 @@ export default class Accounts {
|
|
|
91
91
|
getAllKeys(): Promise<import("../types").StartaResponse>;
|
|
92
92
|
getAddressSuggestions(login: string, term: string, language?: string): Promise<import("../types").StartaResponse>;
|
|
93
93
|
setStatus(login: string, status: 'client' | 'potentialOrganization' | 'hasOrganization' | 'onboarding' | 'trial' | 'license'): Promise<import("../types").StartaResponse>;
|
|
94
|
+
setBillingModel(organizationLogin: string, billingModel: 'regular' | 'endlessTrial' | 'blogger' | 'promo1usd'): Promise<import("../types").StartaResponse>;
|
|
94
95
|
orders(login: string, { organizationLogin, from, to, status, products, sortColumn, sortDirection, statusOperator }: {
|
|
95
96
|
organizationLogin?: any;
|
|
96
97
|
from?: string;
|
package/lib/services/accounts.js
CHANGED
|
@@ -221,6 +221,13 @@ class Accounts {
|
|
|
221
221
|
body: { status },
|
|
222
222
|
});
|
|
223
223
|
}
|
|
224
|
+
setBillingModel(organizationLogin, billingModel) {
|
|
225
|
+
return this._requestRunner.performRequest({
|
|
226
|
+
url: `accounts/${organizationLogin}/billingModel`,
|
|
227
|
+
method: 'PUT',
|
|
228
|
+
body: { billingModel },
|
|
229
|
+
});
|
|
230
|
+
}
|
|
224
231
|
orders(login, { organizationLogin, from, to, status, products, sortColumn, sortDirection, statusOperator }) {
|
|
225
232
|
return this._requestRunner.performRequest({
|
|
226
233
|
url: `accounts/${login}/orders${(0, _helpers_1.buildQuery)({
|