@ -2063,7 +2063,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
if ( StringUtils . equalsIgnoreCase ( "rpaypmt_card" , config . getString ( "type" ) ) ) {
if ( StringUtils . equalsIgnoreCase ( "rpaypmt_card" , config . getString ( "type" ) ) ) {
JSONObject extRateParams = new JSONObject ( ) { {
JSONObject extRateParams = new JSONObject ( ) { {
put ( "domestic_rate_value" , config . getBigDecimal ( "rate_value" ) ) ;
put ( "domestic_rate_value" , config . getBigDecimal ( "rate_value" ) ) ;
put ( "overseas_rate_value" , config . get BigDecimal( "international_rate_value" ) ) ;
put ( "overseas_rate_value" , config . get JSONObject( "ext_rates" ) . get BigDecimal( "international_rate_value" ) ) ;
} } ;
} } ;
newConfig . put ( "ext_rates" , extRateParams . toJSONString ( ) ) ;
newConfig . put ( "ext_rates" , extRateParams . toJSONString ( ) ) ;
}
}
@ -6862,6 +6862,16 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
return rPayPaymentCardSvcApi . findMerchant ( client ) ;
return rPayPaymentCardSvcApi . findMerchant ( client ) ;
}
}
@Override
public RPayMerchantEntity queryMWMerchantInfo ( String clientMoniker , JSONObject manager ) {
JSONObject client = getClientInfoByMoniker ( clientMoniker ) ;
if ( client = = null ) {
throw new InvalidShortIdException ( ) ;
}
JSONObject bankAccount = getBankAccountByClientId ( client . getIntValue ( "client_id" ) ) ;
return ( new RPayMerchantEntity ( ) ) . applyClientInfo ( client ) . applyBankAccount ( bankAccount ) ;
}
private boolean isAddCardPaymentRate ( JSONObject config , int clientId ) {
private boolean isAddCardPaymentRate ( JSONObject config , int clientId ) {
if ( ! StringUtils . equalsIgnoreCase ( "rpaypmt_card" , config . getString ( "type" ) )
if ( ! StringUtils . equalsIgnoreCase ( "rpaypmt_card" , config . getString ( "type" ) )
& & ! StringUtils . equalsIgnoreCase ( "rpaypmt_dd" , config . getString ( "type" ) ) ) {
& & ! StringUtils . equalsIgnoreCase ( "rpaypmt_dd" , config . getString ( "type" ) ) ) {