io.sphere.sdk.cartdiscounts.commands.CartDiscountCreateCommand Maven / Gradle / Ivy
The newest version!
/*
This class has been generated by class io.sphere.sdk.annotations.processors.CreateCommandEndpointAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.HasCreateCommand.
in the source class io.sphere.sdk.cartdiscounts.CartDiscount.
To render this class the handlebars template 'commands/createCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.cartdiscounts.commands;
import io.sphere.sdk.commands.DraftBasedCreateCommandDsl;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.cartdiscounts.CartDiscount;
import io.sphere.sdk.cartdiscounts.CartDiscountDraft;
import io.sphere.sdk.cartdiscounts.expansion.CartDiscountExpansionModel;
/**
Command object to create a {@link CartDiscount}.
{@include.example io.sphere.sdk.cartdiscounts.commands.CartDiscountCreateCommandIntegrationTest#execution() }
@see CartDiscountDraft
@see CartDiscount
*/
public interface CartDiscountCreateCommand extends DraftBasedCreateCommandDsl, MetaModelReferenceExpansionDsl> {
/**
Creates a command object to create a {@link CartDiscount}.
@param draft template to create the new object
@return a new create command
*/
static CartDiscountCreateCommand of(final CartDiscountDraft draft) {
return new CartDiscountCreateCommandImpl(draft);
}
}