Built files from Bizgaze WebServer
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

paymentmanager.min.js 5.3KB

1
  1. var __awaiter=this&&this.__awaiter||function(n,t,i,r){function u(n){return n instanceof i?n:new i(function(t){t(n)})}return new(i||(i=Promise))(function(i,f){function o(n){try{e(r.next(n))}catch(t){f(t)}}function s(n){try{e(r["throw"](n))}catch(t){f(t)}}function e(n){n.done?i(n.value):u(n.value).then(o,s)}e((r=r.apply(n,t||[])).next())})},Bizgaze;(function(n){let t;(function(n){let t;(function(n){let t;(function(n){var t,i;class r extends Unibase.Platform.Core.BaseManager{constructor(){super(...arguments);t.set(this,void 0);i.set(this,void 0)}getpayment(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getpayment/paymentid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}deletePayment(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/deletepayment/paymentid/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getPaymentModeSeriesSetting(n,t){return __awaiter(this,void 0,void 0,function*(){var i=_appsettings.server_url()+"/apis/v4/bizgaze/transact/payments/getseriessetting/paymentmodeid/"+t+"/paymenttypeid/"+n;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&n.result!=""&&(n.result=JSON.parse(n.result)),n})})}getPendings(n,t,i,r,u,f,e){return __awaiter(this,void 0,void 0,function*(){const o="apis/v4/bizgaze/transact/payments/getpendings/contactid/"+n+"/paymentid/"+t+"/query/"+i+"/journaltypeid/"+r+"/lobid/"+u+"/paymentdate/"+f+"/controltype/"+e;return yield this.dataHelper().getAsync(o).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getAdvancePaymentsByOrgId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getadvancepaymentsbyorgid/contactid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!=""&&n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getAllPendingPayments(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getallpendingpayments/contactid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!=""&&n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getLastFivePaymentsByContactId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getlastfivepaymentsbycontactid/contactid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!=""&&n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getReturnedChequesBySpocId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getreturnedchequesbyspocid/spocid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!=""&&n.result!==null&&(n.result=JSON.parse(n.result)),n})})}refreshPaymentModes(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/payments/refreshpaymentmodes/np","{}").then(function(n){return n.message})})}paymentPrint(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getpaymenthtml/paymentid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getAccountSettingByPaymentType(n,t){return __awaiter(this,void 0,void 0,function*(){const i="apis/v4/bizgaze/transact/payments/getaccountsettingbypaymenttype/paymenttypeid/"+n+"/settingtypeid/"+t;return yield this.dataHelper().getAsync(i).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}getAccountSettingsByPaymentType(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getaccountsettingbypaymenttype/paymenttypeid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}changestatus(n){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/payments/paymentstagechangebystatus/List",n).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}reverseentryforreceiptreject(){return __awaiter(this,void 0,void 0,function*(){return yield this.dataHelper().postAsync("apis/v4/bizgaze/transact/payments/reverseentryforreceiptreject/np",null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}reconcileEntry(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/reconcileentry/paymentid/"+n;return yield this.dataHelper().postAsync(t,null).then(function(n){return n.result!==null&&(n.result=JSON.parse(n.result)),n})})}getPaymentByRemoteId(n){return __awaiter(this,void 0,void 0,function*(){const t="apis/v4/bizgaze/transact/payments/getpaymentbyremoteid/remoteid/"+n;return yield this.dataHelper().getAsync(t).then(function(n){return n.result!==null&&n.result!==""&&(n.result=JSON.parse(n.result)),n})})}static Instance(){return this.instance===undefined&&(this.instance=new r),this.instance}}t=new WeakMap;i=new WeakMap;n.PaymentManager=r})(t=n.Managers||(n.Managers={}))})(t=n.Transact||(n.Transact={}))})(t=n.Apps||(n.Apps={}))})(Bizgaze||(Bizgaze={}));