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>
184 lines
4.3 KiB
PHP
184 lines
4.3 KiB
PHP
<?php
|
||
|
||
/**
|
||
* PHP version 7.1
|
||
*
|
||
* @category Integration
|
||
* @package Intaro\RetailCrm\Model\Bitrix
|
||
* @author RetailCRM <integration@retailcrm.ru>
|
||
* @license MIT
|
||
* @link http://retailcrm.ru
|
||
* @see http://retailcrm.ru/docs
|
||
*/
|
||
|
||
namespace Intaro\RetailCrm\Model\Bitrix;
|
||
|
||
use Intaro\RetailCrm\Component\Json\Mapping;
|
||
|
||
/**
|
||
* Class UserLoyaltyData
|
||
*
|
||
* Описывает некоторые дополнительные поля сущности User,
|
||
* представленные в таблице b_uts_user
|
||
*
|
||
* @package Intaro\RetailCrm\Model\Bitrix
|
||
*/
|
||
class UserLoyaltyData
|
||
{
|
||
/**
|
||
* Номер бонусной карты в программе лояльности
|
||
*
|
||
* @var string
|
||
*
|
||
* @Mapping\Type("string")
|
||
* @Mapping\SerializedName("UF_CARD_NUM_INTARO")
|
||
*/
|
||
private $bonusCardNumber;
|
||
|
||
/**
|
||
* ID участия в программе лояльности
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_LP_ID_INTARO")
|
||
*/
|
||
private $idInLoyalty;
|
||
|
||
/**
|
||
* Согласие с правилами программы лояльности
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_AGREE_PL_INTARO")
|
||
*/
|
||
private $isAgreeLoyaltyProgramRules;
|
||
|
||
/**
|
||
* Согласие на обработку персональных данных
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_PD_PROC_PL_INTARO")
|
||
*/
|
||
private $isAgreePersonalDataRules;
|
||
|
||
/**
|
||
* Активен ли аккаунт в программе лояльности
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_EXT_REG_PL_INTARO")
|
||
*/
|
||
private $isUserLoyaltyAccountActive;
|
||
|
||
/**
|
||
* Согласен ли на регистрацию в LP
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_REG_IN_PL_INTARO")
|
||
*/
|
||
private $isAgreeRegisterInLoyaltyProgram;
|
||
|
||
/**
|
||
* @return string
|
||
*/
|
||
public function getBonusCardNumber(): string
|
||
{
|
||
return $this->bonusCardNumber;
|
||
}
|
||
|
||
/**
|
||
* @param string $bonusCardNumber
|
||
*/
|
||
public function setBonusCardNumber(string $bonusCardNumber): void
|
||
{
|
||
$this->bonusCardNumber = $bonusCardNumber;
|
||
}
|
||
|
||
/**
|
||
* @return int
|
||
*/
|
||
public function getIdInLoyalty(): int
|
||
{
|
||
return $this->idInLoyalty;
|
||
}
|
||
|
||
/**
|
||
* @param int $idInLoyalty
|
||
*/
|
||
public function setIdInLoyalty(int $idInLoyalty): void
|
||
{
|
||
$this->idInLoyalty = $idInLoyalty;
|
||
}
|
||
|
||
/**
|
||
* @return int
|
||
*/
|
||
public function getIsAgreeLoyaltyProgramRules(): int
|
||
{
|
||
return $this->isAgreeLoyaltyProgramRules;
|
||
}
|
||
|
||
/**
|
||
* @param int $isAgreeLoyaltyProgramRules
|
||
*/
|
||
public function setIsAgreeLoyaltyProgramRules(int $isAgreeLoyaltyProgramRules): void
|
||
{
|
||
$this->isAgreeLoyaltyProgramRules = $isAgreeLoyaltyProgramRules;
|
||
}
|
||
|
||
/**
|
||
* @return int
|
||
*/
|
||
public function getIsAgreePersonalDataRules(): int
|
||
{
|
||
return $this->isAgreePersonalDataRules;
|
||
}
|
||
|
||
/**
|
||
* @param int $isAgreePersonalDataRules
|
||
*/
|
||
public function setIsAgreePersonalDataRules(int $isAgreePersonalDataRules): void
|
||
{
|
||
$this->isAgreePersonalDataRules = $isAgreePersonalDataRules;
|
||
}
|
||
|
||
/**
|
||
* @return int
|
||
*/
|
||
public function getIsUserLoyaltyAccountActive(): int
|
||
{
|
||
return $this->isUserLoyaltyAccountActive;
|
||
}
|
||
|
||
/**
|
||
* @param int $isUserLoyaltyAccountActive
|
||
*/
|
||
public function setIsUserLoyaltyAccountActive(int $isUserLoyaltyAccountActive): void
|
||
{
|
||
$this->isUserLoyaltyAccountActive = $isUserLoyaltyAccountActive;
|
||
}
|
||
|
||
/**
|
||
* @return int
|
||
*/
|
||
public function getIsAgreeRegisterInLoyaltyProgram(): int
|
||
{
|
||
return $this->isAgreeRegisterInLoyaltyProgram;
|
||
}
|
||
|
||
/**
|
||
* @param int $isAgreeRegisterInLoyaltyProgram
|
||
*/
|
||
public function setIsAgreeRegisterInLoyaltyProgram(int $isAgreeRegisterInLoyaltyProgram): void
|
||
{
|
||
$this->isAgreeRegisterInLoyaltyProgram = $isAgreeRegisterInLoyaltyProgram;
|
||
}
|
||
}
|