Files
WrenchBoradWeb/www-api/app/Models/WrenchWalletModel.php
T
CHIEFSOFT\ameye 00512f6909 ACTION KEY ADDED
2024-10-31 06:59:38 -04:00

93 lines
3.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',
"action_key" => 'ADD_VIRTUAL_CARD_STRP',
"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'
]
];
}
public function spendFromBalanceWallet():array{
return [
[
"text" => 'Spend',
"action_key" => 'SPEND_TO_BANK_FLTW',
"wallet_country" => ['NG'],
"amount" => 0,
"id" => 1,
"code" => "NAIRA",
"description" => "Spend from balance",
"symbol" => "$",
"action_type" => "AC_AD_WR_FUND",
"lorder" => 0,
"country" => "",
"processor" => 9010,
"current_balance" => 0,
"transfer_limit" => 0,
"wallet_uid" => "",
"escrow" => 0,
"status" => 0,
"show_balance" => false,
"rt_action_text" => "Spend",
"banner" => 'https://www.wrenchboard.com/assets/images/apps/wallet/wallet-card.jpg',
"icon" => 'https://www.wrenchboard.com/assets/images/apps/wallet/icon/cards.png'
]
];
}
}