@@ -0,0 +1,2567 @@
+/**%0D%0A * Most of the code in the Qalingo project is copyrighted Hoteia and licensed%0D%0A * under the Apache License Version 2.0 (release version 0.8.0)%0D%0A *         http://www.apache.org/licenses/LICENSE-2.0%0D%0A *%0D%0A *                   Copyright (c) Hoteia, 2012-2014%0D%0A * http://www.hoteia.com - http://twitter.com/hoteia - contact@hoteia.com%0D%0A *%0D%0A */%0D%0Apackage org.hoteia.qalingo.core.fetchplan.order;%0D%0A%0D%0Aimport java.util.ArrayList;%0D%0Aimport java.util.List;%0D%0A%0D%0Aimport org.hoteia.qalingo.core.fetchplan.FetchPlan;%0D%0Aimport org.hoteia.qalingo.core.fetchplan.SpecificAlias;%0D%0Aimport org.hoteia.qalingo.core.fetchplan.SpecificFetchMode;%0D%0A%0D%0Aimport org.hoteia.qalingo.core.domain.Cart_;%0D%0Aimport org.hoteia.qalingo.core.domain.Tag_;%0D%0Aimport org.hoteia.qalingo.core.domain.Tax_;%0D%0Aimport org.hoteia.qalingo.core.domain.CartItem_;%0D%0Aimport org.hoteia.qalingo.core.domain.ProductMarketing_;%0D%0Aimport org.hoteia.qalingo.core.domain.ProductSku_;%0D%0Aimport org.hoteia.qalingo.core.domain.CatalogCategoryVirtual_;%0D%0A%0D%0Apublic class FetchPlanGraphOrder %7B%0D%0A%0D%0A    public static FetchPlan defaultOrderPurchaseFetchPlan() %7B%0D%0A        List%3CSpecificFetchMode%3E fetchplans = new ArrayList%3CSpecificFetchMode%3E();%0D%0A        fetchplans.add(new SpecificFetchMode(%22billingAddress%22));%0D%0A        fetchplans.add(new SpecificFetchMode(%22shippingAddress%22));%0D%0A        fetchplans.add(new SpecificFetchMode(%22orderPayments%22));%0D%0A        fetchplans.add(new SpecificFetchMode(%22orderShipments%22));%0D%0A        fetchplans.add(new SpecificFetchMode(%22orderItems%22, new SpecificAlias(%22orderShipments.orderItems%22)));%0D%0A        %0D%0A        fetchplans.add(new SpecificFetchMode(%22productSku%22, new SpecificAlias(%22orderShipments.orderItems.productSku%22)));%0D%0A        fetchplans.add(new SpecificFetchMode(%22productSkuAttributes%22, new SpecificAlias(%22orderShipments.orderItems.productSku.attributes%22)));%0D%0A%0D%0A        fetchplans.add(new SpecificFetchMode(%22assets%22, new SpecificAlias(%22orderShipments.orderItems.productSku.assets%22)));%0D%0A        fetchplans.add(new SpecificFetchMode(%22orderTaxes%22, new SpecificAlias(%22orderShipments.orderItems.orderTaxes%22)));%0D%0A        fetchplans.add(new SpecificFetchMode(%22currency%22, new SpecificAlias(%22orderShipments.orderItems.currency%22)));%0D%0A%0D%0A        fetchplans.add(new SpecificFetchMode(%22attributes%22));%0D%0A        %0D%0A        return new FetchPlan(fetchplans);%0D%0A    %7D%0D%0A    %0D%0A    public static FetchPlan defaultOrderItemFetchPlan() %7B%0D%0A        List%3CSpecificFetchMode%3E fetchplans = new ArrayList%3CSpecificFetchMode%3E();%0D%0A        fetchplans.add(new SpecificFetchMode(%22taxes%22));%0D%0A        return new FetchPlan(fetchplans);%0D%0A    %7D%0D%0A    %0D%0A%7D

add order fetch plan