Package org.xrace.desjardins.trx

Examples of org.xrace.desjardins.trx.Urls


    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);
    urlResponse.setPath(globalContext.getUrlresponse());

    Url urlSuccess = new Url();
    urlSuccess.setName(UrlNameType.SUCCESS);
    urlSuccess.setPath(globalContext.getUrlSuccess());

    Url urlError = new Url();
    urlError.setName(UrlNameType.ERROR);
    urlError.setPath(globalContext.getUrlError());

    Url urlCancel = new Url();
    urlCancel.setName(UrlNameType.CANCEL);
    urlCancel.setPath(globalContext.getUrlCancel());

    urls.addUrl(urlResponse);
    urls.addUrl(urlSuccess);
    urls.addUrl(urlError);
    urls.addUrl(urlCancel);

    trxDesjardins.setUrls(urls);

    trxDesjardins.setDetails("Detail");
    trxDesjardins
View Full Code Here


    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);
    url.setPath("http://192.168.0.1/");
    urls.addUrl(url);
    transaction.setUrls(urls);

    File mappingFile = new ClassPathResource("binding.xml").getFile();
    InputSource inputSource = new InputSource(new FileReader(mappingFile));
View Full Code Here

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

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

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

TOP

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

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.