| 1 | <?php |
||
| 19 | class DiscountedPricePerQuantity extends JsonObject |
||
| 20 | { |
||
| 21 | public function fieldDefinitions() |
||
| 22 | { |
||
| 23 | return [ |
||
| 24 | 'quantity' => [static::TYPE => 'int'], |
||
| 25 | 'discountedPrice' => [static::TYPE => '\Commercetools\Core\Model\Cart\DiscountedLineItemPrice'] |
||
| 26 | ]; |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return Money |
||
| 31 | */ |
||
| 32 | public function getDiscountedTotal() |
||
| 39 | } |
||
| 40 |