delete setters and getters for DTO models
This commit is contained in:
parent
27eff8b9af
commit
176eff6af2
11 changed files with 55 additions and 935 deletions
|
@ -28,21 +28,5 @@ class AbstractLoyaltyEvent
|
|||
* @Mapping\Type("integer")
|
||||
* @Mapping\SerializedName("id")
|
||||
*/
|
||||
private $id;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getId(): int
|
||||
{
|
||||
return $this->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $id
|
||||
*/
|
||||
public function setId(int $id): void
|
||||
{
|
||||
$this->id = $id;
|
||||
}
|
||||
public $id;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("integer")
|
||||
* @Mapping\SerializedName("id")
|
||||
*/
|
||||
private $id;
|
||||
public $id;
|
||||
|
||||
/**
|
||||
* Внешний ID [обычного|корпоративного] клиента
|
||||
|
@ -39,7 +39,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("externalId")
|
||||
*/
|
||||
private $externalId;
|
||||
public $externalId;
|
||||
|
||||
/**
|
||||
* Внешний идентификатор [обычного|корпоративного] клиента в складской системе
|
||||
|
@ -49,7 +49,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("uuid")
|
||||
*/
|
||||
private $uuid;
|
||||
public $uuid;
|
||||
|
||||
/**
|
||||
* Тип клиента (корпоративный или обычный)
|
||||
|
@ -59,7 +59,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("type")
|
||||
*/
|
||||
private $type;
|
||||
public $type;
|
||||
|
||||
/**
|
||||
* Контактное лицо корпоративного клиента является основным
|
||||
|
@ -69,7 +69,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("boolean")
|
||||
* @Mapping\SerializedName("isMain")
|
||||
*/
|
||||
private $isMain;
|
||||
public $isMain;
|
||||
|
||||
/**
|
||||
* Индикатор подписки на рассылку
|
||||
|
@ -79,7 +79,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("boolean")
|
||||
* @Mapping\SerializedName("subscribed")
|
||||
*/
|
||||
private $subscribed;
|
||||
public $subscribed;
|
||||
|
||||
/**
|
||||
* Кука Daemon Collector
|
||||
|
@ -89,7 +89,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("browserId")
|
||||
*/
|
||||
private $browserId;
|
||||
public $browserId;
|
||||
|
||||
/**
|
||||
* Является ли клиент контактным лицом корпоративного клиента
|
||||
|
@ -99,7 +99,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("boolean")
|
||||
* @Mapping\SerializedName("isContact")
|
||||
*/
|
||||
private $isContact;
|
||||
public $isContact;
|
||||
|
||||
/**
|
||||
* Дата создания в системе
|
||||
|
@ -109,7 +109,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("DateTime<'Y-m-d H:i:s'>")
|
||||
* @Mapping\SerializedName("createdAt")
|
||||
*/
|
||||
private $createdAt;
|
||||
public $createdAt;
|
||||
|
||||
/**
|
||||
* Имя
|
||||
|
@ -119,7 +119,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("firstName")
|
||||
*/
|
||||
private $firstName;
|
||||
public $firstName;
|
||||
|
||||
/**
|
||||
* Фамилия
|
||||
|
@ -129,7 +129,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("lastName")
|
||||
*/
|
||||
private $lastName;
|
||||
public $lastName;
|
||||
|
||||
/**
|
||||
* Отчество
|
||||
|
@ -139,7 +139,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("patronymic")
|
||||
*/
|
||||
private $patronymic;
|
||||
public $patronymic;
|
||||
|
||||
/**
|
||||
* Адрес электронной почты
|
||||
|
@ -149,7 +149,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("email")
|
||||
*/
|
||||
private $email;
|
||||
public $email;
|
||||
|
||||
/**
|
||||
* Телефоны
|
||||
|
@ -159,7 +159,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\Phone>")
|
||||
* @Mapping\SerializedName("phones")
|
||||
*/
|
||||
private $phones;
|
||||
public $phones;
|
||||
|
||||
/**
|
||||
* Дата рождения
|
||||
|
@ -169,7 +169,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("DateTime<'Y-m-d'>")
|
||||
* @Mapping\SerializedName("birthday")
|
||||
*/
|
||||
private $birthday;
|
||||
public $birthday;
|
||||
|
||||
/**
|
||||
* Пол
|
||||
|
@ -179,7 +179,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("sex")
|
||||
*/
|
||||
private $sex;
|
||||
public $sex;
|
||||
|
||||
/**
|
||||
* ID менеджера, к которому привязан клиент
|
||||
|
@ -189,7 +189,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("integer")
|
||||
* @Mapping\SerializedName("managerId")
|
||||
*/
|
||||
private $managerId;
|
||||
public $managerId;
|
||||
|
||||
/**
|
||||
* Реквизиты
|
||||
|
@ -199,7 +199,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Contragent")
|
||||
* @Mapping\SerializedName("contragent")
|
||||
*/
|
||||
private $contragent;
|
||||
public $contragent;
|
||||
|
||||
/**
|
||||
* Список пользовательских полей
|
||||
|
@ -209,7 +209,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("array")
|
||||
* @Mapping\SerializedName("customFields")
|
||||
*/
|
||||
private $customFields;
|
||||
public $customFields;
|
||||
|
||||
/**
|
||||
* Магазин, с которого пришел клиент
|
||||
|
@ -219,7 +219,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("site")
|
||||
*/
|
||||
private $site;
|
||||
public $site;
|
||||
|
||||
/**
|
||||
* Наименование
|
||||
|
@ -229,7 +229,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("nickName")
|
||||
*/
|
||||
private $nickName;
|
||||
public $nickName;
|
||||
|
||||
/**
|
||||
* Адрес
|
||||
|
@ -239,7 +239,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Address")
|
||||
* @Mapping\SerializedName("address")
|
||||
*/
|
||||
private $address;
|
||||
public $address;
|
||||
|
||||
/**
|
||||
* Адреса
|
||||
|
@ -249,7 +249,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\Address>")
|
||||
* @Mapping\SerializedName("addresses")
|
||||
*/
|
||||
private $addresses;
|
||||
public $addresses;
|
||||
|
||||
/**
|
||||
* Основной адрес
|
||||
|
@ -259,7 +259,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Address")
|
||||
* @Mapping\SerializedName("mainAddress")
|
||||
*/
|
||||
private $mainAddress;
|
||||
public $mainAddress;
|
||||
|
||||
/**
|
||||
* Компании
|
||||
|
@ -269,7 +269,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\Company>")
|
||||
* @Mapping\SerializedName("companies")
|
||||
*/
|
||||
private $companies;
|
||||
public $companies;
|
||||
|
||||
/**
|
||||
* Основная компания
|
||||
|
@ -279,7 +279,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("Intaro\RetailCrm\Model\Api\Company")
|
||||
* @Mapping\SerializedName("mainCompany")
|
||||
*/
|
||||
private $mainCompany;
|
||||
public $mainCompany;
|
||||
|
||||
/**
|
||||
* Контактные лица
|
||||
|
@ -289,7 +289,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\CustomerContact>")
|
||||
* @Mapping\SerializedName("customerContacts")
|
||||
*/
|
||||
private $customerContacts;
|
||||
public $customerContacts;
|
||||
|
||||
/**
|
||||
* Основное контактное лицо
|
||||
|
@ -299,7 +299,7 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("Intaro\RetailCrm\Model\Api\CustomerContact")
|
||||
* @Mapping\SerializedName("mainCustomerContact")
|
||||
*/
|
||||
private $mainCustomerContact;
|
||||
public $mainCustomerContact;
|
||||
|
||||
/**
|
||||
* Персональная скидка
|
||||
|
@ -309,469 +309,5 @@ class Customer extends AbstractApiModel
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("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;
|
||||
}
|
||||
public $personalDiscount;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class LoyaltyLevel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("id")
|
||||
*/
|
||||
private $id;
|
||||
public $id;
|
||||
|
||||
/**
|
||||
* Название уровня
|
||||
|
@ -38,37 +38,5 @@ class LoyaltyLevel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("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;
|
||||
}
|
||||
public $name;
|
||||
}
|
||||
|
|
|
@ -29,21 +29,5 @@ class LoyaltyAccountActivateRequest extends AbstractApiModel
|
|||
* @Mapping\Type("integer")
|
||||
* @Mapping\SerializedName("id")
|
||||
*/
|
||||
private $loyaltyId;
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getLoyaltyId(): int
|
||||
{
|
||||
return $this->loyaltyId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $loyaltyId
|
||||
*/
|
||||
public function setLoyaltyId(int $loyaltyId): void
|
||||
{
|
||||
$this->loyaltyId = $loyaltyId;
|
||||
}
|
||||
public $loyaltyId;
|
||||
}
|
||||
|
|
|
@ -28,21 +28,5 @@ class LoyaltyAccountEditRequest extends AbstractApiModel
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyAccount")
|
||||
* @Mapping\SerializedName("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;
|
||||
}
|
||||
public $loyaltyAccount;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class LoyaltyCalculateRequest extends AbstractApiModel
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("site")
|
||||
*/
|
||||
private $site;
|
||||
public $site;
|
||||
|
||||
/**
|
||||
* @var \Intaro\RetailCrm\Model\Api\SerializedOrder
|
||||
|
@ -36,37 +36,5 @@ class LoyaltyCalculateRequest extends AbstractApiModel
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedOrder")
|
||||
* @Mapping\SerializedName("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;
|
||||
}
|
||||
public $order;
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("bonusesCreditTotal")
|
||||
*/
|
||||
private $bonusesCreditTotal;
|
||||
public $bonusesCreditTotal;
|
||||
|
||||
/**
|
||||
* Количество списанных бонусов
|
||||
|
@ -39,7 +39,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("bonusesChargeTotal")
|
||||
*/
|
||||
private $bonusesChargeTotal;
|
||||
public $bonusesChargeTotal;
|
||||
|
||||
/**
|
||||
* Общая сумма с учетом скидки
|
||||
|
@ -49,7 +49,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("totalSumm")
|
||||
*/
|
||||
private $totalSumm;
|
||||
public $totalSumm;
|
||||
|
||||
/**
|
||||
* Персональная скидка на заказ
|
||||
|
@ -59,7 +59,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("personalDiscountPercent")
|
||||
*/
|
||||
private $personalDiscountPercent;
|
||||
public $personalDiscountPercent;
|
||||
|
||||
/**
|
||||
* @var \Intaro\RetailCrm\Model\Api\LoyaltyAccount
|
||||
|
@ -67,7 +67,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyAccount")
|
||||
* @Mapping\SerializedName("loyaltyAccount")
|
||||
*/
|
||||
private $loyaltyAccount;
|
||||
public $loyaltyAccount;
|
||||
|
||||
/**
|
||||
* @var \Intaro\RetailCrm\Model\Api\LoyaltyLevel
|
||||
|
@ -75,7 +75,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\LoyaltyLevel")
|
||||
* @Mapping\SerializedName("loyaltyLevel")
|
||||
*/
|
||||
private $loyaltyLevel;
|
||||
public $loyaltyLevel;
|
||||
|
||||
/**
|
||||
* @var \Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent
|
||||
|
@ -83,7 +83,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\AbstractLoyaltyEvent")
|
||||
* @Mapping\SerializedName("loyaltyEvent")
|
||||
*/
|
||||
private $loyaltyEvent;
|
||||
public $loyaltyEvent;
|
||||
|
||||
/**
|
||||
* @var \Intaro\RetailCrm\Model\Api\Customer
|
||||
|
@ -91,7 +91,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\Customer")
|
||||
* @Mapping\SerializedName("customer")
|
||||
*/
|
||||
private $customer;
|
||||
public $customer;
|
||||
|
||||
/**
|
||||
* @var \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
|
||||
|
@ -99,7 +99,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedOrderDelivery")
|
||||
* @Mapping\SerializedName("delivery")
|
||||
*/
|
||||
private $delivery;
|
||||
public $delivery;
|
||||
|
||||
/**
|
||||
* Магазин
|
||||
|
@ -109,7 +109,7 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("site")
|
||||
*/
|
||||
private $site;
|
||||
public $site;
|
||||
|
||||
/**
|
||||
* Позиция в заказе
|
||||
|
@ -119,181 +119,5 @@ class SerializedLoyaltyOrder
|
|||
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\OrderProduct>")
|
||||
* @Mapping\SerializedName("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;
|
||||
}
|
||||
public $items;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class SerializedOrder
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("discountManualAmount")
|
||||
*/
|
||||
private $discountManualAmount;
|
||||
public $discountManualAmount;
|
||||
|
||||
/**
|
||||
* Процентная скидка на весь заказ. Система округляет это значение до 2 знаков после запятой
|
||||
|
@ -38,7 +38,7 @@ class SerializedOrder
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("discountManualPercent")
|
||||
*/
|
||||
private $discountManualPercent;
|
||||
public $discountManualPercent;
|
||||
|
||||
/**
|
||||
* Клиент
|
||||
|
@ -48,7 +48,7 @@ class SerializedOrder
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedRelationCustomer")
|
||||
* @Mapping\SerializedName("customer")
|
||||
*/
|
||||
private $customer;
|
||||
public $customer;
|
||||
|
||||
/**
|
||||
* @var array $items
|
||||
|
@ -56,7 +56,7 @@ class SerializedOrder
|
|||
* @Mapping\Type("array<Intaro\RetailCrm\Model\Api\SerializedOrderProduct>")
|
||||
* @Mapping\SerializedName("items")
|
||||
*/
|
||||
private $items;
|
||||
public $items;
|
||||
|
||||
/**
|
||||
* @var \Intaro\RetailCrm\Model\Api\SerializedOrderDelivery
|
||||
|
@ -64,85 +64,5 @@ class SerializedOrder
|
|||
* @Mapping\Type("\Intaro\RetailCrm\Model\Api\SerializedOrderDelivery")
|
||||
* @Mapping\SerializedName("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;
|
||||
}
|
||||
public $delivery;
|
||||
}
|
||||
|
|
|
@ -28,21 +28,5 @@ class SerializedOrderDelivery
|
|||
* @Mapping\Type("double")
|
||||
* @Mapping\SerializedName("cost")
|
||||
*/
|
||||
private $cost;
|
||||
|
||||
/**
|
||||
* @return float
|
||||
*/
|
||||
public function getCost(): float
|
||||
{
|
||||
return $this->cost;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param float $cost
|
||||
*/
|
||||
public function setCost(float $cost): void
|
||||
{
|
||||
$this->cost = $cost;
|
||||
}
|
||||
public $cost;
|
||||
}
|
||||
|
|
|
@ -28,7 +28,7 @@ class SerializedRelationCustomer
|
|||
* @Mapping\Type("integer")
|
||||
* @Mapping\SerializedName("id")
|
||||
*/
|
||||
private $id;
|
||||
public $id;
|
||||
|
||||
/**
|
||||
* Процентная скидка на весь заказ. Система округляет это значение до 2 знаков после запятой
|
||||
|
@ -38,37 +38,5 @@ class SerializedRelationCustomer
|
|||
* @Mapping\Type("string")
|
||||
* @Mapping\SerializedName("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;
|
||||
}
|
||||
public $externalId;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue