openapi: 3.0.3
info:
  title: Interface API Gamma Refonte
  description: Interface API Gamma Refonte
  version: 1.0.0
  contact:
    name: DGDDI - Douane Française
    url: https://www.douane.gouv.fr/

paths:
  # Chemin facultatif
  /900:
    post:
      summary: Définition d'un message 900
      operationId: message900
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BodyType900'
      parameters:
        - $ref: '../api/headerHttp.yaml#/components/parameters/messageId'
      responses:
        '200':
          description: OK
          content:
            text/plain:
              schema:
                $ref: '../api/retourHttp.yaml#/components/schemas/retour200'


components:
  schemas:
    BodyType900:
      type: object
      properties:
        StatusRequest:
          $ref: '#/components/schemas/StatusRequestType900'
      required:
        - StatusRequest

    StatusRequestType900:
      type: object
      description: |
        | Nom de l'élément            | Règles       | Conditions |
        |-----------------------------|--------------|------------|
        | AdministrativeReferenceCode | IC_RG_R030   |            |
        | SequenceNumber              | IC_RG_R232   | FR_RG_P012 |
        | TypeMessage                 |              | FR_RG_R148 |
      properties:
        AdministrativeReferenceCode:
          $ref: '../ie/types.yaml#/components/schemas/AdministrativeReferenceCodeType'
        SequenceNumber:
          $ref: '../ie/types.yaml#/components/schemas/SequenceNumberType'
        TypeMessage:
          $ref: '../ie/types.yaml#/components/schemas/TypeMessageType'
      required:
        - AdministrativeReferenceCode
        - SequenceNumber
        - TypeMessage

