package com.xhpc.card.domain;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 卡列表集合
 *
 * @author WH
 * @date 2022/1/26 13:58
 * @since version-1.0
 */
@NoArgsConstructor
@Data
public class CardList {


    /**
     * totalItems
     */
    @JsonProperty("totalItems")
    private Long totalItems;
    /**
     * data
     */
    @JsonProperty("data")
    private List<DataDTO> data;

    /**
     * DataDTO
     */
    @NoArgsConstructor
    @Data
    public static class DataDTO {

        /**
         * cardSerialNumber
         */
        @JsonProperty("cardSerialNumber")
        private String cardSerialNumber;
        /**
         * cardPhysicalNumber
         */
        @JsonProperty("cardPhysicalNumber")
        private String cardPhysicalNumber;
        /**
         * grantOperatorName
         */
        @JsonProperty("grantOperator")
        private String grantOperator;
        /**
         * classification
         * 0 means offline,1 means online
         */
        @JsonProperty("classification")
        private Integer classification;
        /**
         * cardStatus
         * 0 means no bound,1 means bind
         */
        @JsonProperty("cardStatus")
        private Integer cardStatus;
        /**
         * cardType
         * 0 means platform,1 means operator
         */
        @JsonProperty("cardType")
        private Integer cardType;
        /**
         * userType
         * 0 C端用户 1 流量方用户 2社区用户 3B端用户）
         * 10 means offline user
         */
        @JsonProperty("userType")
        private Long userType;
        /**
         * userAccount
         */
        @JsonProperty("userAccount")
        private String userAccount;

        /**
         * 初始化后的卡的记录id
         */
        @JsonProperty("cardRecordId")
        private Integer cardRecordId;

        /**
         * 卡押金
         */
        @JsonProperty("cashPledge")
        private Integer cashPledge;

        /**
         * 用户id，联网卡才有，用于查询联网卡用户充值记录
         */
        @JsonProperty("userId")
        private Long userId;

    }

}
