增加几个支付相关的常量

This commit is contained in:
Binary Wang
2017-09-25 19:25:04 +08:00
parent 1e7cb4d6b9
commit 17a446e372
2 changed files with 156 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
package com.github.binarywang.wxpay.bean.request;
import com.github.binarywang.wxpay.config.WxPayConfig;
import com.github.binarywang.wxpay.constant.WxPayConstants.RefundAccountSource;
import com.github.binarywang.wxpay.exception.WxPayException;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import lombok.*;
@@ -32,8 +33,10 @@ import java.util.Arrays;
@AllArgsConstructor
@XStreamAlias("xml")
public class WxPayRefundRequest extends WxPayBaseRequest {
private static final String[] REFUND_ACCOUNT = new String[]{"REFUND_SOURCE_RECHARGE_FUNDS",
"REFUND_SOURCE_UNSETTLED_FUNDS"};
private static final String[] REFUND_ACCOUNT = new String[]{
RefundAccountSource.RECHARGE_FUNDS,
RefundAccountSource.UNSETTLED_FUNDS
};
/**
* <pre>
* 设备号