-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport compatibility changes from 3.0 (#304)
* Remove Lead Sources from Subscriptions, Transactions, Invoices (#289) * Refactor LeadSources usage * Only remove unnecessary lead sources in this PR * Fix codestyle * Add changelog * Add formatting * Add plan items property to Subscription, remove deprecated ones (#297) * Remove deprecated attributes and a bit order methods * Refactor Subscription * Add SubscriptionTest * Add items to Subscriptions * Refactor SubscriptionTest * Update CHANGELOG * Add fake generator for new property * Fix CS * Add PlanItemTest * Adjust LeadSource to latest changes (#298) * Adjust LeadSource to latest changes * Redo test * Remove wrong imports * Fix test * Add changelog * Remove ipAddress * Add getCustomer in Transaction (#299) * Remove EmailNotifications code (#300) * Adjust CHANGELOG.md file (#301) * Remove LeadSources endpoint and service (#296) * Add missing coupons restriction (#302) * Add missing coupons restriction * Small fix * Remove deprecated initialInvoiceId property from Subscription (#303) * Remove declartions of strict mode * Fix tests * Remove const visibility
- Loading branch information
Showing
26 changed files
with
865 additions
and
1,326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?php | ||
/** | ||
* This source file is proprietary and part of Rebilly. | ||
* | ||
* (c) Rebilly SRL | ||
* Rebilly Ltd. | ||
* Rebilly Inc. | ||
* | ||
* @see https://www.rebilly.com | ||
*/ | ||
|
||
namespace Rebilly\Entities\Coupons\Restrictions; | ||
|
||
use Rebilly\Entities\Coupons\Restriction; | ||
|
||
class MinimumOrderAmount extends Restriction | ||
{ | ||
/** | ||
* @return int | ||
*/ | ||
public function getQuantity() | ||
{ | ||
return $this->getAttribute('quantity'); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
public function getCurrency() | ||
{ | ||
return $this->getAttribute('currency'); | ||
} | ||
|
||
/** | ||
* @param int $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setQuantity($value) | ||
{ | ||
return $this->setAttribute('quantity', $value); | ||
} | ||
|
||
/** | ||
* @param string $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setCurrency($value) | ||
{ | ||
return $this->setAttribute('currency', $value); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
protected function restrictionType() | ||
{ | ||
return self::TYPE_MINIMUM_ORDER_AMOUNT; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/** | ||
* This source file is proprietary and part of Rebilly. | ||
* | ||
* (c) Rebilly SRL | ||
* Rebilly Ltd. | ||
* Rebilly Inc. | ||
* | ||
* @see https://www.rebilly.com | ||
*/ | ||
|
||
namespace Rebilly\Entities\Coupons\Restrictions; | ||
|
||
use Rebilly\Entities\Coupons\Restriction; | ||
|
||
class TotalRedemptions extends Restriction | ||
{ | ||
/** | ||
* @return int | ||
*/ | ||
public function getQuantity() | ||
{ | ||
return $this->getAttribute('quantity'); | ||
} | ||
|
||
/** | ||
* @param int $value | ||
* | ||
* @return $this | ||
*/ | ||
public function setQuantity($value) | ||
{ | ||
return $this->setAttribute('quantity', $value); | ||
} | ||
|
||
/** | ||
* @return string | ||
*/ | ||
protected function restrictionType() | ||
{ | ||
return self::TYPE_TOTAL_REDEMPTIONS; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.