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

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

The newest version!
package io.sphere.sdk.carts.expansion;

import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.customergroups.expansion.CustomerGroupExpansionModel;

import java.util.List;

/**
 * Model to explore reference fields in a cart that can be expanded.
 *
 * @param  the context type
 */
public interface CartExpansionModel extends CartLikeExpansionModel {
    @Override
    CustomerGroupExpansionModel customerGroup();

    @Override
    DiscountCodeInfoExpansionModel discountCodes();

    @Override
    DiscountCodeInfoExpansionModel discountCodes(int index);

    @Override
    LineItemExpansionModel lineItems();

    @Override
    LineItemExpansionModel lineItems(int index);

    @Override
    CustomLineItemExpansionModel customLineItems();

    @Override
    CustomLineItemExpansionModel customLineItems(int index);

    @Override
    PaymentInfoExpansionModel paymentInfo();

    @Override
    ShippingInfoExpansionModel shippingInfo();

    static CartExpansionModel of() {
        return new CartExpansionModelImpl<>();
    }

    static  CartExpansionModel of(final List parentPath, final String path) {
        return new CartExpansionModelImpl<>(parentPath, path);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy