Details
-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
None
-
None
-
None
Description
Provider (e.g. CommercetoolsCheckoutProvider) will have hardcoded implementation classes (possible usage of map for it) for objects like Address, ShippingInformation etc.
Endpoint would accept json in body and map this object like
Address(interface) = objectMapper.readValue(json from body, implementation class from provider);
That way we can have separate implementation for each provider and easily anotate properties as required and get rid of checking if property is required later.
Checklists
Acceptance criteria