HappinessStoreCardInfo.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php
  2. namespace addons\Happiness\common\models;
  3. use Yii;
  4. /**
  5. * This is the model class for table "qimall_addons_happiness_store_card_info".
  6. *
  7. * @property int $id
  8. * @property int $store_id 小店id
  9. * @property int $card_type 卡类型 0:对公,1:对私法人,2:对私非法人,4:对公非同名;个人商户/用户不支持对公类型,对私非法人类型
  10. * @property string $card_name 卡户名 持卡人姓名;示例值:张三
  11. * @property string $card_no 卡号
  12. * @property int $prov_id 银行所在省
  13. * @property int $area_id 银行所在市
  14. * @property int $branch_code 支行联行号 当card_type=0时必填
  15. * @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; 微信业务开通类型
  16. * @property string $cert_no 持卡人证件号码 对私必填
  17. * @property int $cert_validity_type 持卡人证件有效期类型 对私必填 1:长期有效;0:非长期有效
  18. * @property int $cert_begin_date 持卡人证件有效期(起始)对私必填 日期格式:yyyyMMdd,示例值:2011011
  19. * @property int $cert_end_date 持卡人证件有效期(截止)对私必填
  20. * @property string $mp 银行卡绑定手机号
  21. * @property string $is_settle_default 默认结算卡标志 Y:是 N:否(为空默认)
  22. * @property int $created_at 创建时间
  23. * @property int $updated_at 更新时间
  24. */
  25. class HappinessStoreCardInfo extends \common\models\base\BaseActiveRecord
  26. {
  27. /**
  28. * {@inheritdoc}
  29. */
  30. public static function tableName()
  31. {
  32. return 'qimall_addons_happiness_store_card_info';
  33. }
  34. /**
  35. * {@inheritdoc}
  36. */
  37. public function rules()
  38. {
  39. return [
  40. [['store_id', 'card_type', 'prov_id', 'area_id', 'branch_code', 'cert_validity_type', 'cert_begin_date', 'cert_end_date', 'created_at', 'updated_at'], 'integer'],
  41. [['branch_code', 'cert_type', 'cert_no', 'cert_validity_type', 'cert_begin_date', 'cert_end_date', 'mp'], 'required'],
  42. [['card_name'], 'string', 'max' => 10],
  43. [['card_no'], 'string', 'max' => 32],
  44. [['cert_type'], 'string', 'max' => 5],
  45. [['cert_no'], 'string', 'max' => 20],
  46. [['mp'], 'string', 'max' => 11],
  47. [['is_settle_default'], 'string', 'max' => 2],
  48. ];
  49. }
  50. /**
  51. * {@inheritdoc}
  52. */
  53. public function attributeLabels()
  54. {
  55. return [
  56. 'id' => 'ID',
  57. 'store_id' => 'Store ID',
  58. 'card_type' => 'Card Type',
  59. 'card_name' => 'Card Name',
  60. 'card_no' => 'Card No',
  61. 'prov_id' => 'Prov ID',
  62. 'area_id' => 'Area ID',
  63. 'branch_code' => 'Branch Code',
  64. 'cert_type' => 'Cert Type',
  65. 'cert_no' => 'Cert No',
  66. 'cert_validity_type' => 'Cert Validity Type',
  67. 'cert_begin_date' => 'Cert Begin Date',
  68. 'cert_end_date' => 'Cert End Date',
  69. 'mp' => 'Mp',
  70. 'is_settle_default' => 'Is Settle Default',
  71. 'created_at' => 'Created At',
  72. 'updated_at' => 'Updated At',
  73. ];
  74. }
  75. }