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

io.sphere.sdk.cartdiscounts.queries.CartDiscountByIdGet Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.cartdiscounts.queries;

import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.cartdiscounts.expansion.CartDiscountExpansionModel;
import io.sphere.sdk.expansion.ExpansionPath;
import io.sphere.sdk.models.Identifiable;
import io.sphere.sdk.queries.MetaModelGetDsl;

import java.util.List;

/**
 * Gets a {@link CartDiscount} by a known ID.
 *
 * {@include.example io.sphere.sdk.cartdiscounts.queries.CartDiscountByIdGetIntegrationTest#execution()}
 */
public interface CartDiscountByIdGet extends MetaModelGetDsl> {
    static CartDiscountByIdGet of(final Identifiable cartDiscount) {
        return of(cartDiscount.getId());
    }

    static CartDiscountByIdGet of(final String id) {
        return new CartDiscountByIdGetImpl(id);
    }

    @Override
    List> expansionPaths();

    @Override
    CartDiscountByIdGet plusExpansionPaths(final ExpansionPath expansionPath);

    @Override
    CartDiscountByIdGet withExpansionPaths(final ExpansionPath expansionPath);

    @Override
    CartDiscountByIdGet withExpansionPaths(final List> expansionPaths);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy