Details

    • Type: Sub-Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.1.2
    • Component/s: None
    • Labels:

      Description

      The APIs need to support the following cases:

      DISCOUNTS

      1. List all discounts in a company.
        1. IN: companyId
        2. OUT listof: discount
      2. Add a new discount.
        1. IN: name, type
        2. OUT: discount
      3. Edit a discount.
        1. IN: discountId, name, type, target, amount, maximum amount, discount level, useCoupon, coupon code, rulesConjunction, schedule info
        2. OUT: discount 
      4. Delete a discount.
        1. IN: discountId
        2. OUT:
      5. List all target items defined for the discount
        1. IN: discountId, className (identifying the item type)
        2. OUT listof: target items
      6. Add target item to discount.
        1. IN: discountId, className, classPK
        2. OUT: ?
      7. Delete target item to discount
        1. IN: discountRelId
        2. OUT: 

      DISCOUNT RULES

      1. List all rules defined for the discount.
        1. IN: discountId
        2. OUT listof: discountRule
      2. Add a new rule.
        1. IN: discountId, name, type
        2. OUT: discountRule
      3. Edit a rule.
        1. IN: discountRuleId, name, type, 
        2. OUT: discountRule
      4. Delete a rule.
        1. IN: discountRuleId
        2. OUT:
      5. List all target items defined for the discountRule
        1. IN: discountRuleId
        2. OUT listof: target items (taken by splitting the typeSettings field)

      QUALIFIERS

      1. List all qualifiers associated to a discount.
        1. IN: discountId
        2. OUT lisfof: qualifier
      2. Add an qualifier to a discount
        1. IN: discountId, qualifierId
        2. OUT: ?
      3. Delete an qualifier from a discount
        1. IN: discountQualifierRelID
        2. OUT:

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              andrea.sbarra Andrea Sbarra
              Reporter:
              riccardo.alberti Riccardo Alberti
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package
                  2.1.2