Package org.xrace.desjardins.trx

Examples of org.xrace.desjardins.trx.Transactions


    Merchant merchant = new Merchant();
    merchant.setId(loginContext.getMerchantId());
    merchant.setKey(globalContext.getMerchantKey());
    purchaseRequest.setMerchant(merchant);

    Transactions transactions = new Transactions();
    org.xrace.desjardins.trx.Transaction trxDesjardins = new org.xrace.desjardins.trx.Transaction();
    trxDesjardins.setId(globalContext.getTxIdPrefix()
        + transaction.getId().toString());
    trxDesjardins.setKey(loginContext.getTransactionKey());
    trxDesjardins.setType(TransactionTypeType.PURCHASE);
    trxDesjardins.setCurrency("CAD");
    trxDesjardins.setCurrencyText("$CAD");
    trxDesjardins.setAmount(amountInt.longValue());
    trxDesjardins.setLanguage(LanguageType.FR);
    transactions.addTransaction(trxDesjardins);
    merchant.setTransactions(transactions);

    Urls urls = new Urls();
    Url urlResponse = new Url();
    urlResponse.setName(UrlNameType.RESPONSE);
View Full Code Here


    Merchant merchant = new Merchant();
    merchant.setId("24");
    merchant.setKey(StringUtils.repeat("1", 32));
    request.setMerchant(merchant);

    Transactions transactions = new Transactions();
    Transaction transaction = new Transaction();
    transaction.setId("test_1");
    transaction.setKey(StringUtils.repeat("2", 32));
    transaction.setType(TransactionTypeType.PURCHASE);
    transaction.setCurrency("CAD");
    transaction.setCurrencyText("$CAD");
    transaction.setAmount(1200);
    transaction.setLanguage(LanguageType.FR);
    transaction.setCustomer_email("shbehna@gmail.com");
    transactions.addTransaction(transaction);
    merchant.setTransactions(transactions);

    Urls urls = new Urls();
    Url url = new Url();
    url.setName(UrlNameType.RESPONSE);
View Full Code Here

    {
      @Override
      public java.lang.Object getValue(java.lang.Object object)
          throws IllegalStateException
      {
        Transactions target = (Transactions) object;
        return target.getTransaction();
      }

      @Override
      public void setValue(java.lang.Object object, java.lang.Object value)
          throws IllegalStateException, IllegalArgumentException
      {
        try
        {
          Transactions target = (Transactions) object;
          target
              .addTransaction((org.xrace.desjardins.trx.Transaction) value);
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
      }

      @Override
      public void resetValue(Object object) throws IllegalStateException,
          IllegalArgumentException
      {
        try
        {
          Transactions target = (Transactions) object;
          target.removeAllTransaction();
        }
        catch (java.lang.Exception ex)
        {
          throw new IllegalStateException(ex.toString());
        }
View Full Code Here

TOP

Related Classes of org.xrace.desjardins.trx.Transactions

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.