1
0
mirror of synced 2024-12-01 17:56:07 +03:00
bitrix-module/intaro.retailcrm/lib/model/api/history.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

206 lines
4.6 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\Api
* @author RetailCRM <integration@retailcrm.ru>
* @license MIT
* @link http://retailcrm.ru
* @see http://retailcrm.ru/docs
*/
namespace Intaro\RetailCrm\Model\Api;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
* Class History
*
* @package Intaro\RetailCrm\Model\Api
*/
class History extends AbstractApiModel
{
/**
* Внутренний идентификатор записи в истории
*
* @var integer $id
*
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $id;
/**
* Дата внесения изменения
*
* @var \DateTime $createdAt
*
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("createdAt")
*/
public $createdAt;
/**
* Признак создания сущности
*
* @var string $created
*
* @Mapping\Type("boolean")
* @Mapping\SerializedName("created")
*/
public $created;
/**
* Признак удаления сущности
*
* @var string $deleted
*
* @Mapping\Type("boolean")
* @Mapping\SerializedName("deleted")
*/
public $deleted;
/**
* Источник изменения
*
* @var string $source
*
* @Mapping\Type("string")
* @Mapping\SerializedName("source")
*/
public $source;
/**
* Пользователь
*
* @var \Intaro\RetailCrm\Model\Api\User $user
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\User")
* @Mapping\SerializedName("user")
*/
public $user;
/**
* Имя изменившегося поля
*
* @var string $field
*
* @Mapping\Type("string")
* @Mapping\SerializedName("field")
*/
public $field;
/**
* Информация о ключе api, использовавшемся для этого изменения
*
* @var array $apiKey
*
* @Mapping\Type("array")
* @Mapping\SerializedName("apiKey")
*/
public $apiKey;
/**
* Старое значение свойства
*
* @var string $oldValue
*
* @Mapping\Type("string")
* @Mapping\SerializedName("oldValue")
*/
public $oldValue;
/**
* Новое значение свойства
*
* @var string $newValue
*
* @Mapping\Type("string")
* @Mapping\SerializedName("newValue")
*/
public $newValue;
/**
* Клиент
*
* @var \Intaro\RetailCrm\Model\Api\Customer $customer
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Customer")
* @Mapping\SerializedName("customer")
*/
public $customer;
/**
* Заказ
*
* @var \Intaro\RetailCrm\Model\Api\Order $order
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Order")
* @Mapping\SerializedName("order")
*/
public $order;
/**
* Позиция в заказе
*
* @var \Intaro\RetailCrm\Model\Api\Item $item
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Item")
* @Mapping\SerializedName("item")
*/
public $item;
/**
* Платёж
*
* @var \Intaro\RetailCrm\Model\Api\Payment $payment
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Payment")
* @Mapping\SerializedName("payment")
*/
public $payment;
/**
* Адрес клиента
*
* @var \Intaro\RetailCrm\Model\Api\Address $address
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Address")
* @Mapping\SerializedName("address")
*/
public $address;
/**
* Информация о [заказе|клиенте], который получился после объединения с текущим клиентом
*
* @var array $combinedTo
*
* @Mapping\Type("array")
* @Mapping\SerializedName("combinedTo")
*/
public $combinedTo;
/**
* Информация о клиенте, который получился после объединения с текущим клиентом
*
* @var \Intaro\RetailCrm\Model\Api\CustomerContact $customerContact
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\CustomerContact")
* @Mapping\SerializedName("customerContact")
*/
public $customerContact;
/**
* Информация о компании
*
* @var \Intaro\RetailCrm\Model\Api\Company $company
*
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Company")
* @Mapping\SerializedName("company")
*/
public $company;
}