io.sphere.sdk.discountcodes.commands.DiscountCodeCreateCommand 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.discountcodes.DiscountCode.
To render this class the handlebars template 'commands/createCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.discountcodes.commands;
import io.sphere.sdk.commands.DraftBasedCreateCommandDsl;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.discountcodes.DiscountCode;
import io.sphere.sdk.discountcodes.DiscountCodeDraft;
import io.sphere.sdk.discountcodes.expansion.DiscountCodeExpansionModel;
/**
Command object to create a {@link DiscountCode}.
{@include.example io.sphere.sdk.discountcodes.commands.DiscountCodeCreateCommandIntegrationTest#execution() }
@see DiscountCodeDraft
@see DiscountCode
*/
public interface DiscountCodeCreateCommand extends DraftBasedCreateCommandDsl, MetaModelReferenceExpansionDsl> {
/**
Creates a command object to create a {@link DiscountCode}.
@param draft template to create the new object
@return a new create command
*/
static DiscountCodeCreateCommand of(final DiscountCodeDraft draft) {
return new DiscountCodeCreateCommandImpl(draft);
}
}