Examples of EcommerceAction


Examples of com.eclipsesource.tabris.tracking.internal.piwik.model.action.EcommerceAction

    return new SearchAction( createHost( event ) + "/action/search/" + actionId, event.getInfo().getSearchQuery() );
  }

  private Action createEcommerceAction( TrackingEvent event ) {
    Order order = ( Order )event.getDetail();
    EcommerceAction action = new EcommerceAction( createHost( event ) + "/action/ecommerce/" + order.getOrderId(),
                                                  order.getOrderId(),
                                                  order.getTotal() );
    action.setTax( order.getTax() );
    action.setShipping( order.getShipping() );
    if( !order.getItems().isEmpty() ) {
      action.setItems( getOrderItems( order.getItems() ) );
    }
    return action;
  }
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.