_amount; } /** * Устанавливает amount. * * @param AmountInterface|array|null $amount Сумма платежа * * @return self */ public function setAmount(mixed $amount = null): self { $this->_amount = $this->validatePropertyValue('_amount', $amount); return $this; } /** * Возвращает receipt. * * @return ReceiptInterface|null Данные для формирования чека */ public function getReceipt(): ?ReceiptInterface { return $this->_receipt; } /** * Устанавливает receipt. * * @param ReceiptInterface|array|null $receipt Данные для формирования чека * * @return self */ public function setReceipt(mixed $receipt = null): self { $this->_receipt = $this->validatePropertyValue('_receipt', $receipt); return $this; } /** * Возвращает recipient. * * @return Recipient|null Получатель платежа */ public function getRecipient(): ?Recipient { return $this->_recipient; } /** * Устанавливает recipient. * * @param Recipient|array|null $recipient Получатель платежа * * @return self */ public function setRecipient(mixed $recipient = null): self { $this->_recipient = $this->validatePropertyValue('_recipient', $recipient); return $this; } /** * Возвращает save_payment_method. * * @return bool|null Сохранение платежных данных для проведения автоплатежей */ public function getSavePaymentMethod(): ?bool { return $this->_save_payment_method; } /** * Устанавливает save_payment_method. * * @param bool|array|null $save_payment_method Сохранение платежных данных для проведения автоплатежей * * @return self */ public function setSavePaymentMethod(mixed $save_payment_method = null): self { $this->_save_payment_method = $this->validatePropertyValue('_save_payment_method', $save_payment_method); return $this; } /** * Возвращает capture. * * @return bool|null Автоматический прием поступившего платежа */ public function getCapture(): ?bool { return $this->_capture; } /** * Устанавливает capture. * * @param bool|array|null $capture Автоматический прием поступившего платежа * * @return self */ public function setCapture(mixed $capture = null): self { $this->_capture = $this->validatePropertyValue('_capture', $capture); return $this; } /** * Возвращает client_ip. * * @return string|null IPv4 или IPv6-адрес пользователя */ public function getClientIp(): ?string { return $this->_client_ip; } /** * Устанавливает client_ip. * * @param string|null $client_ip IPv4 или IPv6-адрес пользователя * * @return self */ public function setClientIp(?string $client_ip = null): self { $this->_client_ip = $this->validatePropertyValue('_client_ip', $client_ip); return $this; } /** * Возвращает description. * * @return string|null Описание транзакции */ public function getDescription(): ?string { return $this->_description; } /** * Устанавливает description. * * @param string|null $description Описание транзакции * * @return self */ public function setDescription(?string $description = null): self { $this->_description = $this->validatePropertyValue('_description', $description); return $this; } /** * Возвращает metadata. * * @return Metadata|null Любые дополнительные данные */ public function getMetadata(): ?Metadata { return $this->_metadata; } /** * Устанавливает metadata. * * @param Metadata|array|null $metadata Любые дополнительные данные * * @return self */ public function setMetadata(mixed $metadata = null): self { $this->_metadata = $this->validatePropertyValue('_metadata', $metadata); return $this; } }