<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class UserCard extends BaseModel
{
	protected $table = 'user_cards';
	
	protected $fillable = ['id', 'user_id', 'payjp_card_id', 'card_number',
						  'payjp_three_d_secure_request_id', 'payjp_three_d_secure_status',
						  'payjp_three_d_secure_verified_at',
						  'card_name', 'card_brand', 'card_brand_logo',
						  'card_exp_month', 'card_exp_year', 'card_cvc',
						  'card_last_four', 'card_fingerprint', 'card_funding',
						  'is_default', 'is_activated', 'is_deleted',
						   'created_at', 'updated_at'];
	
	/**
	 * The attributes that should be hidden for arrays.
	 *
	 * @var array
	 */
	protected $hidden = [
		'card_number', 'card_cvc', 'card_fingerprint', 'card_funding'
	];
}
