UNPKG

shopify-api-node

Version:
26 lines (19 loc) 511 B
'use strict'; 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;