starta.apiclient 1.37.1897 → 1.37.1906

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.
@@ -54,6 +54,10 @@ export default class Organizations {
54
54
  }>;
55
55
  }): Promise<import("../../types").StartaResponse>;
56
56
  setOnboardingStepComplete(organizationLogin: any, step: any): Promise<import("../../types").StartaResponse>;
57
+ setMFUDiscountSettings(organizationLogin: any, { enabled, discount }: {
58
+ enabled: boolean;
59
+ discount: number;
60
+ }): Promise<import("../../types").StartaResponse>;
57
61
  setDescription(organizationLogin: any, description: any): Promise<import("../../types").StartaResponse>;
58
62
  getBookingWidgetSettings(organizationLogin: any): Promise<import("../../types").StartaResponse>;
59
63
  setBookingWidgetSettings(organizationLogin: any, { enabled, bookingInterval, openButtonEnabled, theme }: {
@@ -87,6 +87,17 @@ var Organizations = /** @class */ (function () {
87
87
  method: 'PUT',
88
88
  });
89
89
  };
90
+ Organizations.prototype.setMFUDiscountSettings = function (organizationLogin, _a) {
91
+ var enabled = _a.enabled, discount = _a.discount;
92
+ return this._requestRunner.performRequest({
93
+ url: "accounts/".concat(organizationLogin, "/mfuDiscount"),
94
+ method: 'PUT',
95
+ body: {
96
+ enabled: enabled,
97
+ discount: discount,
98
+ }
99
+ });
100
+ };
90
101
  Organizations.prototype.setDescription = function (organizationLogin, description) {
91
102
  return this._requestRunner.performRequest({
92
103
  url: "accounts/".concat(organizationLogin, "/description"),
@@ -3,5 +3,4 @@ export default class StartaTransactions {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
5
  index(organizationLogin: string): Promise<import("../../types").StartaResponse>;
6
- refund(organizationLogin: string): Promise<import("../../types").StartaResponse>;
7
6
  }
@@ -10,12 +10,6 @@ var StartaTransactions = /** @class */ (function () {
10
10
  method: 'GET',
11
11
  });
12
12
  };
13
- StartaTransactions.prototype.refund = function (organizationLogin) {
14
- return this._requestRunner.performRequest({
15
- url: "accounts/".concat(organizationLogin, "/startaTransactions"),
16
- method: 'POST',
17
- });
18
- };
19
13
  return StartaTransactions;
20
14
  }());
21
15
  exports.default = StartaTransactions;
@@ -12,6 +12,6 @@ export default class EmailConfirmations {
12
12
  password: any;
13
13
  passwordConfirm: any;
14
14
  recaptchaToken: any;
15
- authMethod?: 'cookie' | 'header';
15
+ authMethod?: 'cookie' | '';
16
16
  }): Promise<import("../types").StartaResponse>;
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.1897",
3
+ "version": "1.37.1906",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",