UNPKG

@cotofe/service-of-payment

Version:

OpenAPI client for @cotofe/service-of-payment

1,137 lines (1,136 loc) 45.5 kB
"use strict"; /* tslint:disable */ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaymentPaymentApi = void 0; const runtime = require("../runtime"); /** * */ class PaymentPaymentApi extends runtime.BaseAPI { /** * * balancePayment */ balancePaymentUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/balancePayment`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.balancePaymentDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * balancePayment */ balancePaymentUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.balancePaymentUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * calculateJobCost */ calculateJobCostUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/calculateJobCost`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.calculateDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * calculateJobCost */ calculateJobCostUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.calculateJobCostUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * consent */ consentUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/consent`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.consentDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * consent */ consentUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.consentUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * consent */ consentUsingPOST1Raw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/getUserBalance`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.customerDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * consent */ consentUsingPOST1() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.consentUsingPOST1Raw(requestParameters, initOverrides); return yield response.value(); }); } /** * * exportCustomerBill */ exportCustomerBillUsingGETRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; if (requestParameters.apikey != null) { queryParameters.apikey = requestParameters.apikey; } if (requestParameters.billingDate != null) { queryParameters.billingDate = requestParameters.billingDate; } const headerParameters = {}; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/exportCustomerBilling`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * exportCustomerBill */ exportCustomerBillUsingGET() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.exportCustomerBillUsingGETRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * exportSupplierBill */ exportSupplierBillUsingGETRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; if (requestParameters.apikey != null) { queryParameters.apikey = requestParameters.apikey; } if (requestParameters.billingDate != null) { queryParameters.billingDate = requestParameters.billingDate; } const headerParameters = {}; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/exportSupplierBilling`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * exportSupplierBill */ exportSupplierBillUsingGET() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.exportSupplierBillUsingGETRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * getAccountLink */ getAccountLinkUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/getAccountLink`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.connectDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * getAccountLink */ getAccountLinkUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.getAccountLinkUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * getClientSecret */ getClientSecretUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/getClientSecret`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.customerDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * getClientSecret */ getClientSecretUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.getClientSecretUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * getSupplierBindCard */ getSupplierBindCardUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/getSupplierBindCard`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.customerDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * getSupplierBindCard */ getSupplierBindCardUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.getSupplierBindCardUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * getSupplierClientSecret */ getSupplierClientSecretUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/getSupplierClientSecret`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.connectDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * getSupplierClientSecret */ getSupplierClientSecretUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.getSupplierClientSecretUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * getUserBindCard */ getUserBindCardUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/getUserBindCard`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.customerDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * getUserBindCard */ getUserBindCardUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.getUserBindCardUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * payOrder */ payOrderUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/payOrder`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.payOrderDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * payOrder */ payOrderUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.payOrderUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * paymentStatistics */ paymentStatisticsUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/paymentStatistics`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.customerDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * paymentStatistics */ paymentStatisticsUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.paymentStatisticsUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * processPaymentsForConsolidatedBillings */ processPaymentsForConsolidatedBillingsUsingGETRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/processPaymentsForConsolidatedBillings`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * processPaymentsForConsolidatedBillings */ processPaymentsForConsolidatedBillingsUsingGET(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.processPaymentsForConsolidatedBillingsUsingGETRaw(initOverrides); return yield response.value(); }); } /** * * queryBillInformation */ queryBillInformationUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryBillInformation`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.billInfoDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryBillInformation */ queryBillInformationUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.queryBillInformationUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * queryBillList */ queryBillListUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryBillList`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.billDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryBillList */ queryBillListUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.queryBillListUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * queryBillingByEndpointId */ queryBillingByEndpointIdUsingGETRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters.endpointId == null) { throw new runtime.RequiredError('endpointId', 'Required parameter "endpointId" was null or undefined when calling queryBillingByEndpointIdUsingGET().'); } if (requestParameters.pageNum == null) { throw new runtime.RequiredError('pageNum', 'Required parameter "pageNum" was null or undefined when calling queryBillingByEndpointIdUsingGET().'); } if (requestParameters.pageSize == null) { throw new runtime.RequiredError('pageSize', 'Required parameter "pageSize" was null or undefined when calling queryBillingByEndpointIdUsingGET().'); } const queryParameters = {}; if (requestParameters.endpointId != null) { queryParameters.endpointId = requestParameters.endpointId; } if (requestParameters.pageNum != null) { queryParameters.pageNum = requestParameters.pageNum; } if (requestParameters.pageSize != null) { queryParameters.pageSize = requestParameters.pageSize; } if (requestParameters.userId != null) { queryParameters.userId = requestParameters.userId; } const headerParameters = {}; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryBillingByEndpointId`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryBillingByEndpointId */ queryBillingByEndpointIdUsingGET(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.queryBillingByEndpointIdUsingGETRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * queryCardDetail */ queryCardDetailUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryCardDetail`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.customerDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryCardDetail */ queryCardDetailUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.queryCardDetailUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * queryJobPayment */ queryJobPaymentUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryJobPayment`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.jobDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryJobPayment */ queryJobPaymentUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.queryJobPaymentUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * queryNoSettlementBilling */ queryNoSettlementBillingUsingGETRaw(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryNoSettlementBilling`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryNoSettlementBilling */ queryNoSettlementBillingUsingGET(initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.queryNoSettlementBillingUsingGETRaw(initOverrides); return yield response.value(); }); } /** * * queryPayStatus */ queryPayStatusUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryPayStatus`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.paymentDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryPayStatus */ queryPayStatusUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.queryPayStatusUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * queryPaymentAmountByKeyId */ queryPaymentAmountByKeyIdUsingGETRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { if (requestParameters.keyId == null) { throw new runtime.RequiredError('keyId', 'Required parameter "keyId" was null or undefined when calling queryPaymentAmountByKeyIdUsingGET().'); } const queryParameters = {}; if (requestParameters.keyId != null) { queryParameters.keyId = requestParameters.keyId; } const headerParameters = {}; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryPaymentAmountByKeyId`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryPaymentAmountByKeyId */ queryPaymentAmountByKeyIdUsingGET(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const response = yield this.queryPaymentAmountByKeyIdUsingGETRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * queryServiceTypeList */ queryServiceTypeListUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/queryServiceTypeList`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.billDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * queryServiceTypeList */ queryServiceTypeListUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.queryServiceTypeListUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * querySupplierBillingList */ querySupplierBillingListUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/querySupplierBillingList`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.billDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * querySupplierBillingList */ querySupplierBillingListUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.querySupplierBillingListUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * querySupplierConnect */ querySupplierConnectUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/querySupplierConnect`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.connectDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * querySupplierConnect */ querySupplierConnectUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.querySupplierConnectUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * supplierPaymentStatistics */ supplierPaymentStatisticsUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/supplierPaymentStatistics`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.connectDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * supplierPaymentStatistics */ supplierPaymentStatisticsUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.supplierPaymentStatisticsUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * supplierWithdrawals */ supplierWithdrawalsUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/supplierWithdrawals`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.addFundDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * supplierWithdrawals */ supplierWithdrawalsUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.supplierWithdrawalsUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * testMultiPay */ testMultiPayUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/testMultiPay`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.testMultiPayDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * testMultiPay */ testMultiPayUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.testMultiPayUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * testPay */ testPayUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/testPay`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.testPayDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * testPay */ testPayUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.testPayUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * updateAccountLink */ updateAccountLinkUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/updateAccountLink`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.connectDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * updateAccountLink */ updateAccountLinkUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.updateAccountLinkUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * updateClientSecret */ updateClientSecretUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/updateClientSecret`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.customerDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * updateClientSecret */ updateClientSecretUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.updateClientSecretUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * verifyCreditCard */ verifyCreditCardUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/verifyCreditCard`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.verifyDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * verifyCreditCard */ verifyCreditCardUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.verifyCreditCardUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } /** * * withdrawals */ withdrawalsUsingPOSTRaw(requestParameters, initOverrides) { return __awaiter(this, void 0, void 0, function* () { const queryParameters = {}; const headerParameters = {}; headerParameters['Content-Type'] = 'application/json'; if (this.configuration && this.configuration.apiKey) { headerParameters.authorization = yield this.configuration.apiKey('authorization'); // apikey-header-authorization authentication } const response = yield this.request({ path: `/api/v1/payment/withdrawals`, method: 'POST', headers: headerParameters, query: queryParameters, body: requestParameters.addFundDto, }, initOverrides); return new runtime.JSONApiResponse(response); }); } /** * * withdrawals */ withdrawalsUsingPOST() { return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) { const response = yield this.withdrawalsUsingPOSTRaw(requestParameters, initOverrides); return yield response.value(); }); } } exports.PaymentPaymentApi = PaymentPaymentApi;