forked from LiveCarta/PayPal-PHP-SDK
Update payments API to v1.9
This commit is contained in:
committed by
jaypatel512 and sdcoffey
parent
7c5ea8b997
commit
c2947ff409
@@ -11,25 +11,24 @@ 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 \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 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\Links[] links
|
||||
*/
|
||||
class FundingSource extends PayPalModel
|
||||
class FundingSource extends FundingInstrument
|
||||
{
|
||||
/**
|
||||
* specifies funding mode of the instrument
|
||||
* Valid Values: ["INSTANT_TRANSFER", "MANUAL_BANK_TRANSFER", "DELAYED_TRANSFER", "ECHECK"]
|
||||
* Valid Values: ["INSTANT_TRANSFER", "MANUAL_BANK_TRANSFER", "DELAYED_TRANSFER", "ECHECK", "PAY_UPON_INVOICE"]
|
||||
*
|
||||
* @param string $funding_mode
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundingMode($funding_mode)
|
||||
@@ -50,10 +49,10 @@ class FundingSource extends PayPalModel
|
||||
|
||||
/**
|
||||
* Instrument type for this funding source
|
||||
* Valid Values: ["BALANCE", "PAYMENT_CARD", "BANK_ACCOUNT", "CREDIT", "INCENTIVE"]
|
||||
* Valid Values: ["BALANCE", "PAYMENT_CARD", "BANK_ACCOUNT", "CREDIT", "INCENTIVE", "EXTERNAL_FUNDING", "TAB"]
|
||||
*
|
||||
* @param string $funding_instrument_type
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundingInstrumentType($funding_instrument_type)
|
||||
@@ -76,7 +75,7 @@ class FundingSource extends PayPalModel
|
||||
* Soft descriptor used when charging this funding source.
|
||||
*
|
||||
* @param string $soft_descriptor
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setSoftDescriptor($soft_descriptor)
|
||||
@@ -99,7 +98,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)
|
||||
@@ -119,33 +118,33 @@ class FundingSource extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional amount to be pulled from the instrument to recover a negative balance on the buyer
|
||||
*
|
||||
* @param \PayPal\Api\Currency $amount
|
||||
* Additional amount to be pulled from the instrument to recover a negative balance on the buyer's account that is owed to PayPal.
|
||||
*
|
||||
* @param \PayPal\Api\Currency $negative_balance_amount
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setNegativeBalanceAmount($amount)
|
||||
public function setNegativeBalanceAmount($negative_balance_amount)
|
||||
{
|
||||
$this->amount = $amount;
|
||||
$this->negative_balance_amount = $negative_balance_amount;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional amount to be pulled from the instrument to recover a negative balance on the buyer
|
||||
* Additional amount to be pulled from the instrument to recover a negative balance on the buyer's account that is owed to PayPal.
|
||||
*
|
||||
* @return \PayPal\Api\Currency
|
||||
*/
|
||||
public function getNegativeBalanceAmount()
|
||||
{
|
||||
return $this->amount;
|
||||
return $this->negative_balance_amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Localized legal text relevant to funding source.
|
||||
*
|
||||
* @param string $legal_text
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLegalText($legal_text)
|
||||
@@ -168,7 +167,7 @@ class FundingSource extends PayPalModel
|
||||
* Additional detail of the funding.
|
||||
*
|
||||
* @param \PayPal\Api\FundingDetail $funding_detail
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFundingDetail($funding_detail)
|
||||
@@ -191,7 +190,7 @@ class FundingSource extends PayPalModel
|
||||
* Additional text relevant to funding source.
|
||||
*
|
||||
* @param string $additional_text
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setAdditionalText($additional_text)
|
||||
@@ -215,6 +214,8 @@ class FundingSource extends PayPalModel
|
||||
*
|
||||
* @param \PayPal\Api\FundingInstrument $extends
|
||||
*
|
||||
* @deprecated Unused
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExtends($extends)
|
||||
@@ -226,6 +227,8 @@ class FundingSource extends PayPalModel
|
||||
/**
|
||||
* Gets Extends
|
||||
*
|
||||
* @deprecated Unused
|
||||
*
|
||||
* @return \PayPal\Api\FundingInstrument
|
||||
*/
|
||||
public function getExtends()
|
||||
@@ -237,7 +240,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