Class Class12DefundingCashToken2StepsApi
-
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) submitDefundingRequest(String ncb, TriggermanagementCreateDefundingRequest triggermanagementCreateDefundingRequest) Submit Defunding Request ## Description Submit a draft request to create a new Defunding for the specified Dedicated Cash Wallet.org.springframework.http.ResponseEntity<TriggermanagementDefundingRequestResponse> submitDefundingRequestWithHttpInfo(String ncb, TriggermanagementCreateDefundingRequest triggermanagementCreateDefundingRequest) Submit Defunding Request ## Description Submit a draft request to create a new Defunding for the specified Dedicated Cash Wallet.org.springframework.web.client.RestClient.ResponseSpecsubmitDefundingRequestWithResponseSpec(String ncb, TriggermanagementCreateDefundingRequest triggermanagementCreateDefundingRequest) Submit Defunding Request ## Description Submit a draft request to create a new Defunding for the specified Dedicated Cash Wallet.updateDefundingDraftStatus(String ncb, String id, String status, TriggermanagementDefundingRequestPut triggermanagementDefundingRequestPut) Update Defunding Draft Status ## Description Submit update of an existing Defunding Draft previously created.org.springframework.http.ResponseEntity<String> updateDefundingDraftStatusWithHttpInfo(String ncb, String id, String status, TriggermanagementDefundingRequestPut triggermanagementDefundingRequestPut) Update Defunding Draft Status ## Description Submit update of an existing Defunding Draft previously created.org.springframework.web.client.RestClient.ResponseSpecupdateDefundingDraftStatusWithResponseSpec(String ncb, String id, String status, TriggermanagementDefundingRequestPut triggermanagementDefundingRequestPut) Update Defunding Draft Status ## Description Submit update of an existing Defunding Draft previously created.
-
Constructor Details
-
Class12DefundingCashToken2StepsApi
public Class12DefundingCashToken2StepsApi() -
Class12DefundingCashToken2StepsApi
-
-
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
-
submitDefundingRequest
public TriggermanagementDefundingRequestResponse submitDefundingRequest(@Nonnull String ncb, @Nonnull TriggermanagementCreateDefundingRequest triggermanagementCreateDefundingRequest) throws org.springframework.web.client.RestClientResponseException Submit Defunding Request ## Description Submit a draft request to create a new Defunding 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 - End of day 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 Defunding 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\", ECB Issuance DCA BIC and \"debitedCashWalletOwnerID\" - \"creditedCashWalletAlias\" shall contain WEUEURECBFDEFFTPP-TOKEN_ISSUANCE_WALLET - \"creditedCashWalletManagerID\" shall contain ECBFDEFFTPP - \"creditedCashWalletOwner\" shall contain ECBFDEFFTPP ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"techFundRequestID\" 2. \"amount\" 3. ECB Issuance DCA BIC 4. \"debitedCashWalletOwnerID\" - 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\": \"10f61725-54a9-4c42-bedc-d47655446562\" - \"amount\": \"500.50\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" - \"debitedCashWalletOwnerID\": \"MP01FRAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: 10f61725-54a9-4c42-bedc-d47655446562500.50ECBFDEFFTOKMP01FRAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 0d52e32faec8e3de52f29609fdc253853c78e3a27767b25b4c93c722083c628d 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: MEUCIHvPCvKEF0vDYB43Bq7V8z7ClCNqVVojKGGeI6T4rlqZAiEA/PUd3x9jXOH53x8EIIStE+/8k9GPFMeoPrxCID6qhT0= Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIHvPCvKEF0vDYB43Bq7V8z7ClCNqVVojKGGeI6T4rlqZAiEA/PUd3x9jXOH53x8EIIStE+/8k9GPFMeoPrxCID6qhT0=\" ## 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 Defunding Request ID needed to update ## Traceability - Reference Documents: - Service Description Document - Defunding Requests - Section 3.5.2 - Service Description Document - A2A Illustration - Section 3.7201 - Created
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short NametriggermanagementCreateDefundingRequest- Add Defunding Request- Returns:
- TriggermanagementDefundingRequestResponse
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
submitDefundingRequestWithHttpInfo
public org.springframework.http.ResponseEntity<TriggermanagementDefundingRequestResponse> submitDefundingRequestWithHttpInfo(@Nonnull String ncb, @Nonnull TriggermanagementCreateDefundingRequest triggermanagementCreateDefundingRequest) throws org.springframework.web.client.RestClientResponseException Submit Defunding Request ## Description Submit a draft request to create a new Defunding 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 - End of day 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 Defunding 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\", ECB Issuance DCA BIC and \"debitedCashWalletOwnerID\" - \"creditedCashWalletAlias\" shall contain WEUEURECBFDEFFTPP-TOKEN_ISSUANCE_WALLET - \"creditedCashWalletManagerID\" shall contain ECBFDEFFTPP - \"creditedCashWalletOwner\" shall contain ECBFDEFFTPP ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"techFundRequestID\" 2. \"amount\" 3. ECB Issuance DCA BIC 4. \"debitedCashWalletOwnerID\" - 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\": \"10f61725-54a9-4c42-bedc-d47655446562\" - \"amount\": \"500.50\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" - \"debitedCashWalletOwnerID\": \"MP01FRAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: 10f61725-54a9-4c42-bedc-d47655446562500.50ECBFDEFFTOKMP01FRAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 0d52e32faec8e3de52f29609fdc253853c78e3a27767b25b4c93c722083c628d 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: MEUCIHvPCvKEF0vDYB43Bq7V8z7ClCNqVVojKGGeI6T4rlqZAiEA/PUd3x9jXOH53x8EIIStE+/8k9GPFMeoPrxCID6qhT0= Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIHvPCvKEF0vDYB43Bq7V8z7ClCNqVVojKGGeI6T4rlqZAiEA/PUd3x9jXOH53x8EIIStE+/8k9GPFMeoPrxCID6qhT0=\" ## 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 Defunding Request ID needed to update ## Traceability - Reference Documents: - Service Description Document - Defunding Requests - Section 3.5.2 - Service Description Document - A2A Illustration - Section 3.7201 - Created
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short NametriggermanagementCreateDefundingRequest- Add Defunding Request- Returns:
- ResponseEntity<TriggermanagementDefundingRequestResponse>
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
submitDefundingRequestWithResponseSpec
public org.springframework.web.client.RestClient.ResponseSpec submitDefundingRequestWithResponseSpec(@Nonnull String ncb, @Nonnull TriggermanagementCreateDefundingRequest triggermanagementCreateDefundingRequest) throws org.springframework.web.client.RestClientResponseException Submit Defunding Request ## Description Submit a draft request to create a new Defunding 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 - End of day 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 Defunding 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\", ECB Issuance DCA BIC and \"debitedCashWalletOwnerID\" - \"creditedCashWalletAlias\" shall contain WEUEURECBFDEFFTPP-TOKEN_ISSUANCE_WALLET - \"creditedCashWalletManagerID\" shall contain ECBFDEFFTPP - \"creditedCashWalletOwner\" shall contain ECBFDEFFTPP ## Signing Rules: - The fields shall be concatenated as string in the following order: 1. \"techFundRequestID\" 2. \"amount\" 3. ECB Issuance DCA BIC 4. \"debitedCashWalletOwnerID\" - 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\": \"10f61725-54a9-4c42-bedc-d47655446562\" - \"amount\": \"500.50\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" - \"debitedCashWalletOwnerID\": \"MP01FRAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: 10f61725-54a9-4c42-bedc-d47655446562500.50ECBFDEFFTOKMP01FRAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 0d52e32faec8e3de52f29609fdc253853c78e3a27767b25b4c93c722083c628d 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: MEUCIHvPCvKEF0vDYB43Bq7V8z7ClCNqVVojKGGeI6T4rlqZAiEA/PUd3x9jXOH53x8EIIStE+/8k9GPFMeoPrxCID6qhT0= Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEUCIHvPCvKEF0vDYB43Bq7V8z7ClCNqVVojKGGeI6T4rlqZAiEA/PUd3x9jXOH53x8EIIStE+/8k9GPFMeoPrxCID6qhT0=\" ## 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 Defunding Request ID needed to update ## Traceability - Reference Documents: - Service Description Document - Defunding Requests - Section 3.5.2 - Service Description Document - A2A Illustration - Section 3.7201 - Created
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short NametriggermanagementCreateDefundingRequest- Add Defunding Request- Returns:
- ResponseSpec
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
updateDefundingDraftStatus
public String updateDefundingDraftStatus(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementDefundingRequestPut triggermanagementDefundingRequestPut) throws org.springframework.web.client.RestClientResponseException Update Defunding Draft Status ## Description Submit update of an existing Defunding 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 - End of Day 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. ECB Issuance DCA BIC 4. \"debitedCashWalletOwnerID\" - 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\": \"10f61725-54a9-4c42-bedc-d47655446562\" - \"amount\": \"500.50\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" - \"debitedCashWalletOwnerID\": \"MP01FRAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: 10f61725-54a9-4c42-bedc-d47655446562500.50ECBFDEFFTOKMP01FRAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 0d52e32faec8e3de52f29609fdc253853c78e3a27767b25b4c93c722083c628d 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: MEYCIQDeFQlYB/vJkr8nvd6W+PxAZ3BN3xrlZvpP/WH9Y8ncBQIhAL71gggBPv7OkEWuZdqRJCH6y9Je49QZCAXMa+n7EsQX Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEYCIQDeFQlYB/vJkr8nvd6W+PxAZ3BN3xrlZvpP/WH9Y8ncBQIhAL71gggBPv7OkEWuZdqRJCH6y9Je49QZCAXMa+n7EsQX\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7200 - Defunding Request Draft Updated
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- Defunding Request IDstatus- Defunding Request Draft StatustriggermanagementDefundingRequestPut- Update Defunding Request Draft- Returns:
- String
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
updateDefundingDraftStatusWithHttpInfo
public org.springframework.http.ResponseEntity<String> updateDefundingDraftStatusWithHttpInfo(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementDefundingRequestPut triggermanagementDefundingRequestPut) throws org.springframework.web.client.RestClientResponseException Update Defunding Draft Status ## Description Submit update of an existing Defunding 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 - End of Day 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. ECB Issuance DCA BIC 4. \"debitedCashWalletOwnerID\" - 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\": \"10f61725-54a9-4c42-bedc-d47655446562\" - \"amount\": \"500.50\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" - \"debitedCashWalletOwnerID\": \"MP01FRAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: 10f61725-54a9-4c42-bedc-d47655446562500.50ECBFDEFFTOKMP01FRAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 0d52e32faec8e3de52f29609fdc253853c78e3a27767b25b4c93c722083c628d 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: MEYCIQDeFQlYB/vJkr8nvd6W+PxAZ3BN3xrlZvpP/WH9Y8ncBQIhAL71gggBPv7OkEWuZdqRJCH6y9Je49QZCAXMa+n7EsQX Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEYCIQDeFQlYB/vJkr8nvd6W+PxAZ3BN3xrlZvpP/WH9Y8ncBQIhAL71gggBPv7OkEWuZdqRJCH6y9Je49QZCAXMa+n7EsQX\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7200 - Defunding Request Draft Updated
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- Defunding Request IDstatus- Defunding Request Draft StatustriggermanagementDefundingRequestPut- Update Defunding Request Draft- Returns:
- ResponseEntity<String>
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-
updateDefundingDraftStatusWithResponseSpec
public org.springframework.web.client.RestClient.ResponseSpec updateDefundingDraftStatusWithResponseSpec(@Nonnull String ncb, @Nonnull String id, @Nonnull String status, @Nonnull TriggermanagementDefundingRequestPut triggermanagementDefundingRequestPut) throws org.springframework.web.client.RestClientResponseException Update Defunding Draft Status ## Description Submit update of an existing Defunding 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 - End of Day 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. ECB Issuance DCA BIC 4. \"debitedCashWalletOwnerID\" - 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\": \"10f61725-54a9-4c42-bedc-d47655446562\" - \"amount\": \"500.50\" - ECB Issuance DCA BIC: \"ECBFDEFFTOK\" - \"debitedCashWalletOwnerID\": \"MP01FRAAXXX\" Step 1 - Concatenate the fields: The concatenated string to be hashed is: 10f61725-54a9-4c42-bedc-d47655446562500.50ECBFDEFFTOKMP01FRAAXXX Step 2 - Generate the SHA256 hash: The generated hash to be signed is: 0d52e32faec8e3de52f29609fdc253853c78e3a27767b25b4c93c722083c628d 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: MEYCIQDeFQlYB/vJkr8nvd6W+PxAZ3BN3xrlZvpP/WH9Y8ncBQIhAL71gggBPv7OkEWuZdqRJCH6y9Je49QZCAXMa+n7EsQX Step 4 - Populate the payload: The generated signature shall be inserted into the \"signature\" of the request payload: \"signature\": \"MEYCIQDeFQlYB/vJkr8nvd6W+PxAZ3BN3xrlZvpP/WH9Y8ncBQIhAL71gggBPv7OkEWuZdqRJCH6y9Je49QZCAXMa+n7EsQX\" ## Response Semantics - A successful response confirms that the existing draft has been updated ## Traceability - Reference Documents: - Service Description Document - A2A Illustration - Section 3.7200 - Defunding Request Draft Updated
400 - Bad Request
401 - Unauthorized
403 - Forbidden
500 - Internal Server Error
- Parameters:
ncb- NCB Short Nameid- Defunding Request IDstatus- Defunding Request Draft StatustriggermanagementDefundingRequestPut- Update Defunding Request Draft- Returns:
- ResponseSpec
- Throws:
org.springframework.web.client.RestClientResponseException- if an error occurs while attempting to invoke the API
-