UNPKG

connect-sdk-nodejs

Version:

SDK to communicate with the Worldline Global Collect platform using the Worldline Connect Server API

20 lines 724 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.uploadFile = void 0; /* * This file was auto-generated from the API references found at * https://apireference.connect.worldline-solutions.com/ */ const communicator_1 = require("../../utils/communicator"); function uploadFile(sdkContext) { return function (merchantId, disputeId, postData, paymentContext) { return (0, communicator_1.multipart)({ method: "POST", modulePath: `/files/v1/${merchantId}/disputes/${disputeId}`, body: postData, paymentContext: paymentContext }, sdkContext); }; } exports.uploadFile = uploadFile; //# sourceMappingURL=uploadFile.js.map