Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit b3c44fe

Browse files
committed
feat(Product): add discounted field to PriceDraft
1 parent 5299665 commit b3c44fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Core/Model/Common/PriceDraft.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* @method PriceDraft setCustom(CustomFieldObject $custom = null)
3030
* @method PriceTierCollection getTiers()
3131
* @method PriceDraft setTiers(PriceTierCollection $tiers = null)
32+
* @method DiscountedPrice getDiscounted()
33+
* @method PriceDraft setDiscounted(DiscountedPrice $discounted = null)
3234
*/
3335
class PriceDraft extends JsonObject
3436
{
@@ -58,7 +60,8 @@ public function fieldDefinitions()
5860
self::DECORATOR => DateTimeDecorator::class
5961
],
6062
static::CUSTOM => [static::TYPE => CustomFieldObject::class],
61-
static::TIERS => [static::TYPE => PriceTierCollection::class]
63+
static::TIERS => [static::TYPE => PriceTierCollection::class],
64+
static::DISCOUNTED => [static::TYPE => DiscountedPrice::class],
6265
];
6366
}
6467

0 commit comments

Comments
 (0)