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>
171 lines
3.6 KiB
PHP
171 lines
3.6 KiB
PHP
<?php
|
|
|
|
namespace Intaro\RetailCrm\Model\Api\Order;
|
|
|
|
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
|
|
use Intaro\RetailCrm\Component\Json\Mapping;
|
|
|
|
class Order extends AbstractApiModel
|
|
{
|
|
/**
|
|
* ID заказа
|
|
*
|
|
* @var integer $id
|
|
*
|
|
* @Mapping\Type("integer")
|
|
* @Mapping\SerializedName("id")
|
|
*/
|
|
public $id;
|
|
|
|
/**
|
|
* Номер заказа
|
|
*
|
|
* @var string
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("number")
|
|
*/
|
|
public $number;
|
|
|
|
/**
|
|
* Внешний ID корпоративного клиента
|
|
*
|
|
* @var string $externalId
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("externalId")
|
|
*/
|
|
public $externalId;
|
|
|
|
/**
|
|
* Менеджер, прикрепленный к заказу
|
|
*
|
|
* @var string $managerId
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("managerId")
|
|
*/
|
|
public $managerId;
|
|
|
|
/**
|
|
* Количество начисленных бонусов
|
|
*
|
|
* @var double $bonusesCreditTotal
|
|
*
|
|
* @Mapping\Type("double")
|
|
* @Mapping\SerializedName("bonusesCreditTotal")
|
|
*/
|
|
public $bonusesCreditTotal;
|
|
|
|
/**
|
|
* Количество списанных бонусов
|
|
*
|
|
* @var double $bonusesChargeTotal
|
|
*
|
|
* @Mapping\Type("double")
|
|
* @Mapping\SerializedName("bonusesChargeTotal")
|
|
*/
|
|
public $bonusesChargeTotal;
|
|
|
|
/**
|
|
* Денежная скидка на весь заказ
|
|
*
|
|
* @var double $discountManualAmount
|
|
*
|
|
* @Mapping\Type("double")
|
|
* @Mapping\SerializedName("discountManualAmount")
|
|
*/
|
|
public $discountManualAmount;
|
|
|
|
/**
|
|
* Процентная скидка на весь заказ
|
|
*
|
|
* @var double $discountManualPercent
|
|
*
|
|
* @Mapping\Type("double")
|
|
* @Mapping\SerializedName("discountManualPercent")
|
|
*/
|
|
public $discountManualPercent;
|
|
|
|
/**
|
|
* Персональная скидка на заказ
|
|
*
|
|
* @var double $personalDiscountPercent
|
|
*
|
|
* @Mapping\Type("double")
|
|
* @Mapping\SerializedName("personalDiscountPercent")
|
|
*/
|
|
public $personalDiscountPercent;
|
|
|
|
/**
|
|
* Магазин
|
|
*
|
|
* @var string $site
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("site")
|
|
*/
|
|
public $site;
|
|
|
|
/**
|
|
* Статус заказа
|
|
*
|
|
* @var string $status
|
|
*
|
|
* @Mapping\Type("string")
|
|
* @Mapping\SerializedName("status")
|
|
*/
|
|
public $status;
|
|
|
|
/**
|
|
* @var \Intaro\RetailCrm\Model\Api\Order\SerializedOrderDelivery
|
|
*
|
|
*
|
|
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Order\SerializedOrderDelivery")
|
|
* @Mapping\SerializedName("delivery")
|
|
*/
|
|
public $delivery;
|
|
|
|
/**
|
|
* Позиции в заказе
|
|
*
|
|
* @var array $items
|
|
*
|
|
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\Order\OrderProduct>")
|
|
* @Mapping\SerializedName("items")
|
|
*/
|
|
public $items;
|
|
|
|
/**
|
|
* @var double
|
|
*
|
|
* @Mapping\Type("double")
|
|
* @Mapping\SerializedName("weight")
|
|
*/
|
|
public $weight;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @Mapping\Type("int")
|
|
* @Mapping\SerializedName("length")
|
|
*/
|
|
public $length;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @Mapping\Type("int")
|
|
* @Mapping\SerializedName("width")
|
|
*/
|
|
public $width;
|
|
|
|
/**
|
|
* @var int
|
|
*
|
|
* @Mapping\Type("int")
|
|
* @Mapping\SerializedName("height")
|
|
*/
|
|
public $height;
|
|
}
|