First Update on Invoicing APIs

This commit is contained in:
japatel
2014-11-18 12:12:35 -06:00
parent f0ccc950ad
commit e6fb968509
25 changed files with 2729 additions and 552 deletions

View File

@@ -1,15 +1,27 @@
<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
/**
* Class CustomAmount
*
* Custom amount applied on an invoice. If a label is included then the amount cannot be empty.
*
* @package PayPal\Api
*
* @property string label
* @property \PayPal\Api\Currency amount
*/
class CustomAmount extends PPModel
{
/**
* Custom amount label. 25 characters max.
*
* @param string $label
*
* @return $this
*/
public function setLabel($label)
{
@@ -27,11 +39,12 @@ class CustomAmount extends PPModel
return $this->label;
}
/**
* Custom amount value. Range of 0 to 999999.99.
*
* @param PayPal\Api\Currency $amount
* @param \PayPal\Api\Currency $amount
*
* @return $this
*/
public function setAmount($amount)
{
@@ -42,12 +55,11 @@ class CustomAmount extends PPModel
/**
* Custom amount value. Range of 0 to 999999.99.
*
* @return PayPal\Api\Currency
* @return \PayPal\Api\Currency
*/
public function getAmount()
{
return $this->amount;
}
}