_account_id; } /** * Устанавливает id магазина-получателя средств. * * @param string|null $account_id Id магазина с которого будут списаны средства * * @return self */ public function setAccountId(?string $account_id = null): self { $this->_account_id = $this->validatePropertyValue('_account_id', $account_id); return $this; } /** * Возвращает сумму оплаты. * * @return AmountInterface|null Сумма оплаты */ public function getAmount(): ?AmountInterface { return $this->_amount; } /** * Устанавливает сумму оплаты. * * @param AmountInterface|array|null $amount Сумма оплаты * * @return self */ public function setAmount(mixed $amount = null): self { $this->_amount = $this->validatePropertyValue('_amount', $amount); return $this; } /** * Возвращает комиссию за проданные товары и услуги, которая удерживается с магазина в вашу пользу. * * @return AmountInterface|null Сумма комиссии */ public function getPlatformFeeAmount(): ?AmountInterface { return $this->_platform_fee_amount; } /** * Устанавливает комиссию за проданные товары и услуги, которая удерживается с магазина в вашу пользу. * * @param AmountInterface|array|null $platform_fee_amount Сумма комиссии * * @return self */ public function setPlatformFeeAmount(mixed $platform_fee_amount = null): self { $this->_platform_fee_amount = $this->validatePropertyValue('_platform_fee_amount', $platform_fee_amount); return $this; } /** * Проверяет, была ли установлена сумма оплаты. * * @return bool True если сумма оплаты была установлена, false если нет */ public function hasAmount(): bool { return !empty($this->_amount); } /** * Проверяет, была ли установлена комиссия за проданные товары и услуги, которая удерживается с магазина в вашу пользу. * * @return bool True если комиссия была установлена, false если нет */ public function hasPlatformFeeAmount(): bool { return !empty($this->_platform_fee_amount); } }