parent
5abe79cd48
commit
781d8316e2
@ -0,0 +1,8 @@
|
|||||||
|
define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) {
|
||||||
|
'use strict';
|
||||||
|
let app = angular.module('settleTools', ['ui.bootstrap', 'ui.router']);
|
||||||
|
|
||||||
|
app.config(['$stateProvider', function ($stateProvider) {
|
||||||
|
$stateProvider.state('')
|
||||||
|
}])
|
||||||
|
})
|
@ -0,0 +1,29 @@
|
|||||||
|
package au.com.royalpay.payment.manage.merchants.beans;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.JSONObject;
|
||||||
|
import org.apache.commons.lang3.time.DateUtils;
|
||||||
|
import org.junit.Test;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
|
import static org.junit.Assert.assertNotNull;
|
||||||
|
|
||||||
|
public class ClientRateConfigTest {
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void testSerialize() {
|
||||||
|
ClientRateConfig rate = new ClientRateConfig();
|
||||||
|
rate.setCleanDays(1);
|
||||||
|
rate.setRateName("rpaypmt_card");
|
||||||
|
rate.setActiveTime(new Date());
|
||||||
|
rate.setExpiryTime(DateUtils.addYears(new Date(), 1));
|
||||||
|
rate.setRateValue(1.2);
|
||||||
|
rate.setTransactionFee(0.3);
|
||||||
|
rate.setExtRates("{\"international_rate\":3.5}");
|
||||||
|
|
||||||
|
JSONObject rateJson = rate.toJSON();
|
||||||
|
JSONObject extRates = rateJson.getJSONObject("ext_rates");
|
||||||
|
assertNotNull(extRates);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in new issue