walletservice/app/Models/ConfigWallet.php

168 lines
5.6 KiB
PHP
Raw Normal View History

2020-04-15 23:08:09 +00:00
<?php
/**
* Created by Reliese Model.
*/
namespace App\Models;
use Illuminate\Database\Eloquent\Collection;
2020-04-15 23:08:09 +00:00
use Illuminate\Database\Eloquent\Model;
/**
* Class ConfigWallet
2020-08-06 06:21:41 +00:00
*
2020-04-15 23:08:09 +00:00
* @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
2020-04-15 23:08:09 +00:00
* @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
2020-08-06 06:21:41 +00:00
* @property float $taux_com_hyp_envoi_wallet_carte_ilink
* @property float $taux_com_banque_envoi_wallet_carte_ilink
* @property string $type
2020-08-06 06:21:41 +00:00
* @property int $has_nano_credit
* @property float $limite_credit_min
* @property float $limite_credit_max
*
2020-04-15 23:08:09 +00:00
* @property Network $network
* @property Collection|PaliersConfigWallet[] $paliers_config_wallets
2020-08-06 06:21:41 +00:00
* @property Collection|PayingNetwork[] $paying_networks
* @property Collection|Tax[] $taxes
2020-04-15 23:08:09 +00:00
*
* @package App\Models
*/
class ConfigWallet extends Model
{
protected $table = 'configWallet';
public $timestamps = false;
protected $casts = [
'taux_com_client_retrait' => 'float',
'taux_com_client_depot' => 'float',
2020-04-15 23:08:09 +00:00
'taux_com_ag_retrait' => 'float',
'taux_com_ag_depot' => 'float',
'taux_com_sup_depot' => 'float',
'taux_com_sup_retrait' => 'float',
2020-04-15 23:08:09 +00:00
'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',
2020-08-06 06:21:41 +00:00
'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'
];
2020-04-15 23:08:09 +00:00
protected $fillable = [
'taux_com_client_retrait',
'taux_com_client_depot',
2020-04-15 23:08:09 +00:00
'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',
2020-08-06 06:21:41 +00:00
'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'
];
public function network()
{
return $this->belongsTo(Network::class, 'id_network');
}
2020-04-15 23:08:09 +00:00
2020-08-06 06:21:41 +00:00
public function paliers_config_wallets()
{
return $this->hasMany(PaliersConfigWallet::class, 'idConfig');
}
2020-08-06 06:21:41 +00:00
public function paying_networks()
{
return $this->hasMany(PayingNetwork::class, 'id_configWallet');
}
2020-08-06 06:21:41 +00:00
public function taxes()
{
return $this->hasMany(Tax::class, 'idConfig');
}
2020-04-15 23:08:09 +00:00
}