1
0
mirror of synced 2024-12-12 07:06:04 +03:00
bitrix-module/intaro.retailcrm/lib/model/bitrix/userloyaltydata.php

182 lines
4.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* @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;
}
}