parameters:
  - $ref: ../components/parameters/ID.yaml
  - $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:
  description: >-
    The HTTP request `GET /fxTransfers/{ID}` s used to request information regarding a request for confirmation
    of a currency conversion which the sender has previously issued. The `{ID}` in the URI should
    contain the `commitRequestId` that was used for the creation of the FX transfer.
  summary: Retrieve FX transfer information
  tags:
    - fxTransfers
  operationId: FxTransfersByIDGet
  parameters:
    - $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
patch:
  description: >-
    The HTTP request PATCH /fxTransfers/<ID> is used to inform the requester about
    the final determination by the switch of the transfer a request for execution of a currency conversion.
    The <ID> in the URI should contain the commitRequestId that was used
    for the creation of the FX transfer. Please note that this request does not
    generate a callback.
  summary: Return FX transfer information
  tags:
    - fxTransfers
  operationId: FxTransfersByIDPatch
  parameters:
    - $ref: ../components/parameters/Content-Length.yaml
  requestBody:
    description: Transfer notification upon completion.
    required: true
    content:
      application/json:
        schema:
          $ref: ../components/schemas/FxTransfersIDPatchResponse.yaml
  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
put:
  description: >-
    The callback `PUT /fxTransfers/{ID}` is used to inform the requester about the
    outcome of a request for execution of a currency conversion. The `{ID}` in the URI should contain the
    `commitRequestId` that was used for the creation of the FX transfer, or the `{ID}`
    that was used in the `GET /fxTransfers/{ID}` request.
  summary: Return FX transfer information
  tags:
    - fxTransfers
  operationId: FxTransfersByIDPut
  parameters:
    - $ref: ../components/parameters/Content-Length.yaml
  requestBody:
    description: Transfer information returned.
    required: true
    content:
      application/json:
        schema:
          $ref: ../components/schemas/FxTransfersIDPutResponse.yaml
  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
