_account_id; } /** * Устанавливает account_id. * * @param string|null $value * * @return self */ public function setAccountId(?string $value = null): self { $this->_account_id = $this->validatePropertyValue('_account_id', $value); return $this; } /** * @return bool */ public function hasAccountId(): bool { return !empty($this->_account_id); } /** * Возвращает amount. * * @return AmountInterface|null */ public function getAmount(): ?AmountInterface { return $this->_amount; } /** * Устанавливает amount. * * @param AmountInterface|array|null $value * * @return self */ public function setAmount(mixed $value = null): self { $this->_amount = $this->validatePropertyValue('_amount', $value); return $this; } /** * @return bool */ public function hasAmount(): bool { return !empty($this->_amount); } /** * Возвращает platform_fee_amount. * * @return AmountInterface|null */ public function getPlatformFeeAmount(): ?AmountInterface { return $this->_platform_fee_amount; } /** * Устанавливает platform_fee_amount. * * @param AmountInterface|array|null $value * * @return self */ public function setPlatformFeeAmount(mixed $value = null): self { $this->_platform_fee_amount = $this->validatePropertyValue('_platform_fee_amount', $value); return $this; } /** * @return bool */ public function hasPlatformFeeAmount(): bool { return !empty($this->_platform_fee_amount); } /** * Возвращает description. * * @return string|null */ public function getDescription(): ?string { return $this->_description; } /** * Устанавливает description. * * @param string|null $value Описание транзакции (не более 128 символов), которое продавец увидит в личном кабинете ЮKassa. Например: «Заказ маркетплейса №72». * * @return self */ public function setDescription(?string $value = null): self { $this->_description = $this->validatePropertyValue('_description', $value); return $this; } /** * @return bool */ public function hasDescription(): bool { return !empty($this->_description); } /** * Возвращает metadata. * * @return Metadata|null */ public function getMetadata(): ?Metadata { return $this->_metadata; } /** * Устанавливает metadata. * * @param string|array|null $value Любые дополнительные данные, которые нужны вам для работы (например, ваш внутренний идентификатор заказа). Передаются в виде набора пар «ключ-значение» и возвращаются в ответе от ЮKassa. Ограничения: максимум 16 ключей, имя ключа не больше 32 символов, значение ключа не больше 512 символов, тип данных — строка в формате UTF-8. * * @return self */ public function setMetadata(mixed $value = null): self { $this->_metadata = $this->validatePropertyValue('_metadata', $value); return $this; } /** * @return bool */ public function hasMetadata(): bool { return !empty($this->_metadata); } }