1
0
mirror of synced 2024-11-30 09:16:06 +03:00
bitrix-module/intaro.retailcrm/lib/model/bitrix/userloyaltydata.php
Сергей Чазов 34e8105583
Loyalty (#241)
* Loyalty program
* fix dot bug for shops-exoprt option
* delete credantials request from services
* add CurlException for credentials catch
* add catching CurlException
* edit error msgs
* add supportind double bonuses
* add any step for bonus-input field in sale.order.ajax template
* recalculate bonuses
* fix bonus rounded
* strtoupper for params in icml
* change delivery service code
2022-03-02 15:40:53 +03:00

184 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
/**
* 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;
}
}