Skip to content

Commit

Permalink
[PAYLOAD]Add date fermeture for unité légale and établissement
Browse files Browse the repository at this point in the history
Merge pull request #339 from etalab/add-date-ferm
  • Loading branch information
HAEKADI authored Feb 19, 2024
2 parents 6108cd6 + 0db9e1d commit d8e319e
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
26 changes: 26 additions & 0 deletions aio/aio-proxy/aio_proxy/doc/open-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -696,6 +696,13 @@ paths:
Date de création de l'établissement (source : base
SIRENE).
example: "2003-01-01"
date_fermeture:
type: string
nullable: true
format: date
description: >-
Date de fermeture de l'établissement (source : base
historique SIRENE).
date_debut_activite:
type: string
format: date
Expand Down Expand Up @@ -890,6 +897,12 @@ paths:
example: "1991-01-01"
description: >-
Date de création de l'unité légale (source : base SIRENE).
date_fermeture:
type: string
format: date
description: >-
Date de fermeture de l'unité légale (source : base
historique SIRENE).
tranche_effectif_salarie:
type: string
example: "53"
Expand Down Expand Up @@ -1536,6 +1549,13 @@ paths:
Date de création de l'établissement (source : base
SIRENE).
example: "2003-01-01"
date_fermeture:
type: string
nullable: true
format: date
description: >-
Date de fermeture de l'établissement (source : base
historique SIRENE).
date_debut_activite:
type: string
format: date
Expand Down Expand Up @@ -1729,6 +1749,12 @@ paths:
example: "1991-01-01"
description: >-
Date de création de l'unité légale (source : base SIRENE).
date_fermeture:
type: string
format: date
description: >-
Date de fermeture de l'unité légale (source : base
historique SIRENE).
tranche_effectif_salarie:
type: string
example: "53"
Expand Down
1 change: 1 addition & 0 deletions aio/aio-proxy/aio_proxy/response/format_search_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def get_field(field, default=None):
"caractere_employeur": get_field("caractere_employeur"),
"annee_categorie_entreprise": get_field("annee_categorie_entreprise"),
"date_creation": get_field("date_creation_unite_legale"),
"date_fermeture": get_field("date_fermeture"),
"date_mise_a_jour": get_field("date_mise_a_jour"),
"date_mise_a_jour_insee": get_field("date_mise_a_jour_insee"),
"date_mise_a_jour_rne": get_field("date_mise_a_jour_rne"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def get_field(field, default=None):
"coordonnees": get_field("coordonnees"),
"date_creation": get_field("date_creation"),
"date_debut_activite": get_field("date_debut_activite"),
"date_fermeture": get_field("date_fermeture"),
"date_mise_a_jour": None,
"date_mise_a_jour_insee": get_field("date_mise_a_jour_insee"),
"departement": get_field("departement"),
Expand Down
2 changes: 2 additions & 0 deletions aio/aio-proxy/aio_proxy/response/unite_legale_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Etablissement(BaseModel):
coordonnees: str | None = None
date_creation: str | None = None
date_debut_activite: str | None = None
date_fermeture: str | None = None
date_mise_a_jour: str | None = None
date_mise_a_jour_insee: str | None = None
departement: str | None = None
Expand Down Expand Up @@ -121,6 +122,7 @@ class UniteLegaleResponse(BaseModel):
caractere_employeur: str | None = None
annee_categorie_entreprise: str | None = None
date_creation: str | None = None
date_fermeture: str | None = None
date_mise_a_jour: str | None = None
date_mise_a_jour_insee: str | None = None
date_mise_a_jour_rne: str | None = None
Expand Down

0 comments on commit d8e319e

Please sign in to comment.