forked from LiveCarta/PayPal-PHP-SDK
Enabled EC Parameters support
- Updated Api to enabled EC Parameters - Updated Tests - Updated Logging Manager - Added a feature to do validation on accessors.
This commit is contained in:
68
lib/PayPal/Api/PaymentOptions.php
Normal file
68
lib/PayPal/Api/PaymentOptions.php
Normal file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
|
||||
namespace PayPal\Api;
|
||||
|
||||
use PayPal\Common\PPModel;
|
||||
use PayPal\Rest\ApiContext;
|
||||
|
||||
/**
|
||||
* Class PaymentOptions
|
||||
*
|
||||
* Payment options requested for this purchase unit
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string allowed_payment_method
|
||||
*/
|
||||
class PaymentOptions extends PPModel
|
||||
{
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
/**
|
||||
* Payment method requested for this purchase unit
|
||||
*
|
||||
* @deprecated Instead use setAllowedPaymentMethod
|
||||
*
|
||||
* @param string $allowed_payment_method
|
||||
* @return $this
|
||||
*/
|
||||
public function setAllowed_payment_method($allowed_payment_method)
|
||||
{
|
||||
$this->allowed_payment_method = $allowed_payment_method;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Payment method requested for this purchase unit
|
||||
* @deprecated Instead use getAllowedPaymentMethod
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getAllowed_payment_method()
|
||||
{
|
||||
return $this->allowed_payment_method;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user