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

io.sphere.sdk.subscriptions.ResourceUpdatedPayload 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 updated.
 *
 * @param  the resource type
 */
@JsonDeserialize(as = ResourceUpdatedPayloadImpl.class)
@ResourceValue
public interface ResourceUpdatedPayload extends Payload {

    /**
     * The version of the resource after the update.
     *
     * @return the resource version after the update
     */
    Long getVersion();

    /**
     * The version of the resource before the update.
     *
     * @return the resource version before the update
     */
    Long getOldVersion();

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy