From 16a65b29b6872348f65aad5e3cc1ad28a0399170 Mon Sep 17 00:00:00 2001 From: Andrey Kharanenka Date: Tue, 16 Oct 2018 15:32:40 +0300 Subject: [PATCH] Added annotations for integration with Coupons for Shopaholic, Discounts for Shopaholic, Campaigns for Shopaholic plugins. --- classes/item/OfferItem.php | 7 +++++++ models/PromoBlock.php | 4 ++++ updates/version.yaml | 4 +++- 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/classes/item/OfferItem.php b/classes/item/OfferItem.php index a995469b..a60431e2 100644 --- a/classes/item/OfferItem.php +++ b/classes/item/OfferItem.php @@ -40,6 +40,13 @@ * @see \Lovata\PropertiesShopaholic\Classes\Event\OfferModelHandler::extendOfferItem * @property array $property_value_array * @property \Lovata\PropertiesShopaholic\Classes\Collection\PropertyCollection|\Lovata\PropertiesShopaholic\Classes\Item\PropertyItem[] $property + * + * Discounts for Shopaholic + * @property string $discount_price + * @property float $discount_price_value + * @property int $discount_id + * @property float $discount_value + * @property string $discount_type */ class OfferItem extends ElementItem { diff --git a/models/PromoBlock.php b/models/PromoBlock.php index 12b0d9b5..c1ee7673 100644 --- a/models/PromoBlock.php +++ b/models/PromoBlock.php @@ -52,6 +52,10 @@ * @property \October\Rain\Database\Collection|\Lovata\CampaignsShopaholic\Models\Campaign[] $campaign * @method static \October\Rain\Database\Relations\BelongsToMany|\Lovata\CampaignsShopaholic\Models\Campaign campaign() * + * Coupons for Shopaholic + * @property \October\Rain\Database\Collection|\Lovata\CouponsShopaholic\Models\CouponGroup[] $coupon_group + * @method static \October\Rain\Database\Relations\BelongsToMany|\Lovata\CouponsShopaholic\Models\CouponGroup coupon_group() + * * @method static $this active() * @method static $this hidden() * @method static $this notHidden() diff --git a/updates/version.yaml b/updates/version.yaml index cd2ebcae..27f94f09 100644 --- a/updates/version.yaml +++ b/updates/version.yaml @@ -49,4 +49,6 @@ 1.13.0: - 'Added PromoBlock model. Promo blocks are sections of content that you can place throughout your eCommerce website and advertise products, offers, discounts, campaigns, and other activity. Added PromoBlockData, PromoBlockPage, PromoBlockList components. Added PromoBlockItem, PromoBlockCollection classes.' - create_table_promo_block.php - - create_table_promo_block_relation.php \ No newline at end of file + - create_table_promo_block_relation.php +1.13.1: + - 'Added annotations for integration with Coupons for Shopaholic, Discounts for Shopaholic, Campaigns for Shopaholic plugins.' \ No newline at end of file