Removing Dependency from SDK Core Project

- Copied files required for Rest API SDK
- Removed PPApiContext and directly connected APIContext with PPConfigManager
- Removed duplicate data storage of configuration and credentials.
- Code Style Fixes
- Remove build.xml file as it is not required anymore
- Updated the samples
- Updated the documentations
This commit is contained in:
japatel
2014-10-06 11:16:47 -05:00
parent bb7654b0b8
commit 49b80f76af
150 changed files with 10975 additions and 6525 deletions

View File

@@ -4,65 +4,72 @@ namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
class RefundDetail extends PPModel {
/**
* PayPal refund type indicating whether refund was done in invoicing flow via PayPal or externally. In the case of the mark-as-refunded API, refund type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
*
* @param string $type
*/
public function setType($type) {
$this->type = $type;
return $this;
}
class RefundDetail extends PPModel
{
/**
* PayPal refund type indicating whether refund was done in invoicing flow via PayPal or externally. In the case of the mark-as-refunded API, refund type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* PayPal refund type indicating whether refund was done in invoicing flow via PayPal or externally. In the case of the mark-as-refunded API, refund type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
*
* @return string
*/
public function getType() {
return $this->type;
}
/**
* PayPal refund type indicating whether refund was done in invoicing flow via PayPal or externally. In the case of the mark-as-refunded API, refund type is EXTERNAL and this is what is now supported. The PAYPAL value is provided for backward compatibility.
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Date when the invoice was marked as refunded. If no date is specified, the current date and time is used as the default. In addition, the date must be after the invoice payment date.
*
* @param string $date
*/
public function setDate($date) {
$this->date = $date;
return $this;
}
/**
* Date when the invoice was marked as refunded. If no date is specified, the current date and time is used as the default. In addition, the date must be after the invoice payment date.
*
* @param string $date
*/
public function setDate($date)
{
$this->date = $date;
return $this;
}
/**
* Date when the invoice was marked as refunded. If no date is specified, the current date and time is used as the default. In addition, the date must be after the invoice payment date.
*
* @return string
*/
public function getDate() {
return $this->date;
}
/**
* Date when the invoice was marked as refunded. If no date is specified, the current date and time is used as the default. In addition, the date must be after the invoice payment date.
*
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* Optional note associated with the refund.
*
* @param string $note
*/
public function setNote($note) {
$this->note = $note;
return $this;
}
/**
* Optional note associated with the refund.
*
* @param string $note
*/
public function setNote($note)
{
$this->note = $note;
return $this;
}
/**
* Optional note associated with the refund.
*
* @return string
*/
public function getNote() {
return $this->note;
}
/**
* Optional note associated with the refund.
*
* @return string
*/
public function getNote()
{
return $this->note;
}
}