package com.nova.sankuai.domain.api.yangqianguan.response;
|
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
@ApiModel(value = "还款试算响应参数")
|
@Data
|
public class RepayDetailResponse {
|
|
@ApiModelProperty(value = "待还金额")
|
private Double amount;
|
|
@ApiModelProperty(value = "待还本金")
|
private Double principal;
|
|
@ApiModelProperty(value = "待还利息")
|
private Double interest;
|
|
@ApiModelProperty(value = "待还服务费")
|
@JsonProperty("service_fee")
|
private Double serviceFee;
|
|
@ApiModelProperty(value = "待还罚息")
|
@JsonProperty("overdue_interest")
|
private Double overdueInterest;
|
|
@ApiModelProperty(value = "待还其他费用")
|
@JsonProperty("other_fee")
|
private Double otherFee;
|
|
@ApiModelProperty(value = "费用明细")
|
private String remark;
|
|
@ApiModelProperty(value = "银行名称")
|
@JsonProperty("bank_name")
|
private String bankName;
|
|
@ApiModelProperty(value = "还款卡号")
|
@JsonProperty("bank_card")
|
private String bankCard;
|
|
@ApiModelProperty(value = "是否支持更换还款卡 0:不支持 1:支持")
|
@JsonProperty("can_change_card")
|
private Integer canChangeCard;
|
|
public String parseRemark() {
|
StringBuilder sb = new StringBuilder();
|
sb.append("本金" + this.principal + "元");
|
sb.append("利息" + this.interest + "元");
|
if (this.serviceFee != null) {
|
sb.append("服务费" + this.serviceFee + "元");
|
}
|
if (this.overdueInterest != null) {
|
sb.append("罚息" + this.overdueInterest + "元");
|
}
|
if (this.otherFee != null) {
|
sb.append("其他费用" + this.otherFee + "元");
|
}
|
return sb.toString();
|
}
|
}
|