For a deeper look into our World Check One API, look into:
The API indicates that value values for the ProviderType are enum (WATCHLIST, PASSPORT_CHECK) and for CaseEntityType are enum (INDIVIDUAL, ORGANISATION, VESSEL, UNKNOWN).
The YAML generated Java code creates a ProviderType.java class with the values of "WATCHLIST" and "PASSPORT_CHECK" and a CaseEntityType.java with values of "INDIVIDUAL", "ORGANISATION", "VESSEL", and "UNKNOWN".
The problem is that World Check is sending back values that are lower case. For example "watchlist" and "individual". That makes using the generated code problematic as "watchlist" isn't a valid provider type based on the API.
That means my code has to check for all different cases of enumerated values which is a mess.
Will the case returned be changing in the future or will there be an update YAML file with the correct case provided?
Just wanted to follow up on this query..are you still facing the issue?
If yes, please share us the requested information
Hi @Michael.Kraft,
Can you please provide me the Body of the Case and whats the error you are getting exactly.May be based on this I will help you.
Thanks,
Shilpi