io.sphere.sdk.orders.SyncInfoImpl Maven / Gradle / Ivy
package io.sphere.sdk.orders;
import com.fasterxml.jackson.annotation.JsonCreator;
import io.sphere.sdk.channels.Channel;
import io.sphere.sdk.models.Base;
import io.sphere.sdk.models.Reference;
import javax.annotation.Nullable;
import java.time.ZonedDateTime;
final class SyncInfoImpl extends Base implements SyncInfo {
private final Reference channel;
@Nullable
private final String externalId;
private final ZonedDateTime syncedAt;
@JsonCreator
SyncInfoImpl(final Reference channel, final ZonedDateTime syncedAt, @Nullable final String externalId) {
this.channel = channel;
this.externalId = externalId;
this.syncedAt = syncedAt;
}
public Reference getChannel() {
return channel;
}
@Nullable
public String getExternalId() {
return externalId;
}
public ZonedDateTime getSyncedAt() {
return syncedAt;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy