package fr.titionfire.ffsaf.rest.data;

import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@RegisterForReflection
public class AssoData {
    String siren;
    String rna;
    Identite identite;
    Coordonnee coordonnees;

    @Data
    @RegisterForReflection
    public static class Identite {
        String nom;
        String siret_siege;
    }

    @Data
    @RegisterForReflection
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Coordonnee {
        Address adresse_gestion;
    }

    @Data
    @RegisterForReflection
    public static class Address {
        String voie;
        String complement;
        String code_postal;
        String pays;
        Commune commune;
    }

    @Data
    @RegisterForReflection
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Commune {
        String nom;
    }
}
