All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.orders.expansion.OrderExpansionModel Maven / Gradle / Ivy

package io.sphere.sdk.orders.expansion;

import io.sphere.sdk.carts.expansion.*;
import io.sphere.sdk.expansion.ExpansionPathContainer;
import io.sphere.sdk.orders.Order;

/**
  DSL class to create expansion path expressions.

 @param  the type for which the expansion path is
 */
public class OrderExpansionModel extends CartLikeExpansionModel {
    private OrderExpansionModel(final String parentPath, final String path) {
        super(parentPath, path);
    }

    OrderExpansionModel() {
        super();
    }

    public SyncInfoExpansionModel syncInfo() {
        //since it is a set, there is no method with index access
        return new SyncInfoExpansionModel<>(pathExpression(), "syncInfo[*]");
    }

    public ExpansionPathContainer cart() {
        return expansionPath("cart");
    }

    public static OrderExpansionModel of() {
        return new OrderExpansionModel<>();
    }

    @Override
    public ExpansionPathContainer customerGroup() {
        return super.customerGroup();
    }

    @Override
    public DiscountCodeInfoExpansionModel discountCodes() {
        return super.discountCodes();
    }

    @Override
    public DiscountCodeInfoExpansionModel discountCodes(final int index) {
        return super.discountCodes(index);
    }

    @Override
    public LineItemExpansionModel lineItems() {
        return super.lineItems();
    }

    @Override
    public LineItemExpansionModel lineItems(final int index) {
        return super.lineItems(index);
    }

    @Override
    public PaymentInfoExpansionModel paymentInfo() {
        return super.paymentInfo();
    }

    @Override
    public ShippingInfoExpansionModel shippingInfo() {
        return super.shippingInfo();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy