package com.jsowell.adapay.response;

import lombok.*;

import java.util.List;

/**
 * 查询汇付会员返回参数
 */
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class QueryMemberResponse {
    private String member_id;
    private String created_time;
    private String cert_type;
    private String gender;
    private String identified;
    private String tel_no;
    private String prod_mode;
    private String nickname;
    private String disabled;
    private String location;
    private List<SettleAccount> settle_accounts;
    private String email;
    private String object;
    private String status;

    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class SettleAccount {
        private String member_id;
        private String upd_ts;
        private AccountInfo account_info;
        private String channel;
        private String id;
        private String type;
        private String app_id;
        private String cre_ts;
    }

    @Getter
    @Setter
    @NoArgsConstructor
    @AllArgsConstructor
    @Builder
    public static class AccountInfo {
        private String bank_code;
        private String cert_type;
        private String tel_no;
        private String area_code;
        private String bank_name;
        private String card_name;
        private String cert_id;
        private String bank_acct_type;
        private String prov_code;
        private String card_id;
    }
}
