merchi_sdk_js 0.0.62 → 0.0.64

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "merchi_sdk_js",
3
- "version": "0.0.62",
3
+ "version": "0.0.64",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
package/src/cart.js CHANGED
@@ -23,6 +23,7 @@ export function Cart() {
23
23
  addPropertyTo(this, 'client', User);
24
24
  addPropertyTo(this, 'clientCompany', Company);
25
25
  addPropertyTo(this, 'creationDate');
26
+ addPropertyTo(this, 'updated');
26
27
  addPropertyTo(this, 'domain', Domain);
27
28
  addPropertyTo(this, 'subtotalCost');
28
29
  addPropertyTo(this, 'taxAmount');
package/src/merchi.js CHANGED
@@ -21,7 +21,6 @@ import {
21
21
  AutomaticPaymentRelationship,
22
22
  AutomaticPaymentRelationships,
23
23
  } from './automatic_payment_relationship.js';
24
- import { Backup, Backups } from './backup.js';
25
24
  import { Bank } from './bank.js';
26
25
  import { Category, Categories } from './category.js';
27
26
  import { Cart } from './cart.js';
@@ -962,8 +961,6 @@ export function merchi(backendUri, websocketUri) {
962
961
  'Assignments': new Assignments(),
963
962
  'File': MerchiFile,
964
963
  'files': new MerchiFiles(),
965
- 'Backup': Backup,
966
- 'backups': new Backups(),
967
964
  'removeUnstoredFiles': removeUnstoredFiles,
968
965
  'Shipment': Shipment,
969
966
  'shipments': new Shipments(),
package/src/backup.js DELETED
@@ -1,29 +0,0 @@
1
- import { addPropertyTo, deleteOne, fromJsonList, getList } from './model.js'
2
- import { MerchiFile } from './merchi_file.js';
3
-
4
- export function Backup() {
5
- this.resource = '/backups';
6
- this.json = 'backup';
7
-
8
- addPropertyTo(this, 'id');
9
- addPropertyTo(this, 'file', MerchiFile);
10
-
11
- this.destroy = function (success, error) {
12
- deleteOne(this.resource + "/" + this.id(), success, error);
13
- };
14
- }
15
-
16
- export function Backups() {
17
- this.resource = '/backups';
18
- this.json = 'backups';
19
- this.single = Backup;
20
-
21
- this.get = function (success, error, parameters) {
22
- var self = this;
23
- function handleResponse(result) {
24
- success(fromJsonList(self, result, {makesDirty: false}));
25
- }
26
- getList(this.resource, handleResponse, error,
27
- parameters);
28
- };
29
- }