parameters:
  #Path
  - $ref: ../components/parameters/ID.yaml
  #Headers
  - $ref: ../components/parameters/Content-Type.yaml
  - $ref: ../components/parameters/Date.yaml
  - $ref: ../components/parameters/X-Forwarded-For.yaml
  - $ref: ../components/parameters/FSPIOP-Source.yaml
  - $ref: ../components/parameters/FSPIOP-Destination.yaml
  - $ref: ../components/parameters/FSPIOP-Encryption.yaml
  - $ref: ../components/parameters/FSPIOP-Signature.yaml
  - $ref: ../components/parameters/FSPIOP-URI.yaml
  - $ref: ../components/parameters/FSPIOP-HTTP-Method.yaml
get:
  tags:
    - thirdpartyRequests
    - sampled
  operationId: GetThirdpartyRequestsVerificationsById
  summary: GetThirdpartyRequestsVerificationsById
  description: |
    The HTTP request `/thirdpartyRequests/verifications/{ID}` is used to get
    information regarding a previously created or requested authorization. The *{ID}*
    in the URI should contain the verification request ID
  parameters:
    #Headers
    - $ref: ../components/parameters/Accept.yaml
  responses:
    202:
      $ref: ../components/responses/202.yaml
    400:
      $ref: ../components/responses/400.yaml
    401:
      $ref: ../components/responses/401.yaml
    403:
      $ref: ../components/responses/403.yaml
    404:
      $ref: ../components/responses/404.yaml
    405:
      $ref: ../components/responses/405.yaml
    406:
      $ref: ../components/responses/406.yaml
    501:
      $ref: ../components/responses/501.yaml
    503:
      $ref: ../components/responses/503.yaml
put:
  tags:
    - thirdpartyRequests
    - sampled
  operationId: PutThirdpartyRequestsVerificationsById
  summary: PutThirdpartyRequestsVerificationsById
  description: >-
    The HTTP request `PUT /thirdpartyRequests/verifications/{ID}` is used by the Auth-Service to inform
    the DFSP of a successful result in validating the verification of a Thirdparty Transaction Request.

    If the validation fails, the auth-service will send back `PUT /thirdpartyRequests/verifications/{ID}`
    with `authenticationResponse: 'REJECTED'`.

    In unplanned error cases the Auth-Service MUST use `PUT /thirdpartyRequests/verifications/{ID}/error`.
  parameters:
    - $ref: ../components/parameters/Content-Length.yaml
  requestBody:
    description: The result of validating the Thirdparty Transaction Request
    required: true
    content:
      application/json:
        schema:
          $ref: ../components/schemas/ThirdpartyRequestsVerificationsIDPutResponse.yaml
        example:
          authenticationResponse: 'VERIFIED'
  responses:
    200:
      $ref: ../components/responses/200.yaml
    400:
      $ref: ../components/responses/400.yaml
    401:
      $ref: ../components/responses/401.yaml
    403:
      $ref: ../components/responses/403.yaml
    404:
      $ref: ../components/responses/404.yaml
    405:
      $ref: ../components/responses/405.yaml
    406:
      $ref: ../components/responses/406.yaml
    501:
      $ref: ../components/responses/501.yaml
    503:
      $ref: ../components/responses/503.yaml
