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>
144 lines
2.8 KiB
PHP
144 lines
2.8 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 OrderLoyaltyData
|
||
*
|
||
* описывает HL-блок loyalty_program
|
||
*
|
||
* @package Intaro\RetailCrm\Model\Bitrix
|
||
*/
|
||
class OrderLoyaltyData
|
||
{
|
||
/**
|
||
* ID
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("ID")
|
||
*/
|
||
public $id;
|
||
|
||
/**
|
||
* ID заказа
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_ORDER_ID")
|
||
*/
|
||
public $orderId;
|
||
|
||
/**
|
||
* ID товара
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_ITEM_ID")
|
||
*/
|
||
public $itemId;
|
||
|
||
/**
|
||
* ID проверочного кода
|
||
*
|
||
* @var string
|
||
*
|
||
* @Mapping\Type("string")
|
||
* @Mapping\SerializedName("UF_CHECK_ID")
|
||
*/
|
||
public $checkId;
|
||
|
||
/**
|
||
* Списаны ли бонусы
|
||
*
|
||
* @var bool
|
||
*
|
||
* @Mapping\Type("bool")
|
||
* @Mapping\SerializedName("UF_IS_DEBITED")
|
||
*/
|
||
public $isDebited;
|
||
|
||
/**
|
||
* Количество в корзине
|
||
*
|
||
* @var float
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_QUANTITY")
|
||
*/
|
||
public $quantity;
|
||
|
||
/**
|
||
* ID позиции товара в корзине
|
||
*
|
||
* @var int $basketItemPositionId
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_ITEM_POS_ID")
|
||
*/
|
||
public $basketItemPositionId;
|
||
|
||
/**
|
||
* Размер обычной скидки на единицу товара в позиции
|
||
*
|
||
* Эта скидка определяется в правилах работы с корзиной
|
||
*
|
||
* @var float $defaultDiscount
|
||
*
|
||
* @Mapping\Type("float")
|
||
* @Mapping\SerializedName("UF_DEF_DISCOUNT")
|
||
*/
|
||
public $defaultDiscount;
|
||
|
||
/**
|
||
* Название товара
|
||
*
|
||
* @var string
|
||
*
|
||
* @Mapping\Type("string")
|
||
* @Mapping\SerializedName("UF_NAME")
|
||
*/
|
||
public $name;
|
||
|
||
/**
|
||
* Количество списываемых бонусов по позиции
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_BONUS_COUNT")
|
||
*/
|
||
public $bonusCount;
|
||
|
||
/**
|
||
* Количество списываемых бонусов по всему заказу
|
||
*
|
||
* @var integer
|
||
*
|
||
* @Mapping\Type("integer")
|
||
* @Mapping\SerializedName("UF_BONUS_COUNT_TOTAL")
|
||
*/
|
||
public $bonusCountTotal;
|
||
}
|
||
|
||
|
||
|
||
|
||
|