io.sphere.sdk.discountcodes.commands.DiscountCodeDeleteCommand Maven / Gradle / Ivy
/*
This class has been generated by class io.sphere.sdk.annotations.processors.DeleteCommandEndpointAnnotationProcessor
induced by the annotation io.sphere.sdk.annotations.HasDeleteCommand.
in the source class io.sphere.sdk.discountcodes.DiscountCode.
To render this class the handlebars template 'commands/deleteCommandInterface.hbs' has been used.
*/
package io.sphere.sdk.discountcodes.commands;
import io.sphere.sdk.commands.DeleteCommand;
import io.sphere.sdk.expansion.MetaModelReferenceExpansionDsl;
import io.sphere.sdk.models.Versioned;
import io.sphere.sdk.discountcodes.DiscountCode;
import io.sphere.sdk.discountcodes.expansion.DiscountCodeExpansionModel;
import static io.sphere.sdk.client.SphereRequestUtils.urlEncode;
/**
Command object to delete a {@link DiscountCode}.
@see DiscountCode
*/
public interface DiscountCodeDeleteCommand extends MetaModelReferenceExpansionDsl>, DeleteCommand {
/**
Creates a command object to delete a {@link DiscountCode} by ID.
@param versioned the object to delete (so directly a {@link DiscountCode}) or just the version/ID information of it
@return delete command
*/
static DiscountCodeDeleteCommand of(final Versioned versioned) {
return new DiscountCodeDeleteCommandImpl(versioned,false);
}
/**
Creates a command object to delete a {@link DiscountCode} by ID.
@param versioned the object to delete (so directly a {@link DiscountCode}) or just the version/ID information of it
@param eraseData If set to {@literal true}, the commercetools platform guarantees that all personal data related to the particular object, including invisible data, is erased, in compliance with the GDPR.
@return delete command
*/
static DiscountCodeDeleteCommand of(final Versioned versioned,final boolean eraseData) {
return new DiscountCodeDeleteCommandImpl(versioned,eraseData);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy