This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Api/Credit.php
japatel 61a52e4623 Enabled EC Parameters support
- Updated Api to enabled EC Parameters
- Updated Tests
- Updated Logging Manager
- Added a feature to do validation on accessors.
2014-10-10 10:50:49 -05:00

94 lines
1.5 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
/**
* Class Credit
*
* A resource representing a credit instrument.
*
* @package PayPal\Api
*
* @property string id
* @property string type
* @property string terms
*/
class Credit extends PPModel
{
/**
* Unique identifier of credit resource.
*
*
* @param string $id
*
* @return $this
*/
public function setId($id)
{
$this->id = $id;
return $this;
}
/**
* Unique identifier of credit resource.
*
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* specifies type of credit
* Valid Values: ["BILL_ME_LATER", "PAYPAL_EXTRAS_MASTERCARD", "EBAY_MASTERCARD", "PAYPAL_SMART_CONNECT"]
*
* @param string $type
*
* @return $this
*/
public function setType($type)
{
$this->type = $type;
return $this;
}
/**
* specifies type of credit
*
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* URI to the associated terms
*
*
* @param string $terms
*
* @return $this
*/
public function setTerms($terms)
{
$this->terms = $terms;
return $this;
}
/**
* URI to the associated terms
*
* @return string
*/
public function getTerms()
{
return $this->terms;
}
}