Files
WrenchBoradWeb/www-api/app/Models/WrenchWalletModel.php
T
2024-10-31 06:39:48 -04:00

65 lines
2.2 KiB
PHP

<?php
namespace App\Models;
use CodeIgniter\Model;
class WrenchWalletModel extends Model
{
protected array $allSettings;
public function __construct( $allSettings )
{
parent::__construct();
$this->allSettings =$allSettings;
log_message('critical', "WrenchWalletModel _construct");
}
public function kidsExtraWallet():array{
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" => $this->allSettings['ENABLE_EXTRA_KIDWALLET'] ?? 0,
"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'
];
}
public function addVirtualCardWallet():array{
return [
[
"text" => 'Add Card',
"wallet_country" => ['US'],
"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" => 0,
"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'
]
];
}
}