| Line 239... |
Line 239... |
| 239 |
log.error("Unable to initialize user context service client", e);
|
239 |
log.error("Unable to initialize user context service client", e);
|
| 240 |
throw new TransactionServiceException(100, "Unable to initialize the user service client");
|
240 |
throw new TransactionServiceException(100, "Unable to initialize the user service client");
|
| 241 |
}
|
241 |
}
|
| 242 |
in.shop2020.model.v1.order.TransactionService.Client tClient = transactionServiceClient.getClient();
|
242 |
in.shop2020.model.v1.order.TransactionService.Client tClient = transactionServiceClient.getClient();
|
| 243 |
Transaction transaction = tClient.getTransaction(txnId);
|
243 |
Transaction transaction = tClient.getTransaction(txnId);
|
| 244 |
Map<Long, Long> miscCharges = tClient.getMiscCharges(txnId);
|
244 |
Map<Long, Double> miscCharges = tClient.getMiscCharges(txnId);
|
| - |
|
245 |
System.out.println(miscCharges);
|
| 245 |
if(!miscCharges.isEmpty()){
|
246 |
if(!miscCharges.isEmpty()){
|
| 246 |
totalAmount = totalAmount + miscCharges.get(1);
|
247 |
totalAmount = totalAmount + miscCharges.get(1);
|
| 247 |
}
|
248 |
}
|
| 248 |
for(Order order: transaction.getOrders()){
|
249 |
for(Order order: transaction.getOrders()){
|
| 249 |
totalAmount = totalAmount + order.getTotal_amount();
|
250 |
totalAmount = totalAmount + order.getTotal_amount();
|