1
0
Fork 0
mirror of synced 2025-04-20 01:21:01 +00:00

add setters and getters

This commit is contained in:
Sergey Chazov 2020-09-29 13:34:37 +03:00
parent e81bde0ee7
commit 60afeef610
22 changed files with 1493 additions and 104 deletions

View file

@ -26,5 +26,21 @@ class AbstractLoyaltyEvent
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $id;
private $id;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
}

View file

@ -11,6 +11,7 @@
*/
namespace Intaro\RetailCrm\Model\Api;
use DateTime;
use Intaro\RetailCrm\Component\Json\Mapping;
/**
@ -28,7 +29,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $id;
private $id;
/**
* Внешний ID [обычного|корпоративного] клиента
@ -38,7 +39,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("externalId")
*/
public $externalId;
private $externalId;
/**
* Внешний идентификатор [обычного|корпоративного] клиента в складской системе
@ -48,7 +49,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("uuid")
*/
public $uuid;
private $uuid;
/**
* Тип клиента (корпоративный или обычный)
@ -58,7 +59,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("type")
*/
public $type;
private $type;
/**
* Контактное лицо корпоративного клиента является основным
@ -68,7 +69,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("isMain")
*/
public $isMain;
private $isMain;
/**
* Индикатор подписки на рассылку
@ -78,7 +79,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("subscribed")
*/
public $subscribed;
private $subscribed;
/**
* Кука Daemon Collector
@ -88,7 +89,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("browserId")
*/
public $browserId;
private $browserId;
/**
* Является ли клиент контактным лицом корпоративного клиента
@ -98,7 +99,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("isContact")
*/
public $isContact;
private $isContact;
/**
* Дата создания в системе
@ -108,7 +109,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("createdAt")
*/
public $createdAt;
private $createdAt;
/**
* Имя
@ -118,7 +119,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("firstName")
*/
public $firstName;
private $firstName;
/**
* Фамилия
@ -128,7 +129,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("lastName")
*/
public $lastName;
private $lastName;
/**
* Отчество
@ -138,7 +139,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("patronymic")
*/
public $patronymic;
private $patronymic;
/**
* Адрес электронной почты
@ -148,7 +149,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("email")
*/
public $email;
private $email;
/**
* Телефоны
@ -158,7 +159,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\Phone>")
* @Mapping\SerializedName("phones")
*/
public $phones;
private $phones;
/**
* Дата рождения
@ -168,7 +169,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("DateTime<'Y-m-d'>")
* @Mapping\SerializedName("birthday")
*/
public $birthday;
private $birthday;
/**
* Пол
@ -178,7 +179,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("sex")
*/
public $sex;
private $sex;
/**
* ID менеджера, к которому привязан клиент
@ -188,7 +189,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("integer")
* @Mapping\SerializedName("managerId")
*/
public $managerId;
private $managerId;
/**
* Реквизиты
@ -198,7 +199,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Contragent")
* @Mapping\SerializedName("contragent")
*/
public $contragent;
private $contragent;
/**
* Список пользовательских полей
@ -208,7 +209,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("array")
* @Mapping\SerializedName("customFields")
*/
public $customFields;
private $customFields;
/**
* Магазин, с которого пришел клиент
@ -218,7 +219,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("site")
*/
public $site;
private $site;
/**
* Наименование
@ -228,7 +229,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("nickName")
*/
public $nickName;
private $nickName;
/**
* Адрес
@ -238,7 +239,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Address")
* @Mapping\SerializedName("address")
*/
public $address;
private $address;
/**
* Адреса
@ -248,7 +249,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\Address>")
* @Mapping\SerializedName("addresses")
*/
public $addresses;
private $addresses;
/**
* Основной адрес
@ -258,7 +259,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Address")
* @Mapping\SerializedName("mainAddress")
*/
public $mainAddress;
private $mainAddress;
/**
* Компании
@ -268,7 +269,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\Company>")
* @Mapping\SerializedName("companies")
*/
public $companies;
private $companies;
/**
* Основная компания
@ -278,7 +279,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Company")
* @Mapping\SerializedName("mainCompany")
*/
public $mainCompany;
private $mainCompany;
/**
* Контактные лица
@ -288,7 +289,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\CustomerContact>")
* @Mapping\SerializedName("customerContacts")
*/
public $customerContacts;
private $customerContacts;
/**
* Основное контактное лицо
@ -298,7 +299,7 @@ class Customer extends AbstractApiModel
* @Mapping\Type("Intaro\RetailCrm\Model\Api\CustomerContact")
* @Mapping\SerializedName("mainCustomerContact")
*/
public $mainCustomerContact;
private $mainCustomerContact;
/**
* Персональная скидка
@ -308,5 +309,469 @@ class Customer extends AbstractApiModel
* @Mapping\Type("double")
* @Mapping\SerializedName("personalDiscount")
*/
public $personalDiscount;
private $personalDiscount;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return float
*/
public function getPersonalDiscount(): float
{
return $this->personalDiscount;
}
/**
* @param float $personalDiscount
*/
public function setPersonalDiscount(float $personalDiscount): void
{
$this->personalDiscount = $personalDiscount;
}
/**
* @return \Intaro\RetailCrm\Model\Api\CustomerContact
*/
public function getMainCustomerContact(): \Intaro\RetailCrm\Model\Api\CustomerContact
{
return $this->mainCustomerContact;
}
/**
* @param \Intaro\RetailCrm\Model\Api\CustomerContact $mainCustomerContact
*/
public function setMainCustomerContact(\Intaro\RetailCrm\Model\Api\CustomerContact $mainCustomerContact): void
{
$this->mainCustomerContact = $mainCustomerContact;
}
/**
* @return array
*/
public function getCustomerContacts(): array
{
return $this->customerContacts;
}
/**
* @param array $customerContacts
*/
public function setCustomerContacts(array $customerContacts): void
{
$this->customerContacts = $customerContacts;
}
/**
* @return \Intaro\RetailCrm\Model\Api\Company
*/
public function getMainCompany(): \Intaro\RetailCrm\Model\Api\Company
{
return $this->mainCompany;
}
/**
* @param \Intaro\RetailCrm\Model\Api\Company $mainCompany
*/
public function setMainCompany(\Intaro\RetailCrm\Model\Api\Company $mainCompany): void
{
$this->mainCompany = $mainCompany;
}
/**
* @return array
*/
public function getCompanies(): array
{
return $this->companies;
}
/**
* @param array $companies
*/
public function setCompanies(array $companies): void
{
$this->companies = $companies;
}
/**
* @return \Intaro\RetailCrm\Model\Api\Address
*/
public function getMainAddress(): \Intaro\RetailCrm\Model\Api\Address
{
return $this->mainAddress;
}
/**
* @param \Intaro\RetailCrm\Model\Api\Address $mainAddress
*/
public function setMainAddress(\Intaro\RetailCrm\Model\Api\Address $mainAddress): void
{
$this->mainAddress = $mainAddress;
}
/**
* @return array
*/
public function getAddresses(): array
{
return $this->addresses;
}
/**
* @param array $addresses
*/
public function setAddresses(array $addresses): void
{
$this->addresses = $addresses;
}
/**
* @return \Intaro\RetailCrm\Model\Api\Address
*/
public function getAddress(): \Intaro\RetailCrm\Model\Api\Address
{
return $this->address;
}
/**
* @param \Intaro\RetailCrm\Model\Api\Address $address
*/
public function setAddress(\Intaro\RetailCrm\Model\Api\Address $address): void
{
$this->address = $address;
}
/**
* @return array
*/
public function getCustomFields(): array
{
return $this->customFields;
}
/**
* @param array $customFields
*/
public function setCustomFields(array $customFields): void
{
$this->customFields = $customFields;
}
/**
* @return string
*/
public function getNickName(): string
{
return $this->nickName;
}
/**
* @param string $nickName
*/
public function setNickName(string $nickName): void
{
$this->nickName = $nickName;
}
/**
* @return string
*/
public function getSite(): string
{
return $this->site;
}
/**
* @param string $site
*/
public function setSite(string $site): void
{
$this->site = $site;
}
/**
* @return \Intaro\RetailCrm\Model\Api\Contragent
*/
public function getContragent(): \Intaro\RetailCrm\Model\Api\Contragent
{
return $this->contragent;
}
/**
* @param \Intaro\RetailCrm\Model\Api\Contragent $contragent
*/
public function setContragent(\Intaro\RetailCrm\Model\Api\Contragent $contragent): void
{
$this->contragent = $contragent;
}
/**
* @return int
*/
public function getManagerId(): int
{
return $this->managerId;
}
/**
* @param int $managerId
*/
public function setManagerId(int $managerId): void
{
$this->managerId = $managerId;
}
/**
* @return string
*/
public function getSex(): string
{
return $this->sex;
}
/**
* @param string $sex
*/
public function setSex(string $sex): void
{
$this->sex = $sex;
}
/**
* @return \DateTime
*/
public function getBirthday(): DateTime
{
return $this->birthday;
}
/**
* @param \DateTime $birthday
*/
public function setBirthday(DateTime $birthday): void
{
$this->birthday = $birthday;
}
/**
* @return \Intaro\RetailCrm\Model\Api\Phone[]
*/
public function getPhones(): array
{
return $this->phones;
}
/**
* @param \Intaro\RetailCrm\Model\Api\Phone[] $phones
*/
public function setPhones(array $phones): void
{
$this->phones = $phones;
}
/**
* @return string
*/
public function getEmail(): string
{
return $this->email;
}
/**
* @param string $email
*/
public function setEmail(string $email): void
{
$this->email = $email;
}
/**
* @return string
*/
public function getPatronymic(): string
{
return $this->patronymic;
}
/**
* @param string $patronymic
*/
public function setPatronymic(string $patronymic): void
{
$this->patronymic = $patronymic;
}
/**
* @return string
*/
public function getLastName(): string
{
return $this->lastName;
}
/**
* @param string $lastName
*/
public function setLastName(string $lastName): void
{
$this->lastName = $lastName;
}
/**
* @return string
*/
public function getFirstName(): string
{
return $this->firstName;
}
/**
* @param string $firstName
*/
public function setFirstName(string $firstName): void
{
$this->firstName = $firstName;
}
/**
* @return \DateTime
*/
public function getCreatedAt(): DateTime
{
return $this->createdAt;
}
/**
* @param \DateTime $createdAt
*/
public function setCreatedAt(DateTime $createdAt): void
{
$this->createdAt = $createdAt;
}
/**
* @return bool
*/
public function isContact(): bool
{
return $this->isContact;
}
/**
* @param bool $isContact
*/
public function setIsContact(bool $isContact): void
{
$this->isContact = $isContact;
}
/**
* @return bool
*/
public function isBrowserId(): bool
{
return $this->browserId;
}
/**
* @param bool $browserId
*/
public function setBrowserId(bool $browserId): void
{
$this->browserId = $browserId;
}
/**
* @return bool
*/
public function isSubscribed(): bool
{
return $this->subscribed;
}
/**
* @param bool $subscribed
*/
public function setSubscribed(bool $subscribed): void
{
$this->subscribed = $subscribed;
}
/**
* @return bool
*/
public function isMain(): bool
{
return $this->isMain;
}
/**
* @param bool $isMain
*/
public function setIsMain(bool $isMain): void
{
$this->isMain = $isMain;
}
/**
* @return string
*/
public function getType(): string
{
return $this->type;
}
/**
* @param string $type
*/
public function setType(string $type): void
{
$this->type = $type;
}
/**
* @return string
*/
public function getUuid(): string
{
return $this->uuid;
}
/**
* @param string $uuid
*/
public function setUuid(string $uuid): void
{
$this->uuid = $uuid;
}
/**
* @return string
*/
public function getExternalId(): string
{
return $this->externalId;
}
/**
* @param string $externalId
*/
public function setExternalId(string $externalId): void
{
$this->externalId = $externalId;
}
}

View file

@ -26,7 +26,7 @@ class LoyaltyAccount
* @Mapping\Type("boolean")
* @Mapping\SerializedName("active")
*/
public $active;
private $active;
/**
* Номер телефона
@ -36,7 +36,7 @@ class LoyaltyAccount
* @Mapping\Type("string")
* @Mapping\SerializedName("phoneNumber")
*/
public $phoneNumber;
private $phoneNumber;
/**
* Номер карты
@ -46,7 +46,7 @@ class LoyaltyAccount
* @Mapping\Type("string")
* @Mapping\SerializedName("cardNumber")
*/
public $cardNumber;
private $cardNumber;
/**
* Id участия в программе лояльности
@ -56,7 +56,7 @@ class LoyaltyAccount
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $id;
private $id;
/**
* Количество бонусов
@ -66,7 +66,7 @@ class LoyaltyAccount
* @Mapping\Type("float")
* @Mapping\SerializedName("amount")
*/
public $amount;
private $amount;
/**
* Дата создания
@ -76,7 +76,7 @@ class LoyaltyAccount
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("createdAt")
*/
public $createdAt;
private $createdAt;
/**
* @var \DateTime $activatedAt
@ -84,7 +84,7 @@ class LoyaltyAccount
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("activatedAt")
*/
public $activatedAt;
private $activatedAt;
/**
* Идентификатор последней смс-верификации
@ -94,5 +94,133 @@ class LoyaltyAccount
* @Mapping\Type("string")
* @Mapping\SerializedName("lastCheckId")
*/
public $lastCheckId;
}
private $lastCheckId;
/**
* @return string
*/
public function getLastCheckId(): string
{
return $this->lastCheckId;
}
/**
* @param string $lastCheckId
*/
public function setLastCheckId(string $lastCheckId): void
{
$this->lastCheckId = $lastCheckId;
}
/**
* @return \DateTime
*/
public function getActivatedAt(): \DateTime
{
return $this->activatedAt;
}
/**
* @param \DateTime $activatedAt
*/
public function setActivatedAt(\DateTime $activatedAt): void
{
$this->activatedAt = $activatedAt;
}
/**
* @return \DateTime
*/
public function getCreatedAt(): \DateTime
{
return $this->createdAt;
}
/**
* @param \DateTime $createdAt
*/
public function setCreatedAt(\DateTime $createdAt): void
{
$this->createdAt = $createdAt;
}
/**
* @return float
*/
public function getAmount(): float
{
return $this->amount;
}
/**
* @param float $amount
*/
public function setAmount(float $amount): void
{
$this->amount = $amount;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getCardNumber(): string
{
return $this->cardNumber;
}
/**
* @param string $cardNumber
*/
public function setCardNumber(string $cardNumber): void
{
$this->cardNumber = $cardNumber;
}
/**
* @return string
*/
public function getPhoneNumber(): string
{
return $this->phoneNumber;
}
/**
* @param string $phoneNumber
*/
public function setPhoneNumber(string $phoneNumber): void
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return bool
*/
public function isActive(): bool
{
return $this->active;
}
/**
* @param bool $active
*/
public function setActive(bool $active): void
{
$this->active = $active;
}
}

View file

@ -26,7 +26,7 @@ class LoyaltyLevel
* @Mapping\Type("string")
* @Mapping\SerializedName("id")
*/
public $id;
private $id;
/**
* Название уровня
@ -36,5 +36,37 @@ class LoyaltyLevel
* @Mapping\Type("string")
* @Mapping\SerializedName("name")
*/
public $name;
private $name;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getName(): string
{
return $this->name;
}
/**
* @param string $name
*/
public function setName(string $name): void
{
$this->name = $name;
}
}

View file

@ -29,5 +29,21 @@ class LoyaltyAccountActivateRequest extends AbstractApiModel
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $loyaltyId;
private $loyaltyId;
/**
* @return int
*/
public function getLoyaltyId(): int
{
return $this->loyaltyId;
}
/**
* @param int $loyaltyId
*/
public function setLoyaltyId(int $loyaltyId): void
{
$this->loyaltyId = $loyaltyId;
}
}

View file

@ -13,6 +13,7 @@ namespace Intaro\RetailCrm\Model\Api\Request\Loyalty\Account;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\SerializedCreateLoyaltyAccount;
/**
* Class LoyaltyAccountCreateRequest
@ -28,4 +29,20 @@ class LoyaltyAccountCreateRequest extends AbstractApiModel
* @Mapping\SerializedName("loyalty_account")
*/
public $loyaltyAccount;
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedCreateLoyaltyAccount
*/
public function getLoyaltyAccount(): SerializedCreateLoyaltyAccount
{
return $this->loyaltyAccount;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedCreateLoyaltyAccount $loyaltyAccount
*/
public function setLoyaltyAccount(SerializedCreateLoyaltyAccount $loyaltyAccount): void
{
$this->loyaltyAccount = $loyaltyAccount;
}
}

View file

@ -13,6 +13,7 @@ namespace Intaro\RetailCrm\Model\Api\Request\Loyalty\Account;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\LoyaltyAccount;
/**
* Class LoyaltyAccountEditRequest
@ -27,5 +28,21 @@ class LoyaltyAccountEditRequest extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyAccount")
* @Mapping\SerializedName("loyalty_account")
*/
public $loyaltyAccount;
private $loyaltyAccount;
/**
* @return \Intaro\RetailCrm\Model\Api\LoyaltyAccount
*/
public function getLoyaltyAccount(): LoyaltyAccount
{
return $this->loyaltyAccount;
}
/**
* @param \Intaro\RetailCrm\Model\Api\LoyaltyAccount $loyaltyAccount
*/
public function setLoyaltyAccount(LoyaltyAccount $loyaltyAccount): void
{
$this->loyaltyAccount = $loyaltyAccount;
}
}

View file

@ -13,6 +13,7 @@ namespace Intaro\RetailCrm\Model\Api\Request\Loyalty;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\SerializedOrder;
/**
* Class LoyaltyCalculateRequest
@ -27,7 +28,7 @@ class LoyaltyCalculateRequest extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("site")
*/
public $site;
private $site;
/**
* @var \Intaro\RetailCrm\Model\Api\SerializedOrder
@ -35,6 +36,38 @@ class LoyaltyCalculateRequest extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedOrder")
* @Mapping\SerializedName("order")
*/
public $order;
private $order;
/**
* @return string
*/
public function getSite(): string
{
return $this->site;
}
/**
* @param string $site
*/
public function setSite(string $site): void
{
$this->site = $site;
}
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedOrder
*/
public function getOrder(): SerializedOrder
{
return $this->order;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedOrder $order
*/
public function setOrder(SerializedOrder $order): void
{
$this->order = $order;
}
}

View file

@ -13,6 +13,7 @@ namespace Intaro\RetailCrm\Model\Api\Request\Order\Loyalty;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\SerializedOrderReference;
/**
* Class OrderLoyaltyApplyRequest
@ -27,5 +28,21 @@ class OrderLoyaltyApplyRequest extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedOrderReference")
* @Mapping\SerializedName("order")
*/
public $order;
private $order;
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedOrderReference
*/
public function getOrder(): SerializedOrderReference
{
return $this->order;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedOrderReference $order
*/
public function setOrder(SerializedOrderReference $order): void
{
$this->order = $order;
}
}

View file

@ -13,6 +13,8 @@ namespace Intaro\RetailCrm\Model\Api\Response\Loyalty\Account;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\LoyaltyAccount;
use Intaro\RetailCrm\Model\Api\SmsVerification;
/**
* Class LoyaltyAccountActivateResponse
@ -29,7 +31,7 @@ class LoyaltyAccountActivateResponse extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("success")
*/
public $success;
private $success;
/**
* @var \Intaro\RetailCrm\Model\Api\LoyaltyAccount
@ -37,7 +39,7 @@ class LoyaltyAccountActivateResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyAccount")
* @Mapping\SerializedName("loyalty_account")
*/
public $loyaltyAccount;
private $loyaltyAccount;
/**
* @var \Intaro\RetailCrm\Model\Api\SmsVerification
@ -45,5 +47,53 @@ class LoyaltyAccountActivateResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SmsVerification")
* @Mapping\SerializedName("verification")
*/
public $verification;
private $verification;
/**
* @return bool
*/
public function isSuccess(): bool
{
return $this->success;
}
/**
* @param bool $success
*/
public function setSuccess(bool $success): void
{
$this->success = $success;
}
/**
* @return \Intaro\RetailCrm\Model\Api\LoyaltyAccount
*/
public function getLoyaltyAccount(): LoyaltyAccount
{
return $this->loyaltyAccount;
}
/**
* @param \Intaro\RetailCrm\Model\Api\LoyaltyAccount $loyaltyAccount
*/
public function setLoyaltyAccount(LoyaltyAccount $loyaltyAccount): void
{
$this->loyaltyAccount = $loyaltyAccount;
}
/**
* @return \Intaro\RetailCrm\Model\Api\SmsVerification
*/
public function getVerification(): SmsVerification
{
return $this->verification;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SmsVerification $verification
*/
public function setVerification(SmsVerification $verification): void
{
$this->verification = $verification;
}
}

View file

@ -12,6 +12,7 @@
namespace Intaro\RetailCrm\Model\Api\Response\Loyalty\Account;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\LoyaltyAccount;
/**
* Class LoyaltyAccountCreateResponse
@ -28,7 +29,7 @@ class LoyaltyAccountCreateResponse extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("success")
*/
public $success;
private $success;
/**
* @var \Intaro\RetailCrm\Model\Api\LoyaltyAccount
@ -36,7 +37,7 @@ class LoyaltyAccountCreateResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyAccount")
* @Mapping\SerializedName("loyalty_account")
*/
public $loyaltyAccount;
private $loyaltyAccount;
/**
* @var array $warnings
@ -44,5 +45,53 @@ class LoyaltyAccountCreateResponse extends AbstractApiModel
* @Mapping\Type("array")
* @Mapping\SerializedName("warnings")
*/
public $warnings;
private $warnings;
/**
* @return bool
*/
public function isSuccess(): bool
{
return $this->success;
}
/**
* @param bool $success
*/
public function setSuccess(bool $success): void
{
$this->success = $success;
}
/**
* @return \Intaro\RetailCrm\Model\Api\LoyaltyAccount
*/
public function getLoyaltyAccount(): LoyaltyAccount
{
return $this->loyaltyAccount;
}
/**
* @param \Intaro\RetailCrm\Model\Api\LoyaltyAccount $loyaltyAccount
*/
public function setLoyaltyAccount(LoyaltyAccount $loyaltyAccount): void
{
$this->loyaltyAccount = $loyaltyAccount;
}
/**
* @return array
*/
public function getWarnings(): array
{
return $this->warnings;
}
/**
* @param array $warnings
*/
public function setWarnings(array $warnings): void
{
$this->warnings = $warnings;
}
}

View file

@ -13,6 +13,7 @@ namespace Intaro\RetailCrm\Model\Api\Response\Loyalty\Account;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\LoyaltyAccount;
/**
* Class LoyaltyAccountEditResponse
@ -29,7 +30,7 @@ class LoyaltyAccountEditResponse extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("success")
*/
public $success;
private $success;
/**
* @var \Intaro\RetailCrm\Model\Api\LoyaltyAccount
@ -37,7 +38,7 @@ class LoyaltyAccountEditResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyAccount")
* @Mapping\SerializedName("loyalty_account")
*/
public $loyaltyAccount;
private $loyaltyAccount;
/**
* @var array $warnings
@ -45,5 +46,53 @@ class LoyaltyAccountEditResponse extends AbstractApiModel
* @Mapping\Type("array")
* @Mapping\SerializedName("warnings")
*/
public $warnings;
private $warnings;
/**
* @return bool
*/
public function isSuccess(): bool
{
return $this->success;
}
/**
* @param bool $success
*/
public function setSuccess(bool $success): void
{
$this->success = $success;
}
/**
* @return \Intaro\RetailCrm\Model\Api\LoyaltyAccount
*/
public function getLoyaltyAccount(): LoyaltyAccount
{
return $this->loyaltyAccount;
}
/**
* @param \Intaro\RetailCrm\Model\Api\LoyaltyAccount $loyaltyAccount
*/
public function setLoyaltyAccount(LoyaltyAccount $loyaltyAccount): void
{
$this->loyaltyAccount = $loyaltyAccount;
}
/**
* @return array
*/
public function getWarnings(): array
{
return $this->warnings;
}
/**
* @param array $warnings
*/
public function setWarnings(array $warnings): void
{
$this->warnings = $warnings;
}
}

View file

@ -12,6 +12,8 @@
namespace Intaro\RetailCrm\Model\Api\Response\Loyalty;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\CalculateMaximum;
use Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder;
/**
* Class LoyaltyCalculateResponse
@ -28,7 +30,7 @@ class LoyaltyCalculateResponse extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("success")
*/
public $success;
private $success;
/**
* @var \Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder
@ -36,7 +38,7 @@ class LoyaltyCalculateResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder")
* @Mapping\SerializedName("order")
*/
public $order;
private $order;
/**
* @var \Intaro\RetailCrm\Model\Api\CalculateMaximum
@ -44,7 +46,7 @@ class LoyaltyCalculateResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\CalculateMaximum")
* @Mapping\SerializedName("maximum")
*/
public $maximum;
private $maximum;
/**
* Позиция в заказе
@ -54,5 +56,69 @@ class LoyaltyCalculateResponse extends AbstractApiModel
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\LoyaltyCalculation>")
* @Mapping\SerializedName("calculations")
*/
public $calculations;
private $calculations;
/**
* @return bool
*/
public function isSuccess(): bool
{
return $this->success;
}
/**
* @param bool $success
*/
public function setSuccess(bool $success): void
{
$this->success = $success;
}
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder
*/
public function getOrder(): SerializedLoyaltyOrder
{
return $this->order;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder $order
*/
public function setOrder(SerializedLoyaltyOrder $order): void
{
$this->order = $order;
}
/**
* @return \Intaro\RetailCrm\Model\Api\CalculateMaximum
*/
public function getMaximum(): CalculateMaximum
{
return $this->maximum;
}
/**
* @param \Intaro\RetailCrm\Model\Api\CalculateMaximum $maximum
*/
public function setMaximum(CalculateMaximum $maximum): void
{
$this->maximum = $maximum;
}
/**
* @return array
*/
public function getCalculations(): array
{
return $this->calculations;
}
/**
* @param array $calculations
*/
public function setCalculations(array $calculations): void
{
$this->calculations = $calculations;
}
}

View file

@ -13,6 +13,8 @@ namespace Intaro\RetailCrm\Model\Api\Response\Order\Loyalty;
use Intaro\RetailCrm\Component\Json\Mapping;
use Intaro\RetailCrm\Model\Api\AbstractApiModel;
use Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder;
use Intaro\RetailCrm\Model\Api\SmsVerification;
/**
* Class OrderLoyaltyApplyResponse
@ -29,7 +31,7 @@ class OrderLoyaltyApplyResponse extends AbstractApiModel
* @Mapping\Type("boolean")
* @Mapping\SerializedName("success")
*/
public $success;
private $success;
/**
* @var \Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder
@ -37,7 +39,7 @@ class OrderLoyaltyApplyResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder")
* @Mapping\SerializedName("order")
*/
public $order;
private $order;
/**
* @var \Intaro\RetailCrm\Model\Api\SmsVerification
@ -45,5 +47,53 @@ class OrderLoyaltyApplyResponse extends AbstractApiModel
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder")
* @Mapping\SerializedName("verification")
*/
public $verification;
private $verification;
/**
* @return bool
*/
public function isSuccess(): bool
{
return $this->success;
}
/**
* @param bool $success
*/
public function setSuccess(bool $success): void
{
$this->success = $success;
}
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder
*/
public function getOrder(): SerializedLoyaltyOrder
{
return $this->order;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedLoyaltyOrder $order
*/
public function setOrder(SerializedLoyaltyOrder $order): void
{
$this->order = $order;
}
/**
* @return \Intaro\RetailCrm\Model\Api\SmsVerification
*/
public function getVerification(): SmsVerification
{
return $this->verification;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SmsVerification $verification
*/
public function setVerification(SmsVerification $verification): void
{
$this->verification = $verification;
}
}

View file

@ -57,4 +57,68 @@ class SerializedCreateLoyaltyAccount
* @Mapping\SerializedName("customerId")
*/
public $customerId;
/**
* @return string
*/
public function getPhoneNumber(): string
{
return $this->phoneNumber;
}
/**
* @param string $phoneNumber
*/
public function setPhoneNumber(string $phoneNumber): void
{
$this->phoneNumber = $phoneNumber;
}
/**
* @return string
*/
public function getCardNumber(): string
{
return $this->cardNumber;
}
/**
* @param string $cardNumber
*/
public function setCardNumber(string $cardNumber): void
{
$this->cardNumber = $cardNumber;
}
/**
* @return int
*/
public function getLoyaltyId(): int
{
return $this->loyaltyId;
}
/**
* @param int $loyaltyId
*/
public function setLoyaltyId(int $loyaltyId): void
{
$this->loyaltyId = $loyaltyId;
}
/**
* @return int
*/
public function getCustomerId(): int
{
return $this->customerId;
}
/**
* @param int $customerId
*/
public function setCustomerId(int $customerId): void
{
$this->customerId = $customerId;
}
}

View file

@ -27,7 +27,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("double")
* @Mapping\SerializedName("bonusesCreditTotal")
*/
public $bonusesCreditTotal;
private $bonusesCreditTotal;
/**
* Количество списанных бонусов
@ -37,7 +37,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("double")
* @Mapping\SerializedName("bonusesChargeTotal")
*/
public $bonusesChargeTotal;
private $bonusesChargeTotal;
/**
* Общая сумма с учетом скидки
@ -47,7 +47,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("double")
* @Mapping\SerializedName("totalSumm")
*/
public $totalSumm;
private $totalSumm;
/**
* Персональная скидка на заказ
@ -57,7 +57,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("double")
* @Mapping\SerializedName("personalDiscountPercent")
*/
public $personalDiscountPercent;
private $personalDiscountPercent;
/**
* @var \Intaro\RetailCrm\Model\Api\LoyaltyAccount
@ -65,7 +65,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyAccount")
* @Mapping\SerializedName("loyaltyAccount")
*/
public $loyaltyAccount;
private $loyaltyAccount;
/**
* @var \Intaro\RetailCrm\Model\Api\LoyaltyLevel
@ -73,7 +73,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyLevel")
* @Mapping\SerializedName("loyaltyLevel")
*/
public $loyaltyLevel;
private $loyaltyLevel;
/**
* @var \Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent
@ -81,7 +81,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent")
* @Mapping\SerializedName("loyaltyEvent")
*/
public $loyaltyEvent;
private $loyaltyEvent;
/**
* @var \Intaro\RetailCrm\Model\Api\Customer
@ -89,7 +89,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\Customer")
* @Mapping\SerializedName("customer")
*/
public $customer;
private $customer;
/**
* @var \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
@ -97,7 +97,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedOrderDelivery")
* @Mapping\SerializedName("delivery")
*/
public $delivery;
private $delivery;
/**
* Магазин
@ -107,7 +107,7 @@ class SerializedLoyaltyOrder
* @Mapping\Type("string")
* @Mapping\SerializedName("site")
*/
public $site;
private $site;
/**
* Позиция в заказе
@ -117,5 +117,181 @@ class SerializedLoyaltyOrder
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\OrderProduct>")
* @Mapping\SerializedName("items")
*/
public $items;
private $items;
/**
* @return float
*/
public function getBonusesCreditTotal(): float
{
return $this->bonusesCreditTotal;
}
/**
* @param float $bonusesCreditTotal
*/
public function setBonusesCreditTotal(float $bonusesCreditTotal): void
{
$this->bonusesCreditTotal = $bonusesCreditTotal;
}
/**
* @return float
*/
public function getBonusesChargeTotal(): float
{
return $this->bonusesChargeTotal;
}
/**
* @param float $bonusesChargeTotal
*/
public function setBonusesChargeTotal(float $bonusesChargeTotal): void
{
$this->bonusesChargeTotal = $bonusesChargeTotal;
}
/**
* @return float
*/
public function getTotalSumm(): float
{
return $this->totalSumm;
}
/**
* @param float $totalSumm
*/
public function setTotalSumm(float $totalSumm): void
{
$this->totalSumm = $totalSumm;
}
/**
* @return float
*/
public function getPersonalDiscountPercent(): float
{
return $this->personalDiscountPercent;
}
/**
* @param float $personalDiscountPercent
*/
public function setPersonalDiscountPercent(float $personalDiscountPercent): void
{
$this->personalDiscountPercent = $personalDiscountPercent;
}
/**
* @return \Intaro\RetailCrm\Model\Api\LoyaltyAccount
*/
public function getLoyaltyAccount(): \Intaro\RetailCrm\Model\Api\LoyaltyAccount
{
return $this->loyaltyAccount;
}
/**
* @param \Intaro\RetailCrm\Model\Api\LoyaltyAccount $loyaltyAccount
*/
public function setLoyaltyAccount(\Intaro\RetailCrm\Model\Api\LoyaltyAccount $loyaltyAccount): void
{
$this->loyaltyAccount = $loyaltyAccount;
}
/**
* @return \Intaro\RetailCrm\Model\Api\LoyaltyLevel
*/
public function getLoyaltyLevel(): \Intaro\RetailCrm\Model\Api\LoyaltyLevel
{
return $this->loyaltyLevel;
}
/**
* @param \Intaro\RetailCrm\Model\Api\LoyaltyLevel $loyaltyLevel
*/
public function setLoyaltyLevel(\Intaro\RetailCrm\Model\Api\LoyaltyLevel $loyaltyLevel): void
{
$this->loyaltyLevel = $loyaltyLevel;
}
/**
* @return \Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent
*/
public function getLoyaltyEvent(): \Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent
{
return $this->loyaltyEvent;
}
/**
* @param \Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent $loyaltyEvent
*/
public function setLoyaltyEvent(\Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent $loyaltyEvent): void
{
$this->loyaltyEvent = $loyaltyEvent;
}
/**
* @return \Intaro\RetailCrm\Model\Api\Customer
*/
public function getCustomer(): \Intaro\RetailCrm\Model\Api\Customer
{
return $this->customer;
}
/**
* @param \Intaro\RetailCrm\Model\Api\Customer $customer
*/
public function setCustomer(\Intaro\RetailCrm\Model\Api\Customer $customer): void
{
$this->customer = $customer;
}
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
*/
public function getDelivery(): \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
{
return $this->delivery;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery $delivery
*/
public function setDelivery(\Intaro\RetailCrm\Model\Api\SerializedOrderDelivery $delivery): void
{
$this->delivery = $delivery;
}
/**
* @return array
*/
public function getItems(): array
{
return $this->items;
}
/**
* @param array $items
*/
public function setItems(array $items): void
{
$this->items = $items;
}
/**
* @return string
*/
public function getSite(): string
{
return $this->site;
}
/**
* @param string $site
*/
public function setSite(string $site): void
{
$this->site = $site;
}
}

View file

@ -26,7 +26,7 @@ class SerializedOrder
* @Mapping\Type("double")
* @Mapping\SerializedName("discountManualAmount")
*/
public $discountManualAmount;
private $discountManualAmount;
/**
* Процентная скидка на весь заказ. Система округляет это значение до 2 знаков после запятой
@ -36,7 +36,7 @@ class SerializedOrder
* @Mapping\Type("double")
* @Mapping\SerializedName("discountManualPercent")
*/
public $discountManualPercent;
private $discountManualPercent;
/**
* Клиент
@ -46,7 +46,7 @@ class SerializedOrder
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedRelationCustomer")
* @Mapping\SerializedName("customer")
*/
public $customer;
private $customer;
/**
* @var array $items
@ -54,7 +54,7 @@ class SerializedOrder
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\SerializedOrderProduct>")
* @Mapping\SerializedName("items")
*/
public $items;
private $items;
/**
* @var \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
@ -62,5 +62,85 @@ class SerializedOrder
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedOrderDelivery")
* @Mapping\SerializedName("delivery")
*/
public $delivery;
private $delivery;
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
*/
public function getDelivery(): \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
{
return $this->delivery;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery $delivery
*/
public function setDelivery(\Intaro\RetailCrm\Model\Api\SerializedOrderDelivery $delivery): void
{
$this->delivery = $delivery;
}
/**
* @return array
*/
public function getItems(): array
{
return $this->items;
}
/**
* @param array $items
*/
public function setItems(array $items): void
{
$this->items = $items;
}
/**
* @return \Intaro\RetailCrm\Model\Api\SerializedRelationCustomer
*/
public function getCustomer(): \Intaro\RetailCrm\Model\Api\SerializedRelationCustomer
{
return $this->customer;
}
/**
* @param \Intaro\RetailCrm\Model\Api\SerializedRelationCustomer $customer
*/
public function setCustomer(\Intaro\RetailCrm\Model\Api\SerializedRelationCustomer $customer): void
{
$this->customer = $customer;
}
/**
* @return float
*/
public function getDiscountManualPercent(): float
{
return $this->discountManualPercent;
}
/**
* @param float $discountManualPercent
*/
public function setDiscountManualPercent(float $discountManualPercent): void
{
$this->discountManualPercent = $discountManualPercent;
}
/**
* @return float
*/
public function getDiscountManualAmount(): float
{
return $this->discountManualAmount;
}
/**
* @param float $discountManualAmount
*/
public function setDiscountManualAmount(float $discountManualAmount): void
{
$this->discountManualAmount = $discountManualAmount;
}
}

View file

@ -26,5 +26,21 @@ class SerializedOrderDelivery
* @Mapping\Type("double")
* @Mapping\SerializedName("cost")
*/
public $cost;
private $cost;
/**
* @return float
*/
public function getCost(): float
{
return $this->cost;
}
/**
* @param float $cost
*/
public function setCost(float $cost): void
{
$this->cost = $cost;
}
}

View file

@ -24,7 +24,7 @@ class SerializedOrderReference
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $id;
private $id;
/**
* @var float $bonuses
@ -32,5 +32,37 @@ class SerializedOrderReference
* @Mapping\Type("float")
* @Mapping\SerializedName("bonuses")
*/
public $bonuses;
private $bonuses;
/**
* @return float
*/
public function getBonuses(): float
{
return $this->bonuses;
}
/**
* @param float $bonuses
*/
public function setBonuses(float $bonuses): void
{
$this->bonuses = $bonuses;
}
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
}

View file

@ -26,7 +26,7 @@ class SerializedRelationCustomer
* @Mapping\Type("integer")
* @Mapping\SerializedName("id")
*/
public $id;
private $id;
/**
* Процентная скидка на весь заказ. Система округляет это значение до 2 знаков после запятой
@ -36,5 +36,37 @@ class SerializedRelationCustomer
* @Mapping\Type("string")
* @Mapping\SerializedName("externalId")
*/
public $externalId;
private $externalId;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return string
*/
public function getExternalId(): string
{
return $this->externalId;
}
/**
* @param string $externalId
*/
public function setExternalId(string $externalId): void
{
$this->externalId = $externalId;
}
}

View file

@ -28,7 +28,7 @@ class SmsVerification extends AbstractApiModel
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("createdAt")
*/
public $createdAt;
private $createdAt;
/**
* Дата окончания срока жизни. (Y-m-d H:i:s)
@ -38,7 +38,7 @@ class SmsVerification extends AbstractApiModel
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("expiredAt")
*/
public $expiredAt;
private $expiredAt;
/**
* Дата успешной верификации. (Y-m-d H:i:s)
@ -48,7 +48,7 @@ class SmsVerification extends AbstractApiModel
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
* @Mapping\SerializedName("verifiedAt")
*/
public $verifiedAt;
private $verifiedAt;
/**
* Идентификатор для проверки кода
@ -58,7 +58,7 @@ class SmsVerification extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("checkId")
*/
public $checkId;
private $checkId;
/**
* Тип действия
@ -68,7 +68,7 @@ class SmsVerification extends AbstractApiModel
* @Mapping\Type("string")
* @Mapping\SerializedName("actionType")
*/
public $actionType;
private $actionType;
/**
* @param \DateTime $createdAt

View file

@ -1,16 +0,0 @@
<?php
use Bitrix\Main\Loader;
define ('NOT_CHECK_PERMISSIONS', true);
define ('NO_AGENT_CHECK', true);
$GLOBALS['DBType'] = 'mysql';
$_SERVER['DOCUMENT_ROOT'] = realpath(__DIR__ . '/../..' );
require($_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php');
$_SESSION['SESS_AUTH']['USER_ID'] = 1;
require_once $_SERVER['DOCUMENT_ROOT'] . '/vendor/autoload.php';
Loader::includeModule('intaro.retailcrm');
Loader::includeModule('sale');
require_once $_SERVER['DOCUMENT_ROOT'] . '/local/tests/helpers/Helpers.php';