package cz.moneta.test.dsl.wso2.objects.smallbusiness;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class GetDepositAccForLegalResponse {

    @JsonProperty("Data")
    private List<Item> data;

    @JsonProperty("Index")
    private Long index;

    @JsonProperty("Pocet")
    private Long pocet;

    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Item {
        @JsonProperty("CisloUctu")
        private String cisloUctu;

        @JsonProperty("CisloUctuExt")
        private String cisloUctuExt;

        @JsonProperty("Produkt")
        private String produkt;

        @JsonProperty("ObchodniMistoKod")
        private String obchodniMistoKod;

        @JsonProperty("DatumZalozeni")
        private String datumZalozeni;

        @JsonProperty("Trida")
        private String trida;

        @JsonProperty("SpiciUcet")
        private String spiciUcet;

        @JsonProperty("Mena")
        private String mena;

        @JsonProperty("StavUctu")
        private String stavUctu;

        @JsonProperty("NazevUctu")
        private String nazevUctu;

        @JsonProperty("IdentifikatorUctu")
        private String identifikatorUctu;

        @JsonProperty("UrokSazba")
        private Double urokSazba;

        @JsonProperty("IBAN")
        private String iban;

        @JsonProperty("ZpusobDistribuceVypisu")
        private String zpusobDistribuceVypisu;

        @JsonProperty("PeriodicitaVypisu")
        private String periodicitaVypisu;
    }
}
