shopify-api-node
Advanced tools
Comparing version 2.16.0 to 2.17.0
{ | ||
"name": "shopify-api-node", | ||
"version": "2.16.0", | ||
"version": "2.17.0", | ||
"description": "Shopify API bindings for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -479,2 +479,3 @@ # Shopify API Node.js (Official module) | ||
- `list([params])` | ||
- `customize(id, params)` | ||
- redirect | ||
@@ -519,2 +520,3 @@ - `count([params])` | ||
- `order(id, params)` | ||
- `products(id[, params])` | ||
- `update(id, params)` | ||
@@ -521,0 +523,0 @@ - storefrontAccessToken |
@@ -41,2 +41,15 @@ 'use strict'; | ||
/** | ||
* Customize a recurring application charge. | ||
* | ||
* @param {Number} id Recurring application charge ID | ||
* @param {Object} params Customization parameters | ||
* @return {Promise} Promise that resolves with the result | ||
* @public | ||
*/ | ||
RecurringApplicationCharge.prototype.customize = function customize(id, params) { | ||
const url = this.buildUrl(`${id}/customize`, { [this.key]: params }); | ||
return this.shopify.request(url, 'PUT', this.key); | ||
}; | ||
module.exports = RecurringApplicationCharge; |
@@ -37,2 +37,15 @@ 'use strict'; | ||
/** | ||
* Retrieves a list of products in a smart collection. | ||
* | ||
* @param {Number} id Smart collection ID | ||
* @param {Object} params Query parameters | ||
* @return {Promise} Promise that resolves with the result | ||
* @public | ||
*/ | ||
SmartCollection.prototype.products = function products(id, params) { | ||
const url = this.buildUrl(`${id}/products`, params); | ||
return this.shopify.request(url, 'GET', 'products'); | ||
}; | ||
module.exports = SmartCollection; |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
147375
4085
613