io.sphere.sdk.orders.SyncInfo Maven / Gradle / Ivy
package io.sphere.sdk.orders;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.models.Referenceable;
import javax.annotation.Nullable;
import java.time.ZonedDateTime;
@JsonDeserialize(as = SyncInfoImpl.class)
public interface SyncInfo {
static SyncInfo of(final Referenceable channel, final ZonedDateTime syncedAt, @Nullable final String externalId) {
return new SyncInfoImpl(channel.toReference(), syncedAt, externalId);
}
Reference getChannel();
@Nullable
String getExternalId();
ZonedDateTime getSyncedAt();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy