|
|
|
@ -2,7 +2,6 @@ package au.com.royalpay.payment.manage.gateway.beans;
|
|
|
|
|
|
|
|
|
|
import au.com.royalpay.payment.core.exceptions.ParamInvalidException;
|
|
|
|
|
import au.com.royalpay.payment.manage.system.core.impl.ClientContractServiceImpl;
|
|
|
|
|
import au.com.royalpay.payment.tools.env.PlatformEnvironment;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
|
import cn.yixblog.platform.http.HttpRequestGenerator;
|
|
|
|
|
import cn.yixblog.platform.http.HttpRequestResult;
|
|
|
|
@ -12,7 +11,6 @@ import lombok.Data;
|
|
|
|
|
import org.apache.commons.lang3.time.DateUtils;
|
|
|
|
|
import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
@ -49,15 +47,13 @@ public class ClientSettleConfig {
|
|
|
|
|
private String activeTime;
|
|
|
|
|
@JSONField(name = "expire_time")
|
|
|
|
|
private String expireTime;
|
|
|
|
|
@Value("${app.sandbox:false}")
|
|
|
|
|
private boolean sandboxMode;
|
|
|
|
|
private JSONObject bankQueryInfo;
|
|
|
|
|
private Date activeTimeDate;
|
|
|
|
|
|
|
|
|
|
private static String[] WHITE_LIST = {"bankQueryInfo", "activeTimeDate"};
|
|
|
|
|
private static Pattern ACCOUNT_NAME_PATTERN = Pattern.compile("^[a-zA-Z0-9 &]+$");
|
|
|
|
|
|
|
|
|
|
public void checkParamsInvalid() throws IllegalAccessException {
|
|
|
|
|
public void checkParamsInvalid(boolean sandboxMode) throws IllegalAccessException {
|
|
|
|
|
for (Field field : getClass().getDeclaredFields()) {
|
|
|
|
|
field.setAccessible(true);
|
|
|
|
|
if (field.get(this) == null && !Arrays.asList(WHITE_LIST).contains(field.getName())) {
|
|
|
|
|