Examples of PayerData


Examples of org.zeroexchange.money.PayerData

       
        //Write-on cycle
        BigDecimal writeOnAmount = totalSuppliersPrice.
                divide(BigDecimal.valueOf(consumersCount), RoundingMode.HALF_UP);
        moneyManager.performAutoMovement(Collections.singleton(
                new PayerData(supplier, writeOnAmount, supplierTender.getCurrency())),
                Collections.singleton(consumer));
    }
View Full Code Here

Examples of org.zeroexchange.money.PayerData

            }
        }
       
        for(User user: contractUsers) {
            BigDecimal userAmount = contractInformant.getUserContributionPrice(contract, user, moneyManager.getDefaultCurrency());
            usersEfforts.add(new PayerData(user, userAmount, moneyManager.getDefaultCurrency()));
        }
        moneyManager.reconcile(usersEfforts);
    }
View Full Code Here

Examples of org.zeroexchange.money.PayerData

                consumers.add(need.getUser());
            }
        }
        for(Supply supply: resource.getSupplies()) {
            if(supply.getAcceptDate() != null && supply.getUser() != null) {
                paymentsData.add(new PayerData(
                        supply.getUser(), supply.getAmount(), supply.getCurrency()));
            }           
        }
       
        currenciesManager.performAutoMovement(paymentsData, consumers);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.