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

io.sphere.sdk.carts.expansion.LineItemExpansionModel Maven / Gradle / Ivy

package io.sphere.sdk.carts.expansion;

import io.sphere.sdk.expansion.ExpansionModel;
import io.sphere.sdk.expansion.ExpansionPathContainer;

import java.util.List;

public class LineItemExpansionModel extends ExpansionModel {
    LineItemExpansionModel(final List parentPath, final String path) {
        super(parentPath, path);
    }

    LineItemExpansionModel() {
        super();
    }

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

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

    public ItemStateExpansionModel state() {
        return state("*");
    }

    public ItemStateExpansionModel state(final int index) {
        return state("" + index);
    }

    private ItemStateExpansionModel state(final String s) {
        return new ItemStateExpansionModel<>(pathExpression(), "state[" + s + "]");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy