This commit is contained in:
xiafang
2020-12-14 15:31:51 +08:00
parent 5f8e45fd54
commit 3dcbece80b
7 changed files with 81 additions and 1 deletions

View File

@@ -183,7 +183,7 @@ public class WechatCombinePayApi extends AbstractApi{
*/
public WechatResponseEntity<ObjectNode> close(CombineCloseParams combineCloseParams) {
WechatResponseEntity<ObjectNode> wechatResponseEntity = new WechatResponseEntity<>();
this.client().withType(WechatPayV3Type.COMBINE_NATIVE, combineCloseParams)
this.client().withType(WechatPayV3Type.COMBINE_CLOSE, combineCloseParams)
.function((wechatPayV3Type, params) -> {
URI uri = UriComponentsBuilder.fromHttpUrl(wechatPayV3Type.uri(WeChatServer.CHINA))
.build().toUri();

View File

@@ -0,0 +1,25 @@
package cn.felord.payment.wechat.v3.model.payscore;
import lombok.Data;
import java.util.List;
@Data
public class A {
private String appid;
private String attach;
private Location location;
private Boolean needUserConfirm;
private String notifyUrl;
private String openid;
private String outOrderNo;
private List<PostDiscount> postDiscounts;
private List<PostPayment> postPayments;
private RiskFund riskFund;
private String serviceId;
private String serviceIntroduction;
private TimeRange timeRange;
}

View File

@@ -0,0 +1,10 @@
package cn.felord.payment.wechat.v3.model.payscore;
import lombok.Data;
@Data
public class Location {
private String endLocation;
private String startLocation;
}

View File

@@ -0,0 +1,11 @@
package cn.felord.payment.wechat.v3.model.payscore;
import lombok.Data;
@Data
public class PostDiscount {
private String description;
private String name;
}

View File

@@ -0,0 +1,12 @@
package cn.felord.payment.wechat.v3.model.payscore;
public class PostPayment {
private Long amount;
private Long count;
private String description;
private String name;
}

View File

@@ -0,0 +1,12 @@
package cn.felord.payment.wechat.v3.model.payscore;
import lombok.Data;
@Data
public class RiskFund {
private Long amount;
private String description;
private String name;
}

View File

@@ -0,0 +1,10 @@
package cn.felord.payment.wechat.v3.model.payscore;
import lombok.Data;
@Data
public class TimeRange {
private String endTime;
private String startTime;
}