forked from LiveCarta/PayPal-PHP-SDK
Payments API Updates
This commit is contained in:
@@ -12,14 +12,13 @@ use PayPal\Validation\UrlValidator;
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string conversion_date
|
||||
* @property string from_currency
|
||||
* @property string from_amount
|
||||
* @property string to_currency
|
||||
* @property string to_amount
|
||||
* @property string conversion_type
|
||||
* @property bool conversion_type_changeable
|
||||
* @property string web_url
|
||||
* @property string conversion_date
|
||||
* @property string from_currency
|
||||
* @property string from_amount
|
||||
* @property string to_currency
|
||||
* @property string to_amount
|
||||
* @property string conversion_type
|
||||
* @property bool conversion_type_changeable
|
||||
* @property \PayPal\Api\Links[] links
|
||||
*/
|
||||
class CurrencyConversion extends PayPalModel
|
||||
@@ -28,7 +27,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* Date of validity for the conversion rate.
|
||||
*
|
||||
* @param string $conversion_date
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setConversionDate($conversion_date)
|
||||
@@ -51,7 +50,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* 3 letter currency code
|
||||
*
|
||||
* @param string $from_currency
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFromCurrency($from_currency)
|
||||
@@ -71,10 +70,10 @@ class CurrencyConversion extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Amount participating in currency conversion, set to 1 as default
|
||||
* Amount participating in currency conversion, set to 1 as default
|
||||
*
|
||||
* @param string $from_amount
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setFromAmount($from_amount)
|
||||
@@ -84,7 +83,7 @@ class CurrencyConversion extends PayPalModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Amount participating in currency conversion, set to 1 as default
|
||||
* Amount participating in currency conversion, set to 1 as default
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -97,7 +96,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* 3 letter currency code
|
||||
*
|
||||
* @param string $to_currency
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setToCurrency($to_currency)
|
||||
@@ -120,7 +119,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* Amount resulting from currency conversion.
|
||||
*
|
||||
* @param string $to_amount
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setToAmount($to_amount)
|
||||
@@ -144,7 +143,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* Valid Values: ["PAYPAL", "VENDOR"]
|
||||
*
|
||||
* @param string $conversion_type
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setConversionType($conversion_type)
|
||||
@@ -167,7 +166,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* Allow Payer to change conversion type.
|
||||
*
|
||||
* @param bool $conversion_type_changeable
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setConversionTypeChangeable($conversion_type_changeable)
|
||||
@@ -190,6 +189,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* Base URL to web applications endpoint
|
||||
* Valid Values: ["https://www.paypal.com/{country_code}/webapps/xocspartaweb/webflow/sparta/proxwebflow", "https://www.paypal.com/{country_code}/proxflow"]
|
||||
*
|
||||
* @deprecated Not publicly available
|
||||
* @param string $web_url
|
||||
* @throws \InvalidArgumentException
|
||||
* @return $this
|
||||
@@ -204,6 +204,7 @@ class CurrencyConversion extends PayPalModel
|
||||
/**
|
||||
* Base URL to web applications endpoint
|
||||
*
|
||||
* @deprecated Not publicly available
|
||||
* @return string
|
||||
*/
|
||||
public function getWebUrl()
|
||||
@@ -215,7 +216,7 @@ class CurrencyConversion extends PayPalModel
|
||||
* Sets Links
|
||||
*
|
||||
* @param \PayPal\Api\Links[] $links
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLinks($links)
|
||||
|
||||
Reference in New Issue
Block a user