Examples of Account


Examples of com.bank.domain.Account

      throw new IllegalArgumentException(
          format("transfer amount must be at least $%.2f", minimumTransferAmount));

    TransferReceipt receipt = new TransferReceipt();

    Account srcAcct = accountRepository.findById(srcAcctId);
    Account dstAcct = accountRepository.findById(dstAcctId);

    receipt.setInitialSourceAccount(srcAcct);
    receipt.setInitialDestinationAccount(dstAcct);

    double fee = feePolicy.calculateFee(amount);
    if (fee > 0)
      srcAcct.debit(fee);

    receipt.setTransferAmount(amount);
    receipt.setFeeAmount(fee);

    srcAcct.debit(amount);
    dstAcct.credit(amount);

    accountRepository.updateBalance(srcAcct);
    accountRepository.updateBalance(dstAcct);

    receipt.setFinalSourceAccount(srcAcct);
View Full Code Here

Examples of com.camunda.fox.model.entity.Account

  @PersistenceContext
  private EntityManager entityManager;

  public void setUpAccout(Order order) {
    Account account = new Account(createAccountNumber(),
        order.getAccounttype(), null);
    entityManager.persist(account);

    Address address = new Address(order.getAddress().getStreet(), order
        .getAddress().getNumber(), order.getAddress().getZipcode(),
        order.getAddress().getCity(), order.getAddress().getState(),
        order.getAddress().getCountry());
    Customer customer = new Customer(order.getPerson().getFirstname(),
        order.getPerson().getLastname(), order.getPerson().getTitle(),
        order.getPerson().getDateofbirth(), order.getPerson()
            .getPlaceofbirth(), order.getPerson().getGender(),
        order.getPerson().getPhonenumber(), order.getPerson()
            .getEmail(), address);

    account.setCustomer(customer);
  }
View Full Code Here

Examples of com.cellasoft.jchat.utils.Account

            if (auth_stub instanceof LoginProxyInterface) {
                statusMsg.setText("Login...");
                progresB.setValue(55);
                MarshalledObject dataMO =
                        ((LoginProxyInterface) auth_stub).login(
                        new Account(username, password)); //mi ritorna un MS
                statusMsg.setText("Login successful...");
                progresB.setValue(70);
                Object msObj = dataMO.get();
                progresB.setValue(75);
View Full Code Here

Examples of com.cloud.user.Account

    @Override
    @DB
    public VirtualRouter upgradeRouter(UpgradeRouterCmd cmd) {
        Long routerId = cmd.getId();
        Long serviceOfferingId = cmd.getServiceOfferingId();
        Account caller = UserContext.current().getCaller();

        DomainRouterVO router = _routerDao.findById(routerId);
        if (router == null) {
            throw new InvalidParameterValueException("Unable to find router with id " + routerId);
        }
View Full Code Here

Examples of com.dodo.blog.model.Account

    }

    @GetModel( name = REGISTRATION_FORM )
    public Account getModel()
    {
        return new Account();
    }
View Full Code Here

Examples of com.evasion.entity.Account

        }
    }

    private void aroundCreateAccount(InvocationContext ctx) {
        if (ctx.getMethod().getName().equals("createAccount")) {
            Account account = (Account) ctx.getParameters()[0];
            if (StringUtils.equalsIgnoreCase(paramEJB.getProperty(Constante.SEND_EMAIL_ACCOUNT_CREATION), Boolean.TRUE.toString())) {
                LOGGER.debug("demande d'envoi de mail :" + account);
                Map<String, Object> properties = new HashMap<String, Object>();
                properties.put("account", account);
                mailEJB.sendEmailWithTemplate(account.getUser().getUsername(), Constante.SEND_EMAIL_ACCOUNT_CREATION, properties);
            }
        }
    }
View Full Code Here

Examples of com.evasion.plugin.common.entity.Account

        getEventManager().addEvent(plugin, entityName, entityId, code, this.getPrinciaplUserName());
    }

    @Override
    public AccountDTO createAccount(AccountDTO extAccount) throws EvasionException {
        Account account = new Account();
        account.mergeFromDTO(extAccount);
        personEJB.createPerson(account.getPerson()); // @TODO à transférer dans l'accountManager une fois supprimé le mode EJB.
        getAccountManager().createAccount(account);
        return Account.toDTO(account);
    }
View Full Code Here

Examples of com.example.bookstore.domain.Account

    @Autowired
    private AccountService accountService;

    @Before
    public void setup() throws AuthenticationException {
        Account account = new AccountBuilder() {
            {
                address("Herve", "4650", "Rue de la station", "1", null, "Belgium");
                credentials("john", "secret");
                name("John", "Doe");
            }
View Full Code Here

Examples of com.example.customer.Account

     
      Type customerType = hc.getTypeHelper().getType(Customer.class);  
      DataGraph dataGraph = SDOUtil.createDataGraph();
      Customer customer = (Customer) dataGraph.createRootObject(customerType);
   
      Account account = CustomerFactory.INSTANCE.createAccount();
      customer.setAccount(account);
      customer.setFirstName("John");
      customer.getAccount().setAccountNum(1234);
       
      ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
View Full Code Here

Examples of com.excilys.ebi.bank.model.entity.Account

  private void exportAccount(ModelMap model, Map<String, ?> pathVariables) {

    String accountNumber = getModelOrPathAttribute("accountNumber", model, pathVariables);
    Assert.notNull(accountNumber, "accountNumber required");

    Account account = bankService.findAccountByNumberFetchCards(accountNumber);
    model.addAttribute("account", account);
  }
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.