Package org.zeroexchange.money

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


            }
        }
       
        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

                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

Related Classes of org.zeroexchange.money.PayerData

Copyright © 2018 www.massapicom. 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.