Easy-SMTA reporting
Implement reporting on distribution of SMTA materials to the Easy-SMTA system of the Secretariat of the International Plant Treaty.
reportToITPGRFA(OrderRequest)
API calls to Easy-SMTA are usually done record-by-record and for each record, the response from the remote API needs to be stored in GGCE. We'll learn about the response model in genesys-pgr/glis-client#32 (closed) and decide if we add to OrderRequest
or a new entity OrderRequestITPGRFA
linked to it.
This method will eventually include data checks and throw relevant validation exceptions.
Page<OrderRequest + Extra> listForITPGRFA(OrderRequest filter, pageRequest)
We need a method that lists existing OrderRequests
that can be reported with Easy-SMTA. It will fetch OrderRequests
for the filter (+page) and will then check each record if it is complete and ready to submit, or already submitted.
The + Extra
includes the validation data, status checks and data from previous Easy-SMTA registration. The user will then be able to select the rows to submit to ITPGRFA.
We first need to learn which fields are required in the API request and what data is returned.
Depends on: