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

io.sphere.sdk.subscriptions.ResourceDeletedPayload Maven / Gradle / Ivy

The newest version!
package io.sphere.sdk.subscriptions;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.annotations.ResourceValue;

import java.time.ZonedDateTime;

/**
 * This payload will be sent for a ChangeSubscription if a resource was deleted.
 *
 * @param  the resource type
 */
@JsonDeserialize(as = ResourceDeletedPayloadImpl.class)
@ResourceValue
public interface ResourceDeletedPayload extends Payload {
    /**
     * The version of the resource at the time of deletion.
     *
     * @return the resource version at deletion time
     */
    Long getVersion();

    /**
     * @return The point in time when the resource was deleted
     */
    ZonedDateTime getModifiedAt();

    /**
     * @return true if the dataErasure parameter was set to true.
     */
    Boolean getDataErasure();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy