This commit is contained in:
2023-03-11 17:30:20 +00:00
commit b6c4e025bc
5124 changed files with 1153349 additions and 0 deletions
@@ -0,0 +1 @@
{"version":3,"file":"isprlpaymentmanager.js","sourceRoot":"","sources":["isprlpaymentmanager.ts"],"names":[],"mappings":""}
@@ -0,0 +1,57 @@
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/transact/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/transact/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/transact/payments/updatepaymentstatus';
return yield this.dataHelper().postAsync(url, obj).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 = {}));
@@ -0,0 +1 @@
{"version":3,"file":"sprlpaymentmanager.js","sourceRoot":"","sources":["sprlpaymentmanager.ts"],"names":[],"mappings":";;;;;;;;;AAAA,IAAU,IAAI,CAiCb;AAjCD,WAAU,IAAI;IACV,IAAiB,IAAI,CA+BpB;IA/BD,WAAiB,IAAI;QACjB,IAAiB,GAAG,CA6BnB;QA7BD,WAAiB,GAAG;YAChB,IAAiB,QAAQ,CA2BxB;YA3BD,WAAiB,QAAQ;gBACrB,MAAa,kBAAmB,SAAQ,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW;oBAY/D,WAAW,CAAC,GAAQ;;4BACtB,MAAM,GAAG,GAAG,kDAAkD,CAAC;4BAC/D,OAAO,MAAM,IAAI,CAAC,UAAU,EAAE,CAAC,SAAS,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,QAAQ;gCAEtE,IAAI,QAAQ,CAAC,MAAM,KAAK,IAAI;oCACxB,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;gCAClD,OAAO,QAAQ,CAAC;4BACpB,CAAC,CAAC,CAAC;wBACP,CAAC;qBAAA;oBAED,MAAM,CAAC,QAAQ;wBACX,OAAO,IAAI,kBAAkB,EAAE,CAAC;oBACpC,CAAC;iBACJ;gBAzBY,2BAAkB,qBAyB9B,CAAA;YACL,CAAC,EA3BgB,QAAQ,GAAR,YAAQ,KAAR,YAAQ,QA2BxB;QACL,CAAC,EA7BgB,GAAG,GAAH,QAAG,KAAH,QAAG,QA6BnB;IACL,CAAC,EA/BgB,IAAI,GAAJ,SAAI,KAAJ,SAAI,QA+BpB;AACL,CAAC,EAjCS,IAAI,KAAJ,IAAI,QAiCb"}