change
This commit is contained in:
@@ -18,7 +18,7 @@ var SPRL;
|
||||
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';
|
||||
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);
|
||||
@@ -28,7 +28,7 @@ var SPRL;
|
||||
}
|
||||
getPaymentStatus(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/Decrypt';
|
||||
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);
|
||||
@@ -38,7 +38,7 @@ var SPRL;
|
||||
}
|
||||
updatePaymentStatus(obj) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
const url = 'apis/v4/bizgaze/transact/payments/updatepaymentstatus';
|
||||
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);
|
||||
@@ -46,6 +46,16 @@ var SPRL;
|
||||
});
|
||||
});
|
||||
}
|
||||
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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user