1
0
mirror of synced 2024-12-02 02:06:06 +03:00
bitrix-module/intaro.retailcrm/lib/model/api/loyalty.php
Neur0toxine 5f69051859
Программа лояльности
* New module structure (refactoring)
* Simple serializer and deserializer with models, new architecture
* Move logic to strategies
* Partial api client facade implementation (full implementation is not necessary for now)
* Loyalty feature installer
* Sms verification order (#167)
* Make updater self-sufficient
* Fix for order submit & fix for incorrect component rendering in the constructor
* Fix for loyalty personal area error handling
* Fix for cart component identity
* Fix for softlock when customer cannot be registered in loyalty

Co-authored-by: Сергей Чазов <45812598+Chazovs@users.noreply.github.com>
Co-authored-by: Sergey Chazov <oitv18@gmail.com>
2021-11-16 10:48:26 +03:00

125 lines
2.4 KiB
PHP

<?php
namespace Intaro\RetailCrm\Model\Api;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class Loyalty
*
* @package Intaro\RetailCrm\Model\Api
*/
class Loyalty
{
/**
* Компании
*
* @var array $levels
*
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\LoyaltyLevel>")
* @Mapping\SerializedName("levels")
*/
public $levels;
/**
* Активна
*
* @var bool $active
*
* @Mapping\Type("boolean")
* @Mapping\SerializedName("active")
*/
public $active;
/**
* Заблокирована
*
* @var bool $blocked
*
* @Mapping\Type("boolean")
* @Mapping\SerializedName("blocked")
*/
public $blocked;
/**
* Id программы лояльности
*
* @var int $id
*
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $id;
/**
* Заблокирована
*
* @var string $name
*
* @Mapping\Type("string")
* @Mapping\SerializedName("name")
*/
public $name;
/**
* Заблокирована
*
* @var bool $confirmSmsCharge
*
* @Mapping\Type("boolean")
* @Mapping\SerializedName("confirmSmsCharge")
*/
public $confirmSmsCharge;
/**
* Заблокирована
*
* @var bool $confirmSmsRegistration
*
* @Mapping\Type("boolean")
* @Mapping\SerializedName("confirmSmsRegistration")
*/
public $confirmSmsRegistration;
/**
* Дата создания
*
* @var \DateTime $createdAt
*
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("createdAt")
*/
public $createdAt;
/**
* Дата запуска
*
* @var \DateTime $activatedAt
*
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("activatedAt")
*/
public $activatedAt;
/**
* Дата остановки
*
* @var \DateTime $deactivatedAt
*
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("deactivatedAt")
*/
public $deactivatedAt;
/**
* Дата блокировки
*
* @var \DateTime $blockedAt
*
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("blockedAt")
*/
public $blockedAt;
}