🎨 #3538 【微信支付】V3接口增加实名支付参数

This commit is contained in:
cloudX 2025-04-07 13:03:10 +08:00 committed by GitHub
parent dd407141b0
commit 3f0b8d4e2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -250,6 +250,12 @@ public class WxPayUnifiedOrderV3Request implements Serializable {
*/
@SerializedName(value = "openid")
private String openid;
/**
* 实名支付用户身份标识
*/
@SerializedName(value = "identity")
private Identity identity;
}
@Data
@ -572,4 +578,36 @@ public class WxPayUnifiedOrderV3Request implements Serializable {
@SerializedName(value = "profit_sharing")
private Boolean profitSharing;
}
@Data
@NoArgsConstructor
public static class Identity implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 证件类型
* IDCARD:身份证
* HONGKONG_MACAO:港澳回乡证
* HONGKONG_MACAO_RESIDENT:港澳居住证
* TAIWAN_RESIDENT:台湾居住证
* FOREIGN_RESIDENT:外国人永居证
* OVERSEA_PASSPORT:护照
*/
@SerializedName(value = "type")
private String type;
/**
* 证件号
* 证件号如身份证号
* 示例值43102119910910512X
*/
@SerializedName(value = "number")
private String number;
/**
* 证件姓名
* 示例值周星星
*/
@SerializedName(value = "name")
private String name;
}
}