:art: 企业付款到零钱,增加品牌红包字段

This commit is contained in:
墨染 2023-12-21 17:22:00 +08:00
parent 2845bab6a9
commit 546440e794

View File

@ -167,6 +167,45 @@ public class EntPayRequest extends BaseWxPayRequest {
@XStreamAlias("spbill_create_ip")
private String spbillCreateIp;
/**
* <pre>
* 字段名付款场景.
* 变量名scene
* 是否必填
* 示例值BRAND_REDPACKET
* 类型String(64)
* 描述BRAND_REDPACKET品牌红包其他值或不传则默认为普通付款到零钱
* </pre>
*/
@XStreamAlias("scene")
private String scene;
/**
* <pre>
* 字段名品牌ID.
* 变量名brand_id
* 是否必填
* 示例值1234
* 类型int
* 描述品牌在微信支付的唯一标识仅在付款场景为品牌红包时必填
* </pre>
*/
@XStreamAlias("brand_id")
private Integer brandId;
/**
* <pre>
* 字段名消息模板ID.
* 变量名finder_template_id
* 是否必填
* 示例值1243100000000000
* 类型String(128)
* 描述品牌所配置的消息模板的唯一标识仅在付款场景为品牌红包时必填
* </pre>
*/
@XStreamAlias("finder_template_id")
private String finderTemplateId;
@Override
protected void checkConstraints() {
@ -209,5 +248,8 @@ public class EntPayRequest extends BaseWxPayRequest {
map.put("amount", amount.toString());
map.put("desc", description);
map.put("spbill_create_ip", spbillCreateIp);
map.put("scene", scene);
map.put("brand_id", brandId.toString());
map.put("finder_template_id", finderTemplateId);
}
}