12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- 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());
- });
- };
- var SPRL;
- (function (SPRL) {
- let Apps;
- (function (Apps) {
- let Sap;
- (function (Sap) {
- let Managers;
- (function (Managers) {
- class SprlPaymentManager extends Unibase.Platform.Core.BaseManager {
- makePayment(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/sprl/payments/paymentrequest';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- getPaymentStatus(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/sprl/payments/Decrypt';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- updatePaymentStatus(obj) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/sprl/payments/updatepaymentstatus';
- return yield this.dataHelper().postAsync(url, obj).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- loadPaymentTermItems(invoiceid) {
- return __awaiter(this, void 0, void 0, function* () {
- const url = 'apis/v4/bizgaze/sprl/payments/getpaymenttermitemsbyinvoiceid/invoiceid/' + invoiceid;
- return yield this.dataHelper().getAsync(url).then(function (response) {
- if (response.result !== null)
- response.result = JSON.parse(response.result);
- return response;
- });
- });
- }
- static Instance() {
- return new SprlPaymentManager();
- }
- }
- Managers.SprlPaymentManager = SprlPaymentManager;
- })(Managers = Sap.Managers || (Sap.Managers = {}));
- })(Sap = Apps.Sap || (Apps.Sap = {}));
- })(Apps = SPRL.Apps || (SPRL.Apps = {}));
- })(SPRL || (SPRL = {}));
|