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>
177 lines
3.8 KiB
PHP
177 lines
3.8 KiB
PHP
<?php
|
|
|
|
/**
|
|
* PHP version 7.1
|
|
*
|
|
* @category Integration
|
|
* @package Intaro\RetailCrm\Model\Api\Request\Loyalty\Account
|
|
* @author RetailCRM <integration@retailcrm.ru>
|
|
* @license MIT
|
|
* @link http://retailcrm.ru
|
|
* @see http://retailcrm.ru/docs
|
|
*/
|
|
|
|
namespace Intaro\RetailCrm\Model\Api;
|
|
|
|
use Intaro\RetailCrm\Component\Json\Mapping;
|
|
|
|
/**
|
|
* Class LoyaltyAccount
|
|
*
|
|
* @package Intaro\RetailCrm\Model\Api
|
|
*/
|
|
class LoyaltyAccount
|
|
{
|
|
/**
|
|
* Активность аккаунта
|
|
*
|
|
* @var bool $active
|
|
*
|
|
* @Mapping\Type("boolean")
|
|
* @Mapping\SerializedName("active")
|
|
*/
|
|
public $active;
|
|
|
|
/**
|
|
* Id участия в программе лояльности
|
|
*
|
|
* @var int $id
|
|
*
|
|
* @Mapping\Type("integer")
|
|
* @Mapping\SerializedName("id")
|
|
*/
|
|
public $id;
|
|
|
|
/**
|
|
* Программа лояльности
|
|
*
|
|
* @var \Intaro\RetailCrm\Model\Api\Loyalty
|
|
*
|
|
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\Loyalty")
|
|
* @Mapping\SerializedName("$loyalty")
|
|
*/
|
|
public $loyalty;
|
|
|
|
/**
|
|
* Номер телефона
|
|
*
|
|
* @var string $phoneNumber
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("phoneNumber")
|
|
*/
|
|
public $phoneNumber;
|
|
|
|
/**
|
|
* Номер карты
|
|
*
|
|
* @var string $cardNumber
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("cardNumber")
|
|
*/
|
|
public $cardNumber;
|
|
|
|
/**
|
|
* Количество бонусов
|
|
*
|
|
* @var float $amount
|
|
*
|
|
* @Mapping\Type("float")
|
|
* @Mapping\SerializedName("amount")
|
|
*/
|
|
public $amount;
|
|
|
|
/**
|
|
* Дата создания
|
|
*
|
|
* @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 string $lastCheckId
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("lastCheckId")
|
|
*/
|
|
public $lastCheckId;
|
|
|
|
/**
|
|
* Сумма покупок
|
|
*
|
|
* @var float $ordersSum
|
|
*
|
|
* @Mapping\Type("float")
|
|
* @Mapping\SerializedName("ordersSum")
|
|
*/
|
|
public $ordersSum;
|
|
|
|
/**
|
|
* Необходимая сумма покупок для перехода на след уровень
|
|
*
|
|
* @var float $nextLevelSum
|
|
*
|
|
* @Mapping\Type("float")
|
|
* @Mapping\SerializedName("nextLevelSum")
|
|
*/
|
|
public $nextLevelSum;
|
|
|
|
/**
|
|
* Дата верификации номера телефона
|
|
*
|
|
* @var \DateTime $confirmedPhoneAt
|
|
*
|
|
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
|
|
* @Mapping\SerializedName("confirmedPhoneAt")
|
|
*/
|
|
public $confirmedPhoneAt;
|
|
|
|
/**
|
|
* @var \Intaro\RetailCrm\Model\Api\LoyaltyLevel
|
|
*
|
|
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyLevel")
|
|
* @Mapping\SerializedName("level")
|
|
*/
|
|
public $loyaltyLevel;
|
|
|
|
/**
|
|
* @var \Intaro\RetailCrm\Model\Api\Customer
|
|
*
|
|
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\Customer")
|
|
* @Mapping\SerializedName("customer")
|
|
*/
|
|
public $customer;
|
|
|
|
/**
|
|
* @var array $customFields
|
|
*
|
|
* @Mapping\Type("array")
|
|
* @Mapping\SerializedName("customFields")
|
|
*/
|
|
public $customFields;
|
|
|
|
/**
|
|
* Статус участия. Возможные значения: not_confirmed, activated, deactivated
|
|
*
|
|
* @var string $status
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("status")
|
|
*/
|
|
public $status;
|
|
}
|