| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- <?php
- namespace addons\Happiness\common\models;
- use Yii;
- /**
- * This is the model class for table "qimall_addons_happiness_store_card_info".
- *
- * @property int $id
- * @property int $store_id 小店id
- * @property int $card_type 卡类型 0:对公,1:对私法人,2:对私非法人,4:对公非同名;个人商户/用户不支持对公类型,对私非法人类型
- * @property string $card_name 卡户名 持卡人姓名;示例值:张三
- * @property string $card_no 卡号
- * @property int $prov_id 银行所在省
- * @property int $area_id 银行所在市
- * @property int $branch_code 支行联行号 当card_type=0时必填
- * @property string $cert_type 持卡人证件类型 对私必填
00:身份证
01:护照
02:军官证
03:士兵证
04:回乡证
05:户口本
06:外国护照
07:其他
08:暂住证
09:警官证
10:文职干部证
11:港澳台同胞通行证
13:外国人居留证
14:台胞证
15:港澳台居住证
注:
微信实名认证联系人、受益人证件支持的类型:00:身份证 01:护照 11:港澳台同胞通行证 13:外国人居留证 14:台胞证 15:港澳居民证;
企业受益人证件支持00~11;
微信业务开通类型
- * @property string $cert_no 持卡人证件号码 对私必填
- * @property int $cert_validity_type 持卡人证件有效期类型 对私必填 1:长期有效;0:非长期有效
- * @property int $cert_begin_date 持卡人证件有效期(起始)对私必填 日期格式:yyyyMMdd,示例值:2011011
- * @property int $cert_end_date 持卡人证件有效期(截止)对私必填
- * @property string $mp 银行卡绑定手机号
- * @property string $is_settle_default 默认结算卡标志 Y:是 N:否(为空默认)
- * @property int $created_at 创建时间
- * @property int $updated_at 更新时间
- */
- class HappinessStoreCardInfo extends \common\models\base\BaseActiveRecord
- {
- /**
- * {@inheritdoc}
- */
- public static function tableName()
- {
- return 'qimall_addons_happiness_store_card_info';
- }
- /**
- * {@inheritdoc}
- */
- public function rules()
- {
- return [
- [['store_id', 'card_type', 'prov_id', 'area_id', 'branch_code', 'cert_validity_type', 'cert_begin_date', 'cert_end_date', 'created_at', 'updated_at'], 'integer'],
- [['branch_code', 'cert_type', 'cert_no', 'cert_validity_type', 'cert_begin_date', 'cert_end_date', 'mp'], 'required'],
- [['card_name'], 'string', 'max' => 10],
- [['card_no'], 'string', 'max' => 32],
- [['cert_type'], 'string', 'max' => 5],
- [['cert_no'], 'string', 'max' => 20],
- [['mp'], 'string', 'max' => 11],
- [['is_settle_default'], 'string', 'max' => 2],
- ];
- }
- /**
- * {@inheritdoc}
- */
- public function attributeLabels()
- {
- return [
- 'id' => 'ID',
- 'store_id' => 'Store ID',
- 'card_type' => 'Card Type',
- 'card_name' => 'Card Name',
- 'card_no' => 'Card No',
- 'prov_id' => 'Prov ID',
- 'area_id' => 'Area ID',
- 'branch_code' => 'Branch Code',
- 'cert_type' => 'Cert Type',
- 'cert_no' => 'Cert No',
- 'cert_validity_type' => 'Cert Validity Type',
- 'cert_begin_date' => 'Cert Begin Date',
- 'cert_end_date' => 'Cert End Date',
- 'mp' => 'Mp',
- 'is_settle_default' => 'Is Settle Default',
- 'created_at' => 'Created At',
- 'updated_at' => 'Updated At',
- ];
- }
- }
|