shopify-api-node
Version:
Shopify API bindings for Node.js
26 lines (19 loc) • 511 B
JavaScript
const assign = require('lodash/assign');
const omit = require('lodash/omit');
const baseChild = require('../mixins/base-child');
/**
* Creates a Payment instance.
*
* @param {Shopify} shopify Reference to the Shopify instance
* @constructor
* @public
*/
function Payment(shopify) {
this.shopify = shopify;
this.parentName = 'checkouts';
this.name = 'payments';
this.key = 'payment';
}
assign(Payment.prototype, omit(baseChild, ['delete', 'update']));
module.exports = Payment;
;