repo
stringclasses
1k values
file_url
stringlengths
96
373
file_path
stringlengths
11
294
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
6 values
commit_sha
stringclasses
1k values
retrieved_at
stringdate
2026-01-04 14:45:56
2026-01-04 18:30:23
truncated
bool
2 classes
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubWithdrawRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubWithdrawRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 二级商户账户余额提现 * <pre> * 文档地址:https://pay.weixin.qq.com/doc/v3/partner/4012476652 * </pre> */ @Data @NoArgsConstructor public class SubWithdrawRequest implements Serializable { /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 电商平台二级商户号,由微信支付生成并下发。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:商户提现单号 * 变量名:out_request_no * 是否必填:是 * 类型:string(32) * 描述: * 必须是字母数字 * 示例值: 20190611222222222200000000012122 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:提现金额 * 变量名:amount * 是否必填:是 * 类型:int64 * 描述: * 提现金额(单位:分) * 示例值:100 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:备注 * 变量名:remark * 是否必填:否 * 类型:string(56) * 描述: * 商户对提现单的备注 * 示例值:交易提现 * </pre> */ @SerializedName(value = "remark") private String remark; /** * <pre> * 字段名:银行附言 * 变量名:bank_memo * 是否必填:否 * 类型:string(32) * 描述: * 展示在收款银行系统中的附言,数字、字母最长32个汉字(能否成功展示依赖银行系统支持)。 * 示例值:微信支付提现 * </pre> */ @SerializedName(value = "bank_memo") private String bankMemo; /** * <pre> * 字段名:回调通知地址 * 变量名:notify_url * 是否必填:否 * 类型:string(256) * 描述: * 异步接收提现状态变更通知的回调地址,通知url必须为外网可访问的url,不能携带参数。 * 如果参数中传了notify_url,则商户平台上配置的回调地址将不会生效,优先回调当前传的地址。 * 示例值:https://www.weixin.qq.com/wxpay/pay.php * </pre> */ @SerializedName(value = "notify_url") private String notifyUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawStatusResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawStatusResult.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 电商平台查询提现状态 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_6.shtml * </pre> * * @author f00lish * created on 2020/10/27 */ @Data @NoArgsConstructor public class SpWithdrawStatusResult implements Serializable { private static final long serialVersionUID = -6013827963506201478L; /** * <pre> * 字段名:提现单状态 * 变量名:status * 是否必填:是 * 类型:string(16) * 描述: * 枚举值: * CREATE_SUCCESS:受理成功 * SUCCESS:提现成功 * FAIL:提现失败 * REFUND:提现退票 * CLOSE:关单 * INIT:业务单已创建 * 示例值:CREATE_SUCCESS * </pre> */ @SerializedName(value = "status") private String status; /** * <pre> * 字段名:微信支付提现单号 * 变量名:withdraw_id * 是否必填:是 * 类型:string(128) * 描述: * 电商平台提交二级商户提现申请后,由微信支付返回的申请单号,作为查询申请状态的唯一标识。 * 示例值: 12321937198237912739132791732912793127931279317929791239112123 * </pre> */ @SerializedName(value = "withdraw_id") private String withdrawId; /** * <pre> * 字段名:商户提现单号 * 变量名:out_request_no * 是否必填:是 * 类型:string(32) * 描述: * 商户提现单号,由商户自定义生成。 * 示例值: 20190611222222222200000000012122 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:提现金额 * 变量名:amount * 是否必填:是 * 类型:int) * 描述: * 单位:分 * 示例值:1 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:发起提现时间 * 变量名:create_time * 是否必填:是 * 类型:string(29) * 描述: * 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss:sss+TIMEZONE, * YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss:sss表示时分秒毫秒, * TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。 * 例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 * </pre> */ @SerializedName(value = "create_time") private String createTime; /** * <pre> * 字段名:提现状态更新时间 * 变量名:update_time * 是否必填:是 * 类型:string(29) * 描述: * 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss:sss+TIMEZONE, * YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss:sss表示时分秒毫秒, * TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。 * 例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 * </pre> */ @SerializedName(value = "update_time") private String updateTime; /** * <pre> * 字段名:失败原因 * 变量名:reason * 是否必填:是 * 类型:string(255) * 描述: * 仅在提现失败、退票、关单时有值 * 示例值:卡号错误 * </pre> */ @SerializedName(value = "reason") private String reason; /** * <pre> * 字段名:提现备注 * 变量名:remark * 是否必填:是 * 类型:string(56) * 描述: * 商户对提现单的备注,若发起提现时未传入相应值或输入不合法,则该值为空 * 示例值:交易提现 * </pre> */ @SerializedName(value = "remark") private String remark; /** * <pre> * 字段名:银行附言 * 变量名:bank_memo * 是否必填:是 * 类型:string(32) * 描述: * 展示在收款银行系统中的附言,由数字、字母、汉字组成(能否成功展示依赖银行系统支持)。若发起提现时未传入相应值或输入不合法,则该值为空 * 示例值:微信提现 * </pre> */ @SerializedName(value = "bank_memo") private String bankMemo; /** * <pre> * 字段名:出款账户类型 * 变量名:account_type * 是否必填:是 * 类型:string(16) * 描述: * BASIC:基本户 * OPERATION:运营账户 * FEES:手续费账户 * 示例值:BASIC * </pre> */ @SerializedName(value = "account_type") private String account_type; /** * <pre> * 字段名:提现失败解决方案 * 变量名:solution * 是否必填:是 * 类型:string(255) * 描述: * 仅在提现失败、退票、关单时有值 * 示例值:请修改结算银行卡信息 * </pre> */ @SerializedName(value = "solution") private String solution; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBalanceResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/FundBalanceResult.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; /** * @author f00lish * created on 2020/09/12 */ @Data @NoArgsConstructor public class FundBalanceResult { /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 电商平台二级商户号,由微信支付生成并下发。 * 示例值:1900000109 * </pre> */ @SerializedName("sub_mchid") private String subMchid; /** * <pre> * 字段名:可用余额 * 变量名:available_amount * 是否必填:是 * 类型:int64 * 描述: * 可用余额(单位:分),此余额可做提现操作。 * 示例值:100 * </pre> */ @SerializedName("available_amount") private Integer availableAmount; /** * <pre> * 字段名:不可用余额 * 变量名:pending_amount * 是否必填:否 * 类型:int64 * 描述: * 不可用余额(单位:分)。 * 示例值:100 * </pre> */ @SerializedName("pending_amount") private Integer pendingAmount; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsQueryRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsQueryRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; @Data @NoArgsConstructor public class PartnerTransactionsQueryRequest implements Serializable { /** * <pre> * 字段名:服务商户号 * 变量名:sp_mchid * 是否必填:是 * 类型:string(32) * 描述: * 服务商户号,由微信支付生成并下发 * 示例值:1230000109 * </pre> */ @SerializedName(value = "sp_mchid") private String spMchid; /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 二级商户的商户号,有微信支付生成并下发。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string(32) * 描述: * 微信支付系统生成的订单号 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string(32) * 描述: * 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一,详见【商户订单号】。 * 特殊规则:最小字符长度为6 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingReceiverRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingReceiverRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.github.binarywang.wxpay.v3.SpecEncrypt; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 添加分账接收方API * <pre> * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_7.shtml * </pre> */ @Data @NoArgsConstructor public class ProfitSharingReceiverRequest implements Serializable { /** * <pre> * 字段名:公众账号ID * 变量名:appid * 是否必填:是 * 类型:string(32) * 描述: * 电商平台的appid(公众号APPID或者小程序APPID) * 示例值:wx8888888888888888 * </pre> */ @SerializedName(value = "appid") private String appid; /** * <pre> * 字段名:接收方类型 * 变量名:type * 是否必填:是 * 类型:string(32) * 描述: * 分账接收方的类型,枚举值: * MERCHANT_ID:商户 * PERSONAL_OPENID:个人 * 示例值:MERCHANT_ID * </pre> */ @SerializedName(value = "type") private String type; /** * <pre> * 字段名:接收方账号 * 变量名:account * 是否必填:是 * 类型:string(64) * 描述: * 分账接收方的账号 * 类型是MERCHANT_ID时,是商户号 * 类型是PERSONAL_OPENID时,是个人openid,openid获取方法 * 示例值:190001001 * </pre> */ @SerializedName(value = "account") private String account; /** * <pre> * 字段名:接收方名称 * 变量名:name * 是否必填:是 * 类型:string(256) * 描述: * 分账接收方的名称,当type为MERCHANT_ID时,接收方名称是商户全称。 * 示例值:张三网络公司 * </pre> */ @SerializedName(value = "name") private String name; /** * <pre> * 字段名:接收方名称的密文 * 变量名:encrypted_name * 是否必填:否 * 类型:string(10240) * 描述: * 1、分账接收方类型是PERSONAL_OPENID时,是个人姓名的密文(选传,传则校验) * 此字段的加密的方式为: * 2、使用微信支付平台证书中的公钥 * 3、使用RSAES-OAEP算法进行加密 * 4、将请求中HTTP头部的Wechatpay-Serial设置为证书序列号 * 字段加密: 使用APIv3定义的方式加密 * 示例值:hu89ohu89ohu89o * </pre> */ @SpecEncrypt @SerializedName(value = "encrypted_name") private String encryptedName; /** * <pre> * 字段名:与分账方的关系类型 * 变量名:relation_type * 是否必填:是 * 类型:string(32) * 描述: * 子商户与接收方的关系。 * 枚举值: * SUPPLIER:供应商 * DISTRIBUTOR:分销商 * SERVICE_PROVIDER:服务商 * PLATFORM:平台 * OTHERS:其他 * 示例值:SUPPLIER * </pre> */ @SerializedName(value = "relation_type") private String relationType; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubsidiesCreateRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubsidiesCreateRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * add by 306932545@qq.com * 请求补差请求对象 * <pre> * https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_5_1.shtml * </pre> */ @Data @NoArgsConstructor public class SubsidiesCreateRequest implements Serializable { /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 补差的电商平台二级商户,填写微信支付分配的商户号。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:微信订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string(64) * 描述: * 微信支付订单号。 * 示例值: 4208450740201411110007820472 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:商户补差单号 * 变量名:out_subsidy_no * 是否必填:是 * 类型:string(64) * 描述: * 商户系统内部的补差单号,在商户系统内部唯一,同一补差单号多次请求等同一次。 * 示例值:P20150806125347 * </pre> */ @SerializedName(value = "out_subsidy_no") private String outSubsidyNo; /** * <pre> * 字段名:补差金额 * 变量名:amount * 是否必填:是 * 类型:int64 * 描述: * 补差金额,单位为分,只能为整数,不能超过下单时候的最大补差金额。 * 注意:单笔订单最高补差金额为10000元 * 示例值:10 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:补差描述 * 变量名:description * 是否必填:是 * 类型:string(80) * 描述: * 补差备注描述,查询的时候原样带回。 * 示例值:测试备注 * </pre> */ @SerializedName(value = "description") private String description; /** * <pre> * 字段名:微信退款单号 * 变量名:refund_id * 是否必填:否 * 类型:string(32) * 描述: * 微信退款单号,微信支付系统退款返回的唯一标识,当补差金额小于下单时候的金额,该字段必填 * 示例值:3008450740201411110007820472 * </pre> */ @SerializedName(value = "refund_id") private String refundId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ProfitSharingOrdersUnSplitAmountRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; /** * 查询订单剩余待分金额API 请求对象 * * @author mshyh * created on 2022/05/26 */ @Data @NoArgsConstructor public class ProfitSharingOrdersUnSplitAmountRequest { /** * <pre> * 字段名:微信订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[1, 32] * 描述:微信支付订单号 * 示例值:4208450740201411110007820472 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/AccountCancelApplicationsResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/AccountCancelApplicationsResult.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 提交注销申请单 * <pre> * https://pay.weixin.qq.com/docs/partner/apis/ecommerce-cancel/cancel-applications/create-cancel-application.html * </pre> */ @Data @NoArgsConstructor public class AccountCancelApplicationsResult implements Serializable { /** * 【商户注销申请单号】 商户注销申请单号,原样返回请求参数里的内容 */ @SerializedName(value = "out_apply_no") private String outApplyNo; /** * 【二级商户号】 二级商户号 */ @SerializedName(value = "sub_mchid") private String subMchid; /** * 【驳回原因】 受理失败原因 */ @SerializedName(value = "reject_reason") private String rejectReason; /** * 【注销状态】 注销状态 * 可选取值: * REVIEWING: 审核中 * REJECTED: 审核驳回,驳回原因详见reject_reason * CANCEL_SUCCESS: 注销成功 */ @SerializedName(value = "cancel_state") private String cancelState; /** * 【最后更新时间】 最后更新时间。遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 */ @SerializedName(value = "update_time") private String updateTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersQueryRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/ReturnOrdersQueryRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.*; import java.io.Serializable; /** * 查询分账回退结果请求 * * <pre> * * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/profitsharing/chapter3_3.shtml * * </pre> * * @author wangrui * created on 2021/02/20 */ @Data @Builder @NoArgsConstructor(access = AccessLevel.PRIVATE) @AllArgsConstructor(access = AccessLevel.PRIVATE) public class ReturnOrdersQueryRequest implements Serializable { private static final long serialVersionUID = 4250796057341297359L; /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 分账出资的电商平台二级商户,填写微信支付分配的商户号。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:微信分账单号 * 变量名:order_id * 是否必填:与out_order_no二选一 * 类型:string(64) * 描述: * 微信分账单号,微信系统返回的唯一标识。微信分账单号和商户分账单号二选一填写。 * 示例值:3008450740201411110007820472 * </pre> */ @SerializedName(value = "order_id") private String orderId; /** * <pre> * 字段名:商户分账单号 * 变量名:out_order_no * 是否必填:与order_id二选一 * 类型:string(64) * 描述: * 商户系统内部的分账单号,在商户系统内部唯一(单次分账、多次分账、完结分账应使用不同的商户分账单号),同一分账单号多次请求等同一次。 * 示例值:P20150806125346 * </pre> */ @SerializedName(value = "out_order_no") private String outOrderNo; /** * <pre> * 字段名:商户回退单号 * 变量名:out_return_no * 是否必填:是 * 类型:string(64) * 描述: * 此回退单号是商户在自己后台生成的一个新的回退单号,在商户后台唯一。 * 示例值:P20150806125346 * </pre> */ @SerializedName(value = "out_return_no") private String outReturnNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubsidiesReturnRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubsidiesReturnRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * add by 306932545@qq.com * 请求补差回退API-请求对象 * <pre> * https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_5_2.shtml * </pre> */ @Data @NoArgsConstructor public class SubsidiesReturnRequest implements Serializable { /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 补差的电商平台二级商户,填写微信支付分配的商户号。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:微信订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string(64) * 描述: * 微信支付订单号。 * 示例值: 4208450740201411110007820472 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:商户补差回退单号 * 变量名:out_order_no * 是否必填:是 * 类型:string(64) * 描述: * 原发起补差请求时使用的商户系统内部的补差单号。 * 示例值:P20150806125346 * </pre> */ @SerializedName(value = "out_order_no") private String outOrderNo; /** * <pre> * 字段名:补差金额 * 变量名:amount * 是否必填:是 * 类型:int64 * 描述: * 补差金额,单位为分,只能为整数,不能超过下单时候的最大补差金额。 * 注意:单笔订单最高补差金额为10000元 * 示例值:10 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:补差描述 * 变量名:description * 是否必填:是 * 类型:string(80) * 描述: * 补差备注描述,查询的时候原样带回。 * 示例值:测试备注 * </pre> */ @SerializedName(value = "description") private String description; /** * <pre> * 字段名:微信退款单号 * 变量名:refund_id * 是否必填:否 * 类型:string(64) * 描述: * 微信退款单号,微信支付系统退款返回的唯一标识。 * 用户零钱账户异常,无法在线发起退款时,此字段可以不传;其他情况下必传。 * 示例值:3008450740201411110007820472 * </pre> */ @SerializedName(value = "refund_id") private String refundId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/PartnerTransactionsResult.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 普通支付 查询结果 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/e_transactions/chapter3_5.shtml * </pre> * @author cloudX */ @Data @NoArgsConstructor public class PartnerTransactionsResult implements Serializable { private static final long serialVersionUID = 2371448241965534820L; /** * <pre> * 字段名:服务商公众号ID * 变量名:sp_appid * 是否必填:是 * 类型:string(32) * 描述: * 服务商申请的公众号或移动应用appid。 * 示例值:wx8888888888888888 * </pre> */ @SerializedName(value = "sp_appid") private String spAppid; /** * <pre> * 字段名:服务商户号 * 变量名:sp_mchid * 是否必填:是 * 类型:string(32) * 描述: * 服务商户号,由微信支付生成并下发 * 示例值:1230000109 * </pre> */ @SerializedName(value = "sp_mchid") private String spMchid; /** * <pre> * 字段名:二级商户公众号ID * 变量名:sub_appid * 是否必填:否 * 类型:string(32) * 描述: * 二级商户申请的公众号或移动应用appid。 * 示例值:wxd678efh567hg6999 * </pre> */ @SerializedName(value = "sub_appid") private String subAppid; /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 二级商户的商户号,有微信支付生成并下发。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:+商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string(32) * 描述:商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一,详见【商户订单号】。 * 特殊规则:最小字符长度为6 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:否 * 类型:string(32) * 描述:微信支付系统生成的订单号。 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:交易类型 * 变量名:trade_type * 是否必填:否 * 类型:string(16) * 描述:交易类型,枚举值: * JSAPI:公众号支付 * NATIVE:扫码支付 * APP:APP支付 * MICROPAY:付款码支付 * MWEB:H5支付 * FACEPAY:刷脸支付 * * 示例值: MICROPAY * </pre> */ @SerializedName(value = "trade_type") private String tradeType; /** * <pre> * 字段名:交易状态 * 变量名:trade_state * 是否必填:是 * 类型:string(32) * 描述:交易状态,枚举值: * SUCCESS:支付成功 * REFUND:转入退款 * NOTPAY:未支付 * CLOSED:已关闭 * REVOKED:已撤销(付款码支付) * USERPAYING:用户支付中(付款码支付) * PAYERROR:支付失败(其他原因,如银行返回失败) * * 示例值:SUCCESS * </pre> */ @SerializedName(value = "trade_state") private String tradeState; /** * <pre> * 字段名:交易状态描述 * 变量名:trade_state_desc * 是否必填:是 * 类型:string(256) * 描述:交易状态描述 * 示例值:支付失败,请重新下单支付 * </pre> */ @SerializedName(value = "trade_state_desc") private String tradeStateDesc; /** * <pre> * 字段名:付款银行 * 变量名:bank_type * 是否必填:否 * 类型:string(16) * 描述:银行类型,采用字符串类型的银行标识。 * 示例值:CMC * </pre> */ @SerializedName(value = "bank_type") private String bankType; /** * <pre> * 字段名:附加数据 * 变量名:attach * 是否必填:否 * 类型:string(128) * 描述:附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用 * 示例值:自定义数据 * </pre> */ @SerializedName(value = "attach") private String attach; /** * <pre> * 字段名:支付完成时间 * 变量名:success_time * 是否必填:否 * 类型:string(64) * 描述:支付完成时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre> * 字段名:支付者信息 * 变量名:payer * 是否必填:是 * 类型:object * 描述:基础支付支付者信息 * </pre> */ private CombinePayerInfo payer; /** * <pre> * 字段名:支付者 * 变量名:combine_payer_info * 是否必填:否 * 类型:object * 描述:合单支付支付者信息,示例值:见请求示例 * </pre> */ @SerializedName(value = "combine_payer_info") private CombinePayerInfo combinePayerInfo; /** * <pre> * 字段名:订单金额 * 变量名:amount * 是否必填:是 * 类型:object * 描述:订单金额信息 * </pre> */ @SerializedName(value = "amount") private Amount amount; /** * <pre> * 字段名:场景信息 * 变量名:scene_info * 是否必填:否 * 类型:object * 描述:支付场景信息描述 * </pre> */ @SerializedName(value = "scene_info") private SceneInfo sceneInfo; /** * <pre> * 字段名:优惠功能 * 变量名:promotion_detail * 是否必填:否 * 类型:array * 描述:优惠功能,享受优惠时返回该字段。 * </pre> */ @SerializedName(value = "promotion_detail") private List<PromotionDetail> promotionDetails; @Data @NoArgsConstructor public static class SceneInfo implements Serializable { /** * <pre> * 字段名:商户端设备号 * 变量名:device_id * 是否必填:否 * 类型:string(16) * 描述: * 终端设备号(门店号或收银设备ID)。 * 特殊规则:长度最小7个字节 * 示例值:POS1:1 * </pre> */ @SerializedName(value = "device_id") private String deviceId; } @Data @NoArgsConstructor public static class CombinePayerInfo implements Serializable { /** * <pre> * 字段名:用户标识 * 变量名:sp_openid * 是否必填:是 * 类型:string(128) * 描述: * 用户在服务商appid下的唯一标识。 * 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o * </pre> */ @SerializedName(value = "sp_openid") private String spOpenid; /** * <pre> * 字段名:二级商户用户标识 * 变量名:sub_openid * 是否必填:否 * 类型:string(128) * 描述: * 用户在二级商户appid下的唯一标识。 * 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o * </pre> */ @SerializedName(value = "sub_openid") private String subOpenid; } @Data @NoArgsConstructor public static class Amount implements Serializable { /** * <pre> * 字段名:总金额 * 变量名:total * 是否必填:否 * 类型:int * 描述: * 订单总金额,单位为分 * 示例值:100 * </pre> */ @SerializedName(value = "total") private Integer total; /** * <pre> * 字段名:用户支付金额 * 变量名:payer_total * 是否必填:否 * 类型:int * 描述: * 用户支付金额,单位为分。 * 示例值:100 * </pre> */ @SerializedName(value = "payer_total") private Integer payerTotal; /** * <pre> * 字段名:货币类型 * 变量名:currency * 是否必填:否 * 类型:string(16) * 描述: * CNY:人民币,境内商户号仅支持人民币。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:用户支付币种 * 变量名:payer_currency * 是否必填:否 * 类型:string(8) * 描述: * 用户支付币种 * 示例值: CNY * </pre> */ @SerializedName(value = "payer_currency") private String payerCurrency; } @Data @NoArgsConstructor public static class PromotionDetail implements Serializable { /** * <pre> * 字段名:券ID * 变量名:coupon_id * 是否必填:是 * 类型:string(32) * 描述: 券ID * 示例值:109519 * </pre> */ @SerializedName(value = "coupon_id") private String couponId; /** * <pre> * 字段名:优惠名称 * 变量名:name * 是否必填:否 * 类型:string(64) * 描述: 优惠名称 * 示例值:单品惠-6 * </pre> */ @SerializedName(value = "name") private String name; /** * <pre> * 字段名:优惠范围 * 变量名:scope * 是否必填:否 * 类型:string(32) * 描述: 优惠名称 * 示例值: * GLOBAL:全场代金券 * SINGLE:单品优惠 * 示例值:GLOBAL * </pre> */ @SerializedName(value = "scope") private String scope; /** * <pre> * 字段名:优惠类型 * 变量名:type * 是否必填:否 * 类型:string(32) * 描述: * CASH:充值 * NOCASH:预充值 * 示例值:CASH * </pre> */ @SerializedName(value = "type") private String type; /** * <pre> * 字段名:优惠券面额 * 变量名:amount * 是否必填:是 * 类型:int * 描述: 优惠券面额 * 示例值:100 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:活动ID * 变量名:stock_id * 是否必填:否 * 类型:string(32) * 描述:活动ID * 示例值:931386 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:微信出资 * 变量名:wechatpay_contribute * 是否必填:否 * 类型:int * 描述:微信出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "wechatpay_contribute") private Integer wechatpayContribute; /** * <pre> * 字段名:商户出资 * 变量名:merchant_contribute * 是否必填:否 * 类型:int * 描述:商户出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "merchant_contribute") private Integer merchantContribute; /** * <pre> * 字段名:其他出资 * 变量名:other_contribute * 是否必填:否 * 类型:int * 描述:其他出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "other_contribute") private Integer otherContribute; /** * <pre> * 字段名:优惠币种 * 变量名:currency * 是否必填:否 * 类型:String(16) * 描述: * CNY:人民币,境内商户号仅支持人民币。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:单品列表 * 变量名:goods_detail * 是否必填:否 * 类型:array * 描述:单品列表信息 * </pre> */ @SerializedName(value = "goods_detail") private List<GoodsDetail> goodsDetails; } @Data @NoArgsConstructor public static class GoodsDetail implements Serializable { /** * <pre> * 字段名:商品编码 * 变量名:goods_id * 是否必填:是 * 类型:string(32) * 描述:商品编码 * 示例值:M1006 * </pre> */ @SerializedName(value = "goods_id") private String goodsId; /** * <pre> * 字段名:商品数量 * 变量名:quantity * 是否必填:是 * 类型:int64 * 描述: * 用户购买的数量 * 示例值:1 * </pre> */ @SerializedName(value = "quantity") private Integer quantity; /** * <pre> * 字段名:商品单价 * 变量名:unit_price * 是否必填:是 * 类型:int64 * 描述: * 商品单价,单位为分 * 示例值:100 * </pre> */ @SerializedName(value = "unit_price") private Integer unitPrice; /** * <pre> * 字段名:商品优惠金额 * 变量名:discount_amount * 是否必填:是 * 类型:int * 描述:商品优惠金额 * 示例值:0 * </pre> */ @SerializedName(value = "discount_amount") private Integer discountAmount; /** * <pre> * 字段名:商品备注 * 变量名:goods_remark * 是否必填:否 * 类型:string(128) * 描述:商品备注信息 * 示例值:商品备注信息 * </pre> */ @SerializedName(value = "goods_remark") private String goodsRemark; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SignatureHeader.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SignatureHeader.java
package com.github.binarywang.wxpay.bean.ecommerce; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 微信通知接口头部信息,需要做签名验证 * 文档地址: https://wechatpay-api.gitbook.io/wechatpay-api-v3/qian-ming-zhi-nan-1/qian-ming-yan-zheng * * @author cloudX */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class SignatureHeader implements Serializable { private static final long serialVersionUID = -6958015499416059949L; /** * 时间戳 */ private String timeStamp; /** * 随机串 */ private String nonce; /** * 已签名字符串 */ private String signed; /** * 证书序列号 */ private String serialNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/TradeBillRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.*; import java.io.Serializable; /** * 交易账单请求 * * @author f00lish * created on 2020/09/28 */ @Data @Builder @ToString @NoArgsConstructor(access = AccessLevel.PRIVATE) @AllArgsConstructor(access = AccessLevel.PRIVATE) public class TradeBillRequest implements Serializable { private static final long serialVersionUID = 9120047088908567632L; /** * <pre> * 字段名:账单日期 * 变量名:bill_date * 是否必填:是 * 类型:string(10) * 描述: * 格式YYYY-MM-DD * 仅支持三个月内的账单下载申请。 * 示例值:2019-06-11 * </pre> */ @SerializedName(value = "bill_date") private String billDate; /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:否 * 类型:string(12) * 描述: * 1、若商户是直连商户:无需填写该字段。 * 2、若商户是服务商: * ● 不填则默认返回服务商下的交易或退款数据。 * ● 如需下载某个子商户下的交易或退款数据,则该字段必填。 * 特殊规则:最小字符长度为8 * 注意:仅适用于电商平台 服务商 * 示例值:1900000001 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:账单类型 * 变量名:bill_type * 是否必填:否 * 类型:string(32) * 描述: * 不填则默认是ALL * 枚举值: * ALL:返回当日所有订单信息(不含充值退款订单) * SUCCESS:返回当日成功支付的订单(不含充值退款订单) * REFUND:返回当日退款订单(不含充值退款订单) * 示例值:ALL * </pre> */ @SerializedName(value = "bill_type") private String billType; /** * <pre> * 字段名:压缩类型 * 变量名:tar_type * 是否必填:否 * 类型:string(32) * 描述: * 不填则默认是数据流 * 枚举值: * GZIP:返回格式为.gzip的压缩包账单 * 示例值:GZIP * </pre> */ @SerializedName(value = "tar_type") private String tarType; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubsidiesCancelRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SubsidiesCancelRequest.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * add by 306932545@qq.com * 取消补差请求对象 * <pre> * https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter7_5_3.shtml * </pre> */ @Data @NoArgsConstructor public class SubsidiesCancelRequest implements Serializable { /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 补差的电商平台二级商户,填写微信支付分配的商户号。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:微信订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string(64) * 描述: * 微信支付订单号。 * 示例值: 4208450740201411110007820472 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:取消补差描述 * 变量名:description * 是否必填:是 * 类型:string(80) * 描述: * 取消补差描述,查询的时候原样带回。 * 示例值:订单退款 * </pre> */ @SerializedName(value = "description") private String description; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/SpWithdrawResult.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 电商平台提现 结果 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/fund/chapter3_5.shtml * </pre> */ @Data @NoArgsConstructor public class SpWithdrawResult implements Serializable { /** * <pre> * 字段名:微信支付提现单号 * 变量名:withdraw_id * 是否必填:否 (文档里面是【否】,理论上应该都有值) * 类型:string(128) * 描述: * 微信支付系统生成的提现单号。 * 示例值:12321937198237912739132791732912793127931279317929791239112123 * </pre> */ @SerializedName(value = "withdraw_id") private String withdrawId; /** * <pre> * 字段名:商户提现单号 * 变量名:out_request_no * 是否必填:是 * 类型:string(32) * 描述: * 必须是字母数字 * 示例值: 20190611222222222200000000012122 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundQueryResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/RefundQueryResult.java
package com.github.binarywang.wxpay.bean.ecommerce; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 查询退款结果 * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/ecommerce/refunds/chapter3_2.shtml */ @Data @NoArgsConstructor public class RefundQueryResult implements Serializable { /** * <pre> * 字段名:微信退款单号 * 变量名:refund_id * 是否必填:是 * 类型:string(32) * 描述: * 微信退款单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "refund_id") private String refundId; /** * <pre> * 字段名:商户退款单号 * 变量名:out_refund_no * 是否必填:是 * 类型:string(32) * 描述: * 商户退款单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_refund_no") private String outRefundNo; /** * <pre> * 字段名:微信订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string(32) * 描述: * 微信支付订单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string(32) * 描述: * 返回的商户订单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:退款渠道 * 变量名:channel * 是否必填:否 * 类型:string(16) * 描述: * ORIGINAL:原路退款 * BALANCE:退回到余额 * OTHER_BALANCE:原账户异常退到其他余额账户 * OTHER_BANKCARD:原银行卡异常退到其他银行卡 * 示例值: ORIGINAL * </pre> */ @SerializedName(value = "channel") private String channel; /** * <pre> * 字段名:退款入账账户 * 变量名:user_received_account * 是否必填:是 * 类型:string(64) * 描述: * 取当前退款单的退款入账方。 * 退回银行卡:{银行名称}{卡类型}{卡尾号} * 退回支付用户零钱: 支付用户零钱 * 退还商户: 商户基本账户、商户结算银行账户 * 退回支付用户零钱通:支付用户零钱通 * 示例值:招商银行信用卡0403 * </pre> */ @SerializedName(value = "user_received_account") private String userReceivedAccount; /** * <pre> * 字段名:退款成功时间 * 变量名:success_time * 是否必填:否 * 类型:string(64) * 描述: * 1、退款成功时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中, * 表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。 * 例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 * 2、当退款状态为退款成功时返回此参数。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre> * 字段名:退款创建时间 * 变量名:create_time * 是否必填:是 * 类型:string(64) * 描述: * 1、退款受理时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中, * 表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。 * 例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 * 2、当退款状态为退款成功时返回此字段。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "create_time") private String createTime; /** * <pre> * 字段名:退款状态 * 变量名:status * 是否必填:是 * 类型:string(16) * 描述: * 退款状态,枚举值: * SUCCESS:退款成功 * REFUNDCLOSE:退款关闭 * PROCESSING:退款处理中 * ABNORMAL:退款异常,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往【服务商平台—>交易中心】,手动处理此笔退款 * 示例值:SUCCESS * </pre> */ @SerializedName(value = "status") private String status; /** * <pre> * 字段名:金额信息 * 变量名:amount * 是否必填:是 * 类型:object * 描述: * 金额信息 * </pre> */ @SerializedName(value = "amount") private Amount amount; /** * <pre> * 字段名:营销详情 * 变量名:promotion_detail * 是否必填:否 * 类型:array * 描述: * 优惠退款信息 * </pre> */ public List<PromotionDetail> promotionDetails; /** * <pre> * 字段名:退款出资商户 * 变量名:refund_account * 是否必填:否 * 类型:string(32) * 描述: * 电商平台垫资退款专用参数。需先确认已开通此功能后,才能使用。若需要开通,请联系微信支付客服。 * 枚举值: * REFUND_SOURCE_PARTNER_ADVANCE : 电商平台垫付,需要向微信支付申请开通 * REFUND_SOURCE_SUB_MERCHANT : 二级商户,默认值 * 注意: * 若传入REFUND_SOURCE_PARTNER_ADVANCE,仅代表可以使用垫付退款,实际出款账户需以退款申请受理结果或查单结果为准。 * 示例值:REFUND_SOURCE_SUB_MERCHANT * </pre> */ @SerializedName(value = "refund_account") private String refundAccount; /** * <pre> * 字段名:资金账户 * 变量名:funds_account * 是否必填:否 * 类型:string(32) * 描述: * 若订单处于待分账状态,且未指定垫资退款(即refund_account未指定为REFUND_SOURCE_PARTNER_ADVANCE), * 可以传入此参数,指定退款资金来源账户。当该字段不存在时,默认使用订单交易资金所在账户出款, * 即待分账时使用不可用余额的资金进行退款,已分账或无分账时使用可用余额的资金进行退款。 AVAILABLE:可用余额 * 示例值:AVAILABLE * </pre> */ @SerializedName(value = "funds_account") private String fundsAccount; @Data @NoArgsConstructor public static class Amount implements Serializable { /** * <pre> * 字段名:退款金额 * 变量名:refund * 是否必填:是 * 类型:int * 描述: * 退款金额,币种的最小单位,只能为整数,不能超过原订单支付金额。 * 示例值:888 * </pre> */ @SerializedName(value = "refund") private String refund; /** * <pre> * 字段名:用户退款金额 * 变量名:payer_refund * 是否必填:是 * 类型:int * 描述: * 退款给用户的金额,不包含所有优惠券金额。 * 示例值:888 * </pre> */ @SerializedName(value = "payer_refund") private String payerRefund; /** * <pre> * 字段名:优惠退款金额 * 变量名:discount_refund * 是否必填:否 * 类型:int * 描述: * 优惠券的退款金额,原支付单的优惠按比例退款。 * 示例值:888 * </pre> */ @SerializedName(value = "discount_refund") private Integer discountRefund; /** * <pre> * 字段名:退款币种 * 变量名:currency * 是否必填:否 * 类型:string(18) * 描述: * 符合ISO 4217标准的三位字母代码,目前只支持人民币:CNY 。 * 示例值: CNY * </pre> */ @SerializedName(value = "currency") private String currency; } @Data @NoArgsConstructor public static class PromotionDetail implements Serializable { /** * <pre> * 字段名:券ID * 变量名:promotion_id * 是否必填:是 * 类型:string(32) * 描述:券或者立减优惠id 。 * 示例值:109519 * </pre> */ @SerializedName(value = "promotion_id") private String promotionId; /** * <pre> * 字段名:优惠范围 * 变量名:scope * 是否必填:是 * 类型:string(32) * 描述: 优惠范围 * 枚举值: * GLOBAL:全场代金券 * SINGLE:单品优惠 * 示例值:GLOBAL * </pre> */ @SerializedName(value = "scope") private String scope; /** * <pre> * 字段名:优惠类型 * 变量名:type * 是否必填:是 * 类型:string(32) * 描述: * 枚举值: * COUPON:充值型代金券,商户需要预先充值营销经费 * DISCOUNT:免充值型优惠券,商户不需要预先充值营销经费 * 示例值:DISCOUNT * </pre> */ @SerializedName(value = "type") private String type; /** * <pre> * 字段名:优惠券面额 * 变量名:amount * 是否必填:是 * 类型:int * 描述: 用户享受优惠的金额(优惠券面额=微信出资金额+商家出资金额+其他出资方金额 )。 * 示例值:5 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:优惠退款金额 * 变量名:refund_amount * 是否必填:是 * 类型:int * 描述: 代金券退款金额<=退款金额,退款金额-代金券或立减优惠退款金额为现金,说明详见《代金券或立减优惠》。 * 示例值:100 * </pre> */ @SerializedName(value = "refund_amount") private Integer refundAmount; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/TradeTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/TradeTypeEnum.java
package com.github.binarywang.wxpay.bean.ecommerce.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 支付方式 */ @Getter @AllArgsConstructor public enum TradeTypeEnum { /** * APP */ APP("/v3/combine-transactions/app", "/v3/pay/partner/transactions/app"), /** * JSAPI */ JSAPI("/v3/combine-transactions/jsapi", "/v3/pay/partner/transactions/jsapi"), /** * NATIVE */ NATIVE("/v3/combine-transactions/native", "/v3/pay/partner/transactions/native"), /** * MWEB */ MWEB("/v3/combine-transactions/h5", "/v3/pay/partner/transactions/h5"); /** * 合单url */ private final String combineUrl; /** * 单独下单url */ private final String partnerUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/SpAccountTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/SpAccountTypeEnum.java
package com.github.binarywang.wxpay.bean.ecommerce.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 服务商账户类型 * * @author f00lish * created on 2020/09/12 */ @Getter @AllArgsConstructor public enum SpAccountTypeEnum { /** * 基本账户 */ BASIC("BASIC"), /** * 运营账户 */ OPERATION("OPERATION"), /** * 手续费账户 */ FEES("FEES"); /** * 账户类型 */ private final String value; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/FundBillTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/ecommerce/enums/FundBillTypeEnum.java
package com.github.binarywang.wxpay.bean.ecommerce.enums; import lombok.AllArgsConstructor; import lombok.Getter; /** * 账单类型 * * @author f00lish * created on 2020/09/28 */ @Getter @AllArgsConstructor public enum FundBillTypeEnum { /** * 资金账单 */ FUND_FLOW_BILL("%s/v3/bill/fundflowbill?%s"), /** * 二级商户资金账单 */ SUB_FUND_FLOW_BILL("%s/v3/ecommerce/bill/fundflowbill?%s"); /** * url */ private final String url; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayNativeOrderResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayNativeOrderResult.java
package com.github.binarywang.wxpay.bean.order; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * <pre> * 微信扫码支付统一下单后发起支付拼接所需参数实现类 * Created by Binary Wang on 2017-9-1. * </pre> * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ @Data @AllArgsConstructor @NoArgsConstructor public class WxPayNativeOrderResult implements Serializable { private static final long serialVersionUID = 887792717425241444L; private String codeUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayMwebOrderResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayMwebOrderResult.java
package com.github.binarywang.wxpay.bean.order; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * <pre> * 微信H5支付统一下单后发起支付拼接所需参数实现类. * Created by Binary Wang on 2018-4-21. * </pre> * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ @Data @AllArgsConstructor @NoArgsConstructor public class WxPayMwebOrderResult implements Serializable { private static final long serialVersionUID = 8866329695767762066L; @XStreamAlias("mwebUrl") private String mwebUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayAppOrderResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayAppOrderResult.java
package com.github.binarywang.wxpay.bean.order; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * <pre> * APP支付调用统一下单接口后的组装所需参数的实现类 * 参考 https://pay.weixin.qq.com/wiki/doc/api/app/app.php?chapter=9_12 * Created by Binary Wang on 2017-9-1. * </pre> * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class WxPayAppOrderResult implements Serializable { private static final long serialVersionUID = 5408678833978707228L; private String sign; private String prepayId; private String partnerId; private String appId; /** * 由于package为java保留关键字,因此改为packageValue. 前端使用时记得要更改为package */ private String packageValue; private String timeStamp; private String nonceStr; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayMpOrderResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/order/WxPayMpOrderResult.java
package com.github.binarywang.wxpay.bean.order; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * <pre> * 微信公众号支付进行统一下单后组装所需参数的类 * 文档地址:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=7_7&index=6 * Created by Binary Wang on 2017-9-1. * </pre> * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class WxPayMpOrderResult implements Serializable { private static final long serialVersionUID = -7966682379048446567L; private String appId; private String timeStamp; private String nonceStr; /** * 由于package为java保留关键字,因此改为packageValue. 前端使用时记得要更改为package */ @XStreamAlias("package") private String packageValue; private String signType; private String paySign; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersResult.java
package com.github.binarywang.wxpay.bean.mipay; import com.github.binarywang.wxpay.bean.mipay.enums.MedInsPayStatusEnum; import com.github.binarywang.wxpay.bean.mipay.enums.MixPayStatusEnum; import com.github.binarywang.wxpay.bean.mipay.enums.MixPayTypeEnum; import com.github.binarywang.wxpay.bean.mipay.enums.OrderTypeEnum; import com.github.binarywang.wxpay.bean.mipay.enums.SelfPayStatusEnum; import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.Data; /** * 医保自费混合收款下单响应 * <p> * 从业机构调用医保自费混合收款下单接口后返回的结果 * 文档地址:https://pay.weixin.qq.com/doc/v3/partner/4012503131 * @author xgl * @date 2025/12/19 14:37 */ @Data public class MedInsOrdersResult { /** * <pre> * 字段名:混合交易订单号 * 变量名:mix_trade_no * 必填:是 * 类型:string * 描述:微信支付生成的混合交易订单号 * </pre> */ @SerializedName("mix_trade_no") public String mixTradeNo; /** * <pre> * 字段名:混合支付状态 * 变量名:mix_pay_status * 必填:是 * 类型:string * 描述:混合支付整体状态 * </pre> */ @SerializedName("mix_pay_status") public MixPayStatusEnum mixPayStatus; /** * <pre> * 字段名:自费支付状态 * 变量名:self_pay_status * 必填:是 * 类型:string * 描述:自费部分支付状态 * </pre> */ @SerializedName("self_pay_status") public SelfPayStatusEnum selfPayStatus; /** * <pre> * 字段名:医保支付状态 * 变量名:med_ins_pay_status * 必填:是 * 类型:string * 描述:医保部分支付状态 * </pre> */ @SerializedName("med_ins_pay_status") public MedInsPayStatusEnum medInsPayStatus; /** * <pre> * 字段名:支付完成时间 * 变量名:paid_time * 必填:否 * 类型:string * 描述:支付完成时间,格式为yyyyMMddHHmmss * </pre> */ @SerializedName("paid_time") public String paidTime; /** * <pre> * 字段名:透传响应内容 * 变量名:passthrough_response_content * 必填:否 * 类型:string * 描述:透传响应内容 * </pre> */ @SerializedName("passthrough_response_content") public String passthroughResponseContent; /** * <pre> * 字段名:混合支付类型 * 变量名:mix_pay_type * 必填:是 * 类型:string * 描述: * 混合支付类型可选取值: * - UNKNOWN_MIX_PAY_TYPE: 未知的混合支付类型,会被拦截 * - CASH_ONLY: 只向微信支付下单,没有向医保局下单 * - INSURANCE_ONLY: 只向医保局下单,没有向微信支付下单 * - CASH_AND_INSURANCE: 向医保局下单,也向微信支付下单 * </pre> */ @SerializedName("mix_pay_type") public MixPayTypeEnum mixPayType; /** * <pre> * 字段名:订单类型 * 变量名:order_type * 必填:是 * 类型:string * 描述: * 订单类型可选取值: * - UNKNOWN_ORDER_TYPE: 未知类型,会被拦截 * - REG_PAY: 挂号支付 * - DIAG_PAY: 诊间支付 * - COVID_EXAM_PAY: 新冠检测费用(核酸) * - IN_HOSP_PAY: 住院费支付 * - PHARMACY_PAY: 药店支付 * - INSURANCE_PAY: 保险费支付 * - INT_REG_PAY: 互联网医院挂号支付 * - INT_RE_DIAG_PAY: 互联网医院复诊支付 * - INT_RX_PAY: 互联网医院处方支付 * - COVID_ANTIGEN_PAY: 新冠抗原检测 * - MED_PAY: 药费支付 * </pre> */ @SerializedName("order_type") public OrderTypeEnum orderType; /** * <pre> * 字段名:从业机构/服务商的公众号ID * 变量名:appid * 必填:是 * 类型:string(32) * 描述:从业机构/服务商的公众号ID * </pre> */ @SerializedName("appid") public String appid; /** * <pre> * 字段名:医疗机构的公众号ID * 变量名:sub_appid * 必填:是 * 类型:string(32) * 描述:医疗机构的公众号ID * </pre> */ @SerializedName("sub_appid") public String subAppid; /** * <pre> * 字段名:医疗机构的商户号 * 变量名:sub_mchid * 必填:是 * 类型:string(32) * 描述:医疗机构的商户号 * </pre> */ @SerializedName("sub_mchid") public String subMchid; /** * <pre> * 字段名:用户在appid下的唯一标识 * 变量名:openid * 必填:否 * 类型:string(128) * 描述:openid与sub_openid二选一,传入openid时需要使用appid调起医保自费混合支付 * </pre> */ @SerializedName("openid") public String openid; /** * <pre> * 字段名:用户在sub_appid下的唯一标识 * 变量名:sub_openid * 必填:否 * 类型:string(128) * 描述:openid与sub_openid二选一,传入sub_openid时需要使用sub_appid调起医保自费混合支付 * </pre> */ @SerializedName("sub_openid") public String subOpenid; /** * <pre> * 字段名:是否代亲属支付 * 变量名:pay_for_relatives * 必填:否 * 类型:boolean * 描述:不传默认替本人支付 * - true: 代亲属支付 * - false: 本人支付 * </pre> */ @SerializedName("pay_for_relatives") public Boolean payForRelatives; /** * <pre> * 字段名:从业机构订单号 * 变量名:out_trade_no * 必填:是 * 类型:string(64) * 描述:从业机构/服务商需要调两次接口:从业机构/服务商向微信支付下单获取微信支付凭证,请求中会带上out_trade_no。下单成功后,从业机构/服务商调用混合下单的接口(即该接口),请求中也会带上out_trade_no。 * </pre> */ @SerializedName("out_trade_no") public String outTradeNo; /** * <pre> * 字段名:医疗机构订单号 * 变量名:serial_no * 必填:是 * 类型:string(40) * 描述:例如医院HIS系统订单号。传与费用明细上传中medOrgOrd字段一样的值,局端会校验,不一致将会返回错误 * </pre> */ @SerializedName("serial_no") public String serialNo; /** * <pre> * 字段名:支付订单号 * 变量名:pay_order_id * 必填:否 * 类型:string * 描述:支付订单号 * </pre> */ @SerializedName("pay_order_id") public String payOrderId; /** * <pre> * 字段名:支付授权号 * 变量名:pay_auth_no * 必填:否 * 类型:string * 描述:支付授权号 * </pre> */ @SerializedName("pay_auth_no") public String payAuthNo; /** * <pre> * 字段名:地理位置 * 变量名:geo_location * 必填:否 * 类型:string * 描述:地理位置 * </pre> */ @SerializedName("geo_location") public String geoLocation; /** * <pre> * 字段名:城市ID * 变量名:city_id * 必填:否 * 类型:string * 描述:城市ID * </pre> */ @SerializedName("city_id") public String cityId; /** * <pre> * 字段名:医疗机构名称 * 变量名:med_inst_name * 必填:否 * 类型:string * 描述:医疗机构名称 * </pre> */ @SerializedName("med_inst_name") public String medInstName; /** * <pre> * 字段名:医疗机构编号 * 变量名:med_inst_no * 必填:否 * 类型:string * 描述:医疗机构编号 * </pre> */ @SerializedName("med_inst_no") public String medInstNo; /** * <pre> * 字段名:医保订单创建时间 * 变量名:med_ins_order_create_time * 必填:否 * 类型:string * 描述:医保订单创建时间 * </pre> */ @SerializedName("med_ins_order_create_time") public String medInsOrderCreateTime; /** * <pre> * 字段名:总金额 * 变量名:total_fee * 必填:否 * 类型:Integer * 描述:总金额 * </pre> */ @SerializedName("total_fee") public Integer totalFee; /** * <pre> * 字段名:医保统筹基金支付金额 * 变量名:med_ins_gov_fee * 必填:否 * 类型:Integer * 描述:医保统筹基金支付金额 * </pre> */ @SerializedName("med_ins_gov_fee") public Integer medInsGovFee; /** * <pre> * 字段名:医保个人账户支付金额 * 变量名:med_ins_self_fee * 必填:否 * 类型:Integer * 描述:医保个人账户支付金额 * </pre> */ @SerializedName("med_ins_self_fee") public Integer medInsSelfFee; /** * <pre> * 字段名:医保其他基金支付金额 * 变量名:med_ins_other_fee * 必填:否 * 类型:Integer * 描述:医保其他基金支付金额 * </pre> */ @SerializedName("med_ins_other_fee") public Integer medInsOtherFee; /** * <pre> * 字段名:医保现金支付金额 * 变量名:med_ins_cash_fee * 必填:否 * 类型:Integer * 描述:医保现金支付金额 * </pre> */ @SerializedName("med_ins_cash_fee") public Integer medInsCashFee; /** * <pre> * 字段名:微信支付现金支付金额 * 变量名:wechat_pay_cash_fee * 必填:否 * 类型:Integer * 描述:微信支付现金支付金额 * </pre> */ @SerializedName("wechat_pay_cash_fee") public Integer wechatPayCashFee; /** * <pre> * 字段名:现金增加明细 * 变量名:cash_add_detail * 必填:否 * 类型:list * 描述:现金增加明细 * </pre> */ @SerializedName("cash_add_detail") public List<MedInsOrdersRequest.CashAddEntity> cashAddDetail; /** * <pre> * 字段名:现金减少明细 * 变量名:cash_reduce_detail * 必填:否 * 类型:list * 描述:现金减少明细 * </pre> */ @SerializedName("cash_reduce_detail") public List<MedInsOrdersRequest.CashReduceEntity> cashReduceDetail; /** * <pre> * 字段名:回调URL * 变量名:callback_url * 必填:否 * 类型:string * 描述:回调URL * </pre> */ @SerializedName("callback_url") public String callbackUrl; /** * <pre> * 字段名:预支付交易会话标识 * 变量名:prepay_id * 必填:否 * 类型:string * 描述:预支付交易会话标识 * </pre> */ @SerializedName("prepay_id") public String prepayId; /** * <pre> * 字段名:透传请求内容 * 变量名:passthrough_request_content * 必填:否 * 类型:string * 描述:透传请求内容 * </pre> */ @SerializedName("passthrough_request_content") public String passthroughRequestContent; /** * <pre> * 字段名:扩展字段 * 变量名:extends * 必填:否 * 类型:string * 描述:扩展字段 * </pre> */ @SerializedName("extends") public String _extends; /** * <pre> * 字段名:附加数据 * 变量名:attach * 必填:否 * 类型:string * 描述:附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用 * </pre> */ @SerializedName("attach") public String attach; /** * <pre> * 字段名:渠道编号 * 变量名:channel_no * 必填:否 * 类型:string * 描述:渠道编号 * </pre> */ @SerializedName("channel_no") public String channelNo; /** * <pre> * 字段名:医保测试环境标识 * 变量名:med_ins_test_env * 必填:否 * 类型:boolean * 描述:医保测试环境标识 * </pre> */ @SerializedName("med_ins_test_env") public Boolean medInsTestEnv; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsRefundNotifyRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsRefundNotifyRequest.java
package com.github.binarywang.wxpay.bean.mipay; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; /** * 医保退款通知请求 * <p> * 从业机构调用该接口向微信医保后台通知医保订单的退款成功结果 * 文档地址:https://pay.weixin.qq.com/doc/v3/partner/4012166534 * @author xgl * @date 2025/12/20 */ @Data @Builder(builderMethodName = "newBuilder") @NoArgsConstructor @AllArgsConstructor public class MedInsRefundNotifyRequest { /** * <pre> * 字段名:医疗机构的商户号 * 变量名:sub_mchid * 必填:是 * 类型:string(32) * 描述:医疗机构的商户号 * </pre> */ @SerializedName("sub_mchid") private String subMchid; /** * <pre> * 字段名:医保退款的总金额 * 变量名:med_refund_total_fee * 必填:是 * 类型:integer * 描述:单位分,医保退款的总金额。 * </pre> */ @SerializedName("med_refund_total_fee") private Integer medRefundTotalFee; /** * <pre> * 字段名:医保统筹退款金额 * 变量名:med_refund_gov_fee * 必填:是 * 类型:integer * 描述:单位分,医保统筹退款金额。 * </pre> */ @SerializedName("med_refund_gov_fee") private Integer medRefundGovFee; /** * <pre> * 字段名:医保个账退款金额 * 变量名:med_refund_self_fee * 必填:是 * 类型:integer * 描述:单位分,医保个账退款金额。 * </pre> */ @SerializedName("med_refund_self_fee") private Integer medRefundSelfFee; /** * <pre> * 字段名:医保其他退款金额 * 变量名:med_refund_other_fee * 必填:是 * 类型:integer * 描述:单位分,医保其他退款金额。 * </pre> */ @SerializedName("med_refund_other_fee") private Integer medRefundOtherFee; /** * <pre> * 字段名:医保退款成功时间 * 变量名:refund_time * 必填:是 * 类型:string(64) * 描述:遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE。 * </pre> */ @SerializedName("refund_time") private String refundTime; /** * <pre> * 字段名:从业机构\服务商退款单号 * 变量名:out_refund_no * 必填:是 * 类型:string(64) * 描述:有自费单时,从业机构\服务商应填与自费退款申请处一致的out_refund_no。否则从业机构透传医疗机构退款单号即可。 * </pre> */ @SerializedName("out_refund_no") private String outRefundNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/MedInsOrdersRequest.java
package com.github.binarywang.wxpay.bean.mipay; import com.github.binarywang.wxpay.bean.mipay.enums.CashAddTypeEnum; import com.github.binarywang.wxpay.bean.mipay.enums.CashReduceTypeEnum; import com.github.binarywang.wxpay.bean.mipay.enums.MixPayTypeEnum; import com.github.binarywang.wxpay.bean.mipay.enums.OrderTypeEnum; import com.github.binarywang.wxpay.bean.mipay.enums.UserCardTypeEnum; import com.github.binarywang.wxpay.v3.SpecEncrypt; import com.google.gson.annotations.SerializedName; import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import lombok.experimental.Accessors; /** * 医保自费混合收款下单请求 * <p> * 从业机构调用该接口向微信医保后台下单 * 文档地址:https://pay.weixin.qq.com/doc/v3/partner/4012503131 * @author xgl * @date 2025/12/19 14:37 */ @Data @Builder(builderMethodName = "newBuilder") @NoArgsConstructor @AllArgsConstructor @Accessors(chain = true) public class MedInsOrdersRequest { /** * <pre> * 字段名:混合支付类型 * 变量名:mix_pay_type * 必填:是 * 类型:string * 描述: * 混合支付类型可选取值: * - UNKNOWN_MIX_PAY_TYPE: 未知的混合支付类型,会被拦截 * - CASH_ONLY: 只向微信支付下单,没有向医保局下单 * - INSURANCE_ONLY: 只向医保局下单,没有向微信支付下单 * - CASH_AND_INSURANCE: 向医保局下单,也向微信支付下单 * </pre> */ @SerializedName("mix_pay_type") public MixPayTypeEnum mixPayType; /** * <pre> * 字段名:订单类型 * 变量名:order_type * 必填:是 * 类型:string * 描述: * 订单类型可选取值: * - UNKNOWN_ORDER_TYPE: 未知类型,会被拦截 * - REG_PAY: 挂号支付 * - DIAG_PAY: 诊间支付 * - COVID_EXAM_PAY: 新冠检测费用(核酸) * - IN_HOSP_PAY: 住院费支付 * - PHARMACY_PAY: 药店支付 * - INSURANCE_PAY: 保险费支付 * - INT_REG_PAY: 互联网医院挂号支付 * - INT_RE_DIAG_PAY: 互联网医院复诊支付 * - INT_RX_PAY: 互联网医院处方支付 * - COVID_ANTIGEN_PAY: 新冠抗原检测 * - MED_PAY: 药费支付 * </pre> */ @SerializedName("order_type") public OrderTypeEnum orderType; /** * <pre> * 字段名:从业机构/服务商的公众号ID * 变量名:appid * 必填:是 * 类型:string(32) * 描述:从业机构/服务商的公众号ID * </pre> */ @SerializedName("appid") public String appid; /** * <pre> * 字段名:医疗机构的公众号ID * 变量名:sub_appid * 必填:是 * 类型:string(32) * 描述:医疗机构的公众号ID * </pre> */ @SerializedName("sub_appid") public String subAppid; /** * <pre> * 字段名:医疗机构的商户号 * 变量名:sub_mchid * 必填:是 * 类型:string(32) * 描述:医疗机构的商户号 * </pre> */ @SerializedName("sub_mchid") public String subMchid; /** * <pre> * 字段名:用户在appid下的唯一标识 * 变量名:openid * 必填:否 * 类型:string(128) * 描述:openid与sub_openid二选一,传入openid时需要使用appid调起医保自费混合支付 * </pre> */ @SerializedName("openid") public String openid; /** * <pre> * 字段名:用户在sub_appid下的唯一标识 * 变量名:sub_openid * 必填:否 * 类型:string(128) * 描述:openid与sub_openid二选一,传入sub_openid时需要使用sub_appid调起医保自费混合支付 * </pre> */ @SerializedName("sub_openid") public String subOpenid; /** * <pre> * 字段名:支付人身份信息 * 变量名:payer * 必填:是 * 类型:object * 描述:支付人身份信息 * </pre> */ @SerializedName("payer") @SpecEncrypt public PersonIdentification payer; /** * <pre> * 字段名:是否代亲属支付 * 变量名:pay_for_relatives * 必填:否 * 类型:boolean * 描述:不传默认替本人支付 * - true: 代亲属支付 * - false: 本人支付 * </pre> */ @SerializedName("pay_for_relatives") public Boolean payForRelatives; /** * <pre> * 字段名:亲属身份信息 * 变量名:relative * 必填:否 * 类型:object * 描述:pay_for_relatives为true时,该字段必填 * </pre> */ @SerializedName("relative") @SpecEncrypt public PersonIdentification relative; /** * <pre> * 字段名:从业机构订单号 * 变量名:out_trade_no * 必填:是 * 类型:string(64) * 描述:从业机构/服务商需要调两次接口:从业机构/服务商向微信支付下单获取微信支付凭证,请求中会带上out_trade_no。下单成功后,从业机构/服务商调用混合下单的接口(即该接口),请求中也会带上out_trade_no。 * </pre> */ @SerializedName("out_trade_no") public String outTradeNo; /** * <pre> * 字段名:医疗机构订单号 * 变量名:serial_no * 必填:是 * 类型:string(40) * 描述:例如医院HIS系统订单号。传与费用明细上传中medOrgOrd字段一样的值,局端会校验,不一致将会返回错误 * </pre> */ @SerializedName("serial_no") public String serialNo; /** * <pre> * 字段名:支付订单号 * 变量名:pay_order_id * 必填:否 * 类型:string * 描述:支付订单号 * </pre> */ @SerializedName("pay_order_id") public String payOrderId; /** * <pre> * 字段名:支付授权号 * 变量名:pay_auth_no * 必填:否 * 类型:string * 描述:支付授权号 * </pre> */ @SerializedName("pay_auth_no") public String payAuthNo; /** * <pre> * 字段名:地理位置 * 变量名:geo_location * 必填:否 * 类型:string * 描述:地理位置 * </pre> */ @SerializedName("geo_location") public String geoLocation; /** * <pre> * 字段名:城市ID * 变量名:city_id * 必填:否 * 类型:string * 描述:城市ID * </pre> */ @SerializedName("city_id") public String cityId; /** * <pre> * 字段名:医疗机构名称 * 变量名:med_inst_name * 必填:否 * 类型:string * 描述:医疗机构名称 * </pre> */ @SerializedName("med_inst_name") public String medInstName; /** * <pre> * 字段名:医疗机构编号 * 变量名:med_inst_no * 必填:否 * 类型:string * 描述:医疗机构编号 * </pre> */ @SerializedName("med_inst_no") public String medInstNo; /** * <pre> * 字段名:医保订单创建时间 * 变量名:med_ins_order_create_time * 必填:否 * 类型:string * 描述:医保订单创建时间 * </pre> */ @SerializedName("med_ins_order_create_time") public String medInsOrderCreateTime; /** * <pre> * 字段名:总金额 * 变量名:total_fee * 必填:否 * 类型:Integer * 描述:总金额 * </pre> */ @SerializedName("total_fee") public Integer totalFee; /** * <pre> * 字段名:医保统筹基金支付金额 * 变量名:med_ins_gov_fee * 必填:否 * 类型:Integer * 描述:医保统筹基金支付金额 * </pre> */ @SerializedName("med_ins_gov_fee") public Integer medInsGovFee; /** * <pre> * 字段名:医保个人账户支付金额 * 变量名:med_ins_self_fee * 必填:否 * 类型:Integer * 描述:医保个人账户支付金额 * </pre> */ @SerializedName("med_ins_self_fee") public Integer medInsSelfFee; /** * <pre> * 字段名:医保其他基金支付金额 * 变量名:med_ins_other_fee * 必填:否 * 类型:Integer * 描述:医保其他基金支付金额 * </pre> */ @SerializedName("med_ins_other_fee") public Integer medInsOtherFee; /** * <pre> * 字段名:医保现金支付金额 * 变量名:med_ins_cash_fee * 必填:否 * 类型:Integer * 描述:医保现金支付金额 * </pre> */ @SerializedName("med_ins_cash_fee") public Integer medInsCashFee; /** * <pre> * 字段名:微信支付现金支付金额 * 变量名:wechat_pay_cash_fee * 必填:否 * 类型:Integer * 描述:微信支付现金支付金额 * </pre> */ @SerializedName("wechat_pay_cash_fee") public Integer wechatPayCashFee; /** * <pre> * 字段名:现金增加明细 * 变量名:cash_add_detail * 必填:否 * 类型:list * 描述:现金增加明细 * </pre> */ @SerializedName("cash_add_detail") public List<CashAddEntity> cashAddDetail; /** * <pre> * 字段名:现金减少明细 * 变量名:cash_reduce_detail * 必填:否 * 类型:list * 描述:现金减少明细 * </pre> */ @SerializedName("cash_reduce_detail") public List<CashReduceEntity> cashReduceDetail; /** * <pre> * 字段名:回调URL * 变量名:callback_url * 必填:否 * 类型:string * 描述:回调URL * </pre> */ @SerializedName("callback_url") public String callbackUrl; /** * <pre> * 字段名:预支付交易会话标识 * 变量名:prepay_id * 必填:否 * 类型:string * 描述:预支付交易会话标识 * </pre> */ @SerializedName("prepay_id") public String prepayId; /** * <pre> * 字段名:透传请求内容 * 变量名:passthrough_request_content * 必填:否 * 类型:string * 描述:透传请求内容 * </pre> */ @SerializedName("passthrough_request_content") public String passthroughRequestContent; /** * <pre> * 字段名:扩展字段 * 变量名:extends * 必填:否 * 类型:string * 描述:扩展字段 * </pre> */ @SerializedName("extends") public String _extends; /** * <pre> * 字段名:附加数据 * 变量名:attach * 必填:否 * 类型:string * 描述:附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用 * </pre> */ @SerializedName("attach") public String attach; /** * <pre> * 字段名:渠道编号 * 变量名:channel_no * 必填:否 * 类型:string * 描述:渠道编号 * </pre> */ @SerializedName("channel_no") public String channelNo; /** * <pre> * 字段名:医保测试环境标识 * 变量名:med_ins_test_env * 必填:否 * 类型:boolean * 描述:医保测试环境标识 * </pre> */ @SerializedName("med_ins_test_env") public Boolean medInsTestEnv; /** * <pre> * 支付人身份信息 * </pre> */ @Data @Builder @NoArgsConstructor @AllArgsConstructor @Accessors(chain = true) public static class PersonIdentification { /** * <pre> * 字段名:姓名 * 变量名:name * 必填:是 * 类型:string * 描述:姓名,需加密 * </pre> */ @SerializedName("name") @SpecEncrypt public String name; /** * <pre> * 字段名:身份证摘要 * 变量名:id_digest * 必填:是 * 类型:string * 描述:身份证摘要,需加密 * </pre> */ @SerializedName("id_digest") @SpecEncrypt public String idDigest; /** * <pre> * 字段名:证件类型 * 变量名:card_type * 必填:是 * 类型:string * 描述:证件类型 * </pre> */ @SerializedName("card_type") public UserCardTypeEnum cardType; } /** * <pre> * 现金增加明细实体 * </pre> */ @Data @Builder @NoArgsConstructor @AllArgsConstructor @Accessors(chain = true) public static class CashAddEntity { /** * <pre> * 字段名:现金增加金额 * 变量名:cash_add_fee * 必填:是 * 类型:Integer * 描述:现金增加金额 * </pre> */ @SerializedName("cash_add_fee") public Integer cashAddFee; /** * <pre> * 字段名:现金增加类型 * 变量名:cash_add_type * 必填:是 * 类型:string * 描述:现金增加类型 * </pre> */ @SerializedName("cash_add_type") public CashAddTypeEnum cashAddType; } /** * <pre> * 现金减少明细实体 * </pre> */ @Data @Builder @NoArgsConstructor @AllArgsConstructor @Accessors(chain = true) public static class CashReduceEntity { /** * <pre> * 字段名:现金减少金额 * 变量名:cash_reduce_fee * 必填:是 * 类型:Integer * 描述:现金减少金额 * </pre> */ @SerializedName("cash_reduce_fee") public Integer cashReduceFee; /** * <pre> * 字段名:现金减少类型 * 变量名:cash_reduce_type * 必填:是 * 类型:string * 描述:现金减少类型 * </pre> */ @SerializedName("cash_reduce_type") public CashReduceTypeEnum cashReduceType; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/MixPayTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/MixPayTypeEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 混合支付类型枚举 * <p> * 描述医保自费混合支付的类型 * 文档地址:https://pay.weixin.qq.com/doc/v3/partner/4012503131 * * @author xgl * @date 2025/12/20 09:21 */ public enum MixPayTypeEnum { /** * 未知的混合支付类型,会被拦截。 */ @SerializedName("UNKNOWN_MIX_PAY_TYPE") UNKNOWN_MIX_PAY_TYPE, /** * 只向微信支付下单,没有向医保局下单。包括没有向医保局上传费用明细、预结算。 */ @SerializedName("CASH_ONLY") CASH_ONLY, /** * 只向医保局下单,没有向微信支付下单。如果医保局分账结果中有自费部份,但由于有减免抵扣,没有向微信支付下单,也是纯医保。 */ @SerializedName("INSURANCE_ONLY") INSURANCE_ONLY, /** * 向医保局下单,也向微信支付下单。如果医保预结算全部需自费,也属于混合类型。 */ @SerializedName("CASH_AND_INSURANCE") CASH_AND_INSURANCE }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/CashAddTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/CashAddTypeEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 现金增加类型枚举 * <p> * 描述医保自费混合支付中现金增加的类型 * * @author xgl * @date 2025/12/20 */ public enum CashAddTypeEnum { /** * 默认增加类型 */ @SerializedName("DEFAULT_ADD_TYPE") DEFAULT_ADD_TYPE, /** * 运费 */ @SerializedName("FREIGHT") FREIGHT, /** * 其他医疗费用 */ @SerializedName("OTHER_MEDICAL_EXPENSES") OTHER_MEDICAL_EXPENSES }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/UserCardTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/UserCardTypeEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 用户证件类型枚举 * <p> * 描述医保自费混合支付中用户的证件类型 * * @author xgl * @date 2025/12/20 */ public enum UserCardTypeEnum { /** * 未知的用户证件类型 */ @SerializedName("UNKNOWN_USER_CARD_TYPE") UNKNOWN_USER_CARD_TYPE, /** * 居民身份证 */ @SerializedName("ID_CARD") ID_CARD, /** * 户口本 */ @SerializedName("HOUSEHOLD_REGISTRATION") HOUSEHOLD_REGISTRATION, /** * 外国护照 */ @SerializedName("FOREIGNER_PASSPORT") FOREIGNER_PASSPORT, /** * 台湾居民来往大陆通行证 */ @SerializedName("MAINLAND_TRAVEL_PERMIT_FOR_TW") MAINLAND_TRAVEL_PERMIT_FOR_TW, /** * 澳门居民来往大陆通行证 */ @SerializedName("MAINLAND_TRAVEL_PERMIT_FOR_MO") MAINLAND_TRAVEL_PERMIT_FOR_MO, /** * 香港居民来往大陆通行证 */ @SerializedName("MAINLAND_TRAVEL_PERMIT_FOR_HK") MAINLAND_TRAVEL_PERMIT_FOR_HK, /** * 外国人永久居留身份证 */ @SerializedName("FOREIGN_PERMANENT_RESIDENT") FOREIGN_PERMANENT_RESIDENT }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/MixPayStatusEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/MixPayStatusEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 混合支付状态枚举 * <p> * 描述医保自费混合支付的整体状态 * * @author xgl * @date 2025/12/20 */ public enum MixPayStatusEnum { /** * 未知的混合支付状态 */ @SerializedName("UNKNOWN_MIX_PAY_STATUS") UNKNOWN_MIX_PAY_STATUS, /** * 混合支付已创建 */ @SerializedName("MIX_PAY_CREATED") MIX_PAY_CREATED, /** * 混合支付成功 */ @SerializedName("MIX_PAY_SUCCESS") MIX_PAY_SUCCESS, /** * 混合支付已退款 */ @SerializedName("MIX_PAY_REFUND") MIX_PAY_REFUND, /** * 混合支付失败 */ @SerializedName("MIX_PAY_FAIL") MIX_PAY_FAIL }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/MedInsPayStatusEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/MedInsPayStatusEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 医保支付状态枚举 * <p> * 描述医保自费混合支付中医保部分的支付状态 * * @author xgl * @date 2025/12/20 */ public enum MedInsPayStatusEnum { /** * 未知的医保支付状态 */ @SerializedName("UNKNOWN_MED_INS_PAY_STATUS") UNKNOWN_MED_INS_PAY_STATUS, /** * 医保支付已创建 */ @SerializedName("MED_INS_PAY_CREATED") MED_INS_PAY_CREATED, /** * 医保支付成功 */ @SerializedName("MED_INS_PAY_SUCCESS") MED_INS_PAY_SUCCESS, /** * 医保支付已退款 */ @SerializedName("MED_INS_PAY_REFUND") MED_INS_PAY_REFUND, /** * 医保支付失败 */ @SerializedName("MED_INS_PAY_FAIL") MED_INS_PAY_FAIL, /** * 无需医保支付 */ @SerializedName("NO_MED_INS_PAY") NO_MED_INS_PAY }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/OrderTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/OrderTypeEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 订单类型枚举 * <p> * 描述医保自费混合支付的订单类型 * 文档地址:https://pay.weixin.qq.com/doc/v3/partner/4012503131 * * @author xgl * @date 2025/12/20 */ public enum OrderTypeEnum { /** * 未知类型,会被拦截 */ @SerializedName("UNKNOWN_ORDER_TYPE") UNKNOWN_ORDER_TYPE, /** * 挂号支付 */ @SerializedName("REG_PAY") REG_PAY, /** * 诊间支付 */ @SerializedName("DIAG_PAY") DIAG_PAY, /** * 新冠检测费用(核酸) */ @SerializedName("COVID_EXAM_PAY") COVID_EXAM_PAY, /** * 住院费支付 */ @SerializedName("IN_HOSP_PAY") IN_HOSP_PAY, /** * 药店支付 */ @SerializedName("PHARMACY_PAY") PHARMACY_PAY, /** * 保险费支付 */ @SerializedName("INSURANCE_PAY") INSURANCE_PAY, /** * 互联网医院挂号支付 */ @SerializedName("INT_REG_PAY") INT_REG_PAY, /** * 互联网医院复诊支付 */ @SerializedName("INT_RE_DIAG_PAY") INT_RE_DIAG_PAY, /** * 互联网医院处方支付 */ @SerializedName("INT_RX_PAY") INT_RX_PAY, /** * 新冠抗原检测 */ @SerializedName("COVID_ANTIGEN_PAY") COVID_ANTIGEN_PAY, /** * 药费支付 */ @SerializedName("MED_PAY") MED_PAY }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/SelfPayStatusEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/SelfPayStatusEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 自费支付状态枚举 * <p> * 描述医保自费混合支付中自费部分的支付状态 * * @author xgl * @date 2025/12/20 */ public enum SelfPayStatusEnum { /** * 未知的自费支付状态 */ @SerializedName("UNKNOWN_SELF_PAY_STATUS") UNKNOWN_SELF_PAY_STATUS, /** * 自费支付已创建 */ @SerializedName("SELF_PAY_CREATED") SELF_PAY_CREATED, /** * 自费支付成功 */ @SerializedName("SELF_PAY_SUCCESS") SELF_PAY_SUCCESS, /** * 自费支付已退款 */ @SerializedName("SELF_PAY_REFUND") SELF_PAY_REFUND, /** * 自费支付失败 */ @SerializedName("SELF_PAY_FAIL") SELF_PAY_FAIL, /** * 无需自费支付 */ @SerializedName("NO_SELF_PAY") NO_SELF_PAY }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/CashReduceTypeEnum.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/mipay/enums/CashReduceTypeEnum.java
package com.github.binarywang.wxpay.bean.mipay.enums; import com.google.gson.annotations.SerializedName; /** * 现金减少类型枚举 * <p> * 描述医保自费混合支付中现金减少的类型 * * @author xgl * @date 2025/12/20 */ public enum CashReduceTypeEnum { /** * 默认减少类型 */ @SerializedName("DEFAULT_REDUCE_TYPE") DEFAULT_REDUCE_TYPE, /** * 医院减免 */ @SerializedName("HOSPITAL_REDUCE") HOSPITAL_REDUCE, /** * 药店折扣 */ @SerializedName("PHARMACY_DISCOUNT") PHARMACY_DISCOUNT, /** * 折扣优惠 */ @SerializedName("DISCOUNT") DISCOUNT, /** * 预付费抵扣 */ @SerializedName("PRE_PAYMENT") PRE_PAYMENT, /** * 押金扣除 */ @SerializedName("DEPOSIT_DEDUCTION") DEPOSIT_DEDUCTION }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/media/ImageUploadResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/media/ImageUploadResult.java
package com.github.binarywang.wxpay.bean.media; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.json.WxGsonBuilder; /** * 媒体文件上传返回结果对象 * @author zhouyongshen */ @NoArgsConstructor @Data public class ImageUploadResult { public static ImageUploadResult fromJson(String json) { return WxGsonBuilder.create().fromJson(json, ImageUploadResult.class); } /** * 媒体文件标识 Id * * 微信返回的媒体文件标识Id。 * 示例值:6uqyGjGrCf2GtyXP8bxrbuH9-aAoTjH-rKeSl3Lf4_So6kdkQu4w8BYVP3bzLtvR38lxt4PjtCDXsQpzqge_hQEovHzOhsLleGFQVRF-U_0 * */ @SerializedName("media_id") private String mediaId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/media/MarketingImageUploadResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/media/MarketingImageUploadResult.java
package com.github.binarywang.wxpay.bean.media; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.json.WxGsonBuilder; /** * 媒体文件上传返回结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class MarketingImageUploadResult { public static MarketingImageUploadResult fromJson(String json) { return WxGsonBuilder.create().fromJson(json, MarketingImageUploadResult.class); } /** * 媒体文件URL地址 * <p> * 微信返回的媒体文件标识url。有效期为永久 * 示例值:https://qpic.cn/xxx */ @SerializedName("media_url") private String mediaUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/CombineNotifyResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/CombineNotifyResult.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * <pre> * 微信支付通过支付通知接口将用户支付成功消息通知给商户 * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter5_1_13.shtml * </pre> * * @author thinsstar */ @Data @NoArgsConstructor public class CombineNotifyResult implements Serializable { private static final long serialVersionUID = 1L; /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:合单商户appid * 变量名:combine_appid * 是否必填:是 * 类型:string[1,32] * 描述: * 合单发起方的appid。 * 示例值:wxd678efh567hg6787 * </pre> */ @SerializedName(value = "combine_appid") private String combineAppid; /** * <pre> * 字段名:合单商户号 * 变量名:combine_mchid * 是否必填:是 * 类型:string[1,32] * 描述: * 合单发起方商户号。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "combine_mchid") private String combineMchid; /** * <pre> * 字段名:合单商户订单号 * 变量名:combine_out_trade_no * 是否必填:是 * 类型:string[1,32] * 描述: * 合单支付总订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一。 * 示例值:P20150806125346 * </pre> */ @SerializedName(value = "combine_out_trade_no") private String combineOutTradeNo; /** * <pre> * 字段名:场景信息 * 变量名:scene_info * 是否必填:否 * 类型:object * 描述: * 支付场景信息描述 * </pre> */ @SerializedName(value = "scene_info") private SceneInfo sceneInfo; /** * <pre> * 字段名:子单信息 * 变量名:sub_orders * 是否必填:是 * 类型:array * 描述: * 最多支持子单条数:10 * </pre> */ @SerializedName(value = "sub_orders") private List<SubOrders> subOrders; /** * <pre> * 字段名:支付者 * 变量名:combine_payer_info * 是否必填:否 * 类型:object * 描述: * 示例值:见请求示例 * </pre> */ @SerializedName(value = "combine_payer_info") private CombinePayerInfo combinePayerInfo; } @Data @NoArgsConstructor public static class SceneInfo implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:商户端设备号 * 变量名:device_id * 是否必填:否 * 类型:string[7,16] * 描述: * 终端设备号(门店号或收银设备ID)。 * 特殊规则:长度最小7个字节 * 示例值:POS1:1 * </pre> */ @SerializedName(value = "device_id") private String deviceId; } @Data @NoArgsConstructor public static class SubOrders implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:子单商户号 * 变量名:mchid * 是否必填:是 * 类型:string[1,32] * 描述: * 子单发起方商户号,必须与发起方Appid有绑定关系。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "mchid") private String mchid; /** * <pre> * 字段名:交易类型 * 变量名:trade_type * 是否必填:是 * 类型:string[1,16] * 描述: * 枚举值: * NATIVE:扫码支付 * JSAPI:公众号支付 * APP:APP支付 * MWEB:H5支付 * 示例值: JSAPI * </pre> */ @SerializedName(value = "trade_type") private String tradeType; /** * <pre> * 字段名:交易状态 * 变量名:trade_state * 是否必填:是 * 类型:string[1,32] * 描述: * 枚举值: * SUCCESS:支付成功 * REFUND:转入退款 * NOTPAY:未支付 * CLOSED:已关闭 * USERPAYING:用户支付中 * PAYERROR:支付失败(其他原因,如银行返回失败) * 示例值: SUCCESS * </pre> */ @SerializedName(value = "trade_state") private String tradeState; /** * <pre> * 字段名:付款银行 * 变量名:bank_type * 是否必填:否 * 类型:string[1,16] * 描述: * 银行类型,采用字符串类型的银行标识。银行标识请参考《银行类型对照表》https://pay.weixin.qq.com/wiki/doc/apiv3/terms_definition/chapter1_1_3.shtml#part-6 * 示例值:CMC * </pre> */ @SerializedName(value = "bank_type") private String bankType; /** * <pre> * 字段名:附加信息 * 变量名:attach * 是否必填:是 * 类型:string[1,128] * 描述: * 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用。 * 示例值:深圳分店 * </pre> */ @SerializedName(value = "attach") private String attach; /** * <pre> * 字段名:支付完成时间 * 变量名:success_time * 是否必填:是 * 类型:string[1,32] * 描述: * 订单支付时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss:sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss:sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre> * 字段名:微信订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[1,32] * 描述: * 微信支付订单号。 * 示例值: 1009660380201506130728806387 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:子单商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string[6,32] * 描述: * 商户系统内部订单号,要求32个字符内,只能是数字、大小写字母_-|*@ ,且在同一个商户号下唯一。 * 特殊规则:最小字符长度为6 * 示例值:20150806125346 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:子商户应用ID * 变量名:sub_appid * 是否必填:是 * 类型:string[1,32] * 描述: * 子商户申请的应用ID,全局唯一。请求基础下单接口时请注意APPID的应用属性,例如公众号场景下, * 需使用应用属性为公众号的APPID 若sub_openid有传的情况下, * sub_appid必填,且sub_appid需与sub_openid对应 * 示例值:wxd678efh567hg6999 * </pre> */ @SerializedName(value = "sub_appid") private String subAppid; /** * <pre> * 字段名:二级商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string[1,32] * 描述: * 二级商户商户号,由微信支付生成并下发。服务商子商户的商户号,被合单方。直连商户不用传二级商户号。 * 示例值:1900000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:订单金额 * 变量名:amount * 是否必填:是 * 类型:object * 描述: * 订单金额信息 * </pre> */ @SerializedName(value = "amount") private Amount amount; /** * <pre> * 字段名:优惠功能 * 变量名:promotion_detail * 是否必填:是 * 类型:array * 描述: * 优惠功能,子单有核销优惠券时有返回 * </pre> */ @SerializedName(value = "promotion_detail") private List<PromotionDetail> promotionDetail; } @Data @NoArgsConstructor public static class CombinePayerInfo implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * 使用合单appid获取的对应用户openid。是用户在商户appid下的唯一标识。 * 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o * </pre> */ @SerializedName(value = "openid") private String openid; } @Data @NoArgsConstructor public static class Amount implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:标价金额 * 变量名:total_amount * 是否必填:是 * 类型:int64 * 描述: * 子单金额,单位为分。 * 示例值:100 * </pre> */ @SerializedName(value = "total_amount") private Integer totalAmount; /** * <pre> * 字段名:标价币种 * 变量名:currency * 是否必填:是 * 类型:string[1,8] * 描述: * 符合ISO 4217标准的三位字母代码,人民币:CNY。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:现金支付金额 * 变量名:payer_amount * 是否必填:是 * 类型:int64 * 描述: * 订单现金支付金额。 * 示例值:10 * </pre> */ @SerializedName(value = "payer_amount") private Integer payerAmount; /** * <pre> * 字段名:现金支付币种 * 变量名:payer_currency * 是否必填:是 * 类型:string[1,8] * 描述: * 货币类型,符合ISO 4217标准的三位字母代码,默认人民币:CNY。 * 示例值: CNY * </pre> */ @SerializedName(value = "payer_currency") private String payerCurrency; } @Data @NoArgsConstructor public static class PromotionDetail implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:券ID * 变量名:coupon_id * 是否必填:是 * 类型:string[1, 32] * 描述: * 券ID * 示例值:109519 * </pre> */ @SerializedName(value = "coupon_id") private String couponId; /** * <pre> * 字段名:优惠名称 * 变量名:name * 是否必填:否 * 类型:string[1, 64] * 描述: * 优惠名称 * 示例值:单品惠-6 * </pre> */ @SerializedName(value = "name") private String name; /** * <pre> * 字段名:优惠范围 * 变量名:scope * 是否必填:否 * 类型:string[1, 32] * 描述: * GLOBAL:全场代金券 * SINGLE:单品优惠 * 示例值:GLOBALSINGLE * </pre> */ @SerializedName(value = "scope") private String scope; /** * <pre> * 字段名:优惠类型 * 变量名:type * 是否必填:否 * 类型:string[1,8] * 描述: * CASH:充值; * NOCASH:预充值。 * 示例值:CASH * </pre> */ @SerializedName(value = "type") private String type; /** * <pre> * 字段名:优惠券面额 * 变量名:amount * 是否必填:是 * 类型:int * 描述: * 当前子单中享受的优惠券金额 * 示例值:100 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:活动ID * 变量名:stock_id * 是否必填:否 * 类型:string[1, 32] * 描述: * 活动ID,批次ID * 示例值:931386 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:微信出资 * 变量名:wechatpay_contribute * 是否必填:否 * 类型:int * 描述: * 单位为分 * 示例值:100 * </pre> */ @SerializedName(value = "wechatpay_contribute") private Integer wechatpayContribute; /** * <pre> * 字段名:商户出资 * 变量名:merchant_contribute * 是否必填:否 * 类型:int * 描述: * 单位为分 * 示例值:100 * </pre> */ @SerializedName(value = "merchant_contribute") private Integer merchantContribute; /** * <pre> * 字段名:其他出资 * 变量名:other_contribute * 是否必填:否 * 类型:int * 描述: * 单位为分 * 示例值:100 * </pre> */ @SerializedName(value = "other_contribute") private Integer otherContribute; /** * <pre> * 字段名:优惠币种 * 变量名:currency * 是否必填:否 * 类型:string[1,16] * 描述: * CNY:人民币,境内商户号仅支持人民币。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:单品列表 * 变量名:goods_detail * 是否必填:否 * 类型:array * 描述: * 单品列表信息 * </pre> */ @SerializedName(value = "goods_detail") private List<GoodsDetail> goodsDetail; } @Data @NoArgsConstructor public static class GoodsDetail implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:商品编码 * 变量名:goods_id * 是否必填:是 * 类型:string[1, 32] * 描述: * 商品编码 * 示例值:M1006 * </pre> */ @SerializedName(value = "goods_id") private String goodsId; /** * <pre> * 字段名:商品数量 * 变量名:quantity * 是否必填:是 * 类型:int * 描述: * 商品数量 * 示例值:1 * </pre> */ @SerializedName(value = "quantity") private Integer quantity; /** * <pre> * 字段名:商品单价 * 变量名:unit_price * 是否必填:是 * 类型:int * 描述: * 商品价格 * 示例值:100 * </pre> */ @SerializedName(value = "unit_price") private Integer unitPrice; /** * <pre> * 字段名:商品优惠金额 * 变量名:discount_amount * 是否必填:是 * 类型:int * 描述: * 商品优惠金额 * 示例值:1 * </pre> */ @SerializedName(value = "discount_amount") private Integer discountAmount; /** * <pre> * 字段名:商品备注 * 变量名:goods_remark * 是否必填:否 * 类型:string[1, 128] * 描述: * 商品备注 * 示例值:商品备注信息 * </pre> */ @SerializedName(value = "goods_remark") private String goodsRemark; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayPartnerNotifyV3Result.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayPartnerNotifyV3Result.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 微信支付服务商下单回调,文档:<a href="https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_1_5.shtml">文档</a> * * @author Pursuer * @version 1.0 * @date 2023/3/2 */ @Data @NoArgsConstructor public class WxPayPartnerNotifyV3Result implements Serializable, WxPayBaseNotifyV3Result<WxPayPartnerNotifyV3Result.DecryptNotifyResult> { private static final long serialVersionUID = -1L; /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:服务商应用ID * 变量名:spAppid * 是否必填:是 * 类型:string[1,32] * 描述: * 由微信生成的应用ID,全局唯一。请求统一下单接口时请注意APPID的应用属性,例如公众号场景下,需使用应用属性为公众号的APPID * 示例值:wxd678efh567hg6787 * </pre> */ @SerializedName(value = "sp_appid") protected String spAppid; /** * <pre> * 字段名:服务商商户号 * 变量名:spMchid * 是否必填:是 * 类型:string[1,32] * 描述: * 服务商商户号,由微信支付生成并下发。 * 示例值:1230000109 * </pre> */ @SerializedName(value = "sp_mchid") protected String spMchid; /** * <pre> * 字段名:子商户应用ID * 变量名:subAppid * 是否必填:否 * 类型:string[1,32] * 描述: * 由微信生成的应用ID,全局唯一。请求统一下单接口时请注意APPID的应用属性,例如公众号场景下,需使用应用属性为公众号的APPID * 示例值:wxd678efh567hg6787 * </pre> */ @SerializedName(value = "sub_appid") protected String subAppid; /** * <pre> * 字段名:子商户商户号 * 变量名:subMchid * 是否必填:是 * 类型:string[1,32] * 描述: * 子商户商户号,由微信支付生成并下发。 * 示例值:1230000109 * </pre> */ @SerializedName(value = "sub_mchid") protected String subMchid; /** * <pre> * 字段名:商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string[6,32] * 描述: * 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一。 * 特殊规则:最小字符长度为6 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[1,32] * 描述: * 微信支付系统生成的订单号。 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:交易类型 * 变量名:trade_type * 是否必填:是 * 类型:string[1,16] * 描述: * 交易类型,枚举值: * JSAPI:公众号支付 * NATIVE:扫码支付 * APP:APP支付 * MICROPAY:付款码支付 * MWEB:H5支付 * FACEPAY:刷脸支付 * 示例值:MICROPAY * </pre> */ @SerializedName(value = "trade_type") private String tradeType; /** * <pre> * 字段名:交易状态 * 变量名:trade_state * 是否必填:是 * 类型:string[1,32] * 描述: * 交易状态,枚举值: * SUCCESS:支付成功 * REFUND:转入退款 * NOTPAY:未支付 * CLOSED:已关闭 * REVOKED:已撤销(付款码支付) * USERPAYING:用户支付中(付款码支付) * PAYERROR:支付失败(其他原因,如银行返回失败) * 示例值:SUCCESS * </pre> */ @SerializedName(value = "trade_state") private String tradeState; /** * <pre> * 字段名:交易状态描述 * 变量名:trade_state_desc * 是否必填:是 * 类型:string[1,256] * 描述: * 交易状态描述 * 示例值:支付成功 * </pre> */ @SerializedName(value = "trade_state_desc") private String tradeStateDesc; /** * <pre> * 字段名:付款银行 * 变量名:bank_type * 是否必填:是 * 类型:string[1,16] * 描述: * 银行类型,采用字符串类型的银行标识。银行标识请参考《银行类型对照表》https://pay.weixin.qq.com/wiki/doc/apiv3/terms_definition/chapter1_1_3.shtml#part-6 * 示例值:CMC * </pre> */ @SerializedName(value = "bank_type") private String bankType; /** * <pre> * 字段名:附加数据 * 变量名:attach * 是否必填:否 * 类型:string[1,128] * 描述: * 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用 * 示例值:自定义数据 * </pre> */ @SerializedName(value = "attach") private String attach; /** * <pre> * 字段名:支付完成时间 * 变量名:success_time * 是否必填:是 * 类型:string[1,64] * 描述: * 支付完成时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre> * 字段名:支付者 * 变量名:payer * 是否必填:是 * 类型:object * 描述: * 支付者信息 * </pre> */ private Payer payer; /** * <pre> * 字段名:订单金额 * 变量名:amount * 是否必填:否 * 类型:object * 描述: * 订单金额信息 * </pre> */ @SerializedName(value = "amount") private Amount amount; /** * <pre> * 字段名:场景信息 * 变量名:scene_info * 是否必填:否 * 类型:object * 描述: * 支付场景信息描述 * </pre> */ @SerializedName(value = "scene_info") private SceneInfo sceneInfo; /** * <pre> * 字段名:优惠功能 * 变量名:promotion_detail * 是否必填:否 * 类型:array * 描述: * 优惠功能,享受优惠时返回该字段。 * </pre> */ @SerializedName(value = "promotion_detail") private List<PromotionDetail> promotionDetails; } @Data @NoArgsConstructor public static class Payer implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * 用户在直连商户appid下的唯一标识。 * 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o * </pre> */ @SerializedName(value = "openid") private String openid; /** * <pre> * 字段名:用户服务标识 * 变量名:sp_openid * 是否必填:是 * 类型:string[1,128] * 描述: * 用户在服务商appid下的唯一标识。 * 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o * </pre> */ @SerializedName(value = "sp_openid") private String spOpenid; /** * <pre> * 字段名:用户子标识 * 变量名:sub_openid * 是否必填:否 * 类型:string[1,128] * 描述: * 用户在子商户appid下的唯一标识。 * 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o * </pre> */ @SerializedName(value = "sub_openid") private String subOpenid; } @Data @NoArgsConstructor public static class Amount implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:总金额 * 变量名:total * 是否必填:否 * 类型:int * 描述: * 订单总金额,单位为分。 * 示例值:100 * </pre> */ @SerializedName(value = "total") private Integer total; /** * <pre> * 字段名:用户支付金额 * 变量名:payer_total * 是否必填:否 * 类型:int * 描述: * 用户支付金额,单位为分。 * 示例值:100 * </pre> */ @SerializedName(value = "payer_total") private Integer payerTotal; /** * <pre> * 字段名:货币类型 * 变量名:currency * 是否必填:否 * 类型:string[1,16] * 描述: * CNY:人民币,境内商户号仅支持人民币。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:用户支付币种 * 变量名:payer_currency * 是否必填:否 * 类型:string[1,16] * 描述: * 用户支付币种 * 示例值: CNY * </pre> */ @SerializedName(value = "payer_currency") private String payerCurrency; } @Data @NoArgsConstructor public static class SceneInfo implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:商户端设备号 * 变量名:device_id * 是否必填:否 * 类型:string[1,32] * 描述: * 终端设备号(门店号或收银设备ID)。 * 示例值:013467007045764 * </pre> */ @SerializedName(value = "device_id") private String deviceId; } @Data @NoArgsConstructor public static class PromotionDetail implements Serializable { /** * <pre> * 字段名:券ID * 变量名:coupon_id * 是否必填:是 * 类型:string[1,32] * 描述: * 券ID * 示例值:109519 * </pre> */ @SerializedName(value = "coupon_id") private String couponId; /** * <pre> * 字段名:优惠名称 * 变量名:name * 是否必填:否 * 类型:string[1,64] * 描述: * 优惠名称 * 示例值:单品惠-6 * </pre> */ @SerializedName(value = "name") private String name; /** * <pre> * 字段名:优惠范围 * 变量名:scope * 是否必填:否 * 类型:string[1,32] * 描述: * GLOBAL:全场代金券 * SINGLE:单品优惠 * 示例值:GLOBAL * </pre> */ @SerializedName(value = "scope") private String scope; /** * <pre> * 字段名:优惠类型 * 变量名:type * 是否必填:否 * 类型:string[1,32] * 描述: * CASH:充值 * NOCASH:预充值 * 示例值:CASH * </pre> */ @SerializedName(value = "type") private String type; /** * <pre> * 字段名:优惠券面额 * 变量名:amount * 是否必填:是 * 类型:int * 描述: * 优惠券面额 * 示例值:100 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:活动ID * 变量名:stock_id * 是否必填:否 * 类型:string[1,32] * 描述: * 活动ID * 示例值:931386 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:微信出资 * 变量名:wechatpay_contribute * 是否必填:否 * 类型:int * 描述: * 微信出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "wechatpay_contribute") private Integer wechatpayContribute; /** * <pre> * 字段名:商户出资 * 变量名:merchant_contribute * 是否必填:否 * 类型:int * 描述: * 商户出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "merchant_contribute") private Integer merchantContribute; /** * <pre> * 字段名:其他出资 * 变量名:other_contribute * 是否必填:否 * 类型:int * 描述: * 其他出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "other_contribute") private Integer otherContribute; /** * <pre> * 字段名:优惠币种 * 变量名:currency * 是否必填:否 * 类型:string[1,16] * 描述: * CNY:人民币,境内商户号仅支持人民币。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:单品列表 * 变量名:goods_detail * 是否必填:否 * 类型:array * 描述: * 单品列表信息 * </pre> */ @SerializedName(value = "goods_detail") private List<GoodsDetail> goodsDetails; } @Data @NoArgsConstructor public static class GoodsDetail implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:商品编码 * 变量名:goods_id * 是否必填:是 * 类型:string[1,32] * 描述: * 商品编码 * 示例值:M1006 * </pre> */ @SerializedName(value = "goods_id") private String goodsId; /** * <pre> * 字段名:商品数量 * 变量名:quantity * 是否必填:是 * 类型:int * 描述: * 用户购买的数量 * 示例值:1 * </pre> */ @SerializedName(value = "quantity") private Integer quantity; /** * <pre> * 字段名:商品单价 * 变量名:unit_price * 是否必填:是 * 类型:int * 描述: * 商品单价,单位为分 * 示例值:100 * </pre> */ @SerializedName(value = "unit_price") private Integer unitPrice; /** * <pre> * 字段名:商品优惠金额 * 变量名:discount_amount * 是否必填:是 * 类型:int * 描述: * 商品优惠金额 * 示例值:0 * </pre> */ @SerializedName(value = "discount_amount") private Integer discountAmount; /** * <pre> * 字段名:商品备注 * 变量名:goods_remark * 是否必填:否 * 类型:string[1,128] * 描述: * 商品备注信息 * 示例值:商品备注信息 * </pre> */ @SerializedName(value = "goods_remark") private String goodsRemark; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponse.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyResponse.java
package com.github.binarywang.wxpay.bean.notify; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.annotations.XStreamAlias; import com.thoughtworks.xstream.annotations.XStreamConverter; import com.thoughtworks.xstream.annotations.XStreamOmitField; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.xml.XStreamCDataConverter; import me.chanjar.weixin.common.util.xml.XStreamInitializer; /** * 微信支付订单和退款的异步通知共用的响应类. * * @author someone */ @Data @Builder(builderMethodName = "newBuilder") @NoArgsConstructor @AllArgsConstructor @XStreamAlias("xml") public class WxPayNotifyResponse { @XStreamOmitField private static final transient String FAIL = "FAIL"; @XStreamOmitField private static final transient String SUCCESS = "SUCCESS"; @XStreamAlias("return_code") @XStreamConverter(value = XStreamCDataConverter.class) private String returnCode; @XStreamConverter(value = XStreamCDataConverter.class) @XStreamAlias("return_msg") private String returnMsg; /** * Fail string. * * @param msg the msg * @return the string */ public static String fail(String msg) { WxPayNotifyResponse response = new WxPayNotifyResponse(FAIL, msg); XStream xstream = XStreamInitializer.getInstance(); xstream.autodetectAnnotations(true); return xstream.toXML(response).replace("\n", "").replace(" ", ""); } /** * Success string. * * @param msg the msg * @return the string */ public static String success(String msg) { WxPayNotifyResponse response = new WxPayNotifyResponse(SUCCESS, msg); XStream xstream = XStreamInitializer.getInstance(); xstream.autodetectAnnotations(true); return xstream.toXML(response).replace("\n", "").replace(" ", ""); } /** * Fail string. * * @param msg the msg * @return the string */ public static String failResp(String msg) { return generateXml(FAIL, msg); } /** * Success string. * * @param msg the msg * @return the string */ public static String successResp(String msg) { return generateXml(SUCCESS, msg); } /** * 使用格式化字符串生成xml字符串 */ private static String generateXml(String code, String msg) { return String.format("<xml><return_code><![CDATA[%s]]></return_code><return_msg><![CDATA[%s]]></return_msg></xml>", code, msg); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/OriginNotifyResponse.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/OriginNotifyResponse.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; @Data @NoArgsConstructor public class OriginNotifyResponse implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:通知ID * 变量名:id * 是否必填:是 * 类型:string[1,36] * 描述: * 通知的唯一ID * 示例值:EV-2018022511223320873 * </pre> */ @SerializedName(value = "id") private String id; /** * <pre> * 字段名:通知创建时间 * 变量名:create_time * 是否必填:是 * 类型:string[1,32] * 描述: * 通知创建的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "create_time") private String createTime; /** * <pre> * 字段名:通知类型 * 变量名:event_type * 是否必填:是 * 类型:string[1,32] * 描述: * 通知的类型: * REFUND.SUCCESS:退款成功通知 * REFUND.ABNORMAL:退款异常通知 * REFUND.CLOSED:退款关闭通知 * 示例值:REFUND.SUCCESS * </pre> */ @SerializedName(value = "event_type") private String eventType; /** * <pre> * 字段名:通知简要说明 * 变量名:summary * 是否必填:是 * 类型:string[1,16] * 描述: * 通知简要说明 * 示例值:退款成功 * </pre> */ @SerializedName(value = "summary") private String summary; /** * <pre> * 字段名:通知数据类型 * 变量名:resource_type * 是否必填:是 * 类型:string[1,32] * 描述: * 通知的资源数据类型,支付成功通知为encrypt-resource * 示例值:encrypt-resource * </pre> */ @SerializedName(value = "resource_type") private String resourceType; /** * <pre> * 字段名:通知数据 * 变量名:resource * 是否必填:是 * 类型:object * 描述: * 通知资源数据 * json格式,见示例 * </pre> */ @SerializedName(value = "resource") private Resource resource; @Data @NoArgsConstructor public static class Resource implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:加密算法类型 * 变量名:algorithm * 是否必填:是 * 类型:string[1,32] * 描述: * 对开启结果数据进行加密的加密算法,目前只支持AEAD_AES_256_GCM * 示例值:AEAD_AES_256_GCM * </pre> */ @SerializedName(value = "algorithm") private String algorithm; /** * <pre> * 字段名:原始类型 * 变量名:original_type * 是否必填:是 * 类型:string[1,16] * 描述: * 原始回调类型,为transaction * 示例值:transaction * </pre> */ @SerializedName(value = "original_type") private String originalType; /** * <pre> * 字段名:数据密文 * 变量名:ciphertext * 是否必填:是 * 类型:string[1,1048576] * 描述: * Base64编码后的开启/停用结果数据密文 * 示例值:sadsadsadsad * </pre> */ @SerializedName(value = "ciphertext") private String ciphertext; /** * <pre> * 字段名:附加数据 * 变量名:associated_data * 是否必填:否 * 类型:string[1,16] * 描述: * 附加数据 * 示例值:fdasfwqewlkja484w * </pre> */ @SerializedName(value = "associated_data") private String associatedData; /** * <pre> * 字段名:随机串 * 变量名:nonce * 是否必填:是 * 类型:string[1,16] * 描述: * 加密使用的随机串 * 示例值:fdasflkja484w * </pre> */ @SerializedName(value = "nonce") private String nonce; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayBaseNotifyV3Result.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayBaseNotifyV3Result.java
package com.github.binarywang.wxpay.bean.notify; /** * 微信支付公用回调 * * @author Pursuer * @version 1.0 * @date 2023/6/15 */ public interface WxPayBaseNotifyV3Result<T> { /** * 设置原始数据 * * @param rawData 原始数据 * @author Pursuer * @date 2023/6/15 * @since 1.0 **/ void setRawData(OriginNotifyResponse rawData); /** * 解密后的数据 * * @param data 解密后的数据 * @author Pursuer * @date 2023/6/15 * @since 1.0 **/ void setResult(T data); }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxScanPayNotifyResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxScanPayNotifyResult.java
package com.github.binarywang.wxpay.bean.notify; import com.github.binarywang.wxpay.bean.result.BaseWxPayResult; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import org.w3c.dom.Document; import java.io.Serializable; /** * <pre> * 扫码支付通知回调类. * 具体定义,请查看文档:https://pay.weixin.qq.com/wiki/doc/api/native.php?chapter=6_4 * </pre> * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @XStreamAlias("xml") public class WxScanPayNotifyResult extends BaseWxPayResult implements Serializable { private static final long serialVersionUID = 3381324564266118986L; /** * 用户标识. */ @XStreamAlias("openid") private String openid; /** * <pre> * 是否关注公众账号. * 仅在公众账号类型支付有效,取值范围:Y或N;Y-关注;N-未关注 * </pre> */ @XStreamAlias("is_subscribe") private String isSubscribe; /** * <pre> * 商品ID. * 商户定义的商品id 或者订单号 * </pre> */ @XStreamAlias("product_id") private String productId; @Override protected void loadXml(Document d) { openid = readXmlString(d, "openid"); isSubscribe = readXmlString(d, "is_subscribe"); productId = readXmlString(d, "product_id"); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayOrderNotifyResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayOrderNotifyResult.java
package com.github.binarywang.wxpay.bean.notify; import com.github.binarywang.wxpay.bean.result.BaseWxPayResult; import com.github.binarywang.wxpay.constant.WxPayConstants; import com.github.binarywang.wxpay.converter.WxPayOrderNotifyResultConverter; import com.github.binarywang.wxpay.exception.WxPayException; import com.github.binarywang.wxpay.service.WxPayService; import com.github.binarywang.wxpay.util.SignUtils; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.json.WxGsonBuilder; import me.chanjar.weixin.common.util.xml.XStreamInitializer; import org.w3c.dom.Document; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import java.util.Map; /** * 支付结果通知. * 文档见:https://pay.weixin.qq.com/wiki/doc/api/jsapi.php?chapter=9_7&index=8 * https://pay.weixin.qq.com/wiki/doc/api/external/native.php?chapter=9_7 * * @author aimilin6688 * @since 2.5.0 */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @XStreamAlias("xml") public class WxPayOrderNotifyResult extends BaseWxPayResult implements Serializable { private static final long serialVersionUID = 5389718115223345496L; /** * <pre> * 字段名:营销详情. * 变量名:promotion_detail * 是否必填:否,单品优惠才有 * 类型:String(6000) * 示例值:[{"promotion_detail":[{"promotion_id":"109519","name":"单品惠-6","scope":"SINGLE","type":"DISCOUNT","amount":5,"activity_id":"931386","wxpay_contribute":0,"merchant_contribute":0,"other_contribute":5,"goods_detail":[{"goods_id":"a_goods1","goods_remark":"商品备注","quantity":7,"price":1,"discount_amount":4},{"goods_id":"a_goods2","goods_remark":"商品备注","quantity":1,"price":2,"discount_amount":1}]}]} * 描述:单品优惠专用参数,详见https://pay.weixin.qq.com/wiki/doc/api/danpin.php?chapter=9_203&index=4 * </pre> */ @XStreamAlias("promotion_detail") private String promotionDetail; /** * <pre> * 字段名:设备号. * 变量名:device_info * 是否必填:否 * 类型:String(32) * 示例值:013467007045764 * 描述:微信支付分配的终端设备号, * </pre> */ @XStreamAlias("device_info") private String deviceInfo; /** * <pre> * 字段名:用户标识. * 变量名:openid * 是否必填:是 * 类型:String(128) * 示例值:wxd930ea5d5a258f4f * 描述:用户在商户appid下的唯一标识 * </pre> */ @XStreamAlias("openid") private String openid; /** * <pre> * 字段名:是否关注公众账号. * 变量名:is_subscribe * 是否必填:否 * 类型:String(1) * 示例值:Y * 描述:用户是否关注公众账号,Y-关注,N-未关注,仅在公众账号类型支付有效 * </pre> */ @XStreamAlias("is_subscribe") private String isSubscribe; /** * <pre> * 字段名:用户子标识. * 变量名:sub_openid * 是否必填:是 * 类型:String(128) * 示例值:wxd930ea5d5a258f4f * 描述:用户在子商户appid下的唯一标识 * </pre> */ @XStreamAlias("sub_openid") private String subOpenid; /** * <pre> * 字段名:是否关注子公众账号. * 变量名:sub_is_subscribe * 是否必填:否 * 类型:String(1) * 示例值:Y * 描述:用户是否关注子公众账号,Y-关注,N-未关注,仅在公众账号类型支付有效 * </pre> */ @XStreamAlias("sub_is_subscribe") private String subIsSubscribe; /** * <pre> * 字段名:交易类型. * 变量名:trade_type * 是否必填:是 * 类型:String(16) * 示例值:JSAPI * 描述:JSAPI、NATIVE、APP * </pre> */ @XStreamAlias("trade_type") private String tradeType; /** * <pre> * 字段名:付款银行. * 变量名:bank_type * 是否必填:是 * 类型:String(16) * 示例值:CMC * 描述:银行类型,采用字符串类型的银行标识,银行类型见银行列表 * </pre> */ @XStreamAlias("bank_type") private String bankType; /** * <pre> * 字段名:订单金额. * 变量名:total_fee * 是否必填:是 * 类型:Int * 示例值:100 * 描述:订单总金额,单位为分 * </pre> */ @XStreamAlias("total_fee") private Integer totalFee; /** * <pre> * 字段名:应结订单金额. * 变量名:settlement_total_fee * 是否必填:否 * 类型:Int * 示例值:100 * 描述:应结订单金额=订单金额-非充值代金券金额,应结订单金额<=订单金额。 * </pre> */ @XStreamAlias("settlement_total_fee") private Integer settlementTotalFee; /** * <pre> * 字段名:货币种类. * 变量名:fee_type * 是否必填:否 * 类型:String(8) * 示例值:CNY * 描述:货币类型,符合ISO4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型 * </pre> */ @XStreamAlias("fee_type") private String feeType; /** * <pre> * 字段名:现金支付金额. * 变量名:cash_fee * 是否必填:是 * 类型:Int * 示例值:100 * 描述:现金支付金额订单现金支付金额,详见支付金额 * </pre> */ @XStreamAlias("cash_fee") private Integer cashFee; /** * <pre> * 字段名:现金支付货币类型. * 变量名:cash_fee_type * 是否必填:否 * 类型:String(16) * 示例值:CNY * 描述:货币类型,符合ISO4217标准的三位字母代码,默认人民币:CNY,其他值列表详见货币类型 * </pre> */ @XStreamAlias("cash_fee_type") private String cashFeeType; /** * <pre> * 字段名:总代金券金额. * 变量名:coupon_fee * 是否必填:否 * 类型:Int * 示例值:10 * 描述:代金券金额<=订单金额,订单金额-代金券金额=现金支付金额,详见支付金额 * </pre> */ @XStreamAlias("coupon_fee") private Integer couponFee; /** * <pre> * 字段名:代金券使用数量. * 变量名:coupon_count * 是否必填:否 * 类型:Int * 示例值:1 * 描述:代金券使用数量 * </pre> */ @XStreamAlias("coupon_count") private Integer couponCount; private List<WxPayOrderNotifyCoupon> couponList; /** * <pre> * 字段名:微信支付订单号. * 变量名:transaction_id * 是否必填:是 * 类型:String(32) * 示例值:1217752501201407033233368018 * 描述:微信支付订单号 * </pre> */ @XStreamAlias("transaction_id") private String transactionId; /** * <pre> * 字段名:商户订单号. * 变量名:out_trade_no * 是否必填:是 * 类型:String(32) * 示例值:1212321211201407033568112322 * 描述:商户系统的订单号,与请求一致。 * </pre> */ @XStreamAlias("out_trade_no") private String outTradeNo; /** * <pre> * 字段名:商家数据包. * 变量名:attach * 是否必填:否 * 类型:String(128) * 示例值:123456 * 描述:商家数据包,原样返回 * </pre> */ @XStreamAlias("attach") private String attach; /** * <pre> * 字段名:支付完成时间. * 变量名:time_end * 是否必填:是 * 类型:String(14) * 示例值:20141030133525 * 描述:支付完成时间,格式为yyyyMMddHHmmss,如2009年12月25日9点10分10秒表示为20091225091010。其他详见时间规则 * </pre> */ @XStreamAlias("time_end") private String timeEnd; /** * <pre> * 字段名:接口版本号. * 变量名:version * 类型:String(32) * 示例值:1.0 * 更多信息,详见文档:https://pay.weixin.qq.com/wiki/doc/api/danpin.php?chapter=9_101&index=1 * </pre> */ @XStreamAlias("version") private String version; /** * <pre> * 字段名:汇率. * 变量名:rate_value * 类型:String(16) * 示例值:650000000 * 标价币种与支付币种的兑换比例乘以10的8次方即为此值,例如美元兑换人民币的比例为6.5,则rate_value=650000000 * </pre> */ @XStreamAlias("rate_value") private String rateValue; /** * <pre> * 字段名:签名类型. * 变量名:sign_type * 类型:String(32) * 示例值:HMAC-SHA256 * 签名类型,目前支持HMAC-SHA256和MD5,默认为MD5 * </pre> */ @XStreamAlias("sign_type") private String signType; @Override public void checkResult(WxPayService wxPayService, String signType, boolean checkSuccess) throws WxPayException { //防止伪造成功通知 if (WxPayConstants.ResultCode.SUCCESS.equals(getReturnCode()) && getSign() == null) { throw new WxPayException("伪造的通知!"); } super.checkResult(wxPayService, signType, checkSuccess); } /** * From xml wx pay order notify result. * * @param xmlString the xml string * @return the wx pay order notify result */ public static WxPayOrderNotifyResult fromXML(String xmlString) { XStream xstream = XStreamInitializer.getInstance(); xstream.processAnnotations(WxPayOrderNotifyResult.class); xstream.registerConverter(new WxPayOrderNotifyResultConverter(xstream.getMapper(), xstream.getReflectionProvider())); WxPayOrderNotifyResult result = (WxPayOrderNotifyResult) xstream.fromXML(xmlString); result.setXmlString(xmlString); return result; } @Override public Map<String, String> toMap() { // 使用父类的 toMap() 方法,直接从原始 XML 解析所有字段, // 确保包含未在 Java Bean 中定义的字段,避免签名验证失败 Map<String, String> resultMap = super.toMap(); if (this.getCouponCount() != null && this.getCouponCount() > 0) { for (int i = 0; i < this.getCouponCount(); i++) { WxPayOrderNotifyCoupon coupon = couponList.get(i); resultMap.putAll(coupon.toMap(i)); } } return resultMap; } @Override protected void loadXml(Document d) { promotionDetail = readXmlString(d, "promotion_detail"); deviceInfo = readXmlString(d, "device_info"); openid = readXmlString(d, "openid"); isSubscribe = readXmlString(d, "is_subscribe"); subOpenid = readXmlString(d, "sub_openid"); subIsSubscribe = readXmlString(d, "sub_is_subscribe"); tradeType = readXmlString(d, "trade_type"); bankType = readXmlString(d, "bank_type"); totalFee = readXmlInteger(d, "total_fee"); settlementTotalFee = readXmlInteger(d, "settlement_total_fee"); feeType = readXmlString(d, "fee_type"); cashFee = readXmlInteger(d, "cash_fee"); cashFeeType = readXmlString(d, "cash_fee_type"); couponFee = readXmlInteger(d, "coupon_fee"); couponCount = readXmlInteger(d, "coupon_count"); transactionId = readXmlString(d, "transaction_id"); outTradeNo = readXmlString(d, "out_trade_no"); attach = readXmlString(d, "attach"); timeEnd = readXmlString(d, "time_end"); version = readXmlString(d, "version"); rateValue = readXmlString(d, "rate_value"); signType = readXmlString(d, "sign_type"); composeCoupons(); } /** * 通过xml组装couponList属性内容. */ protected void composeCoupons() { if (this.couponCount == null || this.couponCount == 0) { return; } this.couponList = new ArrayList<>(couponCount); for (int i = 0; i < this.couponCount; i++) { WxPayOrderNotifyCoupon coupon = new WxPayOrderNotifyCoupon(); coupon.setCouponId(this.getXmlValue("xml/coupon_id_" + i)); coupon.setCouponType(this.getXmlValue("xml/coupon_type_" + i)); coupon.setCouponFee(this.getXmlValueAsInt("xml/coupon_fee_" + i)); couponList.add(coupon); } } @Override public String toString() { return WxGsonBuilder.create().toJson(this); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayPartnerRefundNotifyV3Result.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayPartnerRefundNotifyV3Result.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 微信支付服务商退款回调 * 文档见:https://pay.weixin.qq.com/wiki/doc/apiv3_partner/apis/chapter4_1_11.shtml * * @author Pursuer * @version 1.0 * @date 2023/3/2 */ @Data @NoArgsConstructor public class WxPayPartnerRefundNotifyV3Result implements Serializable, WxPayBaseNotifyV3Result<WxPayPartnerRefundNotifyV3Result.DecryptNotifyResult> { private static final long serialVersionUID = -1L; /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = -1L; /** * <pre> * 字段名:服务商的商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string[1, 32] * 描述: * 服务商的商户号,由微信支付生成并下发。 * 示例值:1230000109 * </pre> */ @SerializedName(value = "sp_mchid") private String spMchId; /** * <pre> * 字段名:子商户的商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string[1, 32] * 描述: * 子商户商户号,由微信支付生成并下发。 * 示例值:1230000109 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchId; /** * <pre> * 字段名:商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string[1,32] * 描述: * 返回的商户订单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[1,32] * 描述: * 微信支付订单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:商户退款单号 * 变量名:out_refund_no * 是否必填:是 * 类型:string[1,64] * 描述: * 商户退款单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_refund_no") private String outRefundNo; /** * <pre> * 字段名:微信支付退款号 * 变量名:refund_id * 是否必填:是 * 类型:string[1,32] * 描述: * 微信退款单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "refund_id") private String refundId; /** * <pre> * 字段名:退款状态 * 变量名:refund_status * 是否必填:是 * 类型:string[1,16] * 描述: * 退款状态,枚举值: * SUCCESS:退款成功 * CLOSE:退款关闭 * ABNORMAL:退款异常,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往【商户平台—>交易中心】,手动处理此笔退款 * 示例值:SUCCESS * </pre> */ @SerializedName(value = "refund_status") private String refundStatus; /** * <pre> * 字段名:退款成功时间 * 变量名:success_time * 是否必填:否 * 类型:string[1,64] * 描述: * 1、退款成功时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 * 2、当退款状态为退款成功时返回此参数。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre> * 字段名:退款入账账户 * 变量名:user_received_account * 是否必填:是 * 类型:string[1,64] * 描述: * 取当前退款单的退款入账方。 * 1、退回银行卡:{银行名称}{卡类型}{卡尾号} * 2、退回支付用户零钱: 支付用户零钱 * 3、退还商户: 商户基本账户、商户结算银行账户 * 4、退回支付用户零钱通:支付用户零钱通 * 示例值:招商银行信用卡0403 * </pre> */ @SerializedName(value = "user_received_account") private String userReceivedAccount; /** * <pre> * 字段名:金额信息 * 变量名:amount * 是否必填:是 * 类型:object * 描述: * 金额信息 * </pre> */ @SerializedName(value = "amount") private Amount amount; } @Data @NoArgsConstructor public static class Amount implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:订单金额 * 变量名:total * 是否必填:是 * 类型:int * 描述: * 订单总金额,单位为分,只能为整数,详见支付金额 * 示例值:999 * </pre> */ @SerializedName(value = "total") private Integer total; /** * <pre> * 字段名:退款金额 * 变量名:refund * 是否必填:是 * 类型:int * 描述: * 退款金额,币种的最小单位,只能为整数,不能超过原订单支付金额,如果有使用券,后台会按比例退。 * 示例值:999 * </pre> */ @SerializedName(value = "refund") private Integer refund; /** * <pre> * 字段名:用户支付金额 * 变量名:payer_total * 是否必填:是 * 类型:int * 描述: * 用户实际支付金额,单位为分,只能为整数,详见支付金额 * 示例值:999 * </pre> */ @SerializedName(value = "payer_total") private Integer payerTotal; /** * <pre> * 字段名:用户退款金额 * 变量名:payer_refund * 是否必填:是 * 类型:int * 描述: * 退款给用户的金额,不包含所有优惠券金额 * 示例值:999 * </pre> */ @SerializedName(value = "payer_refund") private Integer payerRefund; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Response.java
package com.github.binarywang.wxpay.bean.notify; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.json.WxGsonBuilder; /** * 微信支付订单和退款的异步通知,V3版本共用的响应类. * https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_11.shtml * * @author <a href="https://github.com/0katekate0">Wang_Wong</a> * created on 2022-08-15 */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class WxPayNotifyV3Response { private static final transient String SUCCESS = "SUCCESS"; private static final transient String FAIL = "FAIL"; private String code; private String message; /** * 返回成功 * * @param msg * @return */ public static String success(String msg) { WxPayNotifyV3Response response = new WxPayNotifyV3Response(SUCCESS, msg); return WxGsonBuilder.create().toJson(response); } /** * 返回失败 * * @param msg 返回信息,如非空,为错误原因 * @return */ public static String fail(String msg) { WxPayNotifyV3Response response = new WxPayNotifyV3Response(FAIL, msg); return WxGsonBuilder.create().toJson(response); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Result.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayNotifyV3Result.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 支付结果通知. * 文档见:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_5.shtml * * @author thinsstar */ @Data @NoArgsConstructor public class WxPayNotifyV3Result implements Serializable, WxPayBaseNotifyV3Result<WxPayNotifyV3Result.DecryptNotifyResult> { private static final long serialVersionUID = -1L; /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:应用ID * 变量名:appid * 是否必填:是 * 类型:string[1,32] * 描述: * 直连商户申请的公众号或移动应用appid。 * 示例值:wxd678efh567hg6787 * </pre> */ @SerializedName(value = "appid") private String appid; /** * <pre> * 字段名:商户号 * 变量名:mchid * 是否必填:是 * 类型:string[1,32] * 描述: * 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一。 * 特殊规则:最小字符长度为6 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "mchid") private String mchid; /** * <pre> * 字段名:商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string[6,32] * 描述: * 商户系统内部订单号,只能是数字、大小写字母_-*且在同一个商户号下唯一。 * 特殊规则:最小字符长度为6 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[1,32] * 描述: * 微信支付系统生成的订单号。 * 示例值:1217752501201407033233368018 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:交易类型 * 变量名:trade_type * 是否必填:是 * 类型:string[1,16] * 描述: * 交易类型,枚举值: * JSAPI:公众号支付 * NATIVE:扫码支付 * APP:APP支付 * MICROPAY:付款码支付 * MWEB:H5支付 * FACEPAY:刷脸支付 * 示例值:MICROPAY * </pre> */ @SerializedName(value = "trade_type") private String tradeType; /** * <pre> * 字段名:交易状态 * 变量名:trade_state * 是否必填:是 * 类型:string[1,32] * 描述: * 交易状态,枚举值: * SUCCESS:支付成功 * REFUND:转入退款 * NOTPAY:未支付 * CLOSED:已关闭 * REVOKED:已撤销(付款码支付) * USERPAYING:用户支付中(付款码支付) * PAYERROR:支付失败(其他原因,如银行返回失败) * 示例值:SUCCESS * </pre> */ @SerializedName(value = "trade_state") private String tradeState; /** * <pre> * 字段名:交易状态描述 * 变量名:trade_state_desc * 是否必填:是 * 类型:string[1,256] * 描述: * 交易状态描述 * 示例值:支付成功 * </pre> */ @SerializedName(value = "trade_state_desc") private String tradeStateDesc; /** * <pre> * 字段名:付款银行 * 变量名:bank_type * 是否必填:是 * 类型:string[1,16] * 描述: * 银行类型,采用字符串类型的银行标识。银行标识请参考《银行类型对照表》https://pay.weixin.qq.com/wiki/doc/apiv3/terms_definition/chapter1_1_3.shtml#part-6 * 示例值:CMC * </pre> */ @SerializedName(value = "bank_type") private String bankType; /** * <pre> * 字段名:附加数据 * 变量名:attach * 是否必填:否 * 类型:string[1,128] * 描述: * 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用 * 示例值:自定义数据 * </pre> */ @SerializedName(value = "attach") private String attach; /** * <pre> * 字段名:支付完成时间 * 变量名:success_time * 是否必填:是 * 类型:string[1,64] * 描述: * 支付完成时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre> * 字段名:支付者 * 变量名:payer * 是否必填:是 * 类型:object * 描述: * 支付者信息 * </pre> */ private Payer payer; /** * <pre> * 字段名:订单金额 * 变量名:amount * 是否必填:否 * 类型:object * 描述: * 订单金额信息 * </pre> */ @SerializedName(value = "amount") private Amount amount; /** * <pre> * 字段名:场景信息 * 变量名:scene_info * 是否必填:否 * 类型:object * 描述: * 支付场景信息描述 * </pre> */ @SerializedName(value = "scene_info") private SceneInfo sceneInfo; /** * <pre> * 字段名:优惠功能 * 变量名:promotion_detail * 是否必填:否 * 类型:array * 描述: * 优惠功能,享受优惠时返回该字段。 * </pre> */ @SerializedName(value = "promotion_detail") private List<PromotionDetail> promotionDetails; } @Data @NoArgsConstructor public static class Payer implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * 用户在直连商户appid下的唯一标识。 * 示例值:oUpF8uMuAJO_M2pxb1Q9zNjWeS6o * </pre> */ @SerializedName(value = "openid") private String openid; } @Data @NoArgsConstructor public static class Amount implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:总金额 * 变量名:total * 是否必填:否 * 类型:int * 描述: * 订单总金额,单位为分。 * 示例值:100 * </pre> */ @SerializedName(value = "total") private Integer total; /** * <pre> * 字段名:用户支付金额 * 变量名:payer_total * 是否必填:否 * 类型:int * 描述: * 用户支付金额,单位为分。 * 示例值:100 * </pre> */ @SerializedName(value = "payer_total") private Integer payerTotal; /** * <pre> * 字段名:货币类型 * 变量名:currency * 是否必填:否 * 类型:string[1,16] * 描述: * CNY:人民币,境内商户号仅支持人民币。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:用户支付币种 * 变量名:payer_currency * 是否必填:否 * 类型:string[1,16] * 描述: * 用户支付币种 * 示例值: CNY * </pre> */ @SerializedName(value = "payer_currency") private String payerCurrency; } @Data @NoArgsConstructor public static class SceneInfo implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:商户端设备号 * 变量名:device_id * 是否必填:否 * 类型:string[1,32] * 描述: * 终端设备号(门店号或收银设备ID)。 * 示例值:013467007045764 * </pre> */ @SerializedName(value = "device_id") private String deviceId; } @Data @NoArgsConstructor public static class PromotionDetail implements Serializable { /** * <pre> * 字段名:券ID * 变量名:coupon_id * 是否必填:是 * 类型:string[1,32] * 描述: * 券ID * 示例值:109519 * </pre> */ @SerializedName(value = "coupon_id") private String couponId; /** * <pre> * 字段名:优惠名称 * 变量名:name * 是否必填:否 * 类型:string[1,64] * 描述: * 优惠名称 * 示例值:单品惠-6 * </pre> */ @SerializedName(value = "name") private String name; /** * <pre> * 字段名:优惠范围 * 变量名:scope * 是否必填:否 * 类型:string[1,32] * 描述: * GLOBAL:全场代金券 * SINGLE:单品优惠 * 示例值:GLOBAL * </pre> */ @SerializedName(value = "scope") private String scope; /** * <pre> * 字段名:优惠类型 * 变量名:type * 是否必填:否 * 类型:string[1,32] * 描述: * CASH:充值 * NOCASH:预充值 * 示例值:CASH * </pre> */ @SerializedName(value = "type") private String type; /** * <pre> * 字段名:优惠券面额 * 变量名:amount * 是否必填:是 * 类型:int * 描述: * 优惠券面额 * 示例值:100 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre> * 字段名:活动ID * 变量名:stock_id * 是否必填:否 * 类型:string[1,32] * 描述: * 活动ID * 示例值:931386 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:微信出资 * 变量名:wechatpay_contribute * 是否必填:否 * 类型:int * 描述: * 微信出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "wechatpay_contribute") private Integer wechatpayContribute; /** * <pre> * 字段名:商户出资 * 变量名:merchant_contribute * 是否必填:否 * 类型:int * 描述: * 商户出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "merchant_contribute") private Integer merchantContribute; /** * <pre> * 字段名:其他出资 * 变量名:other_contribute * 是否必填:否 * 类型:int * 描述: * 其他出资,单位为分 * 示例值:0 * </pre> */ @SerializedName(value = "other_contribute") private Integer otherContribute; /** * <pre> * 字段名:优惠币种 * 变量名:currency * 是否必填:否 * 类型:string[1,16] * 描述: * CNY:人民币,境内商户号仅支持人民币。 * 示例值:CNY * </pre> */ @SerializedName(value = "currency") private String currency; /** * <pre> * 字段名:单品列表 * 变量名:goods_detail * 是否必填:否 * 类型:array * 描述: * 单品列表信息 * </pre> */ @SerializedName(value = "goods_detail") private List<GoodsDetail> goodsDetails; } @Data @NoArgsConstructor public static class GoodsDetail implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:商品编码 * 变量名:goods_id * 是否必填:是 * 类型:string[1,32] * 描述: * 商品编码 * 示例值:M1006 * </pre> */ @SerializedName(value = "goods_id") private String goodsId; /** * <pre> * 字段名:商品数量 * 变量名:quantity * 是否必填:是 * 类型:int * 描述: * 用户购买的数量 * 示例值:1 * </pre> */ @SerializedName(value = "quantity") private Integer quantity; /** * <pre> * 字段名:商品单价 * 变量名:unit_price * 是否必填:是 * 类型:int * 描述: * 商品单价,单位为分 * 示例值:100 * </pre> */ @SerializedName(value = "unit_price") private Integer unitPrice; /** * <pre> * 字段名:商品优惠金额 * 变量名:discount_amount * 是否必填:是 * 类型:int * 描述: * 商品优惠金额 * 示例值:0 * </pre> */ @SerializedName(value = "discount_amount") private Integer discountAmount; /** * <pre> * 字段名:商品备注 * 变量名:goods_remark * 是否必填:否 * 类型:string[1,128] * 描述: * 商品备注信息 * 示例值:商品备注信息 * </pre> */ @SerializedName(value = "goods_remark") private String goodsRemark; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/MiPayNotifyV3Result.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/MiPayNotifyV3Result.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * <pre> * 医保混合收款成功通知结果 * 文档地址:https://pay.weixin.qq.com/doc/v3/partner/4012165722 * </pre> * * @author xgl * @date 2025/12/20 */ @Data @NoArgsConstructor public class MiPayNotifyV3Result implements Serializable, WxPayBaseNotifyV3Result<MiPayNotifyV3Result.DecryptNotifyResult> { /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:应用ID * 变量名:appid * 是否必填:是 * 类型:string(32) * 描述: * 从业机构/服务商的公众号ID * </pre> */ @SerializedName(value = "appid") private String appid; /** * <pre> * 字段名:医疗机构的公众号ID * 变量名:sub_appid * 是否必填:是 * 类型:string(32) * 描述: * 医疗机构的公众号ID * </pre> */ @SerializedName(value = "sub_appid") private String subAppid; /** * <pre> * 字段名:医疗机构的商户号 * 变量名:sub_mchid * 是否必填:是 * 类型:string(32) * 描述: * 医疗机构的商户号 * </pre> */ @SerializedName(value = "sub_mchid") private String subMchid; /** * <pre> * 字段名:从业机构订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string(64) * 描述: * 从业机构/服务商订单号 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:医保自费混合订单号 * 变量名:mix_trade_no * 是否必填:是 * 类型:string(32) * 描述: * 微信支付系统生成的医保自费混合订单号 * </pre> */ @SerializedName(value = "mix_trade_no") private String mixTradeNo; /** * <pre> * 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string(32) * 描述: * 微信支付系统生成的订单号 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:医保订单创建时间 * 变量名:med_ins_order_create_time * 是否必填:是 * 类型:string(64) * 描述: * 医保订单创建时间,遵循rfc3339标准格式 * </pre> */ @SerializedName(value = "med_ins_order_create_time") private String medInsOrderCreateTime; /** * <pre> * 字段名:医保订单完成时间 * 变量名:med_ins_order_finish_time * 是否必填:是 * 类型:string(64) * 描述: * 医保订单完成时间,遵循rfc3339标准格式 * </pre> */ @SerializedName(value = "med_ins_order_finish_time") private String medInsOrderFinishTime; /** * <pre> * 字段名:总金额 * 变量名:total_fee * 是否必填:否 * 类型:long * 描述: * 总金额,单位为分 * </pre> */ @SerializedName(value = "total_fee") private Long totalFee; /** * <pre> * 字段名:医保统筹基金支付金额 * 变量名:med_ins_gov_fee * 是否必填:否 * 类型:long * 描述: * 医保统筹基金支付金额,单位为分 * </pre> */ @SerializedName(value = "med_ins_gov_fee") private Long medInsGovFee; /** * <pre> * 字段名:医保个人账户支付金额 * 变量名:med_ins_self_fee * 是否必填:否 * 类型:long * 描述: * 医保个人账户支付金额,单位为分 * </pre> */ @SerializedName(value = "med_ins_self_fee") private Long medInsSelfFee; /** * <pre> * 字段名:医保其他基金支付金额 * 变量名:med_ins_other_fee * 是否必填:否 * 类型:long * 描述: * 医保其他基金支付金额,单位为分 * </pre> */ @SerializedName(value = "med_ins_other_fee") private Long medInsOtherFee; /** * <pre> * 字段名:医保现金支付金额 * 变量名:med_ins_cash_fee * 是否必填:否 * 类型:long * 描述: * 医保现金支付金额,单位为分 * </pre> */ @SerializedName(value = "med_ins_cash_fee") private Long medInsCashFee; /** * <pre> * 字段名:微信支付现金支付金额 * 变量名:wechat_pay_cash_fee * 是否必填:否 * 类型:long * 描述: * 微信支付现金支付金额,单位为分 * </pre> */ @SerializedName(value = "wechat_pay_cash_fee") private Long wechatPayCashFee; /** * <pre> * 字段名:附加数据 * 变量名:attach * 是否必填:否 * 类型:string(128) * 描述: * 附加数据,在查询API和支付通知中原样返回,可作为自定义参数使用 * </pre> */ @SerializedName(value = "attach") private String attach; /** * <pre> * 字段名:支付状态 * 变量名:trade_state * 是否必填:是 * 类型:string(32) * 描述: * 交易状态,枚举值: * SUCCESS:支付成功 * REFUND:转入退款 * NOTPAY:未支付 * CLOSED:已关闭 * REVOKED:已撤销 * USERPAYING:用户支付中 * PAYERROR:支付失败 * </pre> */ @SerializedName(value = "trade_state") private String tradeState; /** * <pre> * 字段名:支付状态描述 * 变量名:trade_state_desc * 是否必填:是 * 类型:string(256) * 描述: * 交易状态描述 * </pre> */ @SerializedName(value = "trade_state_desc") private String tradeStateDesc; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyResult.java
package com.github.binarywang.wxpay.bean.notify; import java.io.Serializable; import java.nio.charset.StandardCharsets; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec; import org.apache.commons.codec.binary.Base64; import org.apache.commons.codec.digest.DigestUtils; import com.github.binarywang.wxpay.bean.result.BaseWxPayResult; import com.github.binarywang.wxpay.constant.WxPayConstants; import com.github.binarywang.wxpay.exception.WxPayException; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.annotations.XStreamAlias; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.json.WxGsonBuilder; import me.chanjar.weixin.common.util.xml.XStreamInitializer; import org.w3c.dom.Document; /** * <pre> * 退款结果通知对象. * Created by BinaryWang on 2017/8/27. * </pre> * * @author <a href="https://github.com/binarywang">Binary Wang</a> */ @Data @EqualsAndHashCode(callSuper = true) @NoArgsConstructor @AllArgsConstructor @XStreamAlias("xml") public class WxPayRefundNotifyResult extends BaseWxPayResult implements Serializable { private static final long serialVersionUID = 4651725860079259186L; /** * 从xml字符串创建bean对象. * * @param xmlString xml字符串 * @param mchKey 商户密钥 * @return the wx pay refund notify result * @throws WxPayException the wx pay exception */ public static WxPayRefundNotifyResult fromXML(String xmlString, String mchKey) throws WxPayException { WxPayRefundNotifyResult result = BaseWxPayResult.fromXML(xmlString, WxPayRefundNotifyResult.class); if (WxPayConstants.ResultCode.FAIL.equals(result.getReturnCode())) { return result; } String reqInfoString = result.getReqInfoString(); try { final String keyMd5String = DigestUtils.md5Hex(mchKey).toLowerCase(); SecretKeySpec key = new SecretKeySpec(keyMd5String.getBytes(StandardCharsets.UTF_8), "AES"); Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); cipher.init(Cipher.DECRYPT_MODE, key); result.setReqInfo(ReqInfo.fromXML(new String(cipher.doFinal(Base64.decodeBase64(reqInfoString)), StandardCharsets.UTF_8))); } catch (Exception e) { throw new WxPayException("解密退款通知加密信息时出错", e); } return result; } /** * <pre> * 字段名:加密信息. * 变量名:req_info * 是否必填:是 * 类型:String(1024) * 描述:加密信息请用商户证书与商户秘钥进行解密 * </pre> */ @XStreamAlias("req_info") private String reqInfoString; private ReqInfo reqInfo; // 解密后的reqInfo 字符串 private transient String decryptedReqInfo; @Override protected void loadXml(Document d) { reqInfoString = readXmlString(d, "req_info"); } /** * 解密并解析reqInfo * * @param mchKey * @throws WxPayException */ public void decryptReqInfo(String mchKey) throws WxPayException { //如果是失败,直接返回,不用解析 if (WxPayConstants.ResultCode.FAIL.equals(getReturnCode())) { return; } try { final String keyMd5String = DigestUtils.md5Hex(mchKey).toLowerCase(); SecretKeySpec key = new SecretKeySpec(keyMd5String.getBytes(StandardCharsets.UTF_8), "AES"); Cipher cipher = Cipher.getInstance("AES/ECB/PKCS5Padding"); cipher.init(Cipher.DECRYPT_MODE, key); decryptedReqInfo = new String(cipher.doFinal(Base64.decodeBase64(reqInfoString)), StandardCharsets.UTF_8); loadReqInfo(decryptedReqInfo); } catch (Exception e) { throw new WxPayException("解密退款通知加密信息时出错", e); } } // 本方法独立出来方便测试 protected void loadReqInfo(String decryptedReqInfo) { Document document = openXML(decryptedReqInfo); reqInfo = new ReqInfo(); reqInfo.loadXML(document); } /** * 加密信息字段解密后的内容. */ @Data @NoArgsConstructor @XStreamAlias("root") public static class ReqInfo { @Override public String toString() { return WxGsonBuilder.create().toJson(this); } /** * <pre> * 字段名:微信订单号. * 变量名:transaction_id * 是否必填:是 * 类型:String(32) * 示例值:1217752501201407033233368018 * 描述:微信订单号 * </pre> */ @XStreamAlias("transaction_id") private String transactionId; /** * <pre> * 字段名:商户订单号. * 变量名:out_trade_no * 是否必填:是 * 类型:String(32) * 示例值:1217752501201407033233368018 * 描述:商户系统内部的订单号 * </pre> */ @XStreamAlias("out_trade_no") private String outTradeNo; /** * <pre> * 字段名:微信退款单号. * 变量名:refund_id * 是否必填:是 * 类型:String(28) * 示例值:1217752501201407033233368018 * 描述:微信退款单号 * </pre> */ @XStreamAlias("refund_id") private String refundId; /** * <pre> * 字段名:商户退款单号. * 变量名:out_refund_no * 是否必填:是 * 类型:String(64) * 示例值:1217752501201407033233368018 * 描述:商户退款单号 * </pre> */ @XStreamAlias("out_refund_no") private String outRefundNo; /** * <pre> * 字段名:订单金额. * 变量名:total_fee * 是否必填:是 * 类型:Int * 示例值:100 * 描述:订单总金额,单位为分,只能为整数,详见支付金额 * </pre> */ @XStreamAlias("total_fee") private Integer totalFee; /** * <pre> * 字段名:结订单金额. * 变量名:settlement_total_fee * 是否必填:否 * 类型:Int * 示例值:100 * 描述:当该订单有使用非充值券时,返回此字段。应结订单金额=订单金额-非充值代金券金额,应结订单金额<=订单金额。 * </pre> */ @XStreamAlias("settlement_total_fee") private Integer settlementTotalFee; /** * <pre> * 字段名:申请退款金额. * 变量名:refund_fee * 是否必填:是 * 类型:Int * 示例值:100 * 描述:退款总金额,单位为分 * </pre> */ @XStreamAlias("refund_fee") private Integer refundFee; /** * <pre> * 字段名:退款金额. * 变量名:settlement_refund_fee * 是否必填:是 * 类型:Int * 示例值:100 * 描述:退款金额=申请退款金额-非充值代金券退款金额,退款金额<=申请退款金额 * </pre> */ @XStreamAlias("settlement_refund_fee") private Integer settlementRefundFee; /** * <pre> * 字段名:退款状态. * 变量名:refund_status * 是否必填:是 * 类型:String(16) * 示例值:SUCCESS * 描述:SUCCESS-退款成功,CHANGE-退款异常,REFUNDCLOSE—退款关闭 * </pre> */ @XStreamAlias("refund_status") private String refundStatus; /** * <pre> * 字段名:退款成功时间. * 变量名:success_time * 是否必填:否 * 类型: String(20) * 示例值:2017-12-15 09:46:01 * 资金退款至用户帐号的时间,格式2017-12-15 09:46:01 * </pre> */ @XStreamAlias("success_time") private String successTime; /** * <pre> * 字段名:退款入账账户. * 变量名:refund_recv_accout * 是否必填:是 * 类型:String(64) * 示例值:招商银行信用卡0403 * 描述:取当前退款单的退款入账方,1)退回银行卡:{银行名称}{卡类型}{卡尾号},2)退回支付用户零钱:支付用户零钱 ,3)退还商户: 商户基本账户,商户结算银行账户,4)退回支付用户零钱通: 支付用户零钱通 * </pre> */ @XStreamAlias("refund_recv_accout") private String refundRecvAccount; /** * <pre> * 字段名:退款资金来源. * 变量名:refund_account * 是否必填:是 * 类型:String(30) * 示例值:REFUND_SOURCE_RECHARGE_FUNDS * 描述:REFUND_SOURCE_RECHARGE_FUNDS 可用余额退款/基本账户,REFUND_SOURCE_UNSETTLED_FUNDS 未结算资金退款 * </pre> */ @XStreamAlias("refund_account") private String refundAccount; /** * <pre> * 字段名:退款发起来源. * 变量名:refund_request_source * 是否必填:是 * 类型:String(30) * 示例值:API * 描述:API接口,VENDOR_PLATFORM商户平台 * </pre> */ @XStreamAlias("refund_request_source") private String refundRequestSource; /** * 从xml字符串构造ReqInfo对象. * * @param xmlString xml字符串 * @return ReqInfo对象 */ public static ReqInfo fromXML(String xmlString) { XStream xstream = XStreamInitializer.getInstance(); xstream.processAnnotations(ReqInfo.class); return (ReqInfo) xstream.fromXML(xmlString); } public void loadXML(Document d) { transactionId = readXmlString(d, "transaction_id"); outTradeNo = readXmlString(d, "out_trade_no"); refundId = readXmlString(d, "refund_id"); outRefundNo = readXmlString(d, "out_refund_no"); totalFee = readXmlInteger(d, "total_fee"); settlementTotalFee = readXmlInteger(d, "settlement_total_fee"); refundFee = readXmlInteger(d, "refund_fee"); settlementRefundFee = readXmlInteger(d, "settlement_refund_fee"); refundStatus = readXmlString(d, "refund_status"); successTime = readXmlString(d, "success_time"); refundRecvAccount = readXmlString(d, "refund_recv_accout"); refundAccount = readXmlString(d, "refund_account"); refundRequestSource = readXmlString(d, "refund_request_source"); } } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/SignatureHeader.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/SignatureHeader.java
package com.github.binarywang.wxpay.bean.notify; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 微信通知接口头部信息,需要做签名验证 * 文档地址: https://pay.weixin.qq.com/wiki/doc/apiv3/wechatpay/wechatpay4_1.shtml * * @author thinstar */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class SignatureHeader implements Serializable { private static final long serialVersionUID = -1L; /** * 时间戳 */ private String timeStamp; /** * 随机串 */ private String nonce; /** * 已签名字符串 */ private String signature; /** * 证书序列号 */ private String serial; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayTransferBatchesNotifyV3Result.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayTransferBatchesNotifyV3Result.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 商家转账批次回调通知 * 文档见:https://pay.weixin.qq.com/docs/merchant/apis/batch-transfer-to-balance/transfer-batch-callback-notice.html * * @author Wang_Wong */ @Data @NoArgsConstructor public class WxPayTransferBatchesNotifyV3Result implements Serializable, WxPayBaseNotifyV3Result<WxPayTransferBatchesNotifyV3Result.DecryptNotifyResult> { private static final long serialVersionUID = -1L; /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = -1L; /** * <pre> * 字段名:直连商户号 * 变量名:mchid * 是否必填:是 * 类型:string[1,32] * 描述: * 直连商户的商户号,由微信支付生成并下发。 * 示例值:1900000100 * </pre> */ @SerializedName(value = "mchid") private String mchid; /** * 【商家批次单号】 * 商户系统内部的商家批次单号,在商户系统内部唯一 */ @SerializedName(value = "out_batch_no") private String outBatchNo; /** * 【微信批次单号】 * 微信批次单号,微信商家转账系统返回的唯一标识 */ @SerializedName(value = "batch_id") private String batchId; /** * 【批次状态】 * WAIT_PAY: 待付款确认。需要付款出资商户在商家助手小程序或服务商助手小程序进行付款确认 * ACCEPTED:已受理。批次已受理成功,若发起批量转账的30分钟后,转账批次单仍处于该状态,可能原因是商户账户余额不足等。商户可查询账户资金流水,若该笔转账批次单的扣款已经发生,则表示批次已经进入转账中,请再次查单确认 * PROCESSING:转账中。已开始处理批次内的转账明细单 * FINISHED:已完成。批次内的所有转账明细单都已处理完成 * CLOSED:已关闭。可查询具体的批次关闭原因确认 */ @SerializedName(value = "batch_status") private String batchStatus; /** * 【批次总笔数】 * 转账总笔数。 */ @SerializedName(value = "total_num") private Integer totalNum; /** * 【批次总金额】 * 转账总金额,单位为“分”。 */ @SerializedName(value = "total_amount") private Integer totalAmount; /** * 【转账成功金额】 * 转账成功的金额,单位为“分”。当批次状态为“PROCESSING”(转账中)时,转账成功金额随时可能变化 */ @SerializedName(value = "success_amount") private Integer successAmount; /** * 【转账成功笔数】 * 转账成功的笔数。当批次状态为“PROCESSING”(转账中)时,转账成功笔数随时可能变化 */ @SerializedName(value = "success_num") private Integer successNum; /** * 【转账失败金额】 * 转账失败的金额,单位为“分” */ @SerializedName(value = "fail_amount") private Integer failAmount; /** * 【转账失败笔数】 * 转账失败的笔数 */ @SerializedName(value = "fail_num") private Integer failNum; /** * 【批次关闭原因】 * 如果批次单状态为“CLOSED”(已关闭),则有关闭原因 * 可选取值: * OVERDUE_CLOSE:系统超时关闭,可能原因账户余额不足或其他错误 * TRANSFER_SCENE_INVALID:付款确认时,转账场景已不可用,系统做关单处理 */ @SerializedName(value = "close_reason") private String closeReason; /** * 【批次更新时间】 * 遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示北京时间2015年05月20日13点29分35秒。 */ @SerializedName(value = "update_time") private String updateTime; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyV3Result.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayRefundNotifyV3Result.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 退款结果通知. * 文档见:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter3_1_11.shtml * * @author thinsstar */ @Data @NoArgsConstructor public class WxPayRefundNotifyV3Result implements Serializable, WxPayBaseNotifyV3Result<WxPayRefundNotifyV3Result.DecryptNotifyResult> { private static final long serialVersionUID = -1L; /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = -1L; /** * <pre> * 字段名:直连商户号 * 变量名:mchid * 是否必填:是 * 类型:string[1,32] * 描述: * 直连商户的商户号,由微信支付生成并下发。 * 示例值:1900000100 * </pre> */ @SerializedName(value = "mchid") private String mchid; /** * <pre> * 字段名:商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string[1,32] * 描述: * 返回的商户订单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre> * 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[1,32] * 描述: * 微信支付订单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre> * 字段名:商户退款单号 * 变量名:out_refund_no * 是否必填:是 * 类型:string[1,64] * 描述: * 商户退款单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "out_refund_no") private String outRefundNo; /** * <pre> * 字段名:微信支付退款号 * 变量名:refund_id * 是否必填:是 * 类型:string[1,32] * 描述: * 微信退款单号 * 示例值: 1217752501201407033233368018 * </pre> */ @SerializedName(value = "refund_id") private String refundId; /** * <pre> * 字段名:退款状态 * 变量名:refund_status * 是否必填:是 * 类型:string[1,16] * 描述: * 退款状态,枚举值: * SUCCESS:退款成功 * CLOSE:退款关闭 * ABNORMAL:退款异常,退款到银行发现用户的卡作废或者冻结了,导致原路退款银行卡失败,可前往【商户平台—>交易中心】,手动处理此笔退款 * 示例值:SUCCESS * </pre> */ @SerializedName(value = "refund_status") private String refundStatus; /** * <pre> * 字段名:退款成功时间 * 变量名:success_time * 是否必填:否 * 类型:string[1,64] * 描述: * 1、退款成功时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 * 2、当退款状态为退款成功时返回此参数。 * 示例值:2018-06-08T10:34:56+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre> * 字段名:退款入账账户 * 变量名:user_received_account * 是否必填:是 * 类型:string[1,64] * 描述: * 取当前退款单的退款入账方。 * 1、退回银行卡:{银行名称}{卡类型}{卡尾号} * 2、退回支付用户零钱: 支付用户零钱 * 3、退还商户: 商户基本账户、商户结算银行账户 * 4、退回支付用户零钱通:支付用户零钱通 * 示例值:招商银行信用卡0403 * </pre> */ @SerializedName(value = "user_received_account") private String userReceivedAccount; /** * <pre> * 字段名:金额信息 * 变量名:amount * 是否必填:是 * 类型:object * 描述: * 金额信息 * </pre> */ @SerializedName(value = "amount") private Amount amount; } @Data @NoArgsConstructor public static class Amount implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:订单金额 * 变量名:total * 是否必填:是 * 类型:int * 描述: * 订单总金额,单位为分,只能为整数,详见支付金额 * 示例值:999 * </pre> */ @SerializedName(value = "total") private Integer total; /** * <pre> * 字段名:退款金额 * 变量名:refund * 是否必填:是 * 类型:int * 描述: * 退款金额,币种的最小单位,只能为整数,不能超过原订单支付金额,如果有使用券,后台会按比例退。 * 示例值:999 * </pre> */ @SerializedName(value = "refund") private Integer refund; /** * <pre> * 字段名:用户支付金额 * 变量名:payer_total * 是否必填:是 * 类型:int * 描述: * 用户实际支付金额,单位为分,只能为整数,详见支付金额 * 示例值:999 * </pre> */ @SerializedName(value = "payer_total") private Integer payerTotal; /** * <pre> * 字段名:用户退款金额 * 变量名:payer_refund * 是否必填:是 * 类型:int * 描述: * 退款给用户的金额,不包含所有优惠券金额 * 示例值:999 * </pre> */ @SerializedName(value = "payer_refund") private Integer payerRefund; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayOrderNotifyCoupon.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/WxPayOrderNotifyCoupon.java
package com.github.binarywang.wxpay.bean.notify; import java.io.Serializable; import java.util.HashMap; import java.util.Map; import lombok.Data; import lombok.NoArgsConstructor; import me.chanjar.weixin.common.util.json.WxGsonBuilder; /** * 支付异步通知代金券详细. * * @author aimilin */ @Data @NoArgsConstructor public class WxPayOrderNotifyCoupon implements Serializable { private static final long serialVersionUID = -4165343733538156097L; private String couponId; private String couponType; private Integer couponFee; /** * To map map. * * @param index the index * @return the map */ public Map<String, String> toMap(int index) { Map<String, String> map = new HashMap<>(); map.put("coupon_id_" + index, this.getCouponId()); map.put("coupon_type_" + index, this.getCouponType()); map.put("coupon_fee_" + index, this.getCouponFee() + ""); return map; } @Override public String toString() { return WxGsonBuilder.create().toJson(this); } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/ComplaintNotifyResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/notify/ComplaintNotifyResult.java
package com.github.binarywang.wxpay.bean.notify; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 投诉通知. * 文档见:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter10_2_16.shtml * * @author <a href="https://gitee.com/jeequan/jeepay">jmdhappy</a> */ @Data @NoArgsConstructor public class ComplaintNotifyResult implements Serializable { private static final long serialVersionUID = -1L; /** * 源数据 */ private OriginNotifyResponse rawData; /** * 解密后的数据 */ private DecryptNotifyResult result; @Data @NoArgsConstructor public static class DecryptNotifyResult implements Serializable { private static final long serialVersionUID = -1L; /** * <pre> * 字段名:投诉单号 * 是否必填:是 * 描述: * 投诉单对应的投诉单号 * </pre> */ @SerializedName(value = "complaint_id") private String complaintId; /** * <pre> * 字段名:动作类型 * 是否必填:是 * 描述: * 触发本次投诉通知回调的具体动作类型,枚举如下: * 常规通知: * CREATE_COMPLAINT:用户提交投诉 * CONTINUE_COMPLAINT:用户继续投诉 * USER_RESPONSE:用户新留言 * RESPONSE_BY_PLATFORM:平台新留言 * SELLER_REFUND:商户发起全额退款 * MERCHANT_RESPONSE:商户新回复 * MERCHANT_CONFIRM_COMPLETE:商户反馈处理完成 * USER_APPLY_PLATFORM_SERVICE:用户申请平台协助 * USER_CANCEL_PLATFORM_SERVICE:用户取消平台协助 * PLATFORM_SERVICE_FINISHED:客服结束平台协助 * * 申请退款单的附加通知: * 以下通知会更新投诉单状态,建议收到后查询投诉单详情。 * MERCHANT_APPROVE_REFUND:商户同意退款 * MERCHANT_REJECT_REFUND:商户驳回退款 * REFUND_SUCCESS:退款到账 * </pre> */ @SerializedName(value = "action_type") private String actionType; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksQueryResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksQueryResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 条件查询代金券批次列表结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorStocksQueryResult implements Serializable { private static final long serialVersionUID = 1L; /** * 批次总数 * <p> * 经过条件筛选,查询到的批次总数量。 * 示例值:10 */ @SerializedName("total_count") private Long totalCount; /** * 批次详情 * <p> * 批次详情 */ @SerializedName("data") private List<FavorStocksGetResult> data; /** * 分页大小 * <p> * 分页大小,最大10。 * 示例值:8 */ @SerializedName("limit") private Integer limit; /** * 分页页码 * <p> * 页码从0开始,默认第0页。 * 示例值:1 */ @SerializedName("offset") private Integer offset; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorQueryUserCouponsResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorQueryUserCouponsResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 根据过滤条件查询用户券返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_4.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorQueryUserCouponsResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:+结果集 * 变量名:data * 是否必填:是 * 类型:array * 描述: * 结果集 * </pre> */ @SerializedName(value = "data") private List<BusiFavorQueryOneUserCouponsResult> data; /** * <pre>* 字段名:总数量 * 变量名:total_count * 是否必填:是 * 类型:int * 描述: * 总数量 示例值: 100 * </pre> */ @SerializedName(value = "total_count") private Integer totalCount; /** * <pre>* 字段名:分页页码 * 变量名:offset * 是否必填:是 * 类型:int * 描述: * 分页页码 示例值:1 * </pre> */ @SerializedName(value = "offset") private Integer offset; /** * <pre>* 字段名:分页大小 * 变量名:limit * 是否必填:是 * 类型:int * 描述: * 分页大小 示例值:10 * </pre> */ @SerializedName(value = "limit") private Integer limit; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksCreateRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksCreateRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.github.binarywang.wxpay.bean.marketing.busifavor.*; import com.github.binarywang.wxpay.bean.marketing.enums.StockTypeEnum; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 创建商家券批次 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_1.shtml * </pre> * * @author yujam */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class BusiFavorStocksCreateRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次名称 * 变量名:stock_name * 是否必填:是 * 类型:string[1,21] * 描述: * 批次名称 * 校验规则: * 1、批次名称最多9个中文汉字 * 2、批次名称最多20个字母 * 3、批次名称中不能包含不当内容和特殊字符 _ , ; | * 示例值:微信支付代金券批次 * </pre> */ @SerializedName(value = "stock_name") private String stockName; /** * <pre> * 字段名:归属商户号 * 变量名:belong_merchant * 是否必填:是 * 类型:string[8,15] * 描述: * 批次归属商户号 * 该字段暂未开放 * 示例值:98568865 * </pre> */ @SerializedName(value = "belong_merchant") private String belongMerchant; /** * <pre> * 字段名:批次备注 * 变量名:comment * 是否必填:否 * 类型:string[1,20] * 描述: * 仅制券商户可见,用于自定义信息。 * 校验规则:批次备注最多60个UTF8字符数 * 示例值:零售批次 * </pre> */ @SerializedName(value = "comment") private String comment; /** * <pre> * 字段名:适用商品范围 * 变量名:goods_name * 是否必填:是 * 类型:string[1,15] * 描述: * 用来描述批次在哪些商品可用,会显示在微信卡包中。字数上限为15个,一个中文汉字/英文字母/数字均占用一个字数。 * 示例值:xxx商品使用 * </pre> */ @SerializedName(value = "goods_name") private String goodsName; /** * <pre> * 字段名:批次类型 * 变量名:stock_type * 是否必填:是 * 类型:string[1,32] * 描述: * 批次类型 * NORMAL:固定面额满减券批次 * DISCOUNT:折扣券批次 * EXCHANGE:换购券批次 * 示例值:NORMAL * </pre> */ @SerializedName(value = "stock_type") private StockTypeEnum stockType; /** * <pre> * 字段名:核销规则 * 变量名:coupon_use_rule * 是否必填:是 * 类型:object * 描述:核销规则 * </pre> */ @SerializedName(value = "coupon_use_rule") private CouponUseRule couponUseRule; /** * <pre> * 字段名:券发放相关规则 * 变量名:stock_send_rule * 是否必填:是 * 类型:object * 描述:券发放相关规则 * </pre> */ @SerializedName(value = "stock_send_rule") private StockSendRule stockSendRule; /** * <pre> * 字段名:商户单据号 * 变量名:out_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * 商户创建批次凭据号(格式:商户id+日期+流水号),可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号,商户侧需保持商户单据号全局唯一。 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:自定义入口 * 变量名:custom_entrance * 是否必填:否 * 类型:object * 描述:卡详情页面,可选择多种入口引导用户。 * </pre> */ @SerializedName(value = "custom_entrance") private CustomEntrance customEntrance; /** * <pre> * 字段名:样式信息 * 变量名:display_pattern_info * 是否必填:否 * 类型:object * 描述:创建批次时的样式信息。 * </pre> */ @SerializedName(value = "display_pattern_info") private DisplayPatternInfo displayPatternInfo; /** * <pre> * 字段名:券code模式 * 变量名:coupon_code_mode * 是否必填:是 * 类型:string[1,128] * 描述:枚举值: * WECHATPAY_MODE:系统分配券code。(固定22位纯数字) * MERCHANT_API:商户发放时接口指定券code。 * MERCHANT_UPLOAD:商户上传自定义code,发券时系统随机选取上传的券code。 * </pre> */ @SerializedName(value = "coupon_code_mode") private String couponCodeMode; /** * <pre> * 字段名:事件通知配置 * 变量名:notify_config * 是否必填:否 * 类型:object * 描述:事件回调通知商户的配置 * </pre> */ @SerializedName(value = "notify_config") private NotifyConfig notifyConfig; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsUrlRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsUrlRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * H5发券请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_4_1.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsUrlRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次号 * 变量名:stock_id * 是否必填:否 * 类型:string[1,20] * 描述: * 微信为每个商家券批次分配的唯一ID,批次券Code模式是MERCHANT_API或者MERCHANT_UPLOAD时,核销时必须填写批次号 * 示例值:100088 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:核销请求单据号 * 变量名:out_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * 发券凭证(示例格式:商户 id+日期+流水号),可包含英文字母、数字,不允许出现其他不合法符号,商户侧需保证发放凭据号唯一性 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:签名 * 变量名:sign * 是否必填:是 * 类型:string * 描述: * 签名计算值。 * 签名方式:HMAC-SHA256。 * 签名规则:详见《V2 签名规则》 https://pay.weixin.qq.com/wiki/doc/api/wxpay_v2/jiekouguize/chapter1_1.shtml * 参与签名字段说明 * 注意:为了安全,签名必须在后台服务器计算,禁止在H5中计算,签名 key 为微信支付 apiv2 的 signkey * 示例值:9A0A8659F005D6984697E2CA0A9CF3B79A0A8659F005D6984697E2CA0A9CF3B7 * </pre> */ @SerializedName(value = "sign") private String sign; /** * <pre> * 字段名:发券商户号 * 变量名:send_coupon_merchant * 是否必填:是 * 类型:string[1,15] * 描述: * 调用发券接口的商户号 * </pre> */ @SerializedName(value = "send_coupon_merchant") private String sendCouponMerchant; /** * <pre> * 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * 目标发券的用户openid * </pre> */ @SerializedName(value = "openid") private String openid; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorSubsidyRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorSubsidyRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 营销补差付款请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_16.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorSubsidyRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:商家券批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1, 20] * 描述: * body由微信支付生成,调用创建商家券API成功时返回的唯一批次ID 仅支持“满减券”和“折扣券”的批次,“换购券”批次不支持 示例值:128888000000001 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:商家券Code * 变量名:coupon_code * 是否必填:是 * 类型:string[1, 128] * 描述: * body券的唯一标识。 在WECHATPAY_MODE的券Code模式下,商家券Code是由微信支付生成的唯一ID; 在MERCHANT_UPLOAD、MERCHANT_API的券Code模式下,商家券Code是由商户上传或指定,在批次下保证唯一; 示例值:ABCD12345678 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; /** * <pre>* 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[28, 32] * 描述: * body微信支付下单支付成功返回的订单号 示例值:4200000913202101152566792388 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre>* 字段名:营销补差扣款商户号 * 变量名:payer_merchant * 是否必填:是 * 类型:string[1, 32] * 描述: * body营销补差扣款商户号 示例值:1900000001 * </pre> */ @SerializedName(value = "payer_merchant") private String payerMerchant; /** * <pre>* 字段名:营销补差入账商户号 * 变量名:payee_merchant * 是否必填:是 * 类型:string[1, 32] * 描述: * body营销补差入账商户号 示例值:1900000002 * </pre> */ @SerializedName(value = "payee_merchant") private String payeeMerchant; /** * <pre>* 字段名:补差付款金额 * 变量名:amount * 是否必填:是 * 类型:int * 描述: * body单位为分,单笔订单补差金额不得超过券的优惠金额,最高补差金额为5000元 > 券的优惠金额定义: 满减券:满减金额即为优惠金额 折扣券:优惠金额 = 微信支付订单金额 ÷ 折扣比例 × (1 - 折扣比例) 换购券:不支持 示例值:100 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre>* 字段名:补差付款描述 * 变量名:description * 是否必填:是 * 类型:string[1, 1024] * 描述: * body付款备注描述,查询的时候原样带回 示例值:20210115DESCRIPTION * </pre> */ @SerializedName(value = "description") private String description; /** * <pre>* 字段名:业务请求唯一单号 * 变量名:out_subsidy_no * 是否必填:是 * 类型:string[1, 128] * 描述: * body商户侧需保证唯一性。可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号 示例值:subsidy-abcd-12345678 * </pre> */ @SerializedName(value = "out_subsidy_no") private String outSubsidyNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksBudgetRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksBudgetRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 修改批次预算请求对象 * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_11.shtml * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorStocksBudgetRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * path批次号 示例值:98065001 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:目标批次最大发放个数 * 变量名:target_max_coupons * 是否必填:二选一 * 类型:int * 描述: * body批次最大发放个数 示例值:3000 * </pre> */ @SerializedName(value = "target_max_coupons") private Integer targetMaxCoupons; /** * <pre>* 字段名:目标单天发放上限个数 * 变量名:target_max_coupons * 是否必填:二选一 * 类型:int * 描述: * body 目标单天发放上限个数 示例值:3000 * </pre> */ @SerializedName(value = "target_max_coupons_by_day") private Integer targetMaxCouponsByDay; /** * <pre>* 字段名:当前批次最大发放个数 * 变量名:current_max_coupons * 是否必填:否 * 类型:int * 描述: * body当前批次最大发放个数,当传入target_max_coupons大于0时,current_max_coupons必传 示例值:500 * </pre> */ @SerializedName(value = "current_max_coupons") private Integer currentMaxCoupons; /** * <pre>* 字段名:当前单天发放上限个数 * 变量名:current_max_coupons_by_day * 是否必填:否 * 类型:int * 描述: * body当前单天发放上限个数 ,当传入target_max_coupons_by_day大于0时,current_max_coupons_by_day必填 示例值:300 * </pre> */ @SerializedName(value = "current_max_coupons_by_day") private Integer currentMaxCouponsByDay; /** * <pre>* 字段名:修改预算请求单据号 * 变量名:modify_budget_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * body修改预算请求单据号 示例值:1002600620019090123143254436 * </pre> */ @SerializedName(value = "modify_budget_request_no") private String modifyBudgetRequestNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksQueryRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksQueryRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 条件查询代金券批次列表 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_4.shtml * </pre> * * @author thinsstar */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class FavorStocksQueryRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:分页页码 * 变量名:offset * 是否必填:是 * 类型:uint32 * 描述: * 页码从0开始,默认第0页。 * 示例值:1 * </pre> */ @SerializedName(value = "offset") private Integer offset; /** * <pre> * 字段名:分页大小 * 变量名:limit * 是否必填:是 * 类型:uint32 * 描述: * 分页大小,最大10。 * 示例值:8 * </pre> */ @SerializedName(value = "limit") private Integer limit; /** * <pre> * 字段名:创建批次的商户号 * 变量名:stock_creator_mchid * 是否必填:是 * 类型:string[1,20] * 描述: * 批次创建方商户号。 * 示例值:9856888 * </pre> */ @SerializedName(value = "stock_creator_mchid") private String stockCreatorMchid; /** * <pre> * 字段名:起始时间 * 变量名:create_start_time * 是否必填:否 * 类型:string[1,64] * 描述: * 起始创建时间,起始创建时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 校验规则:get请求,参数在 url中,需要进行 url 编码传递 * 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "create_start_time") private String createStartTime; /** * <pre> * 字段名:终止时间 * 变量名:create_end_time * 是否必填:否 * 类型:string[1,64] * 描述: * 终止创建时间,遵循rfc3339标准格式,格式为yyyy-MM-DDTHH:mm:ss+TIMEZONE,yyyy-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 校验规则:get请求,参数在 url中,需要进行 url 编码传递 * 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "create_end_time") private String createEndTime; /** * <pre> * 字段名:批次状态 * 变量名:status * 是否必填:否 * 类型:string[1,20] * 描述: * 批次状态,枚举值: * unactivated:未激活 * audit:审核中 * running:运行中 * stoped:已停止 * paused:暂停发放 * </pre> */ @SerializedName(value = "status") private String status; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsQueryResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsQueryResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 条件查询代金券批次列表结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorCouponsQueryResult implements Serializable { private static final long serialVersionUID = 1L; /** * 查询结果总数 * <p> * 查询结果总数 * 示例值:100 */ @SerializedName("total_count") private Integer totalCount; /** * 批次详情 * <p> * 批次详情 */ @SerializedName("data") private List<FavorCouponsGetResult> data; /** * 分页大小 * <p> * 分页大小 * 示例值:10 */ @SerializedName("limit") private Integer limit; /** * 分页页码 * <p> * 分页页码 * 示例值:10 */ @SerializedName("offset") private Integer offset; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsAssociateResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsAssociateResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 关联订单信息返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_9.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsAssociateResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:关联成功时间 * 变量名:wechatpay_associate_time * 是否必填:是 * 类型:string[1,32] * 描述: * 系统关联券成功的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "wechatpay_associate_time") private String wechatpayAssociateTime; /** * <pre>* 字段名:取消关联时间 * 变量名:wechatpay_associate_time * 是否必填:是 * 类型:string[1,32] * 描述: * 系统成功取消商家券与订单信息关联关系的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "wechatpay_disassociate_time") private String wechatpayDisassociateTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorQueryUserCouponsRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorQueryUserCouponsRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 根据过滤条件查询用户券请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_4.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorQueryUserCouponsRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * path Openid信息,用户在appid下的唯一标识。 示例值:2323dfsdf342342 * </pre> */ @SerializedName(value = "openid") private String openid; /** * <pre>* 字段名:公众账号ID * 变量名:appid * 是否必填:是 * 类型:string[1,32] * 描述: * query 支持传入与当前调用接口商户号有绑定关系的appid。支持小程序appid与公众号appid。 示例值:wx233544546545989 * </pre> */ @SerializedName(value = "appid") private String appid; /** * <pre>* 字段名:批次号 * 变量名:stock_id * 是否必填:否 * 类型:string[1,20] * 描述: * query 微信为每个商家券批次分配的唯一ID,是否指定批次号查询。 示例值:9865000 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:券状态 * 变量名:coupon_state * 是否必填:否 * 类型:string[1,16] * 描述: * query 券状态 枚举值: SENDED:可用 USED:已核销 EXPIRED:已过期 示例值:SENDED * </pre> */ @SerializedName(value = "coupon_state") private String couponState; /** * <pre>* 字段名:创建批次的商户号 * 变量名:creator_merchant * 是否必填:否 * 类型:string[1,32] * 描述: * query 批次创建方商户号 示例值:1000000001 * </pre> */ @SerializedName(value = "creator_merchant") private String creatorMerchant; /** * <pre>* 字段名:批次归属商户号 * 变量名:belong_merchant * 是否必填:否 * 类型:string[8,15] * 描述: * query 批次归属商户号 示例值:1000000002 * </pre> */ @SerializedName(value = "belong_merchant") private String belongMerchant; /** * <pre>* 字段名:批次发放商户号 * 变量名:sender_merchant * 是否必填:否 * 类型:string[1,32] * 描述: * query 批次发放商户号 示例值:1000000003 * </pre> */ @SerializedName(value = "sender_merchant") private String senderMerchant; /** * <pre>* 字段名:分页页码 * 变量名:offset * 是否必填:否 * 类型:int * 描述: * query 分页页码 示例值:0 * </pre> */ @SerializedName(value = "offset") private Integer offset; /** * <pre>* 字段名:分页大小 * 变量名:limit * 是否必填:否 * 类型:int * 描述: * query 分页大小 示例值:20 * </pre> */ @SerializedName(value = "limit") private Integer limit; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsReturnRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsReturnRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 申请退券请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_13.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsReturnRequest implements Serializable { /** * <pre>* 字段名:券code * 变量名:coupon_code * 是否必填:是 * 类型:string[1,20] * 描述: * body券的唯一标识 示例值:sxxe34343434 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; /** * <pre>* 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,32] * 描述: * body券的所属批次号 示例值:1234567891 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:退券请求单据号 * 变量名:return_request_no * 是否必填:是 * 类型:string[1, 128] * 描述: * body每次退券请求的唯一标识,商户需保证唯一 示例值:1002600620019090123143254436 * </pre> */ @SerializedName(value = "return_request_no") private String returnRequestNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCallbacksRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCallbacksRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 设置商家券事件通知地址请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_7.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCallbacksRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:商户号 * 变量名:mchid * 是否必填:否 * 类型:string[8,15] * 描述: * body 微信支付商户的商户号,由微信支付生成并下发,不填默认查询调用方商户的通知URL。 示例值:10000098 * </pre> */ @SerializedName(value = "mchid") private String mchid; /** * <pre>* 字段名:通知URL地址 * 变量名:notify_url * 是否必填:是 * 类型:string[10,256] * 描述: * body 商户提供的用于接收商家券事件通知的url地址,必须支持https。 示例值:https://pay.weixin.qq.com * </pre> */ @SerializedName(value = "notify_url") private String notifyUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsReturnResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsReturnResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 申请退券返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_13.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsReturnResult implements Serializable { /** * <pre>* 字段名:微信退券成功的时间 * 变量名:wechatpay_return_time * 是否必填:是 * 类型:string[1,32] * 描述: * 微信退券成功的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 示例值:2020-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "wechatpay_return_time") private String wechatpayReturnTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsAssociateRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsAssociateRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 关联订单信息请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_9.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsAssociateRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * body 微信为每个商家券批次分配的唯一ID,对于商户自定义code的批次,关联请求必须填写批次号 示例值:100088 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:券code * 变量名:coupon_code * 是否必填:是 * 类型:string[1,32] * 描述: * body 券的唯一标识 示例值:sxxe34343434 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; /** * <pre>* 字段名:关联的商户订单号 * 变量名:out_trade_no * 是否必填:是 * 类型:string[1,128] * 描述: * body 微信支付下单时的商户订单号,欲与该商家券关联的微信支付 示例值:MCH_102233445 * </pre> */ @SerializedName(value = "out_trade_no") private String outTradeNo; /** * <pre>* 字段名:商户请求单号 * 变量名:out_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * body 商户创建批次凭据号(格式:商户id+日期+流水号),商户侧需保持唯一性,可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号。 示例值:1002600620019090123143254435 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponCodeResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponCodeResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 上传预存code返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_6.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponCodeResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * 微信为每个商家券批次分配的唯一ID。 示例值:98065001 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:去重后上传code总数 * 变量名:total_count * 是否必填:是 * 类型:uint64 * 描述: * 本次上传操作,去重后实际上传的code数目。 示例值:500 * </pre> */ @SerializedName(value = "total_count") private Integer totalCount; /** * <pre>* 字段名:上传成功code个数 * 变量名:success_count * 是否必填:是 * 类型:uint64 * 描述: * 本次上传操作上传成功个数。 示例值:20 * </pre> */ @SerializedName(value = "success_count") private Integer successCount; /** * <pre>* 字段名:上传成功的code列表 * 变量名:success_codes * 是否必填:否 * 类型:array * 描述: * 本次新增上传成功的code信息。 特殊规则:单个券code长度为【1,32】,条目个数限制为【1,200】。 示例值:MMAA12345 * </pre> */ @SerializedName(value = "success_codes") private List<String> successCodes; /** * <pre>* 字段名:上传成功时间 * 变量名:success_time * 是否必填:是 * 类型:string[1,32] * 描述: * 上传操作完成时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre>* 字段名:上传失败code个数 * 变量名:fail_count * 是否必填:否 * 类型:uint64 * 描述: * 本次上传操作上传失败的code数。 示例值:10 * </pre> */ @SerializedName(value = "fail_count") private Integer failCount; /** * <pre>* 字段名:+上传失败的code及原因 * 变量名:fail_codes * 是否必填:否 * 类型:array * 描述: * 本次导入失败的code信息,请参照错误信息,修改后重试。 * </pre> */ @SerializedName(value = "fail_codes") private List<FailCode> failCodes; /** * <pre>* 字段名:已存在的code列表 * 变量名:exist_codes * 是否必填:否 * 类型:array * 描述: * 历史已存在的code列表,本次不会重复导入。 特殊规则:单个券code长度为【1,32】,条目个数限制为【1,200】。 示例值:ABCD2345 * </pre> */ @SerializedName(value = "exist_codes") private List<String> existCodes; /** * <pre>* 字段名:本次请求中重复的code列表 * 变量名:duplicate_codes * 是否必填:否 * 类型:array * 描述: * 本次重复导入的code会被自动过滤,仅保留一个做导入,如满足要求则成功;如不满足要求,则失败;请参照报错提示修改重试。 特殊规则:单个券code长度为【1,32】,条目个数限制为【1,200】。 示例值:AACC2345 * </pre> */ @SerializedName(value = "duplicate_codes") private List<String> duplicateCodes; @Data @NoArgsConstructor public static class FailCode implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:上传失败的券code * 变量名:coupon_code * 是否必填:是 * 类型:string[1,32] * 描述: * 商户通过API上传的券code。 示例值:ABCD23456 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; /** * <pre>* 字段名:上传失败错误码 * 变量名:code * 是否必填:是 * 类型:string[1,32] * 描述: * 对应券code上传失败的错误码。 示例值:LENGTH_LIMIT * </pre> */ @SerializedName(value = "code") private String code; /** * <pre>* 字段名:上传失败错误信息 * 变量名:message * 是否必填:是 * 类型:string[1,128] * 描述: * 上传失败的错误信息描述。 示例值:长度超过最大值32位 * </pre> */ @SerializedName(value = "message") private String message; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksPauseResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksPauseResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 暂停代金券批次返回结果对象 * * @author lichuang */ @NoArgsConstructor @Data public class FavorStocksPauseResult implements Serializable { private static final long serialVersionUID = 1L; /** * 生效时间 * <p> * 生效时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("pause_time") private String pauseTime; /** * 批次号 * <p> * 微信为每个代金券批次分配的唯一ID。 * 示例值:98065001 */ @SerializedName("stock_id") private String stockId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsQueryRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsQueryRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 根据商户号查用户的券 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_9.shtml * </pre> * * @author thinsstar */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class FavorCouponsQueryRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * 用户在商户appid 下的唯一标识。 * 示例值:2323dfsdf342342 * </pre> */ @SerializedName(value = "openid") private String openid; /** * <pre> * 字段名:公众账号ID * 变量名:appid * 是否必填:是 * 类型:string[1,128] * 描述: * 微信为发券方商户分配的公众账号ID,接口传入的所有appid应该为公众号的appid(在mp.weixin.qq.com申请的),不能为APP的appid(在open.weixin.qq.com申请的)。 * 示例值:wx233544546545989 * </pre> */ @SerializedName(value = "appid") private String appid; /** * <pre> * 字段名:批次号 * 变量名:stock_id * 是否必填:否 * 类型:string[1,20] * 描述: * 批次号,是否指定批次号查询,填写available_mchid,该字段不生效。 * 示例值:9865000 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:券状态 * 变量名:status * 是否必填:否 * 类型:string[1,6] * 描述: * 代金券状态: * SENDED:可用 * USED:已实扣 * 填写available_mchid,该字段不生效。 * 示例值:USED * </pre> */ @SerializedName(value = "status") private String status; /** * <pre> * 字段名:创建批次的商户号 * 变量名:creator_mchid * 是否必填:否 * 类型:string[1,20] * 描述: * 批次创建方商户号。 * 示例值:9865002 * </pre> */ @SerializedName(value = "creator_mchid") private String creatorMchid; /** * <pre> * 字段名:批次发放商户号 * 变量名:sender_mchid * 是否必填:否 * 类型:string[1,20] * 描述: * 批次创建方商户号。 * 示例值:9865002 * </pre> */ @SerializedName(value = "sender_mchid") private String senderMchid; /** * <pre> * 字段名:可用商户号 * 变量名:available_mchid * 是否必填:否 * 类型:string[1,20] * 描述: * 批次创建方商户号。 * 示例值:9865002 * </pre> */ @SerializedName(value = "available_mchid") private String availableMchid; /** * <pre> * 字段名:分页页码 * 变量名:offset * 是否必填:是 * 类型:uint32 * 描述: * 页码从0开始,默认第0页。 * 示例值:1 * </pre> */ @SerializedName(value = "offset") private Integer offset; /** * <pre> * 字段名:分页大小 * 变量名:limit * 是否必填:是 * 类型:uint32 * 描述: * 分页大小,最大10。 * 示例值:8 * </pre> */ @SerializedName(value = "limit") private Integer limit; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.github.binarywang.wxpay.bean.result.BaseWxPayV3Result; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 创建代金券批次返回结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorStocksCreateResult extends BaseWxPayV3Result { private static final long serialVersionUID = 1L; /** * 批次号 * <p> * 微信为每个代金券批次分配的唯一ID。 * 示例值:98065001 */ @SerializedName("stock_id") private String stockId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsUseResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsUseResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 核销事件回调内容 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorCouponsUseResult implements Serializable { private static final long serialVersionUID = 1L; /** * 创建批次的商户号 * <p> * 批次创建方商户号 * 示例值:9800064 */ @SerializedName("stock_creator_mchid") private String stockCreatorMchid; /** * 批次号 * <p> * 微信为每个代金券批次分配的唯一id。 * 示例值:9865888 */ @SerializedName("stock_id") private String stockId; /** * 代金券id * <p> * 微信为代金券唯一分配的id。 * 示例值:98674556 */ @SerializedName("coupon_id") private String couponId; /** * 单品优惠特定信息 * <p> * 单品优惠特定信息。 */ @SerializedName("singleitem_discount_off") private SingleitemDiscountOff singleitemDiscountOff; /** * 减至优惠特定信息 * <p> * 减至优惠限定字段,仅减至优惠场景有返回。 */ @SerializedName("discount_to") private DiscountTo discountTo; /** * 代金券名称 * <p> * 代金券名称 * 示例值:微信支付代金券 */ @SerializedName("coupon_name") private String couponName; /** * 代金券状态 * <p> * 代金券状态: * SENDED:可用 * USED:已实扣 * EXPIRED:已过期 * 示例值:EXPIRED */ @SerializedName("status") private String status; /** * 使用说明 * <p> * 代金券描述说明字段。 * 示例值:微信支付营销 */ @SerializedName("description") private String description; /** * 领券时间 * <p> * 领券时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值: 2015-05-20T13:29:35.120+08:00 */ @SerializedName("create_time") private String createTime; /** * 券类型 * <p> * 券类型: * NORMAL:满减券 * CUT_TO:减至券 * 示例值:CUT_TO */ @SerializedName("coupon_type") private String couponType; /** * 是否无资金流 * <p> * 枚举值: * true:是 * false:否 * 示例值:true */ @SerializedName("no_cash") private Boolean noCash; /** * 可用开始时间 * <p> * 可用开始时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值: 2015-05-20T13:29:35.120+08:00 */ @SerializedName("available_begin_time") private String availableBeginTime; /** * 可用结束时间 * <p> * 可用结束时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值: 2015-05-20T13:29:35.120+08:00 */ @SerializedName("available_end_time") private String availableEndTime; /** * 是否单品优惠 * <p> * 枚举值: * true:是 * false:否 * 示例值:true */ @SerializedName("singleitem") private Boolean singleitem; /** * 普通满减券信息 * <p> * 普通满减券面额、门槛信息。 */ @SerializedName("normal_coupon_information") private NormalCouponInformation normalCouponInformation; /** * 实扣代金券信息 * <p> * 普通满减券面额、门槛信息。 */ @SerializedName("consume_information") private ConsumeInformation consumeInformation; @Data @NoArgsConstructor public static class SingleitemDiscountOff implements Serializable { private static final long serialVersionUID = 1L; /** * 单品最高优惠价格 * <p> * 单品最高优惠价格,单位:分。 * 示例值:100 */ @SerializedName(value = "single_price_max") private Long singlePriceMax; } @Data @NoArgsConstructor public static class DiscountTo implements Serializable { private static final long serialVersionUID = 1L; /** * 减至后优惠单价 * <p> * 减至后优惠单价,单位:分。 * 示例值:100 */ @SerializedName(value = "cut_to_price") private Long cutToPrice; /** * 最高价格 * <p> * 可享受优惠的最高价格,单位:分。 * 示例值:20 */ @SerializedName(value = "max_price") private Long maxPrice; } @Data @NoArgsConstructor public static class NormalCouponInformation implements Serializable { private static final long serialVersionUID = 1L; /** * 面额 * <p> * 面额,单位:分。 * 示例值:100 */ @SerializedName(value = "coupon_amount") private Long couponAmount; /** * 门槛 * <p> * 使用券金额门槛,单位:分。 * 示例值:100 */ @SerializedName(value = "transaction_minimum") private Long transactionMinimum; } @Data @NoArgsConstructor public static class ConsumeInformation implements Serializable { private static final long serialVersionUID = 1L; /** * 核销时间 * <p> * 代金券核销时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName(value = "consume_time") private String consumeTime; /** * 核销商户号 * <p> * 核销代金券的商户号。 * 示例值:9856081 */ @SerializedName(value = "consume_mchid") private String consumeMchid; /** * 核销订单号 * <p> * 核销订单号 * 示例值:2345234523 */ @SerializedName(value = "transaction_id") private String transactionId; /** * 单品信息 * <p> * 商户下单接口传的单品信息。 */ @SerializedName("goods_detail") private List<GoodsDetail> goodsDetail; } @Data @NoArgsConstructor public static class GoodsDetail implements Serializable { private static final long serialVersionUID = 1L; /** * 单品编码 * <p> * 单品券创建时录入的单品编码。 * 示例值:a_goods1 */ @SerializedName(value = "goods_id") private String goodsId; /** * 单品数量 * <p> * 单品数据 * 示例值:7 */ @SerializedName(value = "quantity") private Integer quantity; /** * 单品单价 * <p> * 单品单价 * 示例值:1 */ @SerializedName(value = "price") private Integer price; /** * 优惠金额 * <p> * 优惠金额 * 示例值:4 */ @SerializedName(value = "discount_amount") private Integer discountAmount; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorNotifyRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorNotifyRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 领券事件回调通知API请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_15.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorNotifyRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:通知ID * 变量名:id * 是否必填:是 * 类型:string[1,36] * 描述: * 通知的唯一id。 示例值:8b33f79f-8869-5ae5-b41b-3c0b59f957d0 * </pre> */ @SerializedName(value = "id") private String id; /** * <pre>* 字段名:通知创建时间 * 变量名:create_time * 是否必填:是 * 类型:string[1,32] * 描述: * 通知创建的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日13点29分35秒。 示例值:2019-12-12T16:54:38+08:00 * </pre> */ @SerializedName(value = "create_time") private String createTime; /** * <pre>* 字段名:通知类型 * 变量名:event_type * 是否必填:是 * 类型:string[1,32] * 描述: * 券的回调通知类型,枚举值: COUPON.SEND:领券 示例值:COUPON.SEND * </pre> */ @SerializedName(value = "event_type") private String eventType; /** * <pre>* 字段名:通知数据类型 * 变量名:resource_type * 是否必填:是 * 类型:string[1,32] * 描述: * 通知的资源数据类型,券的回调通知为encrypt-resource。 示例值:encrypt-resource * </pre> */ @SerializedName(value = "resource_type") private String resourceType; /** * <pre>* 字段名:回调摘要 * 变量名:summary * 是否必填:是 * 类型:string[1,64] * 描述: * 回调摘要 示例值:商家券领券通知 * </pre> */ @SerializedName(value = "summary") private String summary; /** * <pre>* 字段名:+通知数据 * 变量名:resource * 是否必填:是 * 类型:object * 描述: * 通知资源数据。 json格式,见示例 * </pre> */ @SerializedName(value = "resource") private Resource resource; @Data @NoArgsConstructor public static class Resource { /** * <pre>* 字段名:加密算法类型 * 变量名:algorithm * 是否必填:是 * 类型:string[1,32] * 描述: * 对开启结果数据进行加密的加密算法,目前只支持AEAD_AES_256_GCM。 示例值:AEAD_AES_256_GCM * </pre> */ @SerializedName(value = "algorithm") private String algorithm; /** * <pre>* 字段名:数据密文 * 变量名:ciphertext * 是否必填:是 * 类型:string[1,1048576] * 描述: * Base64编码后的开启/停用结果数据密文。 * </pre> */ @SerializedName(value = "ciphertext") private String ciphertext; /** * <pre>* 字段名:附加数据 * 变量名:associated_data * 是否必填:否 * 类型:string[1,16] * 描述: * 附加数据 示例值:coupon * </pre> */ @SerializedName(value = "associated_data") private String associatedData; /** * <pre>* 字段名:随机串 * 变量名:nonce * 是否必填:是 * 类型:string[1,16] * 描述: * 加密使用的随机串。 示例值:j9g1wAzF9Xn1 * </pre> */ @SerializedName(value = "nonce") private String nonce; /** * <pre>* 字段名:原始回调类型 * 变量名:original_type * 是否必填:是 * 类型:string[1,64] * 描述: * 原始回调类型,券的原始回调类型为coupon 示例值:coupon * </pre> */ @SerializedName(value = "original_type") private String originalType; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsDeactivateResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsDeactivateResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 使券失效返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_14.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsDeactivateResult implements Serializable { /** * <pre>* 字段名:券成功失效的时间 * 变量名:wechatpay_deactivate_time * 是否必填:是 * 类型:string[1,32] * 描述: * 系统券成功失效的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 示例值:2020-05-20T13:29:35.08:00 * </pre> */ @SerializedName(value = "wechatpay_deactivate_time") private String wechatpayDeactivateTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsCreateRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsCreateRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 发放代金券 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_2.shtml * </pre> * * @author thinsstar */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class FavorCouponsCreateRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * 微信为每个批次分配的唯一id。 * 校验规则:必须为代金券(全场券或单品券)批次号,不支持立减与折扣。 * 示例值:9856000 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:商户单据号 * 变量名:out_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * 商户此次发放凭据号(格式:商户id+日期+流水号),可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号,商户侧需保持唯一性。 * 示例值: 89560002019101000121 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:公众账号ID * 变量名:appid * 是否必填:是 * 类型:string[1,128] * 描述: * 微信为发券方商户分配的公众账号ID,接口传入的所有appid应该为公众号的appid或者小程序的appid(在mp.weixin.qq.com申请的),不能为APP的appid(在open.weixin.qq.com申请的)。。 * 校验规则: * 1、该appid需要与接口传入中的openid有对应关系; * 2、该appid需要与调用接口的商户号(即请求头中的商户号)有绑定关系,若未绑定,可参考该指引完成绑定(商家商户号与AppID账号关联管理) * 示例值:wx233544546545989 * </pre> */ @SerializedName(value = "appid") private String appid; /** * <pre> * 字段名:创建批次的商户号 * 变量名:stock_creator_mchid * 是否必填:是 * 类型:string[1,20] * 描述: * 批次创建方商户号。 * 示例值:8956000 * </pre> */ @SerializedName(value = "stock_creator_mchid") private String stockCreatorMchid; /** * <pre> * 字段名:指定面额发券,面额 * 变量名:coupon_value * 是否必填:否 * 类型:uint64 * 描述: * 指定面额发券场景,券面额,其他场景不需要填,单位:分。 * 校验规则:仅在发券时指定面额及门槛的场景才生效,常规发券场景请勿传入该信息。 * 示例值:100 * </pre> */ @SerializedName(value = "coupon_value") private Integer couponValue; /** * <pre> * 字段名:指定面额发券,券门槛 * 变量名:coupon_minimum * 是否必填:是 * 类型:uint64 * 描述: * 指定面额发券批次门槛,其他场景不需要,单位:分。 * 校验规则:仅在发券时指定面额及门槛的场景才生效,常规发券场景请勿传入该信息。 * 示例值:100 * </pre> */ @SerializedName(value = "coupon_minimum") private Integer couponMinimum; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsCreateResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsCreateResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 发放代金券返回结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorCouponsCreateResult implements Serializable { private static final long serialVersionUID = 1L; /** * 代金券id * <p> * 发放给用户的代金券id。 * 示例值:9867041 */ @SerializedName("coupon_id") private String couponId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksGetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksGetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.github.binarywang.wxpay.bean.result.BaseWxPayV3Result; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 查询批次详情结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorStocksGetResult extends BaseWxPayV3Result { private static final long serialVersionUID = 1L; /** * 批次号 * <p> * 微信为每个代金券批次分配的唯一id。 * 示例值:9836588 */ @SerializedName("stock_id") private String stockId; /** * 创建批次的商户号 * <p> * 批次创建方商户号。 * 示例值:123456 */ @SerializedName("stock_creator_mchid") private String stockCreatorMchId; /** * 批次名称 * <p> * 批次名称 * 示例值:微信支付批次 */ @SerializedName("stock_name") private String stockName; /** * 批次状态 * <p> * 批次状态 * 枚举值: * unactivated:未激活 * audit:审核中 * running:运行中 * stoped:已停止 * paused:暂停发放 * 示例值:paused */ @SerializedName("status") private String status; /** * 创建时间 * <p> * 批次创建时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("create_time") private String createTime; /** * 使用说明 * <p> * 批次描述信息 * 示例值:微信支付营销 */ @SerializedName("description") private String description; /** * 满减券批次使用规则 * <p> * 普通发券批次特定信息。 * 示例值:1900000109 */ @SerializedName("stock_use_rule") private StockUseRule stockUseRule; /** * 可用开始时间 * <p> * 可用开始时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("available_begin_time") private String availableBeginTime; /** * 可用结束时间 * <p> * 可用结束时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("available_end_time") private String availableEndTime; /** * 已发券数量 * <p> * 已发券数量 * 示例值:100 */ @SerializedName("distributed_coupons") private Long distributedCoupons; /** * 是否无资金流 * <p> * 是否无资金流。 * ture:是 * false:否 * 示例值:true */ @SerializedName("no_cash") private Boolean noCash; /** * 激活批次的时间 * <p> * 批次激活开启时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("start_time") private String startTime; /** * 终止批次的时间 * <p> * 批次永久停止时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("stop_time") private String stopTime; /** * 单品优惠特定信息 * <p> * 单品优惠特定信息 */ @SerializedName("cut_to_message") private CutToMessage cutToMessage; /** * 是否单品优惠 * <p> * 枚举值: * true:是 * false:否 * 示例值:true */ @SerializedName("singleitem") private Boolean singleItem; /** * 批次类型 * <p> * 批次类型, 枚举值: * NORMAL:代金券批次 * DISCOUNT_CUT:立减与折扣 * OTHER:其他 * 示例值:NORMAL */ @SerializedName("stock_type") private String stockType; @Data @NoArgsConstructor public static class CutToMessage implements Serializable { private static final long serialVersionUID = 1L; /** * 可用优惠的商品最高单价 * <p> * 可用优惠的商品最高单价,单位:分。 * 示例值:100 */ @SerializedName(value = "single_price_max") private Long singlePriceMax; /** * 减至后的优惠单价 * <p> * 减至后的优惠单价,单位:分。 * 示例值:100 */ @SerializedName(value = "cut_to_price") private Long cutToPrice; } @Data @NoArgsConstructor public static class StockUseRule implements Serializable { private static final long serialVersionUID = 1L; /** * 发放总上限 * <p> * 最大发券数 * 示例值:100 */ @SerializedName(value = "max_coupons") private Long maxCoupons; /** * 总预算 * <p> * 总消耗金额,单位:分。 * 示例值:5000 */ @SerializedName(value = "max_amount") private Long maxAmount; /** * 单天发放上限金额 * <p> * 单天最高消耗金额,单位:分。 * 示例值:400 */ @SerializedName(value = "max_amount_by_day") private Long maxAmountByDay; /** * 固定面额批次特定信息 * <p> * 固定面额发券批次特定信息。 */ @SerializedName(value = "fixed_normal_coupon") private FixedNormalCoupon fixedNormalCoupon; /** * 单个用户可领个数 * <p> * 单个用户可领个数,每个用户最多100张券 * 示例值:3 */ @SerializedName(value = "max_coupons_per_user") private Long maxCouponsPerUser; /** * 券类型 * <p> * 枚举值: * NORMAL:满减券 * CUT_TO:减至券 * 示例值:NORMAL */ @SerializedName(value = "coupon_type") private String couponType; /** * 订单优惠标记 * <p> * 订单优惠标记 * 特殊规则:单个优惠标记的字符长度为【1,128】,条目个数限制为【1,50】。 * 示例值:{'123456','23456'} */ @SerializedName(value = "goods_tag") private List<String> goodsTag; /** * 支付方式 * <p> * 默认不限制 * 枚举值: * MICROAPP:小程序支付 * APPPAY:APP支付 * PPAY:免密支付 * CARD:付款码支付 * FACE:人脸支付 * OTHER:(公众号、扫码等) * 示例值:MICROAPP */ @SerializedName(value = "trade_type") private List<String> tradeType; /** * 是否可叠加其他优惠 * <p> * 枚举值: * true:是 * false:否 * 示例值:true */ @SerializedName(value = "combine_use") private Boolean combineUse; } @Data @NoArgsConstructor public static class FixedNormalCoupon implements Serializable { private static final long serialVersionUID = 1L; /** * 面额 * <p> * 面额,单位:分。 * 示例值:100 */ @SerializedName(value = "coupon_amount") private Long couponAmount; /** * 门槛 * <p> * 使用券金额门槛,单位:分。 * 示例值:100 */ @SerializedName(value = "transaction_minimum") private Long transactionMinimum; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksMerchantsGetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksMerchantsGetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 查询批次可以商户结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorStocksMerchantsGetResult implements Serializable { private static final long serialVersionUID = 1L; /** * 可用商户总数量 * <p> * 可用商户总数量。 * 示例值: 200 */ @SerializedName("total_count") private Integer totalCount; /** * 可用商户列表 * <p> * 可用商户列表 * 特殊规则:单个商户号的字符长度为【1,20】,条目个数限制为【1,50】。 * 示例值:1232001 */ @SerializedName("data") private List<String> data; /** * 分页大小 * <p> * 分页大小,最大10。 * 示例值:8 */ @SerializedName("limit") private Integer limit; /** * 分页页码 * <p> * 页码从0开始,默认第0页。 * 示例值:1 */ @SerializedName("offset") private Integer offset; /** * 批次号 * <p> * 批次号 * 示例值: 9865000 */ @SerializedName("stock_id") private String stockId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponCodeRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponCodeRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 上传预存code请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_6.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponCodeRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * path 微信为每个商家券批次分配的唯一ID 示例值:98065001 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:券code列表 * 变量名:coupon_code_list * 是否必填:否 * 类型:array * 描述: * body 商户上传的券code列表,code允许包含的字符有0-9、a-z、A-Z、-、_、\、/、=、|。 特殊规则:单个券code长度为【1,32】,条目个数限制为【1,200】。 示例值:ABC9588200,ABC9588201 * </pre> */ @SerializedName(value = "coupon_code_list") private List<String> couponCodeList; /** * <pre>* 字段名:请求业务单据号 * 变量名:upload_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * body 商户上传code的凭据号,商户侧需保持唯一性。 示例值:100002322019090134234sfdf * </pre> */ @SerializedName(value = "upload_request_no") private String uploadRequestNo; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsDeactivateRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsDeactivateRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 使券失效请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_14.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsDeactivateRequest implements Serializable { /** * <pre>* 字段名:券code * 变量名:coupon_code * 是否必填:是 * 类型:string[1,32] * 描述: * body券的唯一标识 示例值:sxxe34343434 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; /** * <pre>* 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * body券的所属批次号 示例值:1234567891 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:失效请求单据号 * 变量名:deactivate_request_no * 是否必填:是 * 类型:string[1, 128] * 描述: * body每次失效请求的唯一标识,商户需保证唯一 示例值:1002600620019090123143254436 * </pre> */ @SerializedName(value = "deactivate_request_no") private String deactivateRequestNo; /** * <pre>* 字段名:失效原因 * 变量名:deactivate_reason * 是否必填:否 * 类型:string[1, 64] * 描述: * body商户失效券的原因 示例值:此券使用时间设置错误 * </pre> */ @SerializedName(value = "deactivate_reason") private String deactivateReason; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksFlowGetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksFlowGetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 获取下载结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorStocksFlowGetResult implements Serializable { private static final long serialVersionUID = 1L; /** * 下载链接 * <p> * 流水文件下载链接,30s内有效。 * 示例值:download://example.csv */ @SerializedName("url") private String url; /** * 安全校验码 * <p> * 文件内容的哈希值,防止篡改。 * 示例值:8ae0eb442c408d2e90d669d6f4ad6b7e6e049d6f */ @SerializedName("hash_value") private String hashValue; /** * 哈希算法类型 * <p> * 哈希算法类型,目前只支持SHA1。 * 示例值:SHA1 */ @SerializedName("hash_type") private String hashType; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksBudgetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksBudgetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 修改批次预算返回对象 * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_11.shtml * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorStocksBudgetResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:批次当前最大发放个数 * 变量名:max_coupons * 是否必填:是 * 类型:int * 描述: * 批次最大发放个数 示例值:300 * </pre> */ @SerializedName(value = "max_coupons") private Integer maxCoupons; /** * <pre>* 字段名:当前单天发放上限个数 * 变量名:max_coupons_by_day * 是否必填:否 * 类型:int * 描述: * 当前单天发放上限个数 示例值:100 * </pre> */ @SerializedName(value = "max_coupons_by_day") private Integer maxCouponsByDay; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsUseResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsUseResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 核销用户券返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_3.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsUseResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * 微信为每个商家券批次分配的唯一ID * 示例值: 100088 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * 用户在公众号内的唯一身份标识。 * 示例值:dsadas34345454545 * </pre> */ @SerializedName(value = "openid") private String openid; /** * <pre> * 字段名:系统核销券成功的时间 * 变量名:wechatpay_use_time * 是否必填:是 * 类型:string[1,32] * 描述: * 系统成功核销券的时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "wechatpay_use_time") private String wechatpayUseTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsUseRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCouponsUseRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 核销用户券请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_3.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCouponsUseRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:券code * 变量名:coupon_code * 是否必填:是 * 类型:string[1,32] * 描述: * 券的唯一标识。 * 示例值:sxxe34343434 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; /** * <pre> * 字段名:批次号 * 变量名:stock_id * 是否必填:否 * 类型:string[1,20] * 描述: * 微信为每个商家券批次分配的唯一ID,批次券Code模式是MERCHANT_API或者MERCHANT_UPLOAD时,核销时必须填写批次号 * 示例值:100088 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre> * 字段名:公众账号ID * 变量名:appid * 是否必填:是 * 类型:string[1,32] * 描述: * 支持传入与当前调用接口商户号有绑定关系的appid。支持小程序appid与公众号appid。核销接口返回的openid会在该传入appid下进行计算获得。 * 示例值:wx1234567889999 * </pre> */ @SerializedName(value = "appid") private String appId; /** * <pre> * 字段名:请求核销时间 * 变量名:use_time * 是否必填:是 * 类型:string[1,32] * 描述: * 商户请求核销用户券的时间。 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "use_time") private String useTime; /** * <pre> * 字段名:核销请求单据号 * 变量名:use_request_no * 是否必填:是 * 类型:string[1,32] * 描述: * 每次核销请求的唯一标识,商户需保证唯一。 * 示例值:1002600620019090123143254435 * </pre> */ @SerializedName(value = "use_request_no") private String useRequestNo; /** * <pre> * 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * 用户的唯一标识,做安全校验使用,非必填。 * 示例值:xsd3434454567676 * </pre> */ @SerializedName(value = "openid") private String openid; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksUserGetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksUserGetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.github.binarywang.wxpay.bean.marketing.busifavor.*; import com.github.binarywang.wxpay.bean.marketing.enums.StockTypeEnum; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 用户单张券详情返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_5.shtml * </pre> * TODO: * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorStocksUserGetResult { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次名称 * 变量名:stock_name * 是否必填:是 * 类型:string[1,21] * 描述: * 批次名称 * 校验规则: * 1、批次名称最多9个中文汉字 * 2、批次名称最多20个字母 * 3、批次名称中不能包含不当内容和特殊字符 _ , ; | * 示例值:微信支付代金券批次 * </pre> */ @SerializedName(value = "stock_name") private String stockName; /** * <pre> * 字段名:归属商户号 * 变量名:belong_merchant * 是否必填:是 * 类型:string[8,15] * 描述: * 批次归属商户号 * 该字段暂未开放 * 示例值:98568865 * </pre> */ @SerializedName(value = "belong_merchant") private String belongMerchant; /** * <pre> * 字段名:批次备注 * 变量名:comment * 是否必填:否 * 类型:string[1,20] * 描述: * 仅制券商户可见,用于自定义信息。 * 校验规则:批次备注最多60个UTF8字符数 * 示例值:零售批次 * </pre> */ @SerializedName(value = "comment") private String comment; /** * <pre> * 字段名:适用商品范围 * 变量名:goods_name * 是否必填:是 * 类型:string[1,15] * 描述: * 用来描述批次在哪些商品可用,会显示在微信卡包中。字数上限为15个,一个中文汉字/英文字母/数字均占用一个字数。 * 示例值:xxx商品使用 * </pre> */ @SerializedName(value = "goods_name") private String goodsName; /** * <pre> * 字段名:批次类型 * 变量名:stock_type * 是否必填:是 * 类型:string[1,32] * 描述: * 批次类型 * NORMAL:固定面额满减券批次 * DISCOUNT:折扣券批次 * EXCHANGE:换购券批次 * 示例值:NORMAL * </pre> */ @SerializedName(value = "stock_type") private StockTypeEnum stockType; /** * <pre> * 字段名:核销规则 * 变量名:coupon_use_rule * 是否必填:是 * 类型:object * 描述:核销规则 * </pre> */ @SerializedName(value = "coupon_use_rule") private CouponUseRule couponUseRule; /** * <pre> * 字段名:券发放相关规则 * 变量名:stock_send_rule * 是否必填:是 * 类型:object * 描述:券发放相关规则 * </pre> */ @SerializedName(value = "stock_send_rule") private StockSendRule stockSendRule; /** * <pre> * 字段名:商户单据号 * 变量名:out_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * 商户创建批次凭据号(格式:商户id+日期+流水号),可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号,商户侧需保持商户单据号全局唯一。 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:自定义入口 * 变量名:custom_entrance * 是否必填:否 * 类型:object * 描述:卡详情页面,可选择多种入口引导用户。 * </pre> */ @SerializedName(value = "custom_entrance") private CustomEntrance customEntrance; /** * <pre> * 字段名:样式信息 * 变量名:display_pattern_info * 是否必填:否 * 类型:object * 描述:创建批次时的样式信息。 * </pre> */ @SerializedName(value = "display_pattern_info") private DisplayPatternInfo displayPatternInfo; /** * <pre> * 字段名:券code模式 * 变量名:coupon_code_mode * 是否必填:是 * 类型:string[1,128] * 描述:枚举值: * WECHATPAY_MODE:系统分配券code。(固定22位纯数字) * MERCHANT_API:商户发放时接口指定券code。 * MERCHANT_UPLOAD:商户上传自定义code,发券时系统随机选取上传的券code。 * </pre> */ @SerializedName(value = "coupon_code_mode") private String couponCodeMode; /** * <pre> * 字段名:事件通知配置 * 变量名:notify_config * 是否必填:否 * 类型:object * 描述:事件回调通知商户的配置 * </pre> */ @SerializedName(value = "notify_config") private NotifyConfig notifyConfig; /** * <pre> * 字段名:批次发放情况 * 变量名:send_count_information * 是否必填:否 * 类型:object * 描述:批次发放情况 * </pre> */ @SerializedName(value = "send_count_information") private SendCountInformation sendCountInformation; @Data @NoArgsConstructor public static class SendCountInformation implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:已发放券张数 * 变量名:total_send_num * 是否必填:否 * 类型:uint64 * 描述: * 批次已发放的券数量,满减、折扣、换购类型会返回该字段 * 示例值:1 * </pre> */ @SerializedName(value = "total_send_num") private Integer totalSendNum; /** * <pre> * 字段名:已发放券金额 * 变量名:total_send_amount * 是否必填:否 * 类型:uint64 * 描述: * 批次已发放的预算金额,满减券类型会返回该字段 * 示例值:34 * </pre> */ @SerializedName(value = "total_send_amount") private Integer totalSendAmount; /** * <pre> * 字段名:单天已发放券张数 * 变量名:today_send_num * 是否必填:否 * 类型:uint64 * 描述: * 批次当天已发放的券数量,设置了单天发放上限的满减、折扣、换购类型返回该字段 * 示例值:1 * </pre> */ @SerializedName(value = "today_send_num") private String todaySendNum; /** * <pre> * 字段名:单天已发放券金额 * 变量名:today_send_amount * 是否必填:否 * 类型:uint64 * 描述: * 批次当天已发放的预算金额,设置了当天发放上限的满减券类型返回该字段 * 示例值:34 * </pre> */ @SerializedName(value = "today_send_amount") private String todaySendAmount; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksRestartResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksRestartResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 重启代金券批次返回结果对象 * * @author lichuang */ @NoArgsConstructor @Data public class FavorStocksRestartResult implements Serializable { private static final long serialVersionUID = 1L; /** * 生效时间 * <p> * 生效时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("restart_time") private String restartTime; /** * 批次号 * <p> * 微信为每个代金券批次分配的唯一ID。 * 示例值:98065001 */ @SerializedName("stock_id") private String stockId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorSubsidyResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorSubsidyResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 营销补差付款返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_16.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorSubsidyResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:补差付款单号 * 变量名:subsidy_receipt_id * 是否必填:是 * 类型:string[28, 32] * 描述: * 补差付款唯一单号,由微信支付生成,仅在补差付款成功后有返回 示例值:1120200119165100000000000001 * </pre> */ @SerializedName(value = "subsidy_receipt_id") private String subsidyReceiptId; /** * <pre>* 字段名:商家券批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1, 20] * 描述: * 由微信支付生成,调用创建商家券API成功时返回的唯一批次ID 示例值:128888000000001 * </pre> */ @SerializedName(value = "stock_id") private String stockId; /** * <pre>* 字段名:商家券Code * 变量名:coupon_code * 是否必填:是 * 类型:string[1, 128] * 描述: * 券的唯一标识 示例值:ABCD12345678 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; /** * <pre>* 字段名:微信支付订单号 * 变量名:transaction_id * 是否必填:是 * 类型:string[28, 32] * 描述: * 微信支付下单支付成功返回的订单号 示例值:4200000913202101152566792388 * </pre> */ @SerializedName(value = "transaction_id") private String transactionId; /** * <pre>* 字段名:营销补差扣款商户号 * 变量名:payer_merchant * 是否必填:是 * 类型:string[1, 32] * 描述: * 营销补差扣款商户号 示例值:1900000001 * </pre> */ @SerializedName(value = "payer_merchant") private String payerMerchant; /** * <pre>* 字段名:营销补差入账商户号 * 变量名:payee_merchant * 是否必填:是 * 类型:string[1, 32] * 描述: * 营销补差入账商户号 示例值:1900000002 * </pre> */ @SerializedName(value = "payee_merchant") private String payeeMerchant; /** * <pre>* 字段名:补差付款金额 * 变量名:amount * 是否必填:是 * 类型:int * 描述: * 单位为分,单笔订单补差金额不得超过券的优惠金额,最高补差金额为5000元 > 券的优惠金额定义: 满减券:满减金额即为优惠金额 折扣券:优惠金额 = 微信支付订单金额 ÷ 折扣比例 × (1 - 折扣比例) 换购券:不支持 示例值:100 * </pre> */ @SerializedName(value = "amount") private Integer amount; /** * <pre>* 字段名:补差付款描述 * 变量名:description * 是否必填:是 * 类型:string[1, 1024] * 描述: * 付款备注描述,查询的时候原样带回 示例值:20210115DESCRIPTION * </pre> */ @SerializedName(value = "description") private String description; /** * <pre>* 字段名:补差付款单据状态 * 变量名:status * 是否必填:是 * 类型:string[1, 32] * 描述: * 补差付款单据状态 ACCEPTED:受理成功 SUCCESS:补差补款成功 FAIL:补差付款失败 RETURNING:补差回退中 PARTIAL_RETURN:补差部分回退 FULL_RETURN:补差全额回退 示例值:SUCCESS * </pre> */ @SerializedName(value = "status") private String status; /** * <pre>* 字段名:补差付款失败原因 * 变量名:fail_reason * 是否必填:否 * 类型:string[1, 1024] * 描述: * 仅在补差付款失败时,返回告知对应失败的原因 INSUFFICIENT_BALANCE:扣款商户余额不足 NOT_INCOMESPLIT_ORDER:非分账订单 EXCEED_SUBSIDY_AMOUNT_QUOTA:超出订单补差总额限制 EXCEED_SUBSIDY_COUNT_QUOTA:超出订单补差总数限制 OTHER:其他原因 示例值:INSUFFICIENT_BALANCE * </pre> */ @SerializedName(value = "fail_reason") private String failReason; /** * <pre>* 字段名:补差付款完成时间 * 变量名:success_time * 是否必填:否 * 类型:string[28, 32] * 描述: * 仅在补差付款成功时,返回完成时间。遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.+08:00表示,北京时间2015年5月20日 13点29分35秒。 示例值:2021-01-20T10:29:35+08:00 * </pre> */ @SerializedName(value = "success_time") private String successTime; /** * <pre>* 字段名:业务请求唯一单号 * 变量名:out_subsidy_no * 是否必填:是 * 类型:string[1, 128] * 描述: * 商户侧需保证唯一性。可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号 示例值:subsidy-abcd-12345678 * </pre> */ @SerializedName(value = "out_subsidy_no") private String outSubsidyNo; /** * <pre>* 字段名:补差付款发起时间 * 变量名:create_time * 是否必填:否 * 类型:string[28, 32] * 描述: * 补差付款单据创建时间。遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.+08:00表示,北京时间2015年5月20日 13点29分35秒。 示例值:2021-01-20T10:29:35+08:00 * </pre> */ @SerializedName(value = "create_time") private String createTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksSetRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksSetRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 激活代金券批次 * 暂停代金券批次 * 重启代金券批次 * <pre> * 文档地址: * https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_3.shtml * https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_13.shtml * https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_14.shtml * </pre> * * @author thinsstar */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class FavorStocksSetRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:创建批次的商户号 * 变量名:stock_creator_mchid * 是否必填:是 * 类型:string[1,20] * 描述: * 批次创建方商户号。 * 示例值:8956000 * </pre> */ @SerializedName(value = "stock_creator_mchid") private String stockCreatorMchid; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsGetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCouponsGetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.github.binarywang.wxpay.bean.result.BaseWxPayV3Result; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 查询代金券详情结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorCouponsGetResult extends BaseWxPayV3Result { private static final long serialVersionUID = 1L; /** * 创建批次的商户号 * <p> * 批次创建方商户号 * 示例值:9800064 */ @SerializedName("stock_creator_mchid") private String stockCreatorMchid; /** * 批次号 * <p> * 微信为每个代金券批次分配的唯一id。 * 示例值:9865888 */ @SerializedName("stock_id") private String stockId; /** * 代金券id * <p> * 微信为代金券唯一分配的id。 * 示例值:98674556 */ @SerializedName("coupon_id") private String couponId; /** * 单品优惠特定信息 * <p> * 单品优惠特定信息 */ @SerializedName("cut_to_message") private CutToMessage cutToMessage; /** * 代金券名称 * <p> * 代金券名称 * 示例值:微信支付代金券 */ @SerializedName("coupon_name") private String couponName; /** * 代金券状态 * <p> * 代金券状态: * SENDED:可用 * USED:已实扣 * EXPIRED:已过期 * 示例值:EXPIRED */ @SerializedName("status") private String status; /** * 使用说明 * <p> * 代金券描述说明字段。 * 示例值:微信支付营销 */ @SerializedName("description") private String description; /** * 领券时间 * <p> * 领券时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值: 2015-05-20T13:29:35.120+08:00 */ @SerializedName("create_time") private String createTime; /** * 券类型 * <p> * 券类型: * NORMAL:满减券 * CUT_TO:减至券 * 示例值:CUT_TO */ @SerializedName("coupon_type") private String couponType; /** * 是否无资金流 * <p> * 枚举值: * true:是 * false:否 * 示例值:true */ @SerializedName("no_cash") private Boolean noCash; /** * 可用开始时间 * <p> * 可用开始时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值: 2015-05-20T13:29:35.120+08:00 */ @SerializedName("available_begin_time") private String availableBeginTime; /** * 可用结束时间 * <p> * 可用结束时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值: 2015-05-20T13:29:35.120+08:00 */ @SerializedName("available_end_time") private String availableEndTime; /** * 是否单品优惠 * <p> * 枚举值: * true:是 * false:否 * 示例值:true */ @SerializedName("singleitem") private Boolean singleitem; /** * 商户单据号 * <p> * 商户此次发放凭据号(格式:商户id+日期+流水号),可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号,商户侧需保持唯一性。 * 示例值: 89560002019101000121 */ @SerializedName("out_request_no") private String outRequestNo; /** * 满减券信息 * <p> * 普通满减券面额、门槛信息。 */ @SerializedName("normal_coupon_information") private NormalCouponInformation normalCouponInformation; @Data @NoArgsConstructor public static class CutToMessage implements Serializable { private static final long serialVersionUID = 1L; /** * 可用优惠的商品最高单价 * <p> * 可用优惠的商品最高单价,单位:分。 * 示例值:100 */ @SerializedName(value = "single_price_max") private Long singlePriceMax; /** * 减至后的优惠单价 * <p> * 减至后的优惠单价,单位:分。 * 示例值:100 */ @SerializedName(value = "cut_to_price") private Long cutToPrice; } @Data @NoArgsConstructor public static class NormalCouponInformation implements Serializable { private static final long serialVersionUID = 1L; /** * 面额 * <p> * 面额,单位:分。 * 示例值:100 */ @SerializedName(value = "coupon_amount") private Integer couponAmount; /** * 门槛 * <p> * 使用券金额门槛,单位:分。 * 示例值:100 */ @SerializedName(value = "transaction_minimum") private Integer transactionMinimum; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorNotifyResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorNotifyResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 领券事件回调通知API返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_15.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorNotifyResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:返回状态码 * 变量名:code * 是否必填:是 * 类型:string[1,32] * 描述: * 错误码,SUCCESS为清算机构接收成功,其他错误码为失败。 示例值:SUCCESS * </pre> */ @SerializedName(value = "code") private String code; /** * <pre>* 字段名:返回信息 * 变量名:message * 是否必填:是 * 类型:string[1,64] * 描述: * 返回信息,如非空,为错误原因。 示例值:系统错误 * </pre> */ @SerializedName(value = "message") private String message; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksItemsGetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksItemsGetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 查询批次可以单品结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorStocksItemsGetResult implements Serializable { private static final long serialVersionUID = 1L; /** * 可用单品编码总数 * <p> * 可用单品编码总数。 * 示例值: 200 */ @SerializedName("total_count") private Integer totalCount; /** * 可用单品编码 * <p> * 可用单品编码 * 特殊规则:单个商品编码的字符长度为【1,128】,条目个数限制为【1,50】。 * 示例值:1232001 */ @SerializedName("data") private List<String> data; /** * 分页大小 * <p> * 分页大小,最大10。 * 示例值:8 */ @SerializedName("limit") private Integer limit; /** * 分页页码 * <p> * 页码从0开始,默认第0页。 * 示例值:1 */ @SerializedName("offset") private Integer offset; /** * 批次号 * <p> * 批次号 * 示例值: 9865000 */ @SerializedName("stock_id") private String stockId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCallbacksSaveRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCallbacksSaveRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 设置消息通知地址 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_12.shtml * </pre> * * @author thinsstar */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class FavorCallbacksSaveRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:商户号 * 变量名:mchid * 是否必填:是 * 类型:string[1,20] * 描述: * 微信支付商户号。 * 示例值:9856888 * </pre> */ @SerializedName(value = "mchid") private String mchid; /** * <pre> * 字段名:通知url地址 * 变量名:notify_url * 是否必填:是 * 类型:string[1,256] * 描述: * 支付通知商户url地址。 * 示例值:https://pay.weixin.qq.com * </pre> */ @SerializedName(value = "notify_url") private String notifyUrl; /** * <pre> * 字段名:回调开关 * 变量名:switch * 是否必填:否 * 类型:bool * 描述: * 如果商户不需要再接收营销事件通知,可通过该开关关闭。枚举值: * true:开启推送 * false:停止推送 * 示例值:true * </pre> */ @SerializedName(value = "switch") private Boolean switchBool; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCallbacksResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorCallbacksResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 设置商家券事件通知地址返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_7.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorCallbacksResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:修改时间 * 变量名:update_time * 是否必填:否 * 类型:string[1,32] * 描述: * 修改时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35+08:00表示,北京时间2015年5月20日 13点29分35秒。 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName(value = "update_time") private String updateTime; /** * <pre>* 字段名:通知URL地址 * 变量名:notify_url * 是否必填:是 * 类型:string[10,256] * 描述: * 商户提供的用于接收商家券事件通知的url地址,必须支持https。 示例值:https://pay.weixin.qq.com * </pre> */ @SerializedName(value = "notify_url") private String notifyUrl; /** * <pre>* 字段名:商户号 * 变量名:mchid * 是否必填:是 * 类型:string[8,15] * 描述: * 微信支付商户的商户号,由微信支付生成并下发。 示例值:10000098 * </pre> */ @SerializedName(value = "mchid") private String mchid; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCallbacksSaveResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorCallbacksSaveResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 设置消息通知地址返回结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorCallbacksSaveResult implements Serializable { private static final long serialVersionUID = 1L; /** * 修改时间 * <p> * 修改时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("update_time") private String updateTime; /** * 通知地址 * <p> * 通知地址 * 示例值:api.weixin.qq.com */ @SerializedName("notify_url") private String notifyUrl; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksCreateResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksCreateResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 创建商家券返回对象 * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_1.shtml * * @author yujam */ @NoArgsConstructor @Data public class BusiFavorStocksCreateResult implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次号 * 变量名:stock_id * 是否必填:是 * 类型:string[1,20] * 描述: * 微信为每个商家券批次分配的唯一ID * 示例值: 98065001 * </pre> */ @SerializedName("stock_id") private String stockId; /** * <pre> * 字段名:创建时间 * 变量名:create_time * 是否必填:是 * 类型:string[1,32] * 描述: * 遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss表示时分秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35+08:00 * </pre> */ @SerializedName("create_time") private String createTime; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorQueryOneUserCouponsRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorQueryOneUserCouponsRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 查询用户单张券详情API请求对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_5.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorQueryOneUserCouponsRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre>* 字段名:用户标识 * 变量名:openid * 是否必填:是 * 类型:string[1,128] * 描述: * path Openid信息,用户在appid下的唯一标识。 示例值:2323dfsdf342342 * </pre> */ @SerializedName(value = "openid") private String openid; /** * <pre>* 字段名:公众账号ID * 变量名:appid * 是否必填:是 * 类型:string[1,32] * 描述: * query 支持传入与当前调用接口商户号有绑定关系的appid。支持小程序appid与公众号appid。 示例值:wx233544546545989 * </pre> */ @SerializedName(value = "appid") private String appid; /** * <pre>* 字段名:券code * 变量名:coupon_code * 是否必填:是 * 类型:string[1,32] * 描述: * path 券的唯一标识。 示例值:123446565767 * </pre> */ @SerializedName(value = "coupon_code") private String couponCode; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/UseNotifyData.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/UseNotifyData.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 核销事件回调通知对象 * * @author thinsstar */ @NoArgsConstructor @Data public class UseNotifyData implements Serializable { private static final long serialVersionUID = 1L; /** * 通知ID */ @SerializedName("id") private String id; /** * 通知创建时间 */ @SerializedName("create_time") private String createTime; /** * 通知类型 */ @SerializedName("event_type") private String eventType; /** * 通知数据类型 */ @SerializedName("resource_type") private String resourceType; /** * 回调摘要 * summary */ @SerializedName("summary") private String summary; /** * 通知数据 */ @SerializedName("resource") private Resource resource; @Data public static class Resource implements Serializable { private static final long serialVersionUID = 1L; /** * 加密算法类型 */ @SerializedName("algorithm") private String algorithm; /** * 数据密文 */ @SerializedName("ciphertext") private String cipherText; /** * 附加数据 */ @SerializedName("associated_data") private String associatedData; /** * 随机串 */ @SerializedName("nonce") private String nonce; /** * 原始回调类型 */ @SerializedName("original_type") private String originalType; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksGetResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/BusiFavorStocksGetResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.github.binarywang.wxpay.bean.marketing.busifavor.*; import com.github.binarywang.wxpay.bean.marketing.enums.StockTypeEnum; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 商家券详情返回对象 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/apis/chapter9_2_2.shtml * </pre> * * @author yujam */ @Data @NoArgsConstructor public class BusiFavorStocksGetResult { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次名称 * 变量名:stock_name * 是否必填:是 * 类型:string[1,21] * 描述: * 批次名称 * 校验规则: * 1、批次名称最多9个中文汉字 * 2、批次名称最多20个字母 * 3、批次名称中不能包含不当内容和特殊字符 _ , ; | * 示例值:微信支付代金券批次 * </pre> */ @SerializedName(value = "stock_name") private String stockName; /** * <pre> * 字段名:归属商户号 * 变量名:belong_merchant * 是否必填:是 * 类型:string[8,15] * 描述: * 批次归属商户号 * 该字段暂未开放 * 示例值:98568865 * </pre> */ @SerializedName(value = "belong_merchant") private String belongMerchant; /** * <pre> * 字段名:批次备注 * 变量名:comment * 是否必填:否 * 类型:string[1,20] * 描述: * 仅制券商户可见,用于自定义信息。 * 校验规则:批次备注最多60个UTF8字符数 * 示例值:零售批次 * </pre> */ @SerializedName(value = "comment") private String comment; /** * <pre> * 字段名:适用商品范围 * 变量名:goods_name * 是否必填:是 * 类型:string[1,15] * 描述: * 用来描述批次在哪些商品可用,会显示在微信卡包中。字数上限为15个,一个中文汉字/英文字母/数字均占用一个字数。 * 示例值:xxx商品使用 * </pre> */ @SerializedName(value = "goods_name") private String goodsName; /** * <pre> * 字段名:批次类型 * 变量名:stock_type * 是否必填:是 * 类型:string[1,32] * 描述: * 批次类型 * NORMAL:固定面额满减券批次 * DISCOUNT:折扣券批次 * EXCHANGE:换购券批次 * 示例值:NORMAL * </pre> */ @SerializedName(value = "stock_type") private StockTypeEnum stockType; /** * <pre> * 字段名:核销规则 * 变量名:coupon_use_rule * 是否必填:是 * 类型:object * 描述:核销规则 * </pre> */ @SerializedName(value = "coupon_use_rule") private CouponUseRule couponUseRule; /** * <pre> * 字段名:券发放相关规则 * 变量名:stock_send_rule * 是否必填:是 * 类型:object * 描述:券发放相关规则 * </pre> */ @SerializedName(value = "stock_send_rule") private StockSendRule stockSendRule; /** * <pre> * 字段名:商户单据号 * 变量名:out_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * 商户创建批次凭据号(格式:商户id+日期+流水号),可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号,商户侧需保持商户单据号全局唯一。 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:自定义入口 * 变量名:custom_entrance * 是否必填:否 * 类型:object * 描述:卡详情页面,可选择多种入口引导用户。 * </pre> */ @SerializedName(value = "custom_entrance") private CustomEntrance customEntrance; /** * <pre> * 字段名:样式信息 * 变量名:display_pattern_info * 是否必填:否 * 类型:object * 描述:创建批次时的样式信息。 * </pre> */ @SerializedName(value = "display_pattern_info") private DisplayPatternInfo displayPatternInfo; /** * <pre> * 字段名:券code模式 * 变量名:coupon_code_mode * 是否必填:是 * 类型:string[1,128] * 描述:枚举值: * WECHATPAY_MODE:系统分配券code。(固定22位纯数字) * MERCHANT_API:商户发放时接口指定券code。 * MERCHANT_UPLOAD:商户上传自定义code,发券时系统随机选取上传的券code。 * </pre> */ @SerializedName(value = "coupon_code_mode") private String couponCodeMode; /** * <pre> * 字段名:事件通知配置 * 变量名:notify_config * 是否必填:否 * 类型:object * 描述:事件回调通知商户的配置 * </pre> */ @SerializedName(value = "notify_config") private NotifyConfig notifyConfig; /** * <pre> * 字段名:批次发放情况 * 变量名:send_count_information * 是否必填:否 * 类型:object * 描述:批次发放情况 * </pre> */ @SerializedName(value = "send_count_information") private SendCountInformation sendCountInformation; @Data @NoArgsConstructor public static class SendCountInformation implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:已发放券张数 * 变量名:total_send_num * 是否必填:否 * 类型:uint64 * 描述: * 批次已发放的券数量,满减、折扣、换购类型会返回该字段 * 示例值:1 * </pre> */ @SerializedName(value = "total_send_num") private Integer totalSendNum; /** * <pre> * 字段名:已发放券金额 * 变量名:total_send_amount * 是否必填:否 * 类型:uint64 * 描述: * 批次已发放的预算金额,满减券类型会返回该字段 * 示例值:34 * </pre> */ @SerializedName(value = "total_send_amount") private Integer totalSendAmount; /** * <pre> * 字段名:单天已发放券张数 * 变量名:today_send_num * 是否必填:否 * 类型:uint64 * 描述: * 批次当天已发放的券数量,设置了单天发放上限的满减、折扣、换购类型返回该字段 * 示例值:1 * </pre> */ @SerializedName(value = "today_send_num") private String todaySendNum; /** * <pre> * 字段名:单天已发放券金额 * 变量名:today_send_amount * 是否必填:否 * 类型:uint64 * 描述: * 批次当天已发放的预算金额,设置了当天发放上限的满减券类型返回该字段 * 示例值:34 * </pre> */ @SerializedName(value = "today_send_amount") private String todaySendAmount; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateRequest.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksCreateRequest.java
package com.github.binarywang.wxpay.bean.marketing; import com.github.binarywang.wxpay.bean.marketing.enums.BackgroundColorEnum; import com.github.binarywang.wxpay.bean.marketing.enums.JumpTargetEnum; import com.github.binarywang.wxpay.bean.marketing.enums.StockTypeEnum; import com.github.binarywang.wxpay.bean.marketing.enums.TradeTypeEnum; import com.google.gson.annotations.SerializedName; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; import java.util.List; /** * 创建代金券批次 * <pre> * 文档地址:https://pay.weixin.qq.com/wiki/doc/apiv3/wxpay/marketing/convention/chapter3_1.shtml * </pre> * * @author thinsstar */ @Data @Builder @NoArgsConstructor @AllArgsConstructor public class FavorStocksCreateRequest implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:批次名称 * 变量名:stock_name * 是否必填:是 * 类型:string[1,20] * 描述: * 批次名称 * 校验规则: * 1、批次名称最多9个中文汉字 * 2、批次名称最多20个字母 * 3、批次名称中不能包含不当内容和特殊字符 _ , ; | * 示例值:微信支付代金券批次 * </pre> */ @SerializedName(value = "stock_name") private String stockName; /** * <pre> * 字段名:批次备注 * 变量名:comment * 是否必填:否 * 类型:string[1,60] * 描述: * 仅制券商户可见,用于自定义信息。 * 校验规则:批次备注最多60个UTF8字符数 * 示例值:零售批次 * </pre> */ @SerializedName(value = "comment") private String comment; /** * <pre> * 字段名:归属商户号 * 变量名:belong_merchant * 是否必填:是 * 类型:string[1,20] * 描述: * 批次归属商户号 * 该字段暂未开放 * 示例值:98568865 * </pre> */ @SerializedName(value = "belong_merchant") private String belongMerchant; /** * <pre> * 字段名:可用时间-开始时间 * 变量名:available_begin_time * 是否必填:是 * 类型:string[1,32] * 描述: * 批次开始时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 校验规则: * 1、开始时间不可早于当前时间 * 2、不能创建365天后开始的批次 * 示例值:2015-05-20T13:29:35.120+08:00 * </pre> */ @SerializedName(value = "available_begin_time") private String availableBeginTime; /** * <pre> * 字段名:可用时间-结束时间 * 变量名:available_end_time * 是否必填:是 * 类型:string[1,32] * 描述: * 批次结束时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 校验规则: * 1、结束时间需晚于开始时间 * 2、可用时间最长为90天 * 3、有效时间间隔最短为1s * 示例值:2015-05-20T13:29:35.120+08:00 * </pre> */ @SerializedName(value = "available_end_time") private String availableEndTime; /** * <pre> * 字段名:发放规则 * 变量名:stock_use_rule * 是否必填:是 * 类型:object * 描述:批次使用规则 * </pre> */ @SerializedName(value = "stock_use_rule") private StockUseRule stockUseRule; /** * <pre> * 字段名:样式设置 * 变量名:pattern_info * 是否必填:否 * 类型:object * 描述:代金券详情页 * </pre> */ @SerializedName(value = "pattern_info") private PatternInfo patternInfo; /** * <pre> * 字段名:核销规则 * 变量名:coupon_use_rule * 是否必填:是 * 类型:object * 描述:核销规则 * </pre> */ @SerializedName(value = "coupon_use_rule") private CouponUseRule couponUseRule; /** * <pre> * 字段名:营销经费 * 变量名:no_cash * 是否必填:是 * 类型:bool * 描述: * 营销经费。枚举值: * true:免充值 * false:预充值 * 1、免充值:制券方无需提前充值资金,用户核销代金券时,直接从订单原价中扣除优惠减价金额,最终只将用户实际支付的金额结算给核销商户,商户实收少于订单原价。 * 2、预充值:制券方需将优惠预算提前充值到微信支付商户可用余额中,用户核销代金券时,系统从制券方商户可用余额中扣除优惠减价部分对应的资金,连同用户实际支付的资金,一并结算给核销商户,不影响实收。 * 示例值:false * </pre> */ @SerializedName(value = "no_cash") private Boolean noCash; /** * <pre> * 字段名:批次类型 * 变量名:stock_type * 是否必填:是 * 类型:string[1,16] * 描述: * 批次类型,仅支持: * NORMAL:固定面额满减券批次 * 示例值:NORMAL * </pre> */ @SerializedName(value = "stock_type") private StockTypeEnum stockType; /** * <pre> * 字段名:商户单据号 * 变量名:out_request_no * 是否必填:是 * 类型:string[1,128] * 描述: * 商户创建批次凭据号(格式:商户id+日期+流水号),可包含英文字母,数字,|,_,*,-等内容,不允许出现其他不合法符号,商户侧需保持商户单据号全局唯一。 * </pre> */ @SerializedName(value = "out_request_no") private String outRequestNo; /** * <pre> * 字段名:扩展属性 * 变量名:ext_info * 是否必填:否 * 类型:string[1,128] * 描述: * 扩展属性字段,按json格式,如无需要则不填写。 * 示例值:{'exinfo1':'1234','exinfo2':'3456'} * </pre> */ @SerializedName(value = "ext_info") private String extInfo; @Data @NoArgsConstructor public static class StockUseRule implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:发放总上限 * 变量名:max_coupons * 是否必填:是 * 类型:uint64 * 描述: * 最大发券数 * 校验规则: * 1、发放总个数最少5个 * 2、发放总个数最多1000万个 * 示例值:100 * </pre> */ @SerializedName(value = "max_coupons") private Integer maxCoupons; /** * <pre> * 字段名:总预算 * 变量名:max_amount * 是否必填:是 * 类型:uint64 * 描述: * 最大发券预算,当营销经费no_cash选择预充值false时,激活批次时会从制券商户的余额中扣除预算,请保证账户金额充足,单位:分 * max_amount需要等于coupon_amount(面额) * max_coupons(发放总上限) * 校验规则:批次总预算最多1亿元 * 示例值:5000 * </pre> */ @SerializedName(value = "max_amount") private Integer maxAmount; /** * <pre> * 字段名:单天预算发放上限 * 变量名:max_amount_by_day * 是否必填:否 * 类型:uint64 * 描述: * 设置此字段,允许指定单天最大发券预算,单位:分。 * 校验规则:不能大于总预算 * 示例值:400 * </pre> */ @SerializedName(value = "max_amount_by_day") private Integer maxAmountByDay; /** * <pre> * 字段名:单个用户可领个数 * 变量名:max_coupons_per_user * 是否必填:是 * 类型:uint32 * 描述: * 活动期间每个用户可领个数,当开启了自然人限领时,多个微信号同属于一个身份证时,视为同一用户。 * 校验规则: * 1、不能大于发放总个数 * 2、最少为1个,最多为60个 * 示例值:3 * </pre> */ @SerializedName(value = "max_coupons_per_user") private Integer maxCouponsPerUser; /** * <pre> * 字段名:是否开启自然人限制 * 变量名:natural_person_limit * 是否必填:是 * 类型:bool * 描述: * 当开启了自然人限领时,多个微信号同属于一个身份证时,视为同一用户,枚举值 * true:是 * false:否 * 示例值:false * </pre> */ @SerializedName(value = "natural_person_limit") private Boolean naturalPersonLimit; /** * <pre> * 字段名:是否开启防刷拦截 * 变量名:prevent_api_abuse * 是否必填:是 * 类型:bool * 描述: * 若开启防刷拦截,当用户命中恶意、小号、机器、羊毛党、黑产等风险行为时,无法成功发放代金券。 * 枚举值 * true:是 * false:否 * 示例值:false * </pre> */ @SerializedName(value = "prevent_api_abuse") private Boolean preventApiAbuse; } @Data @NoArgsConstructor public static class PatternInfo implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:使用说明 * 变量名:description * 是否必填:是 * 类型:string[1,3000] * 描述: * 用于说明详细的活动规则,会展示在代金券详情页。 * 校验规则:最多1000个UTF8字符 * 示例值:微信支付营销代金券 * </pre> */ @SerializedName(value = "description") private String description; /** * <pre> * 字段名:商户logo * 变量名:merchant_logo * 是否必填:否 * 类型:string[1,128] * 描述: * 商户logo ,仅支持通过《图片上传API》接口获取的图片URL地址。 * 1、商户logo大小需为120像素*120像素。 * 2、支持JPG/JPEG/PNG格式,且图片小于1M。 * 3、最多128个UTF8字符 * 示例值:https://qpic.cn/xxx * </pre> */ @SerializedName(value = "merchant_logo") private String merchantLogo; /** * <pre> * 字段名:品牌名称 * 变量名:merchant_name * 是否必填:否 * 类型:string[1,128] * 描述: * 品牌名称,展示在用户卡包 * 校验规则: * 1、最多12个中文汉字 * 2、最多36个英文字符 * 示例值:微信支付 * </pre> */ @SerializedName(value = "merchant_name") private String merchantName; /** * <pre> * 字段名:背景颜色 * 变量名:background_color * 是否必填:否 * 类型:string[1,15] * 描述: * 券的背景颜色,可设置10种颜色,色值请参考卡券背景颜色图。颜色取值为颜色图中的颜色名称。可选枚举字段不用则不传,不可以传空值 * 示例值:COLOR020 * </pre> */ @SerializedName(value = "background_color") private BackgroundColorEnum backgroundColor; /** * <pre> * 字段名:券详情图片 * 变量名:coupon_image * 是否必填:是 * 类型:string[1,128] * 描述: * 券详情图片, 850像素*350像素,且图片大小不超过2M,支持JPG/PNG格式,仅支持通过《图片上传API》接口获取的图片URL地址。。 * 示例值:https://qpic.cn/xxx * </pre> */ @SerializedName(value = "coupon_image") private String couponImage; /** * 卡包跳转目标 */ @SerializedName("jump_target") private JumpTargetEnum jumpTarget; /** * 小程序appid */ @SerializedName("mini_program_appid") private String miniProgramAppid; /** * 小程序path */ @SerializedName("mini_program_path") private String miniProgramPath; } @Data @NoArgsConstructor public static class CouponUseRule implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:券生效时间 * 变量名:coupon_available_time * 是否必填:否 * 类型:object * 描述: * 允许指定券的特殊生效时间规则。 * 该字段暂未开放 * </pre> */ // @SerializedName(value = "coupon_available_time") // private CouponAvailableTime couponAvailableTime; /** * <pre> * 字段名:固定面额满减券使用规则 * 变量名:fixed_normal_coupon * 是否必填:否 * 类型:object * 描述: * stock_type为NORMAL时必填。 * </pre> */ @SerializedName(value = "fixed_normal_coupon") private FixedNormalCoupon fixedNormalCoupon; /** * <pre> * 字段名:订单优惠标记 * 变量名:goods_tag * 是否必填:否 * 类型:array * 描述: * 订单优惠标记,按json格式。 * 商户下单时需要传入相同的标记(goods_tag),用户同时符合其他规则才能享受优惠 * 校验规则: * 1、最多允许录入50个 * 2、每个订单优惠标记支持字母/数字/下划线,不超过128个UTF8字符。 * 示例值:["123321","456654"] * </pre> */ @SerializedName(value = "goods_tag") private List<String> goodsTag; /** * <pre> * 字段名:指定付款方式 * 变量名:limit_pay * 是否必填:否 * 类型:array[1,1] * 描述: * 指定付款方式的交易可核销/使用代金券,可指定零钱付款、指定银行卡付款,需填入支付方式编码, 不在此列表中的银行卡,暂不支持此功能。 * 校验规则:条目个数限制为【1,1】。 * 示例值:ICBC_CREDIT * </pre> */ @SerializedName(value = "limit_pay") private List<String> limitPay; /** * <pre> * 字段名:指定银行卡BIN * 变量名:limit_card * 是否必填:否 * 类型:object * 描述: * 指定银行卡bin付款的交易可核销/使用代金券,当批次限定了指定银行卡时方可生效 * </pre> */ @SerializedName(value = "limit_card") private LimitCard limitCard; /** * <pre> * 字段名:支付方式 * 变量名:trade_type * 是否必填:否 * 类型:array * 描述: * 允许指定支付方式的交易才可核销/使用代金券,不填则默认“不限”。 * 枚举值: * MICROAPP:小程序支付 * APPPAY:APP支付 * PPAY:免密支付 * CARD:刷卡支付 * FACE:人脸支付 * OTHER:其他支付 * 示例值:["MICROAPP","APPPAY"] * </pre> */ @SerializedName(value = "trade_type") private List<TradeTypeEnum> tradeType; /** * <pre> * 字段名:是否可叠加其他优惠 * 变量名:combine_use * 是否必填:否 * 类型:bool * 描述: * 允许指定本优惠是否可以和本商户号创建的其他券同时使用,不填则默认允许同时使用。枚举值: * true:是 * false:否 * 示例值:false * </pre> */ @SerializedName(value = "combine_use") private Boolean combineUse; /** * <pre> * 字段名:可核销商品编码 * 变量名:available_items * 是否必填:否 * 类型:array * 描述: * 包含指定SKU商品编码的交易才可核销/使用代金券:活动商户在交易下单时,需传入用户购买的所有SKU商品编码,当命中代金券中设置的商品编码时可享受优惠。 * 校验规则: * 1、单个商品编码的字符长度为【1,128】 * 2、条目个数限制为【1,50】 * 示例值:['123321','456654'] * </pre> */ @SerializedName(value = "available_items") private List<String> availableItems; /** * <pre> * 字段名:不可核销商品编码 * 变量名:unavailable_items * 是否必填:否 * 类型:array * 描述: * 该字段暂未开放 * 包含指定SKU商品编码的交易不可核销/使用代金券。 * 校验规则: * 1、单个商品编码的字符长度为【1,128】 * 2、条目个数限制为【1,50】 * 示例值:['789987','56765'] * </pre> */ // @SerializedName(value = "unavailable_items") // private List<String> unavailableItems; /** * <pre> * 字段名:可用商户号 * 变量名:available_merchants * 是否必填:是 * 类型:array * 描述: * 可用商户的交易才可核销/使用代金券。当营销经费no_cash=false时,可用商户允许填入任何类型的特约商户或普通商户 * 当营销经费no_cash=ture时,分为以下几种情况: * 1、创建商户是普通商户或服务商特约商户(子商户):可添加本商户号或同品牌商户。 * 说明:若可用商户中,有特约商户(子商户),那么特约商户自己发起的交易、以及服务商帮特约商户发起的交易,都可以使用代金券。 * 2、创建商户是普通服务商:可添加已授权的子商户,详见《申请免充值代金券产品权限》。 * 说明:特约商户如果有多个服务商,那么服务商为他发起的交易,只要完成了免充值授权,都可以使用代金券;特约商户自己发起的交易不可以使用代金券。 * 3、创建商户是渠道商、银行服务商或从业机构:可直接添加旗下任意子商户,不需要子商户授权。 * 示例值:['9856000','9856111'] * </pre> */ @SerializedName(value = "available_merchants") private List<String> availableMerchants; } // @Data // @NoArgsConstructor // public static class CouponAvailableTime implements Serializable { // /** // * <pre> // * 字段名:固定时间段可用 // * 变量名:fix_available_time // * 是否必填:否 // * 类型:object // * 描述: // * 允许指定券在特殊时间段生效。当设置固定时间段可用时不可设置领取后N天有效 // * 该字段暂未开放 // * </pre> // */ // @SerializedName(value = "fix_available_time") // private FixAvailableTime fixAvailableTime; // // /** // * <pre> // * 字段名:领取后N天有效 // * 变量名:second_day_available // * 是否必填:否 // * 类型:bool // * 描述: // * 领取后,券的开始时间为领券后第二天,如7月1日领券,那么在7月2日00:00:00开始。 // * 当设置领取后N天有效时,不可设置固定时间段可用。 // * 枚举值: // * true:是 // * false:否 // * 该字段暂未开放 // * 示例值:false // * </pre> // */ // @SerializedName(value = "second_day_available") // private Boolean secondDayAvailable; // // /** // * <pre> // * 字段名:领取后有效时间 // * 变量名:available_time_after_receive // * 是否必填:否 // * 类型:uint32 // * 描述: // * 领取后,券的结束时间为领取N天后,如设置领取后7天有效,那么7月1日领券,在7月7日23:59:59失效(在可用时间内计算失效时间,若券还未到领取后N天,但是已经到了可用结束时间,那么也会过期) // * 领取后有效时间,单位:分钟。 // * 该字段暂未开放 // * 示例值:1440 // * </pre> // */ // @SerializedName(value = "available_time_after_receive") // private Integer availableTimeAfterReceive; // } // // @Data // @NoArgsConstructor // public static class FixAvailableTime implements Serializable { // /** // * <pre> // * 字段名:可用星期数 // * 变量名:available_week_day // * 是否必填:否 // * 类型:uint32 // * 描述: // * 允许指定每周固定星期数生效,0代表周日生效,1代表周一生效,以此类推;不填则代表在可用时间内周一至周日都生效。 // * 该字段暂未开放 // * 示例值:1,2 // * </pre> // */ // @SerializedName(value = "available_week_day") // private Integer availableWeekDay; // // /** // * <pre> // * 字段名:当天开始时间 // * 变量名:begin_time // * 是否必填:否 // * 类型:uint32 // * 描述: // * 允许指定特殊生效星期数中的具体生效的时间段。 // * 当天开始时间,单位:秒。 // * 该字段暂未开放 // * 示例值:0 // * </pre> // */ // @SerializedName(value = "begin_time") // private Integer beginTime; // // /** // * <pre> // * 字段名:当天结束时间 // * 变量名:end_time // * 是否必填:否 // * 类型:uint32 // * 描述: // * 允许指定特殊生效星期数中的具体生效的时间段。 // * 当天结束时间,单位:秒,默认为23点59分59秒。 // * 该字段暂未开放 // * 示例值:3600 // * </pre> // */ // @SerializedName(value = "end_time") // private Integer endTime; // } @Data @NoArgsConstructor public static class FixedNormalCoupon implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:面额 * 变量名:fixed_normal_coupon * 是否必填:是 * 类型:uint64 * 描述: * 面额,单位:分。 * 校验规则: * 1、必须为整数 * 2、必须大于1分且小于等于1000元 * 示例值:100 * </pre> */ @SerializedName(value = "coupon_amount") private Integer couponAmount; /** * <pre> * 字段名:门槛 * 变量名:transaction_minimum * 是否必填:是 * 类型:uint64 * 描述: * 使用券金额门槛,单位:分。 * 若指定可核销商品编码,门槛则为可核销商品部分的消费金额,而不是订单的消费金额。 * 校验规则:使用门槛必须大于优惠金额 * 示例值:100 * </pre> */ @SerializedName(value = "transaction_minimum") private Integer transactionMinimum; } @Data @NoArgsConstructor public static class LimitCard implements Serializable { private static final long serialVersionUID = 1L; /** * <pre> * 字段名:银行卡名称 * 变量名:name * 是否必填:否 * 类型:string[1,4] * 描述: * 将在微信支付收银台向用户展示,最多4个中文汉字 * 示例值:精粹白金 * </pre> */ @SerializedName(value = "name") private String name; /** * <pre> * 字段名:指定卡BIN * 变量名:bin * 是否必填:否 * 类型:array * 描述: * 使用指定卡BIN的银行卡支付方可享受优惠,按json格式 * 特殊规则:单个卡BIN的字符长度为【6,9】,条目个数限制为【1,10】。 * 示例值:['62123456','62123457'] * </pre> */ @SerializedName(value = "bin") private List<String> bin; } }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false
binarywang/WxJava
https://github.com/binarywang/WxJava/blob/84b5c4d2d0774f800237634e5d0336f53c004fe3/weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksStartResult.java
weixin-java-pay/src/main/java/com/github/binarywang/wxpay/bean/marketing/FavorStocksStartResult.java
package com.github.binarywang.wxpay.bean.marketing; import com.google.gson.annotations.SerializedName; import lombok.Data; import lombok.NoArgsConstructor; import java.io.Serializable; /** * 激活代金券批次返回结果对象 * * @author thinsstar */ @NoArgsConstructor @Data public class FavorStocksStartResult implements Serializable { private static final long serialVersionUID = 1L; /** * 生效时间 * <p> * 生效时间,遵循rfc3339标准格式,格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONE,YYYY-MM-DD表示年月日,T出现在字符串中,表示time元素的开头,HH:mm:ss.sss表示时分秒毫秒,TIMEZONE表示时区(+08:00表示东八区时间,领先UTC 8小时,即北京时间)。例如:2015-05-20T13:29:35.120+08:00表示,北京时间2015年5月20日 13点29分35秒。 * 示例值:2015-05-20T13:29:35.120+08:00 */ @SerializedName("start_time") private String startTime; /** * 批次号 * <p> * 微信为每个代金券批次分配的唯一ID。 * 示例值:98065001 */ @SerializedName("stock_id") private String stockId; }
java
Apache-2.0
84b5c4d2d0774f800237634e5d0336f53c004fe3
2026-01-04T14:46:39.499027Z
false