TransactionList transactionList = new TransactionList();
transactionList.setStart(parser.getStartDate());
transactionList.setEnd(parser.getEndDate());
transactionList.setTransactions(transactions);
CreditCardAccountDetails creditCardAccountDetails = new CreditCardAccountDetails();
creditCardAccountDetails.setAccountNumber("7616-3");
creditCardAccountDetails.setAccountKey(parser.getAccountKey());
CreditCardStatementResponse creditCardStatementResponse = new CreditCardStatementResponse();
creditCardStatementResponse.setAccount(creditCardAccountDetails);
creditCardStatementResponse.setCurrencyCode("BRL");
creditCardStatementResponse.setTransactionList(transactionList);
Status status = new Status();
status.setCode(Status.KnownCode.SUCCESS);
status.setSeverity(Status.Severity.INFO);
CreditCardStatementResponseTransaction statementResponse = new CreditCardStatementResponseTransaction();
statementResponse.setClientCookie(UUID.randomUUID().toString());
statementResponse.setStatus(status);
statementResponse.setUID(UUID.randomUUID().toString());
statementResponse.setMessage(creditCardStatementResponse);
CreditCardResponseMessageSet creditCardResponseMessageSet = new CreditCardResponseMessageSet();
creditCardResponseMessageSet.setStatementResponse(statementResponse);
SortedSet<ResponseMessageSet> messageSets = new TreeSet<ResponseMessageSet>();
messageSets.add(creditCardResponseMessageSet);
ResponseEnvelope envelope = new ResponseEnvelope();
envelope.setUID(UUID.randomUUID().toString());
envelope.setSecurity(ApplicationSecurity.NONE);
envelope.setMessageSets(messageSets);
double brazilianRealsamount = parser.getBrazilianRealsAmount();
double dolarsAmount = parser.getDolarsAmount();
double cardTotal = dolarsAmount*parser.getExchangeRate() + brazilianRealsamount;
total+= cardTotal;
System.out.println(creditCardAccountDetails.getAccountKey());
System.out.println("TOTAL EM RS " + formatter.format(brazilianRealsamount));
System.out.println("TOTAL EM US " + formatter.format(dolarsAmount));
System.out.println("TOTAL FATURA EM RS " + formatter.format(cardTotal));
System.out.println();