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

io.sphere.sdk.orders.SyncInfo Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
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