Skip to content

Commit 53c472a

Browse files
committed
MC-17459: Coupon's expiration date and time do not match staging update end_date after creating a staging update
- Removed deprecation of coupon expiration date usage in Magento 2.2 due to backward compatibility rules
1 parent 7757e66 commit 53c472a

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

app/code/Magento/SalesRule/Api/Data/CouponInterface.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ public function setTimesUsed($timesUsed);
108108
* Get expiration date
109109
*
110110
* @return string|null
111-
* @deprecated Coupon expiration must follow sales rule expiration date.
112111
*/
113112
public function getExpirationDate();
114113

@@ -117,7 +116,6 @@ public function getExpirationDate();
117116
*
118117
* @param string $expirationDate
119118
* @return $this
120-
* @deprecated Coupon expiration must follow sales rule expiration date.
121119
*/
122120
public function setExpirationDate($expirationDate);
123121

app/code/Magento/SalesRule/Model/Coupon.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,6 @@ class Coupon extends \Magento\Framework\Model\AbstractExtensibleModel implements
2020
const KEY_USAGE_LIMIT = 'usage_limit';
2121
const KEY_USAGE_PER_CUSTOMER = 'usage_per_customer';
2222
const KEY_TIMES_USED = 'times_used';
23-
/**
24-
* @deprecated Coupon expiration must follow sales rule expiration date.
25-
*/
2623
const KEY_EXPIRATION_DATE = 'expiration_date';
2724
const KEY_IS_PRIMARY = 'is_primary';
2825
const KEY_CREATED_AT = 'created_at';
@@ -205,7 +202,6 @@ public function setTimesUsed($timesUsed)
205202
* Get expiration date
206203
*
207204
* @return string|null
208-
* @deprecated Coupon expiration must follow sales rule expiration date.
209205
*/
210206
public function getExpirationDate()
211207
{
@@ -217,7 +213,6 @@ public function getExpirationDate()
217213
*
218214
* @param string $expirationDate
219215
* @return $this
220-
* @deprecated Coupon expiration must follow sales rule expiration date.
221216
*/
222217
public function setExpirationDate($expirationDate)
223218
{

0 commit comments

Comments
 (0)