You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User Story
After a ministry user approves a batch to be sent to CAS for invoicing, we need to send the invoices (and their detail records) to CAS via the API during the next available open window. This should also include any invoices we have previously received an error response for and a user has selected 'Retry'.
Acceptance Criteria
Create process to send invoices to CAS via the API in the next available window
Invoices to send to CAS: in an approved batch that have not already been sent;
Update the status if response is error: Manual Intervention (to avoid retrying - any technical error should be retried)
Save any Manual Intervention error messages received for the invoice (do not save any technical errors)
Update Distribution Accounts to be used in TEST & STAGING (doesn't matter which award CR or DR each one goes to):
Create release instructions to update sims.cas_distribution_accounts for DEV/TEST/STAGING assigning the provided values from the business.
Call CAS endpoint under the existing CAS API service.
Set the invoice status to Sent when a successful HTTP status is returned.
Set the invoice status to Manual intervention when a BAD_REQUEST is returned following the same idea from CAS Supplier.
Other errors should leave the record status as pending to allow it to be retried.
Create a scheduler to be executed three times a day with a hard limit to how many records will be selected following the same idea from the notifications.
Select all pending invoices under an approved batch.
Execute the CAS API calls with a limit of two max parallel operations (default configuration).
When a call fails, add an error to the process summary to allow the scheduler to retry.
E2E tests for the new scheduler.
Unit tests for the new API call following the ones already in place.
The text was updated successfully, but these errors were encountered:
User Story
After a ministry user approves a batch to be sent to CAS for invoicing, we need to send the invoices (and their detail records) to CAS via the API during the next available open window. This should also include any invoices we have previously received an error response for and a user has selected 'Retry'.
Acceptance Criteria
Create process to send invoices to CAS via the API in the next available window
Invoices to send to CAS: in an approved batch that have not already been sent;
Update the status if response is error: Manual Intervention (to avoid retrying - any technical error should be retried)
Save any Manual Intervention error messages received for the invoice (do not save any technical errors)
Update Distribution Accounts to be used in TEST & STAGING (doesn't matter which award CR or DR each one goes to):
Additional Context
CAS Files for Response Message and Payload Examples
-- carly to provide easier text for dist accts.
Technical
sims.cas_distribution_accounts
for DEV/TEST/STAGING assigning the provided values from the business.Sent
when a successful HTTP status is returned.Manual intervention
when a BAD_REQUEST is returned following the same idea from CAS Supplier.The text was updated successfully, but these errors were encountered: