Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-168

Improve code of CheckoutProvider and Endpoint

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • None
    • 5

    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

        Attachments

          Activity

            People

              Unassigned Unassigned
              efochr Evzen Fochr
              AuthorX
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoD