web-app/browser/chunk-7RFM6OOI.js
2026-02-05 19:21:42 +00:00

2 lines
2.8 KiB
JavaScript

import{B as h,G as g,K as l,Mb as m,Nb as o,Nc as i,Qb as I}from"./chunk-YXYDMGAY.js";import{a as u,b as d}from"./chunk-PHUH23IY.js";var P=(()=>{class c{constructor(){this.http=l(I)}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){let n=new o().set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:n})}updateStandingInstructionsData(t,n){let s=new o().set("command","update");return this.http.put(`/standinginstructions/${t}`,n,{params:s})}getStandingInstructionsTemplate(t,n,s,e){let r=new o().set("fromAccountType",s).set("fromClientId",t).set("fromOfficeId",n);if(e){let a=Object.getOwnPropertyNames(e);for(let p=0;p<a.length;p++){let f=a[p];r=r.set(f,e[f])}}return this.http.get("/standinginstructions/template",{params:r})}createStandingInstructions(t){return this.http.post("/standinginstructions",t)}newAccountTranferResource(t,n,s){let e=new o().set("fromAccountId",t).set("fromAccountType",n);if(s){let r=Object.getOwnPropertyNames(s);for(let a=0;a<r.length;a++){let p=r[a];e=e.set(p,s[p])}}return this.http.get("/accounttransfers/template",{params:e})}createAccountTransfer(t){return this.http.post("/accounttransfers",t)}getStandingInstructions(t){let n=new o,s=Object.getOwnPropertyNames(t);for(let e=0;e<s.length;e++){let r=s[e];t[r]===""||t[r]===void 0||t[r]===null||(n=n.set(r,t[r]))}return this.http.get("/standinginstructions",{params:n})}deleteStandingInstrucions(t){let n=new o().set("command","delete");return this.http.delete(`/standinginstructions/${t}`,{params:n})}getStandingInstructionsTransactions(t,n,s){let e=new o().set("associations","transactions").set("dateFormat",n).set("limit","14").set("locale",s).set("offset","0");return this.http.get(`/standinginstructions/${t}`,{params:e})}getViewAccountTransferDetails(t){return this.http.get(`/accounttransfers/${t}`)}getAccountByNumber(t,n){let s={partyId:t,partyIdType:"MSISDN",currencyCode:n},e=new m({"Content-Type":"application/json"});return this.http.post(`${i.mifosInterbankTransfersApiUrl}${i.mifosInterbankTransfersApiVersion}${i.mifosInterbankTransfersApiProvider}/participant`,JSON.stringify(s),{headers:e}).pipe(h(r=>{let a=JSON.stringify(d(u({},s),{ownerFspId:r.fspId}));return this.http.post(`${i.mifosInterbankTransfersApiUrl}${i.mifosInterbankTransfersApiVersion}${i.mifosInterbankTransfersApiProvider}/partyinfo`,a,{headers:e})}))}sendInterbankTransfer(t){let n=new m({"Content-Type":"application/json"});return this.http.post(`${i.mifosInterbankTransfersApiUrl}${i.mifosInterbankTransfersApiVersion}${i.mifosInterbankTransfersApiProvider}/executetransfer`,t,{headers:n})}static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275prov=g({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{P as a};