Updated Invoice API

This commit is contained in:
Jay Patel
2016-09-19 14:32:33 -05:00
parent a1039ae38a
commit 4f20bc4b97
10 changed files with 209 additions and 11 deletions

View File

@@ -12,6 +12,7 @@ use PayPal\Common\PayPalModel;
* @package PayPal\Api
*
* @property string type
* @property string transaction_id
* @property string date
* @property string note
* @property \PayPal\Api\Currency amount
@@ -42,6 +43,29 @@ class RefundDetail extends PayPalModel
return $this->type;
}
/**
* The PayPal refund transaction ID. Required with the `PAYPAL` refund type.
*
* @param string $transaction_id
*
* @return $this
*/
public function setTransactionId($transaction_id)
{
$this->transaction_id = $transaction_id;
return $this;
}
/**
* The PayPal refund transaction ID. Required with the `PAYPAL` refund type.
*
* @return string
*/
public function getTransactionId()
{
return $this->transaction_id;
}
/**
* Date on which the invoice was refunded. Date format: yyyy-MM-dd z. For example, 2014-02-27 PST.
*