merchi_sdk_js 0.0.35 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/category.js +2 -0
- package/src/model.js +3 -0
package/package.json
CHANGED
package/src/category.js
CHANGED
@@ -14,6 +14,8 @@ export function Category() {
|
|
14
14
|
addPropertyTo(this, 'showPublic');
|
15
15
|
addPropertyTo(this, 'showPublicSupplierResell');
|
16
16
|
addPropertyTo(this, 'domain', Domain);
|
17
|
+
addPropertyTo(this, 'subcategories', Category);
|
18
|
+
addPropertyTo(this, 'parent', Category);
|
17
19
|
|
18
20
|
this.create = function (success, error, embed, domainId) {
|
19
21
|
var data = serialise(this),
|
package/src/model.js
CHANGED
@@ -459,6 +459,9 @@ export function getList(resource, success, error, parameters, withUpdates) {
|
|
459
459
|
request.query().add('query_string',
|
460
460
|
parameters.queryString);
|
461
461
|
}
|
462
|
+
if (notEmpty(parameters.categories)) {
|
463
|
+
request.query().add('categories', parameters.categories);
|
464
|
+
}
|
462
465
|
if (notEmpty(parameters.companyCustomerId)) {
|
463
466
|
request.query().add('company_customer_id',
|
464
467
|
parameters.companyCustomerId);
|