Skip to content

Commit

Permalink
test 分账接收方SDK测试
Browse files Browse the repository at this point in the history
  • Loading branch information
xxm1995 committed Jun 4, 2024
1 parent 6cce308 commit 694f150
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ public class QueryAllocReceiverParam extends DaxPayRequest<AllocReceiversModel>
/** 分账接收方编号 */
private String receiverNo;



@Override
public String path() {
return "/unipay/query/allocationReceiver";
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cn.daxpay.single.sdk.allocation;

import cn.daxpay.single.sdk.code.AllocReceiverTypeEnum;
import cn.daxpay.single.sdk.code.AllocRelationTypeEnum;
import cn.daxpay.single.sdk.code.PayChannelEnum;
import cn.daxpay.single.sdk.code.SignTypeEnum;
import cn.daxpay.single.sdk.model.allocation.AllocReceiverAddModel;
Expand Down Expand Up @@ -42,15 +43,12 @@ public void add() {
AllocReceiverAddParam param = new AllocReceiverAddParam();
param.setChannel(PayChannelEnum.ALI.getCode());
param.setClientIp("127.0.0.1");
param.setReceiverName("测试");
param.setRelationType("user");
param.setRelationName("测试");
param.setRelationType(AllocRelationTypeEnum.HEADQUARTER.getCode());
param.setReceiverNo("123456");
param.setReceiverType(AllocReceiverTypeEnum.ALI_OPEN_ID.getCode());
param.setReceiverAccount("123456");
param.setReceiverType(AllocReceiverTypeEnum.ALI_USER_ID.getCode());
param.setReceiverAccount("20881233343");
DaxPayResult<AllocReceiverAddModel> execute = DaxPayKit.execute(param);
System.out.println(JSONUtil.toJsonStr(execute));

}

/**
Expand All @@ -60,10 +58,9 @@ public void add() {
public void remove() {
AllocReceiverRemoveParam param = new AllocReceiverRemoveParam();
param.setClientIp("127.0.0.1");
param.setReceiverNo("123");
param.setReceiverNo("123456");
DaxPayResult<AllocReceiverRemoveModel> execute = DaxPayKit.execute(param);
System.out.println(JSONUtil.toJsonStr(execute));

}

/**
Expand All @@ -73,12 +70,10 @@ public void remove() {
public void query() {
QueryAllocReceiverParam param = new QueryAllocReceiverParam();
param.setChannel(PayChannelEnum.ALI.getCode());
param.setReceiverNo("1231");
param.setClientIp("127.0.0.1");
DaxPayResult<AllocReceiversModel> execute = DaxPayKit.execute(param);

System.out.println(JSONUtil.toJsonStr(execute));

}


}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
public abstract class PaymentCommonParam {

/** 客户端ip */
// @NotBlank(message = "客户端ip不可为空")
@Schema(description = "客户端ip")
private String clientIp;

Expand Down

0 comments on commit 694f150

Please sign in to comment.