io.sphere.sdk.carts.commands.CartCreateCommand 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.carts.Cart.
To render this class the handlebars template 'commands/createCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.carts.commands;
import io.sphere.sdk.commands.DraftBasedCreateCommandDsl;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.carts.Cart;
import io.sphere.sdk.carts.CartDraft;
import io.sphere.sdk.carts.expansion.CartExpansionModel;
/**
Creates a cart.
{@include.example io.sphere.sdk.carts.commands.CartCreateCommandIntegrationTest#execution() }
{@include.example io.sphere.sdk.carts.commands.CartCreateCommandIntegrationTest#fullExample() }
@see CartDraft
@see Cart
*/
public interface CartCreateCommand extends DraftBasedCreateCommandDsl, MetaModelReferenceExpansionDsl> {
/**
Creates a command object to create a {@link Cart}.
@param draft template to create the new object
@return a new create command
*/
static CartCreateCommand of(final CartDraft draft) {
return new CartCreateCommandImpl(draft);
}
}