public GetAccountStatementReq getAccountStatementRequest( String sessionToken, Calendar startDate, Calendar endDate, int startRecord, int recordCount) { GetAccountStatementReq request = new GetAccountStatementReq(); request.setHeader(createRequestHeaderInstance(sessionToken)); request.setStartDate(startDate); request.setEndDate(endDate); request.setStartRecord(startRecord); request.setRecordCount(recordCount); request.setItemsIncluded(AccountStatementIncludeEnum.ALL); return request; }
public GetAccountStatementReq createGetAccountStatementRequest( String sessionToken, int startRecord, int recordCount) { // move current date 3 month into the past Calendar startDateCalendar = Calendar.getInstance(); startDateCalendar.setTime(DateUtils.addDays(startDateCalendar.getTime(), -80)); GetAccountStatementReq request = new GetAccountStatementReq(); request.setHeader(createRequestHeaderInstance(sessionToken)); request.setStartDate(startDateCalendar); request.setEndDate(Calendar.getInstance()); request.setStartRecord(startRecord); request.setRecordCount(recordCount); request.setItemsIncluded(AccountStatementIncludeEnum.ALL); return request; }