As a Promotion Manager I need a function to update a promotion So that I can modify existing promotional offers for products or specific product types efficiently
Details and Assumptions
The promotion details will include type, applicable products, and duration.
The promotion can be updated for a particular product or specific product types for the modified duration.
Updated promotion details will be stored in the database.
A promotion that is to be updated must already exist in the database.
Acceptance Criteria
Given a unique identifier for an existing promotion, and the updated promotion type, applicable products, and duration
When I call the "Update a Promotion" function
Then the existing offer should be modified in the database using the provided details
And the updated promotion should be applicable to the specified products or its types for the given new duration.
As a Promotion Manager
I need a function to update a promotion
So that I can modify existing promotional offers for products or specific product types efficiently
Details and Assumptions
Acceptance Criteria