You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.9 KiB
Java
76 lines
2.9 KiB
Java
package com.yau.digitalrmb.walletopening.application;
|
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
import lombok.Getter;
|
|
|
|
@Getter
|
|
@Schema(description = "步骤三③:组装备案请求页面数据")
|
|
public class WalletRegistrationPageResult {
|
|
@Schema(description = "钱包ID")
|
|
private final String walletId;
|
|
@Schema(description = "用户名")
|
|
private final String userName;
|
|
@Schema(description = "身份证号")
|
|
private final String idNumber;
|
|
@Schema(description = "银行卡号")
|
|
private final String bankCardNumber;
|
|
@Schema(description = "钱包类型")
|
|
private final String walletType;
|
|
@Schema(description = "机构代码")
|
|
private final String orgCode;
|
|
@Schema(description = "证书序列号")
|
|
private final String certSerial;
|
|
@Schema(description = "时间戳")
|
|
private final String requestTimestamp;
|
|
@Schema(description = "拼接请求原文")
|
|
private final String requestMessage;
|
|
@Schema(description = "SM3摘要值")
|
|
private final String digestValue;
|
|
@Schema(description = "签名用私钥(第二私钥)")
|
|
private final String signingPrivateKey;
|
|
@Schema(description = "SM2签名值")
|
|
private final String signature;
|
|
@Schema(description = "备案请求报文JSON")
|
|
private final String requestJson;
|
|
@Schema(description = "是否已发送央行")
|
|
private final Boolean sentToCentral;
|
|
@Schema(description = "当前状态")
|
|
private final String status;
|
|
|
|
public WalletRegistrationPageResult(com.yau.digitalrmb.walletopening.domain.WalletRegistrationRequest r) {
|
|
if (r == null) {
|
|
this.walletId = null;
|
|
this.userName = null;
|
|
this.idNumber = null;
|
|
this.bankCardNumber = null;
|
|
this.walletType = null;
|
|
this.orgCode = null;
|
|
this.certSerial = null;
|
|
this.requestTimestamp = null;
|
|
this.requestMessage = null;
|
|
this.digestValue = null;
|
|
this.signingPrivateKey = null;
|
|
this.signature = null;
|
|
this.requestJson = null;
|
|
this.sentToCentral = false;
|
|
this.status = "PENDING";
|
|
return;
|
|
}
|
|
this.walletId = r.getWalletId();
|
|
this.userName = r.getUserName();
|
|
this.idNumber = r.getIdNumber();
|
|
this.bankCardNumber = r.getBankCardNumber();
|
|
this.walletType = r.getWalletType();
|
|
this.orgCode = r.getOrgCode();
|
|
this.certSerial = r.getCertSerial();
|
|
this.requestTimestamp = r.getRequestTimestamp();
|
|
this.requestMessage = r.getRequestMessage();
|
|
this.digestValue = r.getDigestValue();
|
|
this.signingPrivateKey = r.getSigningPrivateKey();
|
|
this.signature = r.getSignature();
|
|
this.requestJson = r.getRequestJson();
|
|
this.sentToCentral = r.isSentToCentral();
|
|
this.status = r.getStatus() == null ? null : r.getStatus().name();
|
|
}
|
|
}
|