diff --git a/src/app/pages/familymember/familymember.page.html b/src/app/pages/familymember/familymember.page.html index 6ec40ae..72c4d38 100644 --- a/src/app/pages/familymember/familymember.page.html +++ b/src/app/pages/familymember/familymember.page.html @@ -98,7 +98,7 @@ - + Add Fund @@ -108,21 +108,21 @@ -
+
- Amount({{item.description}}) + Amount ({{send_cuurency}}) - From + From ({{send_cuurency}}) + value="{{origing_current_balance*0.01| number : '1.2-2' }}"> diff --git a/src/app/pages/familymember/familymember.page.ts b/src/app/pages/familymember/familymember.page.ts index 7f0f215..e7bd98f 100644 --- a/src/app/pages/familymember/familymember.page.ts +++ b/src/app/pages/familymember/familymember.page.ts @@ -117,9 +117,83 @@ export class FamilymemberPage implements OnInit { backToToolBar(){ this.toolBarShow = "1"; } - startAddfund(){ - this.toolBarShow = "2"; + + reqStart: { + action:number, + member_id: number, + uid: string, + sessionid: string, + family_uid: string, + wallet_uid: string + }; + + startAddfund(item:any){ + // need to start ths process + /* + this.usrData = {action:11200, member_id: this.sessionDataProviderService.member_id, uid: this.sessionDataProviderService.member_uid, + sessionid: this.sessionDataProviderService.session,'limit': 30, + array (size=6) + 'member_id' => int 1 + 'sessionid' => string 'C954B8DF32A5DDF37064DBA89A9C972604393E98A9806B9D5593055BB348D627' (length=64) + 'uid' => string '3119b744-42ad-4834-bb83-b737588754ca' (length=36) + 'family_uid' => string '1f385837-b5e6-420e-a17a-488c4b8ef015' (length=36) + 'wallet_uid' => string 'aa6e6488-2e71-4f83-b265-27c3c4339f73' (length=36) + 'action' => int 22013 +/var/www/html/public/wrenchboard/wrenchboard_class.php:215: +array (size=10) + 'currency' => string 'NAIRA' (length=5) + 'current_balance' => string '33617' (length=5) + 'exchange_rate' => string '1' (length=1) + 'origing_currency' => string 'NAIRA' (length=5) + 'origing_current_balance' => string '91799493' (length=8) + 'origing_transfer_limit' => string '500000' (length=6) + 'origing_wallet_uid' => string 'cc0f8743-3f18-4214-ba4b-781e5dda9cb8' (length=36) + 'recipient_wallet_uid' => string 'aa6e6488-2e71-4f83-b265-27c3c4339f73' (length=36) + 'status' => string 'OK' (length=2) + 'internal_return' => int 0 +TARGET ENDPOINT[POST]http://10.204.5.100:9083/en/wrench/api/v1/familytransferstart + +familyStartTransfer(reqData){ + return this.getPostData("familytransferstart", reqData); +} + +familyTransfer(reqData){ + return this.getPostData("familytransfer", reqData); +} + */ + this.reqStart = { + action:22013, + member_id: this.sessionDataProviderService.member_id, + uid: this.sessionDataProviderService.member_uid, + sessionid: this.sessionDataProviderService.session, + family_uid: this.family_uid, + wallet_uid: item.wallet_uid + } + // debugger; + + this.wrenchService.familyStartTransfer(this.reqStart).subscribe( + startSendData => { + this.startSendData = startSendData; + console.log("startSendData RETURN->", this.startSendData); + + this.origing_current_balance = this.startSendData.origing_current_balance; + this.send_cuurency = this.startSendData.currency; + this.toolBarShow = item.wallet_uid; + // if ( this.accountAddResult.internal_return != undefined && this.accountAddResult.internal_return > 0 ){ + // this.presentToast("Recipient Accound Added",'middle'); + // setTimeout(() => { + // this.onBack(); + // }, 3000); + // } + } + ); + + + } + startSendData:any; + origing_current_balance:number =0; + send_cuurency:string=''; sendReward(){ setTimeout(()=>{ diff --git a/src/app/services/wrench.service.ts b/src/app/services/wrench.service.ts index 4da51f0..4dbe59f 100644 --- a/src/app/services/wrench.service.ts +++ b/src/app/services/wrench.service.ts @@ -232,6 +232,14 @@ export class WrenchService { return this.getPostData("sendmoney", sendmoneyData); } + familyStartTransfer(reqData){ + return this.getPostData("familytransferstart", reqData); + } + + familyTransfer(reqData){ + return this.getPostData("familytransfer", reqData); + } + familySuggestList(usrData){ return this.getPostData("familysuggestlist", usrData); }