|
|
@ -3789,7 +3789,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void registerAlipayGms(String clientMoniker, String representative_id, JSONObject manager) {
|
|
|
|
public void registerAlipayGms(String clientMoniker, JSONObject representative_id, JSONObject manager) {
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
if (client == null) {
|
|
|
|
if (client == null) {
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
throw new InvalidShortIdException();
|
|
|
@ -3805,7 +3805,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
client.put("bank_id", client_bank.getString("account_no"));
|
|
|
|
client.put("bank_id", client_bank.getString("account_no"));
|
|
|
|
|
|
|
|
|
|
|
|
if (!"Company".equals(client.getString("business_structure"))) {
|
|
|
|
if (!"Company".equals(client.getString("business_structure"))) {
|
|
|
|
if (representative_id == null || representative_id.isEmpty()) {
|
|
|
|
if (StringUtils.isBlank(representative_id.getString("representative_id"))) {
|
|
|
|
throw new BadRequestException("ID or passport number can't be null");
|
|
|
|
throw new BadRequestException("ID or passport number can't be null");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
client.put("representative_id", representative_id);
|
|
|
|
client.put("representative_id", representative_id);
|
|
|
@ -3843,7 +3843,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void registerAlipayOnlineGms(String clientMoniker, String representative_id, JSONObject manager) {
|
|
|
|
public void registerAlipayOnlineGms(String clientMoniker, JSONObject representative_id, JSONObject manager) {
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
if (client == null) {
|
|
|
|
if (client == null) {
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
throw new InvalidShortIdException();
|
|
|
@ -3858,7 +3858,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
client.put("bank_id", client_bank.getString("account_no"));
|
|
|
|
client.put("bank_id", client_bank.getString("account_no"));
|
|
|
|
|
|
|
|
|
|
|
|
if (representative_id == null || representative_id.isEmpty()) {
|
|
|
|
if (StringUtils.isBlank(representative_id.getString("representative_id"))) {
|
|
|
|
throw new BadRequestException("ID or passport number can't be null");
|
|
|
|
throw new BadRequestException("ID or passport number can't be null");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
client.put("representative_id", representative_id);
|
|
|
|
client.put("representative_id", representative_id);
|
|
|
|