setType(PaymentMethodType::SBER_LOAN); } /** * Возвращает тариф кредита. */ public function getLoanOption(): ?string { return $this->_loan_option; } /** * Устанавливает тариф кредита. */ public function setLoanOption(?string $loan_option): self { $this->_loan_option = $this->validatePropertyValue('_loan_option', $loan_option); return $this; } /** * Возвращает сумму скидки для рассрочки. * * @return AmountInterface|null Сумма скидки для рассрочки */ public function getDiscountAmount(): ?AmountInterface { return $this->_discount_amount; } /** * Устанавливает сумму скидки для рассрочки. * * @param AmountInterface|array|null $discount_amount Сумма скидки для рассрочки * * @return self */ public function setDiscountAmount(mixed $discount_amount = null): self { $this->_discount_amount = $this->validatePropertyValue('_discount_amount', $discount_amount); return $this; } /** * Возвращает время, когда заканчивается период охлаждения кредита или рассрочки. * * @return DateTime|null */ public function getSuspendedUntil(): ?DateTime { return $this->_suspended_until; } /** * Устанавливает время, когда заканчивается период охлаждения кредита или рассрочки. * * @param DateTime|string|null $suspended_until Время, когда заканчивается период охлаждения кредита или рассрочки. * * @return self */ public function setSuspendedUntil(DateTime|string|null $suspended_until = null): self { $this->_suspended_until = $this->validatePropertyValue('_suspended_until', $suspended_until); return $this; } }