package io.delphiplatform.api.v3.model.apple;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;

import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.format.annotation.DateTimeFormat.ISO;

import java.time.LocalDate;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@JsonPropertyOrder(alphabetic = true)
public class AppleAlbum {

    @JsonProperty("album_id")
    private String albumId;

    @JsonProperty("name")
    private String name;

    @JsonProperty("image")
    private String image;

    @JsonProperty("upc")
    private String upc;

    @JsonProperty("release_date")
    @DateTimeFormat(iso = ISO.DATE)
    private LocalDate releaseDate;
}
