@airwallex/node-sdk
Version:
Airwallex Node.js SDK
24 lines • 1.08 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ConfirmationLetterApi = void 0;
const apiClient_1 = require("../../client/apiClient");
const dataParser_1 = require("../../utils/dataParser");
class ConfirmationLetterApi {
async getConfirmationLetter(dto, options = {}) {
const localVarPath = '/api/v1/confirmation_letters/create';
const { headers, timeout, responseType } = options;
let localVarHeaderParams = Object.assign({}, headers ? headers : {});
if (dto === null || dto === undefined) {
throw new Error('Required parameter dto was null or undefined when calling getConfirmationLetter.');
}
const data = await apiClient_1.apiClient.post(localVarPath, {
headers: localVarHeaderParams,
timeout,
responseType,
}, dto);
const typeName = 'any';
return (0, dataParser_1.parseDataToType)(data, typeName);
}
}
exports.ConfirmationLetterApi = ConfirmationLetterApi;
//# sourceMappingURL=confirmationLetterApi.js.map