Class Class13PaymentDirectRtgs2StepsApi

java.lang.Object
net.finmath.smartbonds.pontes.api.Class13PaymentDirectRtgs2StepsApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.24.0") public class Class13PaymentDirectRtgs2StepsApi extends Object
  • Constructor Details

    • Class13PaymentDirectRtgs2StepsApi

      public Class13PaymentDirectRtgs2StepsApi()
    • Class13PaymentDirectRtgs2StepsApi

      public Class13PaymentDirectRtgs2StepsApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • getDirectRTGSPaymentDraftById

      public TriggermanagementDirectRTGSPaymentInstructionResponse getDirectRTGSPaymentDraftById(@Nonnull String ncb, @Nonnull String id) throws org.springframework.web.client.RestClientResponseException
      Retrieve Direct RTGS Payment Draft by ID - Retrieves a Direct RTGS Payment request draft based on its draft identifier. This endpoint is used to fetch a draft previously created via POST request, which can then be submitted to the draft status update operation (Approved, Pending Review, Cancelled) under the 2 steps validation workflow. ## User profiles - Only User profiles PILOT_READ_ONLY/PILOT_READ_WRITE/OPERATIONAL_READ_WRITE can use this endpoint ## Business Windows Rules - Operation allowed on business windows: Start of day / Open for all / End of day ## Organisation roles - Only Operator/CashTokenIssuer/DedicatedCashWalletManager/DedicatedCashWalletOwner are allowed (results based on user entity)

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      404 - Not Found

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      id - id
      Returns:
      TriggermanagementDirectRTGSPaymentInstructionResponse
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • getDirectRTGSPaymentDraftByIdWithHttpInfo

      public org.springframework.http.ResponseEntity<TriggermanagementDirectRTGSPaymentInstructionResponse> getDirectRTGSPaymentDraftByIdWithHttpInfo(@Nonnull String ncb, @Nonnull String id) throws org.springframework.web.client.RestClientResponseException
      Retrieve Direct RTGS Payment Draft by ID - Retrieves a Direct RTGS Payment request draft based on its draft identifier. This endpoint is used to fetch a draft previously created via POST request, which can then be submitted to the draft status update operation (Approved, Pending Review, Cancelled) under the 2 steps validation workflow. ## User profiles - Only User profiles PILOT_READ_ONLY/PILOT_READ_WRITE/OPERATIONAL_READ_WRITE can use this endpoint ## Business Windows Rules - Operation allowed on business windows: Start of day / Open for all / End of day ## Organisation roles - Only Operator/CashTokenIssuer/DedicatedCashWalletManager/DedicatedCashWalletOwner are allowed (results based on user entity)

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      404 - Not Found

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      id - id
      Returns:
      ResponseEntity<TriggermanagementDirectRTGSPaymentInstructionResponse>
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • getDirectRTGSPaymentDraftByIdWithResponseSpec

      public org.springframework.web.client.RestClient.ResponseSpec getDirectRTGSPaymentDraftByIdWithResponseSpec(@Nonnull String ncb, @Nonnull String id) throws org.springframework.web.client.RestClientResponseException
      Retrieve Direct RTGS Payment Draft by ID - Retrieves a Direct RTGS Payment request draft based on its draft identifier. This endpoint is used to fetch a draft previously created via POST request, which can then be submitted to the draft status update operation (Approved, Pending Review, Cancelled) under the 2 steps validation workflow. ## User profiles - Only User profiles PILOT_READ_ONLY/PILOT_READ_WRITE/OPERATIONAL_READ_WRITE can use this endpoint ## Business Windows Rules - Operation allowed on business windows: Start of day / Open for all / End of day ## Organisation roles - Only Operator/CashTokenIssuer/DedicatedCashWalletManager/DedicatedCashWalletOwner are allowed (results based on user entity)

      200 - OK

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      404 - Not Found

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      id - id
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • submitDirectRTGSPaymentRequest

      public TriggermanagementDirectRTGSPaymentInstructionResponse submitDirectRTGSPaymentRequest(@Nonnull String ncb, @Nonnull TriggermanagementDirectRTGSPaymentInstruction triggermanagementDirectRTGSPaymentInstruction) throws org.springframework.web.client.RestClientResponseException
      Submit Direct RTGS Payment Request ## Description Submit a draft request to create a new Direct RTGS Payment for the specified Participant identified by its BIC. The request is processed under the two-step validation workflow and will only be executed once approved by an authorised second user. ## Business Rules Authorised Actors: - DedicatedCashWalletManager - DedicatedCashWalletOwner Authorised Profiles: - PILOT_READ_WRITE Business Window: - Open for all Workflow: - Two-Step Validation (Draft Creation) Separation of Duties: - Initiator and Approver must be two different authenticated users Status Preconditions: - Not applicable for creation ## Request Semantics - The request creates a new Direct RTGS Payment Draft in PENDING_APPROVAL status - The created draft remains in PENDING_APPROVAL status until validated by an Authorised second user ## Field Mapping - \"correlationId\" = Payment Reference - \"signature\" = Signature of Direct RTGS Payload in Base 64 format - \"signerPEM\" = Base 64 Encoded Certificate - \"id\" = Direct RTGS Payment Identifier ## Field Rules - \"signature\" shall contain signature of Payload containing only \"id\", \"amount\", \"payerBank\" and \"receiverBank\" - \"correlationId\" shall contain at most 35 characters - \"id\" shall contain a UUID format ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"id\" 2. \"amount\" 3. \"payerBank\" 4. \"receiverBank\" - No separator, delimiter, or any additional character shall be inserted between concatenated values - The SHA256 hash shall be computed on the resulting concatenated string - The resulting hash shall then be signed using the user private key and SHA256withECDSA algorithm - The generated signature shall be provided in the \"signature\" field of the request payload Step-by-Step Example: Based on the following payload values: - \"id\": \"e6c9e702-905d-4ac9-9b55-313ee22969ce\" - \"amount\": \"10000.00\" - \"payerBank\": \"MP01FRAAXXX\" - \"receiverBank\": \"MP01DEAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e6c9e702-905d-4ac9-9b55-313ee22969ce10000.00MP01FRAAXXXMP01DEAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 208533b487185c72d4c183d15919067742961ac81589599a13c3b7ad0441f683 Step 3 - Sign the hash: The SHA256 hash shall then be signed using a distinct user private key from initiator and using SHA256 with ECDSA algorithm. The signing operation can be performed using different technical means, including command lines (e.g. OpenSSL), application code (e.g. NOdeJS), or scripts (e.g. bash). The generated signature is: MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUs72sV60a Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUs72sV60a\" ## Response Semantics - Returns confirmation of the draft creation and the draft content to be used in subsequent draft status updates (approve | cancel). ## Traceability - Reference Documents: - Service Description Document - Payment Direct RTGS - Section 3.5.4.b - Service Description Document - A2A Illustration - Section 3.7

      201 - Created

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      triggermanagementDirectRTGSPaymentInstruction - Create direct RTGS payment instruction
      Returns:
      TriggermanagementDirectRTGSPaymentInstructionResponse
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • submitDirectRTGSPaymentRequestWithHttpInfo

      public org.springframework.http.ResponseEntity<TriggermanagementDirectRTGSPaymentInstructionResponse> submitDirectRTGSPaymentRequestWithHttpInfo(@Nonnull String ncb, @Nonnull TriggermanagementDirectRTGSPaymentInstruction triggermanagementDirectRTGSPaymentInstruction) throws org.springframework.web.client.RestClientResponseException
      Submit Direct RTGS Payment Request ## Description Submit a draft request to create a new Direct RTGS Payment for the specified Participant identified by its BIC. The request is processed under the two-step validation workflow and will only be executed once approved by an authorised second user. ## Business Rules Authorised Actors: - DedicatedCashWalletManager - DedicatedCashWalletOwner Authorised Profiles: - PILOT_READ_WRITE Business Window: - Open for all Workflow: - Two-Step Validation (Draft Creation) Separation of Duties: - Initiator and Approver must be two different authenticated users Status Preconditions: - Not applicable for creation ## Request Semantics - The request creates a new Direct RTGS Payment Draft in PENDING_APPROVAL status - The created draft remains in PENDING_APPROVAL status until validated by an Authorised second user ## Field Mapping - \"correlationId\" = Payment Reference - \"signature\" = Signature of Direct RTGS Payload in Base 64 format - \"signerPEM\" = Base 64 Encoded Certificate - \"id\" = Direct RTGS Payment Identifier ## Field Rules - \"signature\" shall contain signature of Payload containing only \"id\", \"amount\", \"payerBank\" and \"receiverBank\" - \"correlationId\" shall contain at most 35 characters - \"id\" shall contain a UUID format ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"id\" 2. \"amount\" 3. \"payerBank\" 4. \"receiverBank\" - No separator, delimiter, or any additional character shall be inserted between concatenated values - The SHA256 hash shall be computed on the resulting concatenated string - The resulting hash shall then be signed using the user private key and SHA256withECDSA algorithm - The generated signature shall be provided in the \"signature\" field of the request payload Step-by-Step Example: Based on the following payload values: - \"id\": \"e6c9e702-905d-4ac9-9b55-313ee22969ce\" - \"amount\": \"10000.00\" - \"payerBank\": \"MP01FRAAXXX\" - \"receiverBank\": \"MP01DEAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e6c9e702-905d-4ac9-9b55-313ee22969ce10000.00MP01FRAAXXXMP01DEAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 208533b487185c72d4c183d15919067742961ac81589599a13c3b7ad0441f683 Step 3 - Sign the hash: The SHA256 hash shall then be signed using a distinct user private key from initiator and using SHA256 with ECDSA algorithm. The signing operation can be performed using different technical means, including command lines (e.g. OpenSSL), application code (e.g. NOdeJS), or scripts (e.g. bash). The generated signature is: MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUs72sV60a Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUs72sV60a\" ## Response Semantics - Returns confirmation of the draft creation and the draft content to be used in subsequent draft status updates (approve | cancel). ## Traceability - Reference Documents: - Service Description Document - Payment Direct RTGS - Section 3.5.4.b - Service Description Document - A2A Illustration - Section 3.7

      201 - Created

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      triggermanagementDirectRTGSPaymentInstruction - Create direct RTGS payment instruction
      Returns:
      ResponseEntity<TriggermanagementDirectRTGSPaymentInstructionResponse>
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • submitDirectRTGSPaymentRequestWithResponseSpec

      public org.springframework.web.client.RestClient.ResponseSpec submitDirectRTGSPaymentRequestWithResponseSpec(@Nonnull String ncb, @Nonnull TriggermanagementDirectRTGSPaymentInstruction triggermanagementDirectRTGSPaymentInstruction) throws org.springframework.web.client.RestClientResponseException
      Submit Direct RTGS Payment Request ## Description Submit a draft request to create a new Direct RTGS Payment for the specified Participant identified by its BIC. The request is processed under the two-step validation workflow and will only be executed once approved by an authorised second user. ## Business Rules Authorised Actors: - DedicatedCashWalletManager - DedicatedCashWalletOwner Authorised Profiles: - PILOT_READ_WRITE Business Window: - Open for all Workflow: - Two-Step Validation (Draft Creation) Separation of Duties: - Initiator and Approver must be two different authenticated users Status Preconditions: - Not applicable for creation ## Request Semantics - The request creates a new Direct RTGS Payment Draft in PENDING_APPROVAL status - The created draft remains in PENDING_APPROVAL status until validated by an Authorised second user ## Field Mapping - \"correlationId\" = Payment Reference - \"signature\" = Signature of Direct RTGS Payload in Base 64 format - \"signerPEM\" = Base 64 Encoded Certificate - \"id\" = Direct RTGS Payment Identifier ## Field Rules - \"signature\" shall contain signature of Payload containing only \"id\", \"amount\", \"payerBank\" and \"receiverBank\" - \"correlationId\" shall contain at most 35 characters - \"id\" shall contain a UUID format ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"id\" 2. \"amount\" 3. \"payerBank\" 4. \"receiverBank\" - No separator, delimiter, or any additional character shall be inserted between concatenated values - The SHA256 hash shall be computed on the resulting concatenated string - The resulting hash shall then be signed using the user private key and SHA256withECDSA algorithm - The generated signature shall be provided in the \"signature\" field of the request payload Step-by-Step Example: Based on the following payload values: - \"id\": \"e6c9e702-905d-4ac9-9b55-313ee22969ce\" - \"amount\": \"10000.00\" - \"payerBank\": \"MP01FRAAXXX\" - \"receiverBank\": \"MP01DEAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e6c9e702-905d-4ac9-9b55-313ee22969ce10000.00MP01FRAAXXXMP01DEAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 208533b487185c72d4c183d15919067742961ac81589599a13c3b7ad0441f683 Step 3 - Sign the hash: The SHA256 hash shall then be signed using a distinct user private key from initiator and using SHA256 with ECDSA algorithm. The signing operation can be performed using different technical means, including command lines (e.g. OpenSSL), application code (e.g. NOdeJS), or scripts (e.g. bash). The generated signature is: MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUs72sV60a Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUs72sV60a\" ## Response Semantics - Returns confirmation of the draft creation and the draft content to be used in subsequent draft status updates (approve | cancel). ## Traceability - Reference Documents: - Service Description Document - Payment Direct RTGS - Section 3.5.4.b - Service Description Document - A2A Illustration - Section 3.7

      201 - Created

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      triggermanagementDirectRTGSPaymentInstruction - Create direct RTGS payment instruction
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • updateDirectRTGSPaymentDraftStatus

      public String updateDirectRTGSPaymentDraftStatus(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementDirectRTGSPaymentInstructionPut triggermanagementDirectRTGSPaymentInstructionPut) throws org.springframework.web.client.RestClientResponseException
      Update Direct RTGS Payment Draft Status ## Description Submit update of an existing Direct RTGS Payment Draft previously created. This endpoint is used to resubmit the draft with an updated status in order to continue the validation workflow or approve the request. ## Business Rules Authorised Actors: - DedicatedCashWalletManager - DedicatedCashWalletOwner Authorised Profiles: - PILOT_READ_WRITE Business Window: - Open for all Workflow: - Two-Step Validation (Draft Update) Separation of Duties: - Initiator and Approver must be two different authenticated users - \"approve\" status can only be performed by Approver - \"cancel\" status can only be performed by initiator. Status Preconditions: - The draft shall be in PENDING_APPROVAL status ## Request Semantics - The Payload is expected to contain the full draft as last created or retrieved, including updated fields \"signature\" and \"signerPEM\" associated with Approver. - The {status} parameter indicates the requested business action on the draft: - {approve}: requests approval of the draft and validate it - {cancel}: removes the draft ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"id\" 2. \"amount\" 3. \"payerBank\" 4. \"receiverBank\" - No separator, delimiter, or any additional character shall be inserted between concatenated values - The SHA256 hash shall be computed on the resulting concatenated string - The resulting hash shall then be signed using the user private key and SHA256withECDSA algorithm - The generated signature shall be provided in the \"signature\" field of the request payload Step-by-Step Example: Based on the following payload values: - \"id\": \"e6c9e702-905d-4ac9-9b55-313ee22969ce\" - \"amount\": \"10000.00\" - \"payerBank\": \"MP01FRAAXXX\" - \"receiverBank\": \"MP01DEAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e6c9e702-905d-4ac9-9b55-313ee22969ce10000.00MP01FRAAXXXMP01DEAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 208533b487185c72d4c183d15919067742961ac81589599a13c3b7ad0441f683 Step 3 - Sign the hash: The SHA256 hash shall then be signed using a distinct user private key from initiator and using SHA256 with ECDSA algorithm. The signing operation can be performed using different technical means, including command lines (e.g. OpenSSL), application code (e.g. NOdeJS), or scripts (e.g. bash). The generated signature is: MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUsvrCS12z Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUsvrCS12z\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7

      200 - Direct RTGS Payment Draft Status Updated

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      id - Direct RTGS Payment ID
      status - Direct RTGS Payment Draft Status
      triggermanagementDirectRTGSPaymentInstructionPut - Update Direct RTGS Payment Draft Status
      Returns:
      String
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • updateDirectRTGSPaymentDraftStatusWithHttpInfo

      public org.springframework.http.ResponseEntity<String> updateDirectRTGSPaymentDraftStatusWithHttpInfo(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementDirectRTGSPaymentInstructionPut triggermanagementDirectRTGSPaymentInstructionPut) throws org.springframework.web.client.RestClientResponseException
      Update Direct RTGS Payment Draft Status ## Description Submit update of an existing Direct RTGS Payment Draft previously created. This endpoint is used to resubmit the draft with an updated status in order to continue the validation workflow or approve the request. ## Business Rules Authorised Actors: - DedicatedCashWalletManager - DedicatedCashWalletOwner Authorised Profiles: - PILOT_READ_WRITE Business Window: - Open for all Workflow: - Two-Step Validation (Draft Update) Separation of Duties: - Initiator and Approver must be two different authenticated users - \"approve\" status can only be performed by Approver - \"cancel\" status can only be performed by initiator. Status Preconditions: - The draft shall be in PENDING_APPROVAL status ## Request Semantics - The Payload is expected to contain the full draft as last created or retrieved, including updated fields \"signature\" and \"signerPEM\" associated with Approver. - The {status} parameter indicates the requested business action on the draft: - {approve}: requests approval of the draft and validate it - {cancel}: removes the draft ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"id\" 2. \"amount\" 3. \"payerBank\" 4. \"receiverBank\" - No separator, delimiter, or any additional character shall be inserted between concatenated values - The SHA256 hash shall be computed on the resulting concatenated string - The resulting hash shall then be signed using the user private key and SHA256withECDSA algorithm - The generated signature shall be provided in the \"signature\" field of the request payload Step-by-Step Example: Based on the following payload values: - \"id\": \"e6c9e702-905d-4ac9-9b55-313ee22969ce\" - \"amount\": \"10000.00\" - \"payerBank\": \"MP01FRAAXXX\" - \"receiverBank\": \"MP01DEAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e6c9e702-905d-4ac9-9b55-313ee22969ce10000.00MP01FRAAXXXMP01DEAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 208533b487185c72d4c183d15919067742961ac81589599a13c3b7ad0441f683 Step 3 - Sign the hash: The SHA256 hash shall then be signed using a distinct user private key from initiator and using SHA256 with ECDSA algorithm. The signing operation can be performed using different technical means, including command lines (e.g. OpenSSL), application code (e.g. NOdeJS), or scripts (e.g. bash). The generated signature is: MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUsvrCS12z Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUsvrCS12z\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7

      200 - Direct RTGS Payment Draft Status Updated

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      id - Direct RTGS Payment ID
      status - Direct RTGS Payment Draft Status
      triggermanagementDirectRTGSPaymentInstructionPut - Update Direct RTGS Payment Draft Status
      Returns:
      ResponseEntity<String>
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API
    • updateDirectRTGSPaymentDraftStatusWithResponseSpec

      public org.springframework.web.client.RestClient.ResponseSpec updateDirectRTGSPaymentDraftStatusWithResponseSpec(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementDirectRTGSPaymentInstructionPut triggermanagementDirectRTGSPaymentInstructionPut) throws org.springframework.web.client.RestClientResponseException
      Update Direct RTGS Payment Draft Status ## Description Submit update of an existing Direct RTGS Payment Draft previously created. This endpoint is used to resubmit the draft with an updated status in order to continue the validation workflow or approve the request. ## Business Rules Authorised Actors: - DedicatedCashWalletManager - DedicatedCashWalletOwner Authorised Profiles: - PILOT_READ_WRITE Business Window: - Open for all Workflow: - Two-Step Validation (Draft Update) Separation of Duties: - Initiator and Approver must be two different authenticated users - \"approve\" status can only be performed by Approver - \"cancel\" status can only be performed by initiator. Status Preconditions: - The draft shall be in PENDING_APPROVAL status ## Request Semantics - The Payload is expected to contain the full draft as last created or retrieved, including updated fields \"signature\" and \"signerPEM\" associated with Approver. - The {status} parameter indicates the requested business action on the draft: - {approve}: requests approval of the draft and validate it - {cancel}: removes the draft ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"id\" 2. \"amount\" 3. \"payerBank\" 4. \"receiverBank\" - No separator, delimiter, or any additional character shall be inserted between concatenated values - The SHA256 hash shall be computed on the resulting concatenated string - The resulting hash shall then be signed using the user private key and SHA256withECDSA algorithm - The generated signature shall be provided in the \"signature\" field of the request payload Step-by-Step Example: Based on the following payload values: - \"id\": \"e6c9e702-905d-4ac9-9b55-313ee22969ce\" - \"amount\": \"10000.00\" - \"payerBank\": \"MP01FRAAXXX\" - \"receiverBank\": \"MP01DEAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e6c9e702-905d-4ac9-9b55-313ee22969ce10000.00MP01FRAAXXXMP01DEAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 208533b487185c72d4c183d15919067742961ac81589599a13c3b7ad0441f683 Step 3 - Sign the hash: The SHA256 hash shall then be signed using a distinct user private key from initiator and using SHA256 with ECDSA algorithm. The signing operation can be performed using different technical means, including command lines (e.g. OpenSSL), application code (e.g. NOdeJS), or scripts (e.g. bash). The generated signature is: MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUsvrCS12z Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIQCXx8KT1zaFBf4ioYrYJFxm8X/HsizuXx6WbbPbHO8XtAIgJR96wirn0unXD7RvFquPVsAl6NJMFoiFkLnUsvrCS12z\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7

      200 - Direct RTGS Payment Draft Status Updated

      400 - Bad Request

      401 - Unauthorized

      403 - Forbidden

      500 - Internal Server Error

      Parameters:
      ncb - NCB Short Name
      id - Direct RTGS Payment ID
      status - Direct RTGS Payment Draft Status
      triggermanagementDirectRTGSPaymentInstructionPut - Update Direct RTGS Payment Draft Status
      Returns:
      ResponseSpec
      Throws:
      org.springframework.web.client.RestClientResponseException - if an error occurs while attempting to invoke the API