merchi_sdk_js 0.0.17 → 0.0.19
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/cart.js +1 -0
- package/src/invoice.js +1 -0
- package/src/model.js +4 -0
package/package.json
CHANGED
package/src/cart.js
CHANGED
@@ -27,6 +27,7 @@ export function Cart() {
|
|
27
27
|
addPropertyTo(this, 'subtotalCost');
|
28
28
|
addPropertyTo(this, 'taxAmount');
|
29
29
|
addPropertyTo(this, 'totalCost');
|
30
|
+
addPropertyTo(this, 'discountedAmount');
|
30
31
|
addPropertyTo(this, 'cartItems', CartItem);
|
31
32
|
addPropertyTo(this, 'cartItemsSubtotalCost');
|
32
33
|
addPropertyTo(this, 'cartItemsTaxAmount');
|
package/src/invoice.js
CHANGED
@@ -35,6 +35,7 @@ export function Invoice() {
|
|
35
35
|
addPropertyTo(this, 'taxAmount');
|
36
36
|
addPropertyTo(this, 'invoiceToken');
|
37
37
|
addPropertyTo(this, 'canAutoPay');
|
38
|
+
addPropertyTo(this, 'discountedAmount');
|
38
39
|
addPropertyTo(this, 'responsibleManager', User);
|
39
40
|
addPropertyTo(this, 'creator', User);
|
40
41
|
addPropertyTo(this, 'client', User);
|
package/src/model.js
CHANGED
@@ -502,6 +502,10 @@ export function getList(resource, success, error, parameters, withUpdates) {
|
|
502
502
|
request.query().add(
|
503
503
|
'exclude_domains', parameters.excludeDomains);
|
504
504
|
}
|
505
|
+
if (notEmpty(parameters.excludeJobs)) {
|
506
|
+
request.query().add(
|
507
|
+
'exclude_jobs', parameters.excludeJobs);
|
508
|
+
}
|
505
509
|
if (notEmpty(parameters.includeOnly)) {
|
506
510
|
request.query().add('include_only', parameters.includeOnly);
|
507
511
|
}
|