161 lines
		
	
	
		
			5.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			161 lines
		
	
	
		
			5.9 KiB
		
	
	
	
		
			PHP
		
	
	
	
|  | <?php | ||
|  | 
 | ||
|  | /** | ||
|  |  * Created by Reliese Model. | ||
|  |  */ | ||
|  | 
 | ||
|  | namespace App\Models; | ||
|  | 
 | ||
|  | use Illuminate\Database\Eloquent\Collection; | ||
|  | use Illuminate\Database\Eloquent\Model; | ||
|  | 
 | ||
|  | /** | ||
|  |  * Class ConfigWallet | ||
|  |  * | ||
|  |  * @property int $id | ||
|  |  * @property float $taux_com_client_retrait | ||
|  |  * @property float $taux_com_client_depot | ||
|  |  * @property float $taux_com_ag_retrait | ||
|  |  * @property float $taux_com_ag_depot | ||
|  |  * @property float $taux_com_sup_depot | ||
|  |  * @property float $taux_com_sup_retrait | ||
|  |  * @property float $part_banque_retrait | ||
|  |  * @property float $part_banque_depot | ||
|  |  * @property float $frais_min_banque_depot | ||
|  |  * @property int $id_network | ||
|  |  * @property float $taux_com_user_wallet_carte | ||
|  |  * @property float $taux_com_user_carte_wallet | ||
|  |  * @property float $taux_com_user_carte_cash | ||
|  |  * @property float $taux_com_wallet_ag_envoi_cash_carte | ||
|  |  * @property float $taux_com_wallet_ag_carte_cash | ||
|  |  * @property float $taux_com_wallet_ag_depot_carte | ||
|  |  * @property float $taux_com_ag_envoi_cash | ||
|  |  * @property float $taux_com_sup_envoi_cash | ||
|  |  * @property float $taux_com_hyp_envoi_cash | ||
|  |  * @property float $taux_com_ag_retrait_cash | ||
|  |  * @property float $taux_com_sup_retrait_cash | ||
|  |  * @property float $taux_com_hyp_retrait_cash | ||
|  |  * @property float $taux_com_ag_depot_cash_carte | ||
|  |  * @property float $taux_com_sup_depot_cash_carte | ||
|  |  * @property float $taux_com_hyp_depot_cash_carte | ||
|  |  * @property float $taux_com_banque_depot_cash_carte | ||
|  |  * @property float $taux_com_ag_retrait_carte_cash | ||
|  |  * @property float $taux_com_sup_retrait_carte_cash | ||
|  |  * @property float $taux_com_hyp_retrait_carte_cash | ||
|  |  * @property float $taux_com_banque_retrait_carte_cash | ||
|  |  * @property float $taux_com_hyp_retrait_carte_cash_ilink | ||
|  |  * @property float $taux_com_banque_retrait_carte_cash_ilink | ||
|  |  * @property float $taux_com_hyp_envoi_wallet_carte_ilink | ||
|  |  * @property float $taux_com_banque_envoi_wallet_carte_ilink | ||
|  |  * @property string $type | ||
|  |  * @property int $has_nano_credit | ||
|  |  * @property float $limite_credit_min | ||
|  |  * @property float $limite_credit_max | ||
|  |  * @property float $taux_com_ag_nano_credit | ||
|  |  * @property float $taux_com_sup_nano_credit | ||
|  |  * @property float $taux_com_hyp_nano_credit | ||
|  |  * | ||
|  |  * @property Network $network | ||
|  |  * @property Collection|PaliersConfigWallet[] $paliers_config_wallets | ||
|  |  * @property Collection|PayingNetwork[] $paying_networks | ||
|  |  * @property Collection|Tax[] $taxes | ||
|  |  * | ||
|  |  * @package App\Models | ||
|  |  */ | ||
|  | class ConfigWallet extends Model | ||
|  | { | ||
|  |     public $timestamps = false; | ||
|  |     protected $table = 'configWallet'; | ||
|  |     protected $casts = [ | ||
|  |         'taux_com_client_retrait' => 'float', | ||
|  |         'taux_com_client_depot' => 'float', | ||
|  |         'taux_com_ag_retrait' => 'float', | ||
|  |         'taux_com_ag_depot' => 'float', | ||
|  |         'taux_com_sup_depot' => 'float', | ||
|  |         'taux_com_sup_retrait' => 'float', | ||
|  |         'part_banque_retrait' => 'float', | ||
|  |         'part_banque_depot' => 'float', | ||
|  |         'frais_min_banque_depot' => 'float', | ||
|  |         'id_network' => 'int', | ||
|  |         'taux_com_user_wallet_carte' => 'float', | ||
|  |         'taux_com_user_carte_wallet' => 'float', | ||
|  |         'taux_com_user_carte_cash' => 'float', | ||
|  |         'taux_com_wallet_ag_envoi_cash_carte' => 'float', | ||
|  |         'taux_com_wallet_ag_carte_cash' => 'float', | ||
|  |         'taux_com_wallet_ag_depot_carte' => 'float', | ||
|  |         'taux_com_ag_envoi_cash' => 'float', | ||
|  |         'taux_com_sup_envoi_cash' => 'float', | ||
|  |         'taux_com_hyp_envoi_cash' => 'float', | ||
|  |         'taux_com_ag_retrait_cash' => 'float', | ||
|  |         'taux_com_sup_retrait_cash' => 'float', | ||
|  |         'taux_com_hyp_retrait_cash' => 'float', | ||
|  |         'taux_com_ag_depot_cash_carte' => 'float', | ||
|  |         'taux_com_sup_depot_cash_carte' => 'float', | ||
|  |         'taux_com_hyp_depot_cash_carte' => 'float', | ||
|  |         'taux_com_banque_depot_cash_carte' => 'float', | ||
|  |         'taux_com_ag_retrait_carte_cash' => 'float', | ||
|  |         'taux_com_sup_retrait_carte_cash' => 'float', | ||
|  |         'taux_com_hyp_retrait_carte_cash' => 'float', | ||
|  |         'taux_com_banque_retrait_carte_cash' => 'float', | ||
|  |         'taux_com_hyp_retrait_carte_cash_ilink' => 'float', | ||
|  |         'taux_com_banque_retrait_carte_cash_ilink' => 'float', | ||
|  |         'taux_com_hyp_envoi_wallet_carte_ilink' => 'float', | ||
|  |         'taux_com_banque_envoi_wallet_carte_ilink' => 'float', | ||
|  |         'has_nano_credit' => 'int', | ||
|  |         'limite_credit_min' => 'float', | ||
|  |         'limite_credit_max' => 'float', | ||
|  |         'taux_com_ag_nano_credit' => 'float', | ||
|  |         'taux_com_sup_nano_credit' => 'float', | ||
|  |         'taux_com_hyp_nano_credit' => 'float', | ||
|  |     ]; | ||
|  | 
 | ||
|  |     protected $fillable = [ | ||
|  |         'taux_com_client_retrait', | ||
|  |         'taux_com_client_depot', | ||
|  |         'taux_com_ag_retrait', | ||
|  |         'taux_com_ag_depot', | ||
|  |         'taux_com_sup_depot', | ||
|  |         'taux_com_sup_retrait', | ||
|  |         'part_banque_retrait', | ||
|  |         'part_banque_depot', | ||
|  |         'frais_min_banque_depot', | ||
|  |         'id_network', | ||
|  |         'taux_com_user_wallet_carte', | ||
|  |         'taux_com_user_carte_wallet', | ||
|  |         'taux_com_user_carte_cash', | ||
|  |         'taux_com_wallet_ag_envoi_cash_carte', | ||
|  |         'taux_com_wallet_ag_carte_cash', | ||
|  |         'taux_com_wallet_ag_depot_carte', | ||
|  |         'taux_com_ag_envoi_cash', | ||
|  |         'taux_com_sup_envoi_cash', | ||
|  |         'taux_com_hyp_envoi_cash', | ||
|  |         'taux_com_ag_retrait_cash', | ||
|  |         'taux_com_sup_retrait_cash', | ||
|  |         'taux_com_hyp_retrait_cash', | ||
|  |         'taux_com_ag_depot_cash_carte', | ||
|  |         'taux_com_sup_depot_cash_carte', | ||
|  |         'taux_com_hyp_depot_cash_carte', | ||
|  |         'taux_com_banque_depot_cash_carte', | ||
|  |         'taux_com_ag_retrait_carte_cash', | ||
|  |         'taux_com_sup_retrait_carte_cash', | ||
|  |         'taux_com_hyp_retrait_carte_cash', | ||
|  |         'taux_com_banque_retrait_carte_cash', | ||
|  |         'taux_com_hyp_retrait_carte_cash_ilink', | ||
|  |         'taux_com_banque_retrait_carte_cash_ilink', | ||
|  |         'taux_com_hyp_envoi_wallet_carte_ilink', | ||
|  |         'taux_com_banque_envoi_wallet_carte_ilink', | ||
|  |         'type', | ||
|  |         'has_nano_credit', | ||
|  |         'limite_credit_min', | ||
|  |         'limite_credit_max', | ||
|  |         'taux_com_ag_nano_credit', | ||
|  |         'taux_com_sup_nano_credit', | ||
|  |         'taux_com_hyp_nano_credit' | ||
|  |     ]; | ||
|  | 
 | ||
|  |     public function network() | ||
|  |     { | ||
|  |         return $this->belongsTo(Network::class, 'id_network'); | ||
|  |     } | ||
|  | } |