shopify-api-node
Advanced tools
Comparing version 3.4.4 to 3.5.0
{ | ||
"name": "shopify-api-node", | ||
"version": "3.4.4", | ||
"version": "3.5.0", | ||
"description": "Shopify API bindings for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -409,2 +409,3 @@ # Shopify API Node.js (Official module) | ||
- `create(orderId, params)` | ||
- `createV2(params)` | ||
- `get(orderId, id[, params])` | ||
@@ -411,0 +412,0 @@ - `list(orderId[, params])` |
@@ -6,2 +6,3 @@ 'use strict'; | ||
const base = require('../mixins/base'); | ||
const baseChild = require('../mixins/base-child'); | ||
@@ -71,2 +72,16 @@ | ||
/** | ||
* Creates a fulfillment for one or many fulfillment orders. The fulfillment | ||
* orders are associated with the same order and are assigned to the same | ||
* location. | ||
* | ||
* @param {Object} [params] Query parameters | ||
* @return {Promise} Promise that resolves with the result | ||
* @public | ||
*/ | ||
Fulfillment.prototype.createV2 = function createV2(params) { | ||
const url = base.buildUrl.call(this); | ||
return this.shopify.request(url, 'POST', this.key, params); | ||
}; | ||
module.exports = Fulfillment; |
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
190907
5925
744