io.sphere.sdk.orders.expansion.OrderExpansionModel Maven / Gradle / Ivy
package io.sphere.sdk.orders.expansion;
import io.sphere.sdk.carts.expansion.CartLikeExpansionModel;
import io.sphere.sdk.expansion.ExpansionPath;
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 ExpansionPath cart() {
return expansionPath("cart");
}
public static OrderExpansionModel of() {
return new OrderExpansionModel<>();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy