shopify-api-node
Advanced tools
Comparing version 2.0.0 to 2.1.0
{ | ||
"name": "shopify-api-node", | ||
"version": "2.0.0", | ||
"version": "2.1.0", | ||
"description": "Shopify API bindings for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -208,2 +208,3 @@ # shopify-api-node | ||
- `list(orderId[, params])` | ||
- `open(orderId, id)` | ||
- `update(orderId, id, params)` | ||
@@ -210,0 +211,0 @@ - fulfillmentEvent |
@@ -40,2 +40,16 @@ 'use strict'; | ||
/** | ||
* Opens a pending fulfillment. | ||
* | ||
* @param {Number} orderId Order ID | ||
* @param {Number} id Fulfillment id | ||
* @return {Promise} Promise that resolves with the result | ||
* @public | ||
*/ | ||
Fulfillment.prototype.open = function open(orderId, id) { | ||
const url = this.buildUrl(orderId, `${id}/open`); | ||
return this.shopify.request(url, 'POST', undefined, {}) | ||
.then(body => body[this.key]); | ||
}; | ||
/** | ||
* Cancels a pending fulfillment. | ||
@@ -42,0 +56,0 @@ * |
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
57584
1593
396