-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add customerSubscriptions to Customer entity
- Loading branch information
Showing
6 changed files
with
238 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category CustomerSubscription | ||
* @package RetailCrm\Api\Model\Entity\Customers | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Entity\Customers; | ||
|
||
use DateTime; | ||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
|
||
/** | ||
* Class CustomerSubscription | ||
* | ||
* @category CustomerSubscription | ||
* @package RetailCrm\Api\Model\Entity\Customers | ||
*/ | ||
class CustomerSubscription | ||
{ | ||
/** | ||
* @var \RetailCrm\Api\Model\Entity\Customers\SubscriptionCategory | ||
* | ||
* @JMS\Type("RetailCrm\Api\Model\Entity\Customers\SubscriptionCategory") | ||
* @JMS\SerializedName("subscription") | ||
*/ | ||
public $subscription; | ||
|
||
/** | ||
* @var bool | ||
* | ||
* @JMS\Type("bool") | ||
* @JMS\SerializedName("subscribed") | ||
*/ | ||
public $subscribed; | ||
|
||
/** | ||
* @var DateTime | ||
* | ||
* @JMS\Type("DateTime<'Y-m-d H:i:s'>") | ||
* @JMS\SerializedName("changedAt") | ||
*/ | ||
public $changedAt; | ||
} |
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,77 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category SubscriptionCategory | ||
* @package RetailCrm\Api\Model\Entity\Customers | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Entity\Customers; | ||
|
||
use RetailCrm\Api\Component\Serializer\Annotation as JMS; | ||
|
||
/** | ||
* Class SubscriptionCategory | ||
* | ||
* @category SubscriptionCategory | ||
* @package RetailCrm\Api\Model\Entity\Customers | ||
*/ | ||
class SubscriptionCategory | ||
{ | ||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("int") | ||
* @JMS\SerializedName("id") | ||
*/ | ||
public $id; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("channel") | ||
*/ | ||
public $channel; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("name") | ||
*/ | ||
public $name; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @JMS\Type("string") | ||
* @JMS\SerializedName("code") | ||
*/ | ||
public $code; | ||
|
||
/** | ||
* @var bool | ||
* | ||
* @JMS\Type("bool") | ||
* @JMS\SerializedName("active") | ||
*/ | ||
public $active; | ||
|
||
/** | ||
* @var bool | ||
* | ||
* @JMS\Type("bool") | ||
* @JMS\SerializedName("autoSubscribe") | ||
*/ | ||
public $autoSubscribe; | ||
|
||
/** | ||
* @var int | ||
* | ||
* @JMS\Type("int") | ||
* @JMS\SerializedName("ordering") | ||
*/ | ||
public $ordering; | ||
} |
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,45 @@ | ||
<?php | ||
|
||
/** | ||
* PHP version 7.3 | ||
* | ||
* @category CustomerSubscriptionFilter | ||
* @package RetailCrm\Api\Model\Filter\Customers | ||
*/ | ||
|
||
namespace RetailCrm\Api\Model\Filter\Customers; | ||
|
||
use RetailCrm\Api\Component\FormData\Mapping as Form; | ||
|
||
/** | ||
* Class CustomerSubscriptionFilter | ||
* | ||
* @category CustomerSubscriptionFilter | ||
* @package RetailCrm\Api\Model\Filter\Customers | ||
*/ | ||
class CustomerSubscriptionFilter | ||
{ | ||
/** | ||
* @var string | ||
* | ||
* @Form\Type("string") | ||
* @Form\SerializedName("channel") | ||
*/ | ||
public $channel; | ||
|
||
/** | ||
* @var string | ||
* | ||
* @Form\Type("string") | ||
* @Form\SerializedName("subscription") | ||
*/ | ||
public $subscription; | ||
|
||
/** | ||
* @var bool | ||
* | ||
* @Form\Type("bool") | ||
* @Form\SerializedName("subscribed") | ||
*/ | ||
public $subscribed; | ||
} |
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