Skip to content

Commit

Permalink
Prepare release 2.22.0
Browse files Browse the repository at this point in the history
Prepare release 2.22.0
  • Loading branch information
sven1103 authored Oct 21, 2022
2 parents 3f40421 + 801ac4f commit ad43566
Showing 1 changed file with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ class ProductItem {
*/
final double quantityDiscount

/**
* Stores the latest position on the offer.
*
* A negative value indicates no specific position was stored in the item.
*/
private int offerPosition = -1

/**
*
* @param quantity The quantity of a product
Expand Down Expand Up @@ -70,5 +77,27 @@ class ProductItem {
this.quantityDiscount = quantityDiscount
}

/**
* Sets the position information on the offer the item should be placed
*
* A negative value indicates no positional information.
* @param position a positive value >= 0 indicating a position on the offer
* @since 2.22.0
*/
void setOrderPosition(int position) {
offerPosition = position
}

/**
* The position on the offer.
*
* Is negative, if no positional information is available.
* @return
* @since 2.22.0
*/
int offerPosition() {
return offerPosition
}


}

0 comments on commit ad43566

Please sign in to comment.