Updated Payment APIs

- Updated SDK Models to latest Payment APIs
- Updated Unit Tests
This commit is contained in:
Jay Patel
2015-02-26 15:03:59 -06:00
parent 241d80cd17
commit 3e43f93f9b
93 changed files with 6079 additions and 1735 deletions

View File

@@ -3,14 +3,13 @@
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
use PayPal\Rest\ApiContext;
use PayPal\Validation\NumericValidator;
use PayPal\Converter\FormatConverter;
use PayPal\Validation\NumericValidator;
/**
* Class Amount
*
* Let's you specify details of a payment amount.
* payment amount with break-ups.
*
* @package PayPal\Api
*
@@ -22,7 +21,6 @@ class Amount extends PayPalModel
{
/**
* 3 letter currency code
*
*
* @param string $currency
*
@@ -45,11 +43,11 @@ class Amount extends PayPalModel
}
/**
* Total amount charged from the Payer account (or card) to Payee. In case of a refund, this is the refunded amount to the original Payer from Payee account.
*
* Total amount charged as part of this payment.
*
*
* @param string|double $total
*
*
* @return $this
*/
public function setTotal($total)
@@ -61,7 +59,7 @@ class Amount extends PayPalModel
}
/**
* Total amount charged from the Payer account (or card) to Payee. In case of a refund, this is the refunded amount to the original Payer from Payee account.
* Total amount charged as part of this payment.
*
* @return string
*/
@@ -72,7 +70,6 @@ class Amount extends PayPalModel
/**
* Additional details of the payment amount.
*
*
* @param \PayPal\Api\Details $details
*