1
0
mirror of synced 2024-12-04 11:16:08 +03:00
bitrix-module/intaro.retailcrm/lib/model/bitrix/orderloyaltydata.php
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>
2021-11-16 10:48:26 +03:00

144 lines
2.8 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 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;
}