io.github.dft.amazon.model.notifications.orderchange.OrderChangeNotification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of amazon-sp-api Show documentation
Show all versions of amazon-sp-api Show documentation
Amazon SP API using JDK 11
package io.github.dft.amazon.model.notifications.orderchange;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.PropertyNamingStrategies;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.github.dft.amazon.common.LocalDateTimeDeserializer;
import io.github.dft.amazon.common.LocalDateTimeSerializer;
import io.github.dft.amazon.model.notifications.NotificationMetadata;
import lombok.Data;
import java.time.LocalDateTime;
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonNaming(PropertyNamingStrategies.UpperCamelCaseStrategy.class)
public class OrderChangeNotification {
private Float notificationVersion;
private String notificationType;
private Float payloadVersion;
private OrderChangePayload payload;
private NotificationMetadata notificationMetadata;
@JsonSerialize(using = LocalDateTimeSerializer.class)
@JsonDeserialize(using = LocalDateTimeDeserializer.class)
private LocalDateTime eventTime;
}