Package com.mes.sdk.gateway.Level3

Examples of com.mes.sdk.gateway.Level3.MasterCardLineItem


      .setParameter("invoice_number", "123456")
      .setParameter("client_reference_number", "Java SDK Test")

      // Add two line items
      .addLineItem(
          new AmexLineItem()
            .itemDescription("Carbon Dioxide")
            .quantity(1)
            .unitCost("0.00")
          )
      .addLineItem(
          new AmexLineItem()
            .itemDescription("Carbonite Chamber")
            .quantity(1)
            .unitCost("0.00")
          )
View Full Code Here


      }
    }
   
    // Add each level 3 line items to the request.
    for(int i=0; i<req.lineItems.size(); ++i) {
      LineItemData lineItem = req.lineItems.get(i);
      try {
        sb.append("&").append(lineItem.getFieldName()).append("=");
        sb.append(URLEncoder.encode(lineItem.toString(), "UTF-8"));
      } catch (UnsupportedEncodingException e) {
        throw new MesRuntimeException("Unable to URL Encode the following line item value: "+lineItem.toString());
      }
    }
    if(req.lineItems.size() > 0) {
      sb.append("&").append(LineItemData.lineItemCountFieldName).append("=").append(req.lineItems.size());
    }
View Full Code Here

        .setParameter("invoice_number", "123456")
        .setParameter("client_reference_number", "Java SDK Test")
       
        // Add two line items
        .addLineItem(
          new MasterCardLineItem()
            .itemDescription("Carbon Dioxide")
            .productCode("equipment")
            .quantity(1)
            .unitOfMeasure("EA")
            .altTaxIdentifier("000000000000000")
            .taxRateApplied("5.0")
            .taxTypeApplied("STAT")
            .taxAmount("17.32")
            .discountIndicator(DiscountInd.N)
            .netGrossIndicator(NetGrossInd.N)
            .extendedItemAmount("346.46")
            .debitOrCreditIndicator(DebitCreditInd.D)
            .discountAmount("0.00")
        )
        .addLineItem(
          new MasterCardLineItem()
            .itemDescription("Carbon Monoxide")
            .productCode("equipment")
            .quantity(1)
            .unitOfMeasure("EA")
            .altTaxIdentifier("000000000000000")
View Full Code Here

        .setParameter("invoice_number", "123456")
        .setParameter("client_reference_number", "Java SDK Test")
       
        // Add two line items
        .addLineItem(
          new VisaLineItem()
            .itemCommodityCode("5096")
            .itemDescriptor("Carbon Dioxide")
            .productCode("equipment")
            .quantity(1)
            .unitOfMeasure("EA")
            .unitCost("1200.00")
            .vatTaxAmount("0.00")
            .vatTaxRate("0.0")
            .discountPerLine("0.00")
            .lineItemTotal("1200.00")
            .debitOrCreditIndicator(DebitCreditInd.D)
        )
        .addLineItem(
          new VisaLineItem()
            .itemCommodityCode("5097")
            .itemDescriptor("Carbon Monoxide")
            .productCode("equipment")
            .quantity(1)
            .unitOfMeasure("EA")
View Full Code Here

TOP

Related Classes of com.mes.sdk.gateway.Level3.MasterCardLineItem

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.