haravan-client
Version:
### Haravan API
18 lines (17 loc) • 601 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.updateFulfillment = void 0;
const common_1 = require("./common");
function updateFulfillment(param) {
const { orderId, id, fulfillment, accessToken, delay } = param;
const config = common_1.makeRequestConfig({
path: `/com/orders/${orderId}/fulfillments/${id}.json`,
method: 'PUT',
accessToken: accessToken,
data: { fulfillment },
rootField: 'fulfillment',
delay
});
return common_1.sendRequest(config);
}
exports.updateFulfillment = updateFulfillment;