Skip to content

Commit

Permalink
✨ Add recommendedPrice and salesPrice to Product
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonJnsson committed Jan 2, 2024
1 parent 1fd55d5 commit cb44fda
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Resources/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ class Product extends Resource
#[Sortable]
public ?float $costPrice;

#[Filterable]
#[Sortable]
public ?float $recommendedPrice;

#[Filterable]
#[Sortable]
public ?float $salesPrice;

/**
* @var EconomicCollection<Entry>|null
*/
Expand Down Expand Up @@ -91,6 +99,8 @@ public static function new(
?string $barCode = null,
?bool $barred = null,
?float $costPrice = null,
?float $recommendedPrice = null,
?float $salesPrice = null,
?EconomicCollection $entries = null,
DateTime|string|null $fromDate = null,
?EconomicCollection $periods = null,
Expand All @@ -105,6 +115,8 @@ public static function new(
'barCode' => $barCode,
'barred' => $barred,
'costPrice' => $costPrice,
'recommendedPrice' => $recommendedPrice,
'salesPrice' => $salesPrice,
'entries' => $entries,
'fromDate' => $fromDate,
'periods' => $periods,
Expand Down

0 comments on commit cb44fda

Please sign in to comment.