forked from LiveCarta/PayPal-PHP-SDK
- Removed Deprecated Getter Setters from all Model Classes - All Camelcase getters and setters are removed. Please use first letter uppercase syntax - E.g. instead of using get_notify_url(), use getNotifyUrl() instead
44 lines
902 B
PHP
44 lines
902 B
PHP
<?php
|
|
|
|
namespace PayPal\Api;
|
|
|
|
use PayPal\Common\PayPalModel;
|
|
use PayPal\Rest\ApiContext;
|
|
|
|
/**
|
|
* Class PaymentOptions
|
|
*
|
|
* Payment options requested for this purchase unit
|
|
*
|
|
* @package PayPal\Api
|
|
*
|
|
* @property string allowed_payment_method
|
|
*/
|
|
class PaymentOptions extends PayPalModel
|
|
{
|
|
/**
|
|
* Payment method requested for this purchase unit
|
|
* Valid Values: ["UNRESTRICTED", "INSTANT_FUNDING_SOURCE", "IMMEDIATE_PAY"]
|
|
*
|
|
* @param string $allowed_payment_method
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setAllowedPaymentMethod($allowed_payment_method)
|
|
{
|
|
$this->allowed_payment_method = $allowed_payment_method;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Payment method requested for this purchase unit
|
|
*
|
|
* @return string
|
|
*/
|
|
public function getAllowedPaymentMethod()
|
|
{
|
|
return $this->allowed_payment_method;
|
|
}
|
|
|
|
}
|