starta.apiclient 1.37.3613 → 1.37.3631

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.
@@ -3,12 +3,13 @@ export default class CashRegisters {
3
3
  private _requestRunner;
4
4
  constructor(requestRunner: StartaRequestRunner);
5
5
  index(organizationLogin: string, branchId?: string): Promise<import("../../types").StartaResponse>;
6
- add(organizationLogin: string, { name, type, balance, description, branchId, }: {
6
+ add(organizationLogin: string, { name, type, balance, description, branchId, isDefault, }: {
7
7
  name: string;
8
8
  type: 'cash' | 'nonCash';
9
9
  balance: number;
10
10
  description?: string;
11
11
  branchId?: string;
12
+ isDefault?: boolean;
12
13
  }): Promise<import("../../types").StartaResponse>;
13
14
  update(organizationLogin: string, cashRegisterId: string, { name, type, description, branchId, }: {
14
15
  name: string;
@@ -11,7 +11,7 @@ class CashRegisters {
11
11
  method: 'GET',
12
12
  });
13
13
  }
14
- add(organizationLogin, { name, type, balance, description, branchId, }) {
14
+ add(organizationLogin, { name, type, balance, description, branchId, isDefault, }) {
15
15
  return this._requestRunner.performRequest({
16
16
  url: `accounts/${organizationLogin}/cashRegisters`,
17
17
  method: 'POST',
@@ -21,6 +21,7 @@ class CashRegisters {
21
21
  balance,
22
22
  description,
23
23
  branchId,
24
+ isDefault,
24
25
  },
25
26
  });
26
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "starta.apiclient",
3
- "version": "1.37.3613",
3
+ "version": "1.37.3631",
4
4
  "main": "./lib/index.js",
5
5
  "description": "Wrapper for starta.one api",
6
6
  "author": "Collaboracia OÜ",