|
| 1 | +/* |
| 2 | + * |
| 3 | + * * Copyright (c) 2022-2024 benelog GmbH & Co. KG |
| 4 | + * * All rights reserved. |
| 5 | + * * |
| 6 | + * * Unauthorized copying, modification, distribution, |
| 7 | + * * or use of this work, via any medium, is strictly prohibited. |
| 8 | + * * |
| 9 | + * * benelog GmbH & Co. KG reserves all rights not expressly granted herein, |
| 10 | + * * including the right to sell licenses for using this work. |
| 11 | + * |
| 12 | + */ |
| 13 | +package io.openepcis.model.dto; |
| 14 | + |
| 15 | +import com.fasterxml.jackson.annotation.JsonFormat; |
| 16 | +import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| 17 | +import io.openepcis.model.epcis.modifier.OffsetDateTimeSerializer; |
| 18 | +import lombok.AllArgsConstructor; |
| 19 | +import lombok.Builder; |
| 20 | +import lombok.Data; |
| 21 | +import lombok.NoArgsConstructor; |
| 22 | + |
| 23 | +import java.time.OffsetDateTime; |
| 24 | + |
| 25 | +import static com.fasterxml.jackson.annotation.JsonFormat.Feature.ADJUST_DATES_TO_CONTEXT_TIME_ZONE; |
| 26 | +import static com.fasterxml.jackson.annotation.JsonFormat.Feature.WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS; |
| 27 | + |
| 28 | +@Data |
| 29 | +@AllArgsConstructor |
| 30 | +@NoArgsConstructor |
| 31 | +@Builder |
| 32 | +public class GS1VerifiedIDES { |
| 33 | + |
| 34 | + private String type; |
| 35 | + private String identifier; |
| 36 | + private String licenseeName; |
| 37 | + private String licenceKey; |
| 38 | + private String licenceType; |
| 39 | + private String licenseeGLN; |
| 40 | + private String licensingMOName; |
| 41 | + @JsonSerialize(using = OffsetDateTimeSerializer.class) |
| 42 | + @JsonFormat(without = {ADJUST_DATES_TO_CONTEXT_TIME_ZONE, WRITE_DATE_TIMESTAMPS_AS_NANOSECONDS}) |
| 43 | + private OffsetDateTime createdAt; |
| 44 | +} |
0 commit comments