Package com.globant.google.mendoza.malbec.schema._2

Examples of com.globant.google.mendoza.malbec.schema._2.CheckoutRedirect


      ShippingMethods methods, DefaultTaxTable defaultTaxTable,
      List<AlternateTaxTable> alterTaxTableList,
      MerchantCalculations couponInfo, String editCartUrl,
      String continueShoppingUrl) throws ProtocolException {

    AlternateTaxTables aTables
        = _objectFact.createTaxTablesAlternateTaxTables();
    List<AlternateTaxTable> aTaxList = aTables.getAlternateTaxTable();
    if (alterTaxTableList != null) {
      for (AlternateTaxTable aTaxtable : alterTaxTableList) {
        aTaxList.add(aTaxtable);
      }
    }
View Full Code Here


   */
  public Document addTrackingData(String orderNumber, String trackNumber,
      String courier) throws ProtocolException {
    AddTrackingDataRequest addTrackingDataRequest
        = _objectFact.createAddTrackingDataRequest();
    TrackingData trackData = _objectFact.createTrackingData();
    trackData.setTrackingNumber(trackNumber);
    trackData.setCarrier(courier);
    addTrackingDataRequest.setTrackingData(trackData);
    addTrackingDataRequest.setGoogleOrderNumber(orderNumber);
    JAXBElement<AddTrackingDataRequest> addTrackingData
        = _objectFact.createAddTrackingData(addTrackingDataRequest);
    return convertToDOM(addTrackingData);
View Full Code Here

   */
  public Document trackOrder(String orderNumber, String trackNumber,
      String courier, boolean toEmail) throws ProtocolException {
    DeliverOrderRequest deliveryRequest
        = createOrderDelivery(orderNumber, toEmail);
    TrackingData trackData = _objectFact.createTrackingData();
    trackData.setTrackingNumber(trackNumber);
    trackData.setCarrier(courier);
    deliveryRequest.setTrackingData(trackData);
    JAXBElement<DeliverOrderRequest> deliverRequest
        = _objectFact.createDeliverOrder(deliveryRequest);
    return convertToDOM(deliverRequest);
  }
View Full Code Here

    }
   
    AllowedAreas allowedAreas
        = _objectFact.createShippingRestrictionsAllowedAreas();
    List allowedList = allowedAreas.getUsStateAreaOrUsZipAreaOrUsCountryArea();
    USCountryArea countryArea = _objectFact.createUSCountryArea();
    countryArea.setCountryArea(biggerArea);
    allowedList.add(countryArea);
    return allowedAreas;
  }
View Full Code Here

    }
   
    ExcludedAreas excludedAreas
        = _objectFact.createShippingRestrictionsExcludedAreas();
    List allowedList = excludedAreas.getUsStateAreaOrUsZipAreaOrUsCountryArea();
    USCountryArea countryArea = _objectFact.createUSCountryArea();
    countryArea.setCountryArea(biggerArea);
    allowedList.add(countryArea);
    return excludedAreas;
  }
View Full Code Here

      throws ProtocolException {
    if (usArea == null) {
      throw new ProtocolException("invalid USArea: " + usArea);
    }
   
    USCountryArea countryArea = _objectFact.createUSCountryArea();
    countryArea.setCountryArea(usArea);
    return countryArea;
  }
View Full Code Here

    assertNull(cart.getMerchantPrivateData());
  }

  private List<USStateArea> makeUSState() throws Exception {
    CheckoutCartBuilder pBuilder = CheckoutCartBuilder.getInstance();
    USStateArea caState = pBuilder.createStateArea("ca");
    USStateArea nyState = pBuilder.createStateArea("ny");
    List<USStateArea> stateAreasList = new ArrayList<USStateArea>();
    stateAreasList.add(caState);
    stateAreasList.add(nyState);
    return stateAreasList;
  }
View Full Code Here

      throws ProtocolException {
    if (StringUtil.isEmpty(state)) {
      throw new ProtocolException("invalid state: " + state);
    }
   
    USStateArea stateArea = _objectFact.createUSStateArea();
    stateArea.setState(state.toUpperCase());
    return stateArea;
  }
View Full Code Here

      throws ProtocolException {
    if (StringUtil.isEmpty(zip)) {
      throw new ProtocolException("invalid zip: " + zip);
    }
       
    USZipArea zipArea = _objectFact.createUSZipArea();
    zipArea.setZipPattern(zip);
    return zipArea;
  }
View Full Code Here

   * Google Checkout to move the order back into the merchant's Inbox
   * in the Google Checkout Merchant Center.
   * @param orderNumber Google Checkout-assigned order number
   */
  public Document unarchiveOrder(String orderNumber) throws ProtocolException {
    UnarchiveOrderRequest unArchiveReqeust
        = _objectFact.createUnarchiveOrderRequest();
    unArchiveReqeust.setGoogleOrderNumber(orderNumber);
    JAXBElement<UnarchiveOrderRequest> unArchiveOrder
        = _objectFact.createUnarchiveOrder(unArchiveReqeust);
    return convertToDOM(unArchiveOrder);
  }
View Full Code Here

TOP

Related Classes of com.globant.google.mendoza.malbec.schema._2.CheckoutRedirect

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.