merchi_sdk_js 0.0.19 → 0.0.21

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.19",
3
+ "version": "0.0.21",
4
4
  "type": "module",
5
5
  "main": "src/merchi.js",
6
6
  "module": "src/merchi.js",
package/src/cart.js CHANGED
@@ -27,7 +27,6 @@ export function Cart() {
27
27
  addPropertyTo(this, 'subtotalCost');
28
28
  addPropertyTo(this, 'taxAmount');
29
29
  addPropertyTo(this, 'totalCost');
30
- addPropertyTo(this, 'discountedAmount');
31
30
  addPropertyTo(this, 'cartItems', CartItem);
32
31
  addPropertyTo(this, 'cartItemsSubtotalCost');
33
32
  addPropertyTo(this, 'cartItemsTaxAmount');
package/src/cart_item.js CHANGED
@@ -3,6 +3,7 @@ import { addPropertyTo, serialise, fromJson, create,
3
3
  enumerateFiles } from './model.js';
4
4
  import { Cart } from './cart.js';
5
5
  import { CountryTax } from './country_tax.js';
6
+ import { DomainTag } from './domain_tag.js';
6
7
  import { Product } from './product.js';
7
8
  import { Variation } from './variation.js';
8
9
  import { VariationsGroup } from './variations_group.js';
@@ -22,6 +23,7 @@ export function CartItem() {
22
23
  addPropertyTo(this, 'variations', Variation);
23
24
  addPropertyTo(this, 'variationsGroups', VariationsGroup);
24
25
  addPropertyTo(this, 'taxType', CountryTax);
26
+ addPropertyTo(this, 'tag', DomainTag);
25
27
  addPropertyTo(this, 'subtotalCost');
26
28
  addPropertyTo(this, 'totalCost');
27
29
 
package/src/invoice.js CHANGED
@@ -35,7 +35,6 @@ export function Invoice() {
35
35
  addPropertyTo(this, 'taxAmount');
36
36
  addPropertyTo(this, 'invoiceToken');
37
37
  addPropertyTo(this, 'canAutoPay');
38
- addPropertyTo(this, 'discountedAmount');
39
38
  addPropertyTo(this, 'responsibleManager', User);
40
39
  addPropertyTo(this, 'creator', User);
41
40
  addPropertyTo(this, 'client', User);
package/src/job.js CHANGED
@@ -130,6 +130,7 @@ export function Job() {
130
130
  addPropertyTo(this, 'shopifyOrderId');
131
131
  addPropertyTo(this, 'shopifyOrderLineItemId');
132
132
  addPropertyTo(this, 'internalTags', InternalTag);
133
+ addPropertyTo(this, 'isNewClient');
133
134
 
134
135
  this.create = function (
135
136
  success, error, embed, asDomain, withRights) {