Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改二级商户结算账户、退款查询 #1775

Merged
merged 28 commits into from
Sep 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
1812b23
art:证书类配置读取优化调整
Aug 17, 2020
2b27ee9
new:电商收付通二级商户进件
Aug 17, 2020
a3ec261
Merge branch 'develop' into develop
binarywang Aug 18, 2020
cee3753
Merge remote-tracking branch 'wechat/develop' into develop
Aug 24, 2020
10e0ca5
art:微信服务商配置优化
Aug 24, 2020
5db9706
new:jsapi合单支付
Aug 24, 2020
e0d87eb
new:合单支付
Aug 26, 2020
84b9b99
Merge remote-tracking branch 'wechat/develop' into develop
Aug 30, 2020
541899a
Merge remote-tracking branch 'wechat/develop' into develop
Sep 4, 2020
9f60516
Merge remote-tracking branch 'wechat/develop' into develop
Sep 8, 2020
97409a7
new:电商收付通普通支付
Sep 8, 2020
f18c62b
new:电商收付通支付回调处理
Sep 10, 2020
b8d9a15
Merge remote-tracking branch 'wechat/develop' into develop
Sep 10, 2020
c8fc670
new:电商收付通支付回调处理
Sep 10, 2020
4f157b0
Merge remote-tracking branch 'wechat/develop' into develop
Sep 10, 2020
34f0d99
电商收付通支付调整
Sep 11, 2020
c2552de
Merge remote-tracking branch 'wechat/develop' into develop
Sep 11, 2020
3fbeec4
Merge remote-tracking branch 'wechat/develop' into develop
Sep 14, 2020
e56289f
Merge remote-tracking branch 'wechat/develop' into develop
Sep 15, 2020
60c63a5
fix:电商收付通回调通知测试
Sep 17, 2020
5b606fd
Merge remote-tracking branch 'wechat/develop' into develop
Sep 17, 2020
aa2fe98
Merge remote-tracking branch 'wechat/develop' into develop
Sep 20, 2020
9b20c74
new:电商收付通合单支付、普通支付查询
Sep 21, 2020
00bc965
new:电商收付通商户、平台提现
Sep 21, 2020
2037900
fix:命名统一调整
Sep 21, 2020
3b4bb74
Merge remote-tracking branch 'wechat/develop' into develop
Sep 22, 2020
58ac339
new:分账查询、退款通知
Sep 22, 2020
7df0e75
new:修改结算账户、退款查询
Sep 23, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public class CombineTransactionsResult implements Serializable {
* </pre>
*/
@SerializedName(value = "scene_info")
private CombineTransactionsResult.SceneInfo sceneInfo;
private SceneInfo sceneInfo;

/**
* <pre>
Expand All @@ -83,7 +83,7 @@ public class CombineTransactionsResult implements Serializable {
* </pre>
*/
@SerializedName(value = "sub_orders")
private List<CombineTransactionsResult.SubOrders> subOrders;
private List<SubOrders> subOrders;

/**
* <pre>
Expand All @@ -95,7 +95,7 @@ public class CombineTransactionsResult implements Serializable {
* </pre>
*/
@SerializedName(value = "combine_payer_info")
private CombineTransactionsResult.CombinePayerInfo combinePayerInfo;
private CombinePayerInfo combinePayerInfo;

@Data
@NoArgsConstructor
Expand Down Expand Up @@ -248,7 +248,7 @@ public static class SubOrders implements Serializable {
* </pre>
*/
@SerializedName(value = "amount")
private CombineTransactionsResult.Amount amount;
private Amount amount;

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ public class PartnerTransactionsResult implements Serializable {
* </pre>
*/
@SerializedName(value = "combine_payer_info")
private PartnerTransactionsResult.CombinePayerInfo combinePayerInfo;
private CombinePayerInfo combinePayerInfo;

/**
* <pre>
Expand All @@ -215,7 +215,7 @@ public class PartnerTransactionsResult implements Serializable {
* </pre>
*/
@SerializedName(value = "amount")
private PartnerTransactionsResult.Amount amount;
private Amount amount;

/**
* <pre>
Expand All @@ -227,7 +227,7 @@ public class PartnerTransactionsResult implements Serializable {
* </pre>
*/
@SerializedName(value = "scene_info")
private PartnerTransactionsResult.SceneInfo sceneInfo;
private SceneInfo sceneInfo;

/**
* <pre>
Expand All @@ -239,7 +239,7 @@ public class PartnerTransactionsResult implements Serializable {
* </pre>
*/
@SerializedName(value = "promotion_detail")
private List<PartnerTransactionsResult.PromotionDetail> promotionDetails;
private List<PromotionDetail> promotionDetails;

@Data
@NoArgsConstructor
Expand Down Expand Up @@ -507,7 +507,7 @@ public static class PromotionDetail implements Serializable {
* </pre>
*/
@SerializedName(value = "goods_detail")
private List<PartnerTransactionsResult.GoodsDetail> goodsDetails;
private List<GoodsDetail> goodsDetails;


}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
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 ProfitSharingQueryRequest implements Serializable {

/**
* <pre>
* 字段名:二级商户号
* 变量名:sub_mchid
* 是否必填:是
* 类型:string(32)
* 描述:
* 分账出资的电商平台二级商户,填写微信支付分配的商户号。
* 示例值:1900000109
* </pre>
*/
@SerializedName(value = "sub_mchid")
private String subMchid;

/**
* <pre>
* 字段名:微信订单号
* 变量名:transaction_id
* 是否必填:是
* 类型:string(32)
* 描述:
* 微信支付订单号。
* 示例值: 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;
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
* 请求分账 结果响应
Expand Down Expand Up @@ -72,4 +73,209 @@ public class ProfitSharingResult implements Serializable {
@SerializedName(value = "order_id")
private String orderId;

/**
* <pre>
* 字段名:分账单状态
* 变量名:status
* 是否必填:是
* 类型:string (64)
* 描述:
* 分账单状态,枚举值:
* ACCEPTED:受理成功
* PROCESSING:处理中
* FINISHED:分账成功
* CLOSED:处理失败,已关单
* 示例值:FINISHED
* </pre>
*/
@SerializedName(value = "status")
private String status;

/**
* <pre>
* 字段名:分账接收方列表
* 变量名:receivers
* 是否必填:否
* 类型:array
* 描述:
* 分账接收方列表。当查询分账完结的执行结果时,不返回该字段
* </pre>
*/
@SerializedName(value = "receivers")
private List<Receiver> receivers;
/**
* <pre>
* 字段名:关单原因
* 变量名:close_reason
* 是否必填:否
* 类型:string (32)
* 描述:
* 关单原因描述,当分账单状态status为CLOSED(处理失败,已关单)时,返回该字段。
* 枚举值:
* NO_AUTH:分账授权已解除
* 示例值:NO_AUTH
* </pre>
*/
@SerializedName(value = "close_reason")
private String closeReason;

/**
* <pre>
* 字段名:分账完结金额
* 变量名:finish_amount
* 是否必填:否
* 类型:int
* 描述:
* 分账完结的分账金额,单位为分, 仅当查询分账完结的执行结果时,存在本字段。
* 示例值:100
* </pre>
*/
@SerializedName(value = "finish_amount")
private Integer finishAmount;

/**
* <pre>
* 字段名:分账完结描述
* 变量名:finish_description
* 是否必填:否
* 类型:string (80)
* 描述:
* 分账完结的原因描述,仅当查询分账完结的执行结果时,存在本字段。
* 示例值:分账完结
* </pre>
*/
@SerializedName(value = "finish_description")
private String finishDescription;

@Data
@NoArgsConstructor
public static class Receiver implements Serializable {

/**
* <pre>
* 字段名:分账接收商户号
* 变量名:receiver_mchid
* 是否必填:是
* 类型:string (32)
* 描述:
* 填写微信支付分配的商户号,仅支持通过添加分账接收方接口添加的接收方;电商平台商户已默认添加到分账接收方,无需重复添加。
* 示例值:1900000109
* </pre>
*/
@SerializedName(value = "receiver_mchid")
private String receiverMchid;

/**
* <pre>
* 字段名:分账金额
* 变量名:amount
* 是否必填:否
* 类型:int
* 描述:
* 分账金额,单位为分,只能为整数,不能超过原订单支付金额及最大分账比例金额。
* 示例值: 4208450740201411110007820472
* </pre>
*/
@SerializedName(value = "amount")
private Integer amount;

/**
* <pre>
* 字段名:分账描述
* 变量名:description
* 是否必填:是
* 类型:string (80)
* 描述:
* 分账的原因描述,分账账单中需要体现。
* 示例值:分帐1900000110
* </pre>
*/
@SerializedName(value = "description")
private String description;

/**
* <pre>
* 字段名:分账结果
* 变量名:result
* 是否必填:是
* 类型:string (32)
* 描述:
* 分账结果,枚举值:
* PENDING:待分账
* SUCCESS:分账成功
* ADJUST:分账失败待调账
* RETURNED:已转回分账方
* CLOSED:已关闭
* 示例值:SUCCESS
* </pre>
*/
@SerializedName(value = "result")
private String result;

/**
* <pre>
* 字段名:完成时间
* 变量名:finish_time
* 是否必填:是
* 类型:string (64)
* 描述:
* 分账完成时间,遵循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 = "finish_time")
private String finishTime;

/**
* <pre>
* 字段名:分账失败原因
* 变量名:fail_reason
* 是否必填:否
* 类型:string (32)
* 描述:
* 分账失败原因,当分账结果result为RETURNED(已转回分账方)或CLOSED(已关闭)时,返回该字段
* 枚举值:
* ACCOUNT_ABNORMAL:分账接收账户异常
* NO_RELATION:分账关系已解除
* RECEIVER_HIGH_RISK:高风险接收方
* 示例值:NO_RELATION
* </pre>
*/
@SerializedName(value = "fail_reason")
private String failReason;

/**
* <pre>
* 字段名:分账接收方类型
* 变量名:type
* 是否必填:是
* 类型:string (32)
* 描述:
* 分账接收方类型,枚举值:
* MERCHANT_ID:商户
* PERSONAL_OPENID:个人
* 示例值:MERCHANT_ID
* </pre>
*/
@SerializedName(value = "type")
private String type;

/**
* <pre>
* 字段名:分账接收方类型
* 变量名:receiver_account
* 是否必填:是
* 类型:string (64)
* 描述:
* 分账接收方账号:
* 类型是MERCHANT_ID时,是商户ID
* 类型是PERSONAL_OPENID时,是个人openid
* 示例值:1900000109
* </pre>
*/
@SerializedName(value = "receiver_account")
private String receiverAccount;
}
}
Loading