starta.apiclient 1.37.970 → 1.37.975

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.
@@ -16,13 +16,13 @@ export default class Organizations {
16
16
  index({ searchTerm }: {
17
17
  searchTerm?: string;
18
18
  }): Promise<import("../../types").StartaResponse>;
19
- create(account: any, { login, name, currency, timeZone, orgType, country }: {
19
+ create(account: any, { login, name, currency, timeZone, orgType, countryIso2 }: {
20
20
  login: any;
21
21
  name: any;
22
22
  currency: any;
23
23
  timeZone: any;
24
24
  orgType: any;
25
- country: any;
25
+ countryIso2: any;
26
26
  }): Promise<import("../../types").StartaResponse>;
27
27
  update(account: any, { name, timeZone }: {
28
28
  name: any;
@@ -24,11 +24,11 @@ var Organizations = /** @class */ (function () {
24
24
  });
25
25
  };
26
26
  Organizations.prototype.create = function (account, _a) {
27
- var login = _a.login, name = _a.name, currency = _a.currency, timeZone = _a.timeZone, orgType = _a.orgType, country = _a.country;
27
+ var login = _a.login, name = _a.name, currency = _a.currency, timeZone = _a.timeZone, orgType = _a.orgType, countryIso2 = _a.countryIso2;
28
28
  return this._requestRunner.performRequest({
29
29
  url: "accounts/".concat(account, "/organizations"),
30
30
  method: 'POST',
31
- body: { login: login, name: name, currency: currency, timeZone: timeZone, orgType: orgType, country: country },
31
+ body: { login: login, name: name, currency: currency, timeZone: timeZone, orgType: orgType, countryIso2: countryIso2 },
32
32
  });
33
33
  };
34
34
  Organizations.prototype.update = function (account, _a) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.970",
3
+ "version": "1.37.975",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",