forked from LiveCarta/PayPal-PHP-SDK
Payments API Updates
This commit is contained in:
@@ -11,15 +11,16 @@ use PayPal\Common\PayPalModel;
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string funding_mode
|
||||
* @property string funding_instrument_type
|
||||
* @property string soft_descriptor
|
||||
* @property \PayPal\Api\Currency amount
|
||||
* @property string legal_text
|
||||
* @property \PayPal\Api\FundingDetail funding_detail
|
||||
* @property string additional_text
|
||||
* @property string funding_mode
|
||||
* @property string funding_instrument_type
|
||||
* @property string soft_descriptor
|
||||
* @property \PayPal\Api\Currency amount
|
||||
* @property \PayPal\Api\Currency negative_balance_amount
|
||||
* @property string legal_text
|
||||
* @property \PayPal\Api\FundingDetail funding_detail
|
||||
* @property string additional_text
|
||||
* @property \PayPal\Api\FundingInstrument extends
|
||||
* @property \PayPal\Api\Links[] links
|
||||
* @property \PayPal\Api\Links[] links
|
||||
*/
|
||||
class FundingSource extends PayPalModel
|
||||
{
|
||||
@@ -28,7 +29,7 @@ class FundingSource extends PayPalModel
|
||||
* Valid Values: ["INSTANT_TRANSFER", "MANUAL_BANK_TRANSFER", "DELAYED_TRANSFER", "ECHECK"]
|
||||
*
|
||||
* @param string $funding_mode
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundingMode($funding_mode)
|
||||
@@ -52,7 +53,7 @@ class FundingSource extends PayPalModel
|
||||
* Valid Values: ["BALANCE", "PAYMENT_CARD", "BANK_ACCOUNT", "CREDIT", "INCENTIVE"]
|
||||
*
|
||||
* @param string $funding_instrument_type
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundingInstrumentType($funding_instrument_type)
|
||||
@@ -75,7 +76,7 @@ class FundingSource extends PayPalModel
|
||||
* Soft descriptor used when charging this funding source.
|
||||
*
|
||||
* @param string $soft_descriptor
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSoftDescriptor($soft_descriptor)
|
||||
@@ -98,7 +99,7 @@ class FundingSource extends PayPalModel
|
||||
* Total anticipated amount of money to be pulled from instrument.
|
||||
*
|
||||
* @param \PayPal\Api\Currency $amount
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAmount($amount)
|
||||
@@ -117,11 +118,34 @@ class FundingSource extends PayPalModel
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional amount to be pulled from the instrument to recover a negative balance on the buyer
|
||||
*
|
||||
* @param \PayPal\Api\Currency $amount
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setNegativeBalanceAmount($amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional amount to be pulled from the instrument to recover a negative balance on the buyer
|
||||
*
|
||||
* @return \PayPal\Api\Currency
|
||||
*/
|
||||
public function getNegativeBalanceAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Localized legal text relevant to funding source.
|
||||
*
|
||||
* @param string $legal_text
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLegalText($legal_text)
|
||||
@@ -144,7 +168,7 @@ class FundingSource extends PayPalModel
|
||||
* Additional detail of the funding.
|
||||
*
|
||||
* @param \PayPal\Api\FundingDetail $funding_detail
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundingDetail($funding_detail)
|
||||
@@ -167,7 +191,7 @@ class FundingSource extends PayPalModel
|
||||
* Additional text relevant to funding source.
|
||||
*
|
||||
* @param string $additional_text
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAdditionalText($additional_text)
|
||||
@@ -190,7 +214,7 @@ class FundingSource extends PayPalModel
|
||||
* Sets Extends
|
||||
*
|
||||
* @param \PayPal\Api\FundingInstrument $extends
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExtends($extends)
|
||||
@@ -213,7 +237,7 @@ class FundingSource extends PayPalModel
|
||||
* Sets Links
|
||||
*
|
||||
* @param \PayPal\Api\Links[] $links
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLinks($links)
|
||||
|
||||
Reference in New Issue
Block a user