Adding wallets models
This commit is contained in:
@@ -6,12 +6,15 @@ use CodeIgniter\API\ResponseTrait;
|
|||||||
|
|
||||||
class WrenchWallet extends BaseController
|
class WrenchWallet extends BaseController
|
||||||
{
|
{
|
||||||
|
protected \App\Models\WrenchWalletModel $wrenchWalletModel;
|
||||||
|
|
||||||
use ResponseTrait;
|
use ResponseTrait;
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
log_message('critical', "WrenchWallet Path GATE 001");
|
log_message('critical', "WrenchWallet Path GATE 001");
|
||||||
$this->request = $request = \Config\Services::request();
|
$this->request = $request = \Config\Services::request();
|
||||||
|
$this->wrenchWalletModel = new \App\Models\WrenchWalletModel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -216,27 +219,29 @@ class WrenchWallet extends BaseController
|
|||||||
$this->saveCache($endpoint,$out,1500);
|
$this->saveCache($endpoint,$out,1500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$extraWallet = $this->wrenchWalletModel->kidsExtraWallet();
|
||||||
|
|
||||||
$out["result_list"][] = [
|
$out["result_list"][] = $extraWallet;
|
||||||
"amount" => 0,
|
// [
|
||||||
"id" => 1,
|
// "amount" => 0,
|
||||||
"code" => "USD",
|
// "id" => 1,
|
||||||
"description" => "Add Virtual Debit Card",
|
// "code" => "USD",
|
||||||
"symbol" => "$",
|
// "description" => "Add Virtual Debit Card",
|
||||||
"action_type" => "AC_AD_VIRTUAL_CARD",
|
// "symbol" => "$",
|
||||||
"lorder" => 0,
|
// "action_type" => "AC_AD_VIRTUAL_CARD",
|
||||||
"country" => "",
|
// "lorder" => 0,
|
||||||
"processor" => 9010,
|
// "country" => "",
|
||||||
"current_balance" => 0,
|
// "processor" => 9010,
|
||||||
"transfer_limit" => 0,
|
// "current_balance" => 0,
|
||||||
"wallet_uid" => "",
|
// "transfer_limit" => 0,
|
||||||
"escrow" => 0,
|
// "wallet_uid" => "",
|
||||||
"status" => 1,
|
// "escrow" => 0,
|
||||||
"show_balance" => false,
|
// "status" => 1,
|
||||||
"rt_action_text" => "Add Card",
|
// "show_balance" => false,
|
||||||
"banner" => 'https://www.wrenchboard.com/assets/images/apps/wallet/wallet-card.jpg',
|
// "rt_action_text" => "Add Card",
|
||||||
"icon" => 'https://www.wrenchboard.com/assets/images/apps/wallet/icon/cards.png'
|
// "banner" => 'https://www.wrenchboard.com/assets/images/apps/wallet/wallet-card.jpg',
|
||||||
];
|
// "icon" => 'https://www.wrenchboard.com/assets/images/apps/wallet/icon/cards.png'
|
||||||
|
// ];
|
||||||
/* */
|
/* */
|
||||||
$out["wallet_cards"] = [];
|
$out["wallet_cards"] = [];
|
||||||
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
return $this->respond( $this->summaryReturnData($in,$out), 200);
|
||||||
|
|||||||
@@ -0,0 +1,35 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace App\Models;
|
||||||
|
use CodeIgniter\Model;
|
||||||
|
|
||||||
|
class WrenchWalletModel extends Model
|
||||||
|
{
|
||||||
|
|
||||||
|
public function kidsExtraWallet(){
|
||||||
|
|
||||||
|
return [
|
||||||
|
"amount" => 0,
|
||||||
|
"id" => 1,
|
||||||
|
"code" => "USD",
|
||||||
|
"description" => "Add Virtual Debit Card",
|
||||||
|
"symbol" => "$",
|
||||||
|
"action_type" => "AC_AD_VIRTUAL_CARD",
|
||||||
|
"lorder" => 0,
|
||||||
|
"country" => "",
|
||||||
|
"processor" => 9010,
|
||||||
|
"current_balance" => 0,
|
||||||
|
"transfer_limit" => 0,
|
||||||
|
"wallet_uid" => "",
|
||||||
|
"escrow" => 0,
|
||||||
|
"status" => 1,
|
||||||
|
"show_balance" => false,
|
||||||
|
"rt_action_text" => "Add Card",
|
||||||
|
"banner" => 'https://www.wrenchboard.com/assets/images/apps/wallet/wallet-card.jpg',
|
||||||
|
"icon" => 'https://www.wrenchboard.com/assets/images/apps/wallet/icon/cards.png'
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user