UNPKG

nmkr-studio-api

Version:

Typesafe API Client to work with the NMKR Studio V2 API

49 lines 1.88 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NmkrPayService = void 0; class NmkrPayService { constructor(httpRequest) { this.httpRequest = httpRequest; } /** * Returns a payment link for NMKR Pay * @returns GetNmkrPayLinkResultClass Returns the PaymentTransactionResultClass Class * @throws ApiError */ postV2GetNmkrPayLink({ requestBody, }) { return this.httpRequest.request({ method: 'POST', url: '/v2/GetNmkrPayLink', body: requestBody, mediaType: 'application/json', errors: { 401: `The access was denied. (Wrong or expired APIKEY, wrong projectid etc.)`, 404: `Not Found`, 406: `See the errormessage in the resultset for further information`, 500: `Internal server error - see the errormessage in the resultset`, }, }); } /** * Returns the state of a payment link for NMKR Pay * @returns GetNmkrPayLinkResultClass Returns the PaymentTransactionResultClass Class * @throws ApiError */ getV2GetNmkrPayStatus({ paymenttransactionuid, }) { return this.httpRequest.request({ method: 'GET', url: '/v2/GetNmkrPayStatus/{paymenttransactionuid}', path: { paymenttransactionuid: paymenttransactionuid, }, errors: { 401: `The access was denied. (Wrong or expired APIKEY, wrong projectid etc.)`, 404: `Not Found`, 406: `See the errormessage in the resultset for further information`, 500: `Internal server error - see the errormessage in the resultset`, }, }); } } exports.NmkrPayService = NmkrPayService; //# sourceMappingURL=NmkrPayService.js.map