Class: Refund

Refund(shopify)

new Refund(shopify)

Creates a Refund instance.
Parameters:
Name Type Description
shopify Shopify Reference to the Shopify instance

Methods

calculate(orderId, params) → {Promise}

Calculates a refund.
Parameters:
Name Type Description
orderId Number order ID
params Object How much shipping and line items to refund
Returns:
Promise that resolves with the result
Type
Promise