Examples of PaymentInfo


Examples of Shop.PaymentInfo

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetPaymentInfo(PaymentInfo newPaymentInfo, NotificationChain msgs) {
    PaymentInfo oldPaymentInfo = paymentInfo;
    paymentInfo = newPaymentInfo;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ShopPackage.BILLING_INFORMATION__PAYMENT_INFO, oldPaymentInfo, newPaymentInfo);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of Shop.PaymentInfo

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetPaymentInfo(PaymentInfo newPaymentInfo, NotificationChain msgs) {
    PaymentInfo oldPaymentInfo = paymentInfo;
    paymentInfo = newPaymentInfo;
    if (eNotificationRequired()) {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ShopPackage.ORDER__PAYMENT_INFO, oldPaymentInfo, newPaymentInfo);
      if (msgs == null) msgs = notification; else msgs.add(notification);
    }
View Full Code Here

Examples of com.openbravo.pos.payment.PaymentInfo

                    orders.setCoupon_code("0");
                    orders.setProducts(products);

                    Double totalpaid = 0.0;
                    for (int j = 0; j < ticket.getPayments().size(); j++) {
                        PaymentInfo payment = ticket.getPayments().get(j);

                        if (("magcard".equals(payment.getName()))
                                || ("cheque".equals(payment.getName()))
                                || ("cash".equals(payment.getName()))) {
                            totalpaid += payment.getTotal();
                        }
                    }

                    totalpaid = (Math.round(totalpaid * 100.0)) / 1.0;
                    String note = ("TicketID=" + ticket.printId() + ",TotalPaid=" + (totalpaid / 100) + ",Vendeur=" + ticket.printUser());
View Full Code Here

Examples of com.openbravo.pos.payment.PaymentInfo

            orders[i].setLines(orderLine);

            //Saco las lineas de pago
            Payment[] paymentLine = new Payment[ticket.getPayments().size()];
            for (int j = 0; j < ticket.getPayments().size(); j++){      
                PaymentInfo payment = ticket.getPayments().get(j);

                paymentLine[j] = new Payment();
                paymentLine[j].setAmount(payment.getTotal());
                if ("magcard".equals(payment.getName())) {
                    paymentLine[j].setPaymentType("K");
                } else if ("cheque".equals(payment.getName())) {
                    paymentLine[j].setPaymentType("2");
                } else if ("cash".equals(payment.getName())) {
                    paymentLine[j].setPaymentType("B");
                } else {
                    paymentLine[j].setPaymentType(null); // unknown
                }       
            }    
View Full Code Here

Examples of com.openbravo.pos.payment.PaymentInfo

            orders[i].setLines(orderLine);

            //Saco las lineas de pago
            Payment[] paymentLine = new Payment[ticket.getPayments().size()];
            for (int j = 0; j < ticket.getPayments().size(); j++){      
                PaymentInfo payment = ticket.getPayments().get(j);

                paymentLine[j] = new Payment();
                paymentLine[j].setAmount(payment.getTotal());
                if ("magcard".equals(payment.getName())) {
                    paymentLine[j].setPaymentType("K");
                } else if ("cheque".equals(payment.getName())) {
                    paymentLine[j].setPaymentType("2");
                } else if ("cash".equals(payment.getName())) {
                    paymentLine[j].setPaymentType("B");
                } else {
                    paymentLine[j].setPaymentType(null); // unknown
                }       
            }    
View Full Code Here

Examples of com.tll.model.PaymentInfo

  }

  @Override
  public void doPersistDependentEntities() {
    final Currency currency = createAndPersist(Currency.class, true);
    final PaymentInfo paymentInfo = createAndPersist(PaymentInfo.class, true);
    pkCurrency = currency.getId();

    Asp parent = create(Asp.class, true);
    parent.setParent(null); // eliminate pointer chasing
    parent.setCurrency(currency);
    parent.setPaymentInfo(paymentInfo);
    parent = persist(parent);
    pkAccountParent = parent.getId();
    pkPaymentInfo = paymentInfo.getId();
  }
View Full Code Here

Examples of com.tll.model.PaymentInfo

    final Address adr1 = createAndPersist(Address.class, true);
    final Address adr2 = createAndPersist(Address.class, true);
    pkAdr1 = adr1.getId();
    pkAdr2 = adr2.getId();

    final PaymentInfo pi = createAndPersist(PaymentInfo.class, true);
    pkPI = pi.getId();

    final Asp asp = create(Asp.class, true);
    asp.setCurrency(c);
    asp.setPaymentInfo(pi);
    pkA = asp.getId();
View Full Code Here

Examples of com.tll.model.PaymentInfo

  PrimaryKey<Account> pkAccountParent;

  @Override
  public void persistDependentEntities() {
    final Currency currency = createAndPersist(Currency.class, true);
    final PaymentInfo paymentInfo = createAndPersist(PaymentInfo.class, true);
    pkCurrency = new PrimaryKey<Currency>(currency);

    Account parent = create(Account.class, true);
    parent.setParent(null); // eliminate pointer chasing
    parent.setCurrency(currency);
View Full Code Here

Examples of org.jayasoft.woj.portal.model.PaymentInfo

        LoggingManager.initSimpleLoggingManagement();
        InvoiceBuilder builder = ItextPDFInvoiceBuilder.instance();
        Order o = new Order();
        o.setTotalCost(50.0d);
        Invoice i = new Invoice();
        PaymentInfo pi = new PaymentInfo();
        License l = new License();
        Price p = new Price();
        p.setPriceByYear(50);
        l.setPrice(p);
        pi.setLicenses(Collections.singleton(l));
        o.setPayments(Collections.singleton(pi));
        o.setInvoice(i);
        Purchaser pur = getPurchaser();
        if (builder.buildInvoicePDF(o, pur, "inv-" + System.currentTimeMillis()) != null) {
            LOGGER.debug("pdf done");
View Full Code Here

Examples of org.jayasoft.woj.portal.model.PaymentInfo

  }
  public PaymentInfo newPaymentInfo(Order order, String transactionId, String authorisationId, String bankResponseCode) throws ServiceException {
        LOGGER.info(MessageFormat.format("saving payment transactionId[{0}] authId[{1}] bankCode[{2}] for order : {3}"
                        , new Object[] {transactionId, authorisationId, bankResponseCode, order})
        );
    PaymentInfo paymentInfo = (PaymentInfo) DaoFactory.getPaymentInfoDao().newHandledObject();
    paymentInfo.setOrder(order);
    paymentInfo.setTransactionId(transactionId);
    paymentInfo.setBankResponseCode(bankResponseCode);
    paymentInfo.setAuthorisationId(authorisationId);
    try {
      DaoFactory.getPaymentInfoDao().save(paymentInfo);
            LOGGER.info("payment registered");
      return paymentInfo;
    } catch (DaoException e) {
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.