Payments API Updates

This commit is contained in:
Jay Patel
2015-10-02 14:25:46 -05:00
parent 02fca1bda4
commit a37b880e96
112 changed files with 3857 additions and 1495 deletions

View File

@@ -16,11 +16,11 @@ use PayPal\Common\PayPalModel;
class PaymentOptions extends PayPalModel
{
/**
* Payment method requested for this purchase unit
* Optional payment method type. If specified, the transaction will go through for only instant payment. Only for use with the paypal payment_method, not relevant for the credit_card payment_method.
* Valid Values: ["UNRESTRICTED", "INSTANT_FUNDING_SOURCE", "IMMEDIATE_PAY"]
*
* @param string $allowed_payment_method
*
*
* @return $this
*/
public function setAllowedPaymentMethod($allowed_payment_method)
@@ -30,7 +30,7 @@ class PaymentOptions extends PayPalModel
}
/**
* Payment method requested for this purchase unit
* Optional payment method type. If specified, the transaction will go through for only instant payment. Only for use with the paypal payment_method, not relevant for the credit_card payment_method.
*
* @return string
*/
@@ -39,4 +39,54 @@ class PaymentOptions extends PayPalModel
return $this->allowed_payment_method;
}
/**
* Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
*
* @deprecated Not publicly available
* @param bool $recurring_flag
*
* @return $this
*/
public function setRecurringFlag($recurring_flag)
{
$this->recurring_flag = $recurring_flag;
return $this;
}
/**
* Indicator if this payment request is a recurring payment. Only supported when the `payment_method` is set to `credit_card`
*
* @deprecated Not publicly available
* @return bool
*/
public function getRecurringFlag()
{
return $this->recurring_flag;
}
/**
* Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
*
* @deprecated Not publicly available
* @param bool $skip_fmf
*
* @return $this
*/
public function setSkipFmf($skip_fmf)
{
$this->skip_fmf = $skip_fmf;
return $this;
}
/**
* Indicator if fraud management filters (fmf) should be skipped for this transaction. Only supported when the `payment_method` is set to `credit_card`
*
* @deprecated Not publicly available
* @return bool
*/
public function getSkipFmf()
{
return $this->skip_fmf;
}
}