Class Class04FundingCashToken2StepsApi
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFundingDefundingDraftById(String ncb, String id) Retrieve Funding/Defunding Draft by ID - Retrieves a Funding or Defunding request draft based on its draft identifier.org.springframework.http.ResponseEntity<TriggermanagementFundingRequestResponse> Retrieve Funding/Defunding Draft by ID - Retrieves a Funding or Defunding request draft based on its draft identifier.org.springframework.web.client.RestClient.ResponseSpecRetrieve Funding/Defunding Draft by ID - Retrieves a Funding or Defunding request draft based on its draft identifier.voidsetApiClient(ApiClient apiClient) submitFundingRequest(String ncb, TriggermanagementCreateFundingRequest triggermanagementCreateFundingRequest) Submit Funding Request ## Description Submit a draft request to create a new Funding for the specified Dedicated Cash Wallet.org.springframework.http.ResponseEntity<TriggermanagementFundingRequestResponse> submitFundingRequestWithHttpInfo(String ncb, TriggermanagementCreateFundingRequest triggermanagementCreateFundingRequest) Submit Funding Request ## Description Submit a draft request to create a new Funding for the specified Dedicated Cash Wallet.org.springframework.web.client.RestClient.ResponseSpecsubmitFundingRequestWithResponseSpec(String ncb, TriggermanagementCreateFundingRequest triggermanagementCreateFundingRequest) Submit Funding Request ## Description Submit a draft request to create a new Funding for the specified Dedicated Cash Wallet.updateFundingDefundingDraftStatus(String ncb, String id, String status, TriggermanagementFundingRequestPut triggermanagementFundingRequestPut) Update Funding Draft Status ## Description Submit update of an existing Funding Request Draft previously created.org.springframework.http.ResponseEntity<String> updateFundingDefundingDraftStatusWithHttpInfo(String ncb, String id, String status, TriggermanagementFundingRequestPut triggermanagementFundingRequestPut) Update Funding Draft Status ## Description Submit update of an existing Funding Request Draft previously created.org.springframework.web.client.RestClient.ResponseSpecupdateFundingDefundingDraftStatusWithResponseSpec(String ncb, String id, String status, TriggermanagementFundingRequestPut triggermanagementFundingRequestPut) Update Funding Draft Status ## Description Submit update of an existing Funding Request Draft previously created.
-
Constructor Details
-
Class04FundingCashToken2StepsApi
public Class04FundingCashToken2StepsApi() -
Class04FundingCashToken2StepsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
getFundingDefundingDraftById
public TriggermanagementFundingRequestResponse getFundingDefundingDraftById(@Nonnull String ncb, @Nonnull String id) throws org.springframework.web.client.RestClientResponseException Retrieve Funding/Defunding Draft by ID - Retrieves a Funding or Defunding 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 profile PILOT_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 DedicatedCashWalletManager, DedicatedCashWalletOwner are allowed200 - OK
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- id- Returns:
- TriggermanagementFundingRequestResponse
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
getFundingDefundingDraftByIdWithHttpInfo
public org.springframework.http.ResponseEntity<TriggermanagementFundingRequestResponse> getFundingDefundingDraftByIdWithHttpInfo(@Nonnull String ncb, @Nonnull String id) throws org.springframework.web.client.RestClientResponseException Retrieve Funding/Defunding Draft by ID - Retrieves a Funding or Defunding 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 profile PILOT_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 DedicatedCashWalletManager, DedicatedCashWalletOwner are allowed200 - OK
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- id- Returns:
- ResponseEntity<TriggermanagementFundingRequestResponse>
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
getFundingDefundingDraftByIdWithResponseSpec
public org.springframework.web.client.RestClient.ResponseSpec getFundingDefundingDraftByIdWithResponseSpec(@Nonnull String ncb, @Nonnull String id) throws org.springframework.web.client.RestClientResponseException Retrieve Funding/Defunding Draft by ID - Retrieves a Funding or Defunding 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 profile PILOT_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 DedicatedCashWalletManager, DedicatedCashWalletOwner are allowed200 - OK
400 - Bad Request
401 - Unauthorized
403 - Forbidden
404 - Not Found
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- id- Returns:
- ResponseSpec
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
submitFundingRequest
public TriggermanagementFundingRequestResponse submitFundingRequest(@Nonnull String ncb, @Nonnull TriggermanagementCreateFundingRequest triggermanagementCreateFundingRequest) throws org.springframework.web.client.RestClientResponseException Submit Funding Request ## Description Submit a draft request to create a new Funding for the specified Dedicated Cash Wallet. 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: - Start of day - 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 Funding Draft in PENDING_APPROVAL status - The created draft remains in PENDING_APPROVAL status until validated by an Authorised second user ## Field Mapping - \"CashWalletAlias\" = Dedicated Cash Wallet Identifier - \"CashWalletManagerID\" = DedicatedCashWalletManager BIC - \"CashWalletOwner\" = DedicatedCashWalletOwner BIC - \"signature\" = Signature of Direct RTGS Payload in Base 64 format - \"signerPEM\" = Base 64 Encoded Certificate ## Field Rules - \"signature\" shall contain signature of Payload containing only \"techFundRequestID\", \"amount\", \"creditedCashWalletOwnerID\" and ECB Issuance DCA BIC - \"debitedCashWalletAlias\" shall contain WEUEURECBFDEFFTPP-TOKEN_ISSUANCE_WALLET - \"debitedCashWalletManagerID\" shall contain ECBFDEFFTPP - \"debitedCashWalletOwner\" shall contain ECBFDEFFTPP ## Signing Rules: - The fields shall be concatenated as a string in the following order: 1. \"techFundRequestID\" 2. \"amount\" 3. \"creditedCashWalletOwnerID\" 4. ECB Issuance DCA BIC - 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: - \"techFundRequestID\": \"e3c8671d-44d7-4da1-b240-4a1b1e4e47e7\" - \"amount\": \"10000.00\" - \"creditedCashWalletOwnerID\": \"MP01FRAAXXX\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e3c8671d-44d7-4da1-b240-4a1b1e4e47e710000.00MP01FRAAXXXECBFDEFFTOK Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 91a0c750de9839bfbeff02f592bea4543800e0155e8dc93a8ba0348b2b8dcc50 Step 3 - Sign the hash: The SHA256 hash shall then be signed using the relevant user private key and using SHA256withECDSA 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: MEUCICJuxNXWk8C8+hAB7a35hectQ1pg+UBg9uaF6muguektAiEAmXwUlWpSaO/FH8QvE6VkyB7+oU62tjJXyhMOpB/vOH4= Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCICJuxNXWk8C8+hAB7a35hectQ1pg+UBg9uaF6muguektAiEAmXwUlWpSaO/FH8QvE6VkyB7+oU62tjJXyhMOpB/vOH4=\" ## Response Semantics - Returns confirmation of the draft creation and the draft content to be used in subsequent draft status updates (approve | cancel). - The draft includes the Funding Request ID needed to update ## Traceability - Reference Documents: - Service Description Document - Funding Requests - Section 3.5.1 - Service Description Document - A2A Illustration - Section 3.7201 - Funding Request Draft Created
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short NametriggermanagementCreateFundingRequest- Create Funding Request Draft- Returns:
- TriggermanagementFundingRequestResponse
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
submitFundingRequestWithHttpInfo
public org.springframework.http.ResponseEntity<TriggermanagementFundingRequestResponse> submitFundingRequestWithHttpInfo(@Nonnull String ncb, @Nonnull TriggermanagementCreateFundingRequest triggermanagementCreateFundingRequest) throws org.springframework.web.client.RestClientResponseException Submit Funding Request ## Description Submit a draft request to create a new Funding for the specified Dedicated Cash Wallet. 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: - Start of day - 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 Funding Draft in PENDING_APPROVAL status - The created draft remains in PENDING_APPROVAL status until validated by an Authorised second user ## Field Mapping - \"CashWalletAlias\" = Dedicated Cash Wallet Identifier - \"CashWalletManagerID\" = DedicatedCashWalletManager BIC - \"CashWalletOwner\" = DedicatedCashWalletOwner BIC - \"signature\" = Signature of Direct RTGS Payload in Base 64 format - \"signerPEM\" = Base 64 Encoded Certificate ## Field Rules - \"signature\" shall contain signature of Payload containing only \"techFundRequestID\", \"amount\", \"creditedCashWalletOwnerID\" and ECB Issuance DCA BIC - \"debitedCashWalletAlias\" shall contain WEUEURECBFDEFFTPP-TOKEN_ISSUANCE_WALLET - \"debitedCashWalletManagerID\" shall contain ECBFDEFFTPP - \"debitedCashWalletOwner\" shall contain ECBFDEFFTPP ## Signing Rules: - The fields shall be concatenated as a string in the following order: 1. \"techFundRequestID\" 2. \"amount\" 3. \"creditedCashWalletOwnerID\" 4. ECB Issuance DCA BIC - 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: - \"techFundRequestID\": \"e3c8671d-44d7-4da1-b240-4a1b1e4e47e7\" - \"amount\": \"10000.00\" - \"creditedCashWalletOwnerID\": \"MP01FRAAXXX\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e3c8671d-44d7-4da1-b240-4a1b1e4e47e710000.00MP01FRAAXXXECBFDEFFTOK Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 91a0c750de9839bfbeff02f592bea4543800e0155e8dc93a8ba0348b2b8dcc50 Step 3 - Sign the hash: The SHA256 hash shall then be signed using the relevant user private key and using SHA256withECDSA 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: MEUCICJuxNXWk8C8+hAB7a35hectQ1pg+UBg9uaF6muguektAiEAmXwUlWpSaO/FH8QvE6VkyB7+oU62tjJXyhMOpB/vOH4= Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCICJuxNXWk8C8+hAB7a35hectQ1pg+UBg9uaF6muguektAiEAmXwUlWpSaO/FH8QvE6VkyB7+oU62tjJXyhMOpB/vOH4=\" ## Response Semantics - Returns confirmation of the draft creation and the draft content to be used in subsequent draft status updates (approve | cancel). - The draft includes the Funding Request ID needed to update ## Traceability - Reference Documents: - Service Description Document - Funding Requests - Section 3.5.1 - Service Description Document - A2A Illustration - Section 3.7201 - Funding Request Draft Created
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short NametriggermanagementCreateFundingRequest- Create Funding Request Draft- Returns:
- ResponseEntity<TriggermanagementFundingRequestResponse>
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
submitFundingRequestWithResponseSpec
public org.springframework.web.client.RestClient.ResponseSpec submitFundingRequestWithResponseSpec(@Nonnull String ncb, @Nonnull TriggermanagementCreateFundingRequest triggermanagementCreateFundingRequest) throws org.springframework.web.client.RestClientResponseException Submit Funding Request ## Description Submit a draft request to create a new Funding for the specified Dedicated Cash Wallet. 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: - Start of day - 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 Funding Draft in PENDING_APPROVAL status - The created draft remains in PENDING_APPROVAL status until validated by an Authorised second user ## Field Mapping - \"CashWalletAlias\" = Dedicated Cash Wallet Identifier - \"CashWalletManagerID\" = DedicatedCashWalletManager BIC - \"CashWalletOwner\" = DedicatedCashWalletOwner BIC - \"signature\" = Signature of Direct RTGS Payload in Base 64 format - \"signerPEM\" = Base 64 Encoded Certificate ## Field Rules - \"signature\" shall contain signature of Payload containing only \"techFundRequestID\", \"amount\", \"creditedCashWalletOwnerID\" and ECB Issuance DCA BIC - \"debitedCashWalletAlias\" shall contain WEUEURECBFDEFFTPP-TOKEN_ISSUANCE_WALLET - \"debitedCashWalletManagerID\" shall contain ECBFDEFFTPP - \"debitedCashWalletOwner\" shall contain ECBFDEFFTPP ## Signing Rules: - The fields shall be concatenated as a string in the following order: 1. \"techFundRequestID\" 2. \"amount\" 3. \"creditedCashWalletOwnerID\" 4. ECB Issuance DCA BIC - 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: - \"techFundRequestID\": \"e3c8671d-44d7-4da1-b240-4a1b1e4e47e7\" - \"amount\": \"10000.00\" - \"creditedCashWalletOwnerID\": \"MP01FRAAXXX\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e3c8671d-44d7-4da1-b240-4a1b1e4e47e710000.00MP01FRAAXXXECBFDEFFTOK Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 91a0c750de9839bfbeff02f592bea4543800e0155e8dc93a8ba0348b2b8dcc50 Step 3 - Sign the hash: The SHA256 hash shall then be signed using the relevant user private key and using SHA256withECDSA 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: MEUCICJuxNXWk8C8+hAB7a35hectQ1pg+UBg9uaF6muguektAiEAmXwUlWpSaO/FH8QvE6VkyB7+oU62tjJXyhMOpB/vOH4= Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCICJuxNXWk8C8+hAB7a35hectQ1pg+UBg9uaF6muguektAiEAmXwUlWpSaO/FH8QvE6VkyB7+oU62tjJXyhMOpB/vOH4=\" ## Response Semantics - Returns confirmation of the draft creation and the draft content to be used in subsequent draft status updates (approve | cancel). - The draft includes the Funding Request ID needed to update ## Traceability - Reference Documents: - Service Description Document - Funding Requests - Section 3.5.1 - Service Description Document - A2A Illustration - Section 3.7201 - Funding Request Draft Created
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short NametriggermanagementCreateFundingRequest- Create Funding Request Draft- Returns:
- ResponseSpec
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
updateFundingDefundingDraftStatus
public String updateFundingDefundingDraftStatus(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementFundingRequestPut triggermanagementFundingRequestPut) throws org.springframework.web.client.RestClientResponseException Update Funding Draft Status ## Description Submit update of an existing Funding Request 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: - Start of day - 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. \"techFundRequestID\" 2. \"amount\" 3. \"creditedCashWalletOwnerID\" 4. ECB Issuance DCA BIC - 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: - \"techFundRequestID\": \"e3c8671d-44d7-4da1-b240-4a1b1e4e47e7\" - \"amount\": \"10000.00\" - \"creditedCashWalletOwnerID\": \"MP01FRAAXXX\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e3c8671d-44d7-4da1-b240-4a1b1e4e47e710000.00MP01FRAAXXXECBFDEFFTOK Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 91a0c750de9839bfbeff02f592bea4543800e0155e8dc93a8ba0348b2b8dcc50 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: MEYCIQD8E0Va2vlSidnIKMZn62J3pVBEavJ4peGvm2ZxCiCPgAIhAOJU/mGdxl/NjaFx+PTEswBB4KvaUGSBORmbI6p9rT6W Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEYCIQD8E0Va2vlSidnIKMZn62J3pVBEavJ4peGvm2ZxCiCPgAIhAOJU/mGdxl/NjaFx+PTEswBB4KvaUGSBORmbI6p9rT6W\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7200 - Funding Request Draft Updated Successfully
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- Funding Request IDstatus- Funding Request Draft StatustriggermanagementFundingRequestPut- Update Funding Request Draft- Returns:
- String
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
updateFundingDefundingDraftStatusWithHttpInfo
public org.springframework.http.ResponseEntity<String> updateFundingDefundingDraftStatusWithHttpInfo(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementFundingRequestPut triggermanagementFundingRequestPut) throws org.springframework.web.client.RestClientResponseException Update Funding Draft Status ## Description Submit update of an existing Funding Request 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: - Start of day - 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. \"techFundRequestID\" 2. \"amount\" 3. \"creditedCashWalletOwnerID\" 4. ECB Issuance DCA BIC - 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: - \"techFundRequestID\": \"e3c8671d-44d7-4da1-b240-4a1b1e4e47e7\" - \"amount\": \"10000.00\" - \"creditedCashWalletOwnerID\": \"MP01FRAAXXX\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e3c8671d-44d7-4da1-b240-4a1b1e4e47e710000.00MP01FRAAXXXECBFDEFFTOK Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 91a0c750de9839bfbeff02f592bea4543800e0155e8dc93a8ba0348b2b8dcc50 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: MEYCIQD8E0Va2vlSidnIKMZn62J3pVBEavJ4peGvm2ZxCiCPgAIhAOJU/mGdxl/NjaFx+PTEswBB4KvaUGSBORmbI6p9rT6W Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEYCIQD8E0Va2vlSidnIKMZn62J3pVBEavJ4peGvm2ZxCiCPgAIhAOJU/mGdxl/NjaFx+PTEswBB4KvaUGSBORmbI6p9rT6W\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7200 - Funding Request Draft Updated Successfully
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- Funding Request IDstatus- Funding Request Draft StatustriggermanagementFundingRequestPut- Update Funding Request Draft- Returns:
- ResponseEntity<String>
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
updateFundingDefundingDraftStatusWithResponseSpec
public org.springframework.web.client.RestClient.ResponseSpec updateFundingDefundingDraftStatusWithResponseSpec(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementFundingRequestPut triggermanagementFundingRequestPut) throws org.springframework.web.client.RestClientResponseException Update Funding Draft Status ## Description Submit update of an existing Funding Request 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: - Start of day - 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. \"techFundRequestID\" 2. \"amount\" 3. \"creditedCashWalletOwnerID\" 4. ECB Issuance DCA BIC - 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: - \"techFundRequestID\": \"e3c8671d-44d7-4da1-b240-4a1b1e4e47e7\" - \"amount\": \"10000.00\" - \"creditedCashWalletOwnerID\": \"MP01FRAAXXX\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: e3c8671d-44d7-4da1-b240-4a1b1e4e47e710000.00MP01FRAAXXXECBFDEFFTOK Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 91a0c750de9839bfbeff02f592bea4543800e0155e8dc93a8ba0348b2b8dcc50 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: MEYCIQD8E0Va2vlSidnIKMZn62J3pVBEavJ4peGvm2ZxCiCPgAIhAOJU/mGdxl/NjaFx+PTEswBB4KvaUGSBORmbI6p9rT6W Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEYCIQD8E0Va2vlSidnIKMZn62J3pVBEavJ4peGvm2ZxCiCPgAIhAOJU/mGdxl/NjaFx+PTEswBB4KvaUGSBORmbI6p9rT6W\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7200 - Funding Request Draft Updated Successfully
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- Funding Request IDstatus- Funding Request Draft StatustriggermanagementFundingRequestPut- Update Funding Request Draft- Returns:
- ResponseSpec
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-