Visitar URL original
:art: #3538 【微信支付】V3接口增加实名支付参数 · binarywang/WxJava@3f0b8d4 · GitHub
Skip to content

Commit 3f0b8d4

Browse files
authored
🎨 #3538 【微信支付】V3接口增加实名支付参数
1 parent dd40714 commit 3f0b8d4

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

‎weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/request/WxPayUnifiedOrderV3Request.java‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,12 @@ public static class Payer implements Serializable {
250250
*/
251251
@SerializedName(value = "openid")
252252
private String openid;
253+
254+
/**
255+
* 实名支付用户身份标识
256+
*/
257+
@SerializedName(value = "identity")
258+
private Identity identity;
253259
}
254260

255261
@Data
@@ -572,4 +578,36 @@ public static class SettleInfo implements Serializable {
572578
@SerializedName(value = "profit_sharing")
573579
private Boolean profitSharing;
574580
}
581+
582+
583+
@Data
584+
@NoArgsConstructor
585+
public static class Identity implements Serializable {
586+
private static final long serialVersionUID = 1L;
587+
588+
/**
589+
* 证件类型
590+
* IDCARD:身份证
591+
* HONGKONG_MACAO:港澳回乡证
592+
* HONGKONG_MACAO_RESIDENT:港澳居住证
593+
* TAIWAN_RESIDENT:台湾居住证
594+
* FOREIGN_RESIDENT:外国人永居证
595+
* OVERSEA_PASSPORT:护照
596+
*/
597+
@SerializedName(value = "type")
598+
private String type;
599+
/**
600+
* 证件号
601+
* 证件号,如身份证号。
602+
* 示例值:43102119910910512X
603+
*/
604+
@SerializedName(value = "number")
605+
private String number;
606+
/**
607+
* 证件姓名。
608+
* 示例值:周星星
609+
*/
610+
@SerializedName(value = "name")
611+
private String name;
612+
}
575613
}

0 commit comments

Comments
 (0)