capital_social and numero_tva_intracommunautaire can be null

This commit is contained in:
Paul Chavard 2021-03-11 10:47:57 +01:00
parent 2c724cbec3
commit bee66d41c4
2 changed files with 4 additions and 4 deletions

View file

@ -1089,7 +1089,7 @@ type Entreprise {
"""
capital social de lentreprise. -1 si inconnu.
"""
capitalSocial: BigInt!
capitalSocial: BigInt
codeEffectifEntreprise: String
dateCreation: ISO8601Date!
@ -1107,7 +1107,7 @@ type Entreprise {
inlineAdresse: String!
nom: String
nomCommercial: String!
numeroTvaIntracommunautaire: String!
numeroTvaIntracommunautaire: String
prenom: String
raisonSociale: String!
siren: String!

View file

@ -7,8 +7,8 @@ module Types
end
field :siren, String, null: false
field :capital_social, GraphQL::Types::BigInt, null: false, description: "capital social de lentreprise. -1 si inconnu."
field :numero_tva_intracommunautaire, String, null: false
field :capital_social, GraphQL::Types::BigInt, null: true, description: "capital social de lentreprise. -1 si inconnu."
field :numero_tva_intracommunautaire, String, null: true
field :forme_juridique, String, null: true
field :forme_juridique_code, String, null: true
field :nom_commercial, String, null: false