2022-03-02 15:40:53 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Intaro\RetailCrm\Model\Api\Order;
|
|
|
|
|
|
|
|
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
|
|
|
|
use Intaro\RetailCrm\Component\Json\Mapping;
|
|
|
|
|
2024-04-29 11:44:31 +03:00
|
|
|
/**
|
|
|
|
* Class OrderDeliveryData
|
|
|
|
*
|
|
|
|
* @category Integration
|
|
|
|
* @package Intaro\RetailCrm\Model\Api\Order
|
|
|
|
* @author RetailCRM <integration@retailcrm.ru>
|
|
|
|
* @license MIT
|
|
|
|
* @link http://retailcrm.ru
|
|
|
|
* @see http://retailcrm.ru/docs
|
|
|
|
*/
|
2022-03-02 15:40:53 +03:00
|
|
|
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;
|
|
|
|
}
|