com.zhibaocloud.carbon.intg.model.CarbonBeneficiary Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of carbon-exchange Show documentation
Show all versions of carbon-exchange Show documentation
智保云投保通道开发 SDK。定义数据模型以及数据交互所支持的加解密方法
The newest version!
/*
* Copyright (c) 2018-2023. Chengdu WeiSiFan Technology Co., Ltd.
* Carbon Integration SDK is licensed under Mulan PSL v2.
*
* You can use this software according to the terms and conditions of the Mulan PSL v2.
* You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2
*
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
* EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
* See the Mulan PSL v2 for more details.
*/
package com.zhibaocloud.carbon.intg.model;
import com.zhibaocloud.carbon.intg.desensitization.annotations.CarbonIDCardDesensitize;
import com.zhibaocloud.carbon.intg.desensitization.annotations.CarbonPhoneDesensitize;
import com.zhibaocloud.carbon.intg.desensitization.annotations.CarbonStringDesensitize;
import com.zhibaocloud.carbon.intg.types.CarbonBnfGrade;
import com.zhibaocloud.carbon.intg.types.CarbonBnfType;
import com.zhibaocloud.carbon.intg.types.CarbonDegreeType;
import com.zhibaocloud.carbon.intg.types.CarbonGenderType;
import com.zhibaocloud.carbon.intg.types.CarbonIdType;
import com.zhibaocloud.carbon.intg.types.CarbonMarriageType;
import com.zhibaocloud.carbon.intg.types.CarbonNationType;
import com.zhibaocloud.carbon.intg.types.CarbonNationalityType;
import com.zhibaocloud.carbon.intg.types.CarbonRelationType;
import com.zhibaocloud.carbon.intg.types.CarbonSocialSecurityFlag;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema.RequiredMode;
import java.math.BigDecimal;
import java.time.LocalDate;
/**
* 受益人信息
*
* @author jun
*/
@Schema(title = "受益人信息")
public class CarbonBeneficiary {
/**
* 被保人编号
*/
@Schema(title = "被保人编号", description = "用于关联被保人")
private String insuredNo;
/**
* 与受益人关系
*/
@Schema(title = "与受益人关系", requiredMode = RequiredMode.REQUIRED)
private CarbonRelationType relationToInsured;
/**
* 受益人类型
*/
@Schema(title = "受益人类型", requiredMode = RequiredMode.REQUIRED)
private CarbonBnfType bnfType;
/**
* 受益顺序
*/
@Schema(title = "受益顺序", requiredMode = RequiredMode.REQUIRED)
private CarbonBnfGrade bnfGrade;
/**
* 受益比例
*/
@Schema(title = "受益比例", description = "使用百分比表示,同一顺位受益人的收益比例之和为100%", requiredMode = RequiredMode.REQUIRED)
private BigDecimal bnfRatio;
/**
* 受益人姓名
*/
@Schema(title = "受益人姓名")
private String name;
/**
* 受益人性别
*/
@Schema(title = "受益人性别")
private CarbonGenderType gender;
/**
* 受益人出生日期
*/
@Schema(title = "受益人出生日期")
private LocalDate birthdate;
/**
* 受益人证件类型
*/
@Schema(title = "受益人证件类型")
private CarbonIdType idType;
/**
* 受益人证件号码
*/
@CarbonIDCardDesensitize
@Schema(title = "受益人证件号码")
private String idNo;
/**
* 受益人证件有效期起始日期
*/
@Schema(title = "受益人证件有效期起始日期")
private LocalDate idValidStart;
/**
* 受益人证件有效期截止日期
*/
@Schema(title = "受益人证件有效期截止日期")
private LocalDate idValidEnd;
/**
* 受益人手机号码
*/
@CarbonPhoneDesensitize
@Schema(title = "受益人手机号码")
private String mobile;
/**
* 受益人电子邮箱
*/
@Schema(title = "受益人电子邮箱")
private String email;
/**
* 受益人学历
*/
@Schema(title = "受益人学历")
private CarbonDegreeType degree;
/**
* 受益人婚姻状况
*/
@Schema(title = "受益人婚姻状况")
private CarbonMarriageType marriage;
/**
* 受益人职业类别
*/
@Schema(title = "受益人职业类别")
private String occupationType;
/**
* 受益人职业代码
*/
@Schema(title = "受益人职业代码")
private String occupationCode;
/**
* 受益人职业名称
*/
@Schema(title = "受益人职业名称")
private String occupationName;
/**
* 受益人户籍注册地址
*/
@CarbonStringDesensitize
@Schema(title = "受益人户籍注册地址")
private String rgtAddress;
/**
* 受益人联系地址
*/
@CarbonStringDesensitize
@Schema(title = "受益人联系地址")
private String postalAddress;
/**
* 受益人年收入(单位:万元)
*/
@Schema(title = "受益人年收入(单位:万元)")
private BigDecimal income;
/**
* 受益人国籍
*/
@Schema(title = "受益人国籍")
private CarbonNationType nation;
/**
* 受益人民族
*/
@Schema(title = "受益人民族")
private CarbonNationalityType nationality;
/**
* 受益人是否有社保
*/
@Schema(title = "受益人是否有社保")
private CarbonSocialSecurityFlag socialSecurityFlag;
public CarbonBeneficiary() {
}
public String getInsuredNo() {
return insuredNo;
}
public void setInsuredNo(String insuredNo) {
this.insuredNo = insuredNo;
}
public CarbonRelationType getRelationToInsured() {
return relationToInsured;
}
public void setRelationToInsured(CarbonRelationType relationToInsured) {
this.relationToInsured = relationToInsured;
}
public CarbonBnfType getBnfType() {
return bnfType;
}
public void setBnfType(CarbonBnfType bnfType) {
this.bnfType = bnfType;
}
public CarbonBnfGrade getBnfGrade() {
return bnfGrade;
}
public void setBnfGrade(CarbonBnfGrade bnfGrade) {
this.bnfGrade = bnfGrade;
}
public BigDecimal getBnfRatio() {
return bnfRatio;
}
public void setBnfRatio(BigDecimal bnfRatio) {
this.bnfRatio = bnfRatio;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public CarbonGenderType getGender() {
return gender;
}
public void setGender(CarbonGenderType gender) {
this.gender = gender;
}
public LocalDate getBirthdate() {
return birthdate;
}
public void setBirthdate(LocalDate birthdate) {
this.birthdate = birthdate;
}
public CarbonIdType getIdType() {
return idType;
}
public void setIdType(CarbonIdType idType) {
this.idType = idType;
}
public String getIdNo() {
return idNo;
}
public void setIdNo(String idNo) {
this.idNo = idNo;
}
public LocalDate getIdValidStart() {
return idValidStart;
}
public void setIdValidStart(LocalDate idValidStart) {
this.idValidStart = idValidStart;
}
public LocalDate getIdValidEnd() {
return idValidEnd;
}
public void setIdValidEnd(LocalDate idValidEnd) {
this.idValidEnd = idValidEnd;
}
public String getMobile() {
return mobile;
}
public void setMobile(String mobile) {
this.mobile = mobile;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public CarbonDegreeType getDegree() {
return degree;
}
public void setDegree(CarbonDegreeType degree) {
this.degree = degree;
}
public CarbonMarriageType getMarriage() {
return marriage;
}
public void setMarriage(CarbonMarriageType marriage) {
this.marriage = marriage;
}
public String getOccupationType() {
return occupationType;
}
public void setOccupationType(String occupationType) {
this.occupationType = occupationType;
}
public String getOccupationCode() {
return occupationCode;
}
public void setOccupationCode(String occupationCode) {
this.occupationCode = occupationCode;
}
public String getOccupationName() {
return occupationName;
}
public void setOccupationName(String occupationName) {
this.occupationName = occupationName;
}
public String getRgtAddress() {
return rgtAddress;
}
public void setRgtAddress(String rgtAddress) {
this.rgtAddress = rgtAddress;
}
public String getPostalAddress() {
return postalAddress;
}
public void setPostalAddress(String postalAddress) {
this.postalAddress = postalAddress;
}
public BigDecimal getIncome() {
return income;
}
public void setIncome(BigDecimal income) {
this.income = income;
}
public CarbonNationType getNation() {
return nation;
}
public void setNation(CarbonNationType nation) {
this.nation = nation;
}
public CarbonNationalityType getNationality() {
return nationality;
}
public void setNationality(CarbonNationalityType nationality) {
this.nationality = nationality;
}
public CarbonSocialSecurityFlag getSocialSecurityFlag() {
return socialSecurityFlag;
}
public void setSocialSecurityFlag(CarbonSocialSecurityFlag socialSecurityFlag) {
this.socialSecurityFlag = socialSecurityFlag;
}
@Override
public String toString() {
return "CarbonBeneficiary{" +
"insuredNo='" + insuredNo + '\'' +
", relationToInsured=" + relationToInsured +
", bnfType=" + bnfType +
", bnfGrade=" + bnfGrade +
", bnfRatio=" + bnfRatio +
", name='" + name + '\'' +
", gender=" + gender +
", birthdate=" + birthdate +
", idType=" + idType +
", idNo='" + idNo + '\'' +
", idValidStart=" + idValidStart +
", idValidEnd=" + idValidEnd +
", mobile='" + mobile + '\'' +
", email='" + email + '\'' +
", degree=" + degree +
", marriage=" + marriage +
", occupationType='" + occupationType + '\'' +
", occupationCode='" + occupationCode + '\'' +
", occupationName='" + occupationName + '\'' +
", rgtAddress='" + rgtAddress + '\'' +
", postalAddress='" + postalAddress + '\'' +
", income=" + income +
", nation=" + nation +
", nationality=" + nationality +
", socialSecurityFlag=" + socialSecurityFlag +
'}';
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy