Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AreaDescription
Offers

Manage offer in grid view (RTC-41924)

In promotion details, in grid with offers, there are three dots and eye icons for each offer row.
With three dots menu, it is possible to manage offer like in cards view (edit offer, manage items, import items, copy offer, remove).
With eye icon, modal with offer details is opened (same information as in card view). From modal it is also possible to make any of listed actions. Options available in these menus are affected by same rules and permissions as in the card view.
By clicking on link in 'Offer id' column in the grid, 'Edit offer' page is opened.

Offer items

Ordinary price column (RTC-41555)

Ordinary price column is visible in manage items grid in the offer on item/variant/model levels.

Promotion API

Put request for creating/updating offer (RTC-41207)

PUT request /promotions/[EgPromotionIdentifier]/offers in Promotion Service is supported.
Request body must contain JSON entity as documented in schema in Swagger.
For more information and rules regarding API, please refer to description and endpoint schema in 'Promotion Service Gateway API' part of Swagger, as well as 'File-import documentation' (all the business rules of import apply to API).
Mix types supported in this request are:
PromotionPrice
BuyNSelectedItemsAndGetDiscountOnTheYCheapestItems = 23
BuyNSelectedItemsForXAmount = 21
BuyOneItemFromSelectionAAndGetDiscountOnItemB = 4
DiscountOnWeightItem = 5
DiscountOnSelectedItems = 28
SubtotalDiscount = 26
PromotionDiscount = 101

Fields validation errors are returned as a message with status code 422. Code 400 with description is returned on rule violation. Correctly upserted offer is returned with code 201 (created) or 200 (updated), and response contains all the schema values of offer.


...