forked from LiveCarta/PayPal-PHP-SDK
Enabled EC Parameters support
- Updated Api to enabled EC Parameters - Updated Tests - Updated Logging Manager - Added a feature to do validation on accessors.
This commit is contained in:
@@ -8,33 +8,35 @@ use PayPal\Rest\ApiContext;
|
||||
/**
|
||||
* Class CreditCardToken
|
||||
*
|
||||
* A resource representing a credit card that can be used to fund a payment.
|
||||
*
|
||||
* @package PayPal\Api
|
||||
*
|
||||
* @property string credit_card_id
|
||||
* @property string payer_id
|
||||
* @property string last4
|
||||
* @property string type
|
||||
* @property int expire_month
|
||||
* @property int expire_year
|
||||
* @property int expire_month
|
||||
* @property int expire_year
|
||||
*/
|
||||
class CreditCardToken extends PPModel
|
||||
{
|
||||
/**
|
||||
* Set Credit Card ID
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API.
|
||||
*
|
||||
*
|
||||
* @param string $credit_card_id
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreditCardId($credit_card_id)
|
||||
{
|
||||
$this->credit_card_id = $credit_card_id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Credit Card ID
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -44,27 +46,22 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Credit Card ID
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API.
|
||||
*
|
||||
* @deprecated Instead use setCreditCardId
|
||||
*
|
||||
* @param string $credit_card_id
|
||||
*
|
||||
* @deprecated Use setCreditCardId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setCredit_card_id($credit_card_id)
|
||||
{
|
||||
$this->credit_card_id = $credit_card_id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Credit Card ID
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API
|
||||
*
|
||||
* @deprecated Use getCreditCardId
|
||||
* ID of a previously saved Credit Card resource using /vault/credit-card API.
|
||||
* @deprecated Instead use getCreditCardId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -74,23 +71,21 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Payer ID
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
|
||||
*
|
||||
*
|
||||
* @param string $payer_id
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayerId($payer_id)
|
||||
{
|
||||
$this->payer_id = $payer_id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Payer ID
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -100,27 +95,22 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Payer ID
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
|
||||
*
|
||||
* @deprecated Instead use setPayerId
|
||||
*
|
||||
* @param string $payer_id
|
||||
*
|
||||
* @deprecated Use setPayerId
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setPayer_id($payer_id)
|
||||
{
|
||||
$this->payer_id = $payer_id;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Payer ID
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API
|
||||
*
|
||||
* @deprecated Use getPayerId
|
||||
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
|
||||
* @deprecated Instead use getPayerId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -130,23 +120,21 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Last Four
|
||||
* Last 4 digits of the card number from the saved card
|
||||
* Last 4 digits of the card number from the saved card.
|
||||
*
|
||||
*
|
||||
* @param string $last4
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setLast4($last4)
|
||||
{
|
||||
$this->last4 = $last4;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Last Four
|
||||
* Last 4 digits of the card number from the saved card
|
||||
* Last 4 digits of the card number from the saved card.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -156,25 +144,21 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Type
|
||||
* (eg. visa, mastercard, etc) from the saved card
|
||||
* Please note that the values are always in lowercase and not meant to be used directly for display
|
||||
* Type of the Card (eg. visa, mastercard, etc.) from the saved card. Please note that the values are always in lowercase and not meant to be used directly for display.
|
||||
*
|
||||
*
|
||||
* @param string $type
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Type
|
||||
* (eg. visa, mastercard, etc) from the saved card
|
||||
* Please note that the values are always in lowercase and not meant to be used directly for display
|
||||
* Type of the Card (eg. visa, mastercard, etc.) from the saved card. Please note that the values are always in lowercase and not meant to be used directly for display.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@@ -184,23 +168,21 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Expire Month
|
||||
* Card Expiration month from the saved card with value 1 - 12
|
||||
* card expiry month from the saved card with value 1 - 12
|
||||
*
|
||||
*
|
||||
* @param int $expire_month
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpireMonth($expire_month)
|
||||
{
|
||||
$this->expire_month = $expire_month;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Expire Month
|
||||
* Card Expiration month from the saved card with value 1 - 12
|
||||
* card expiry month from the saved card with value 1 - 12
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
@@ -210,27 +192,22 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Expire Month
|
||||
* Card Expiration month from the saved card with value 1 - 12
|
||||
* card expiry month from the saved card with value 1 - 12
|
||||
*
|
||||
* @deprecated Instead use setExpireMonth
|
||||
*
|
||||
* @param int $expire_month
|
||||
*
|
||||
* @deprecated Use setExpireMonth
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpire_month($expire_month)
|
||||
{
|
||||
$this->expire_month = $expire_month;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Expire Month
|
||||
* Card Expiration month from the saved card with value 1 - 12
|
||||
*
|
||||
* @deprecated Use getExpireMonth
|
||||
* card expiry month from the saved card with value 1 - 12
|
||||
* @deprecated Instead use getExpireMonth
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
@@ -240,22 +217,20 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Expire Year
|
||||
* 4 digit card expiry year from the saved card
|
||||
*
|
||||
*
|
||||
* @param int $expire_year
|
||||
*
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpireYear($expire_year)
|
||||
{
|
||||
$this->expire_year = $expire_year;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Expire Year
|
||||
* 4 digit card expiry year from the saved card
|
||||
*
|
||||
* @return int
|
||||
@@ -266,27 +241,22 @@ class CreditCardToken extends PPModel
|
||||
}
|
||||
|
||||
/**
|
||||
* Set Expire Year
|
||||
* 4 digit card expiry year from the saved card
|
||||
*
|
||||
* @deprecated Instead use setExpireYear
|
||||
*
|
||||
* @param int $expire_year
|
||||
*
|
||||
* @deprecated Use setExpireYear
|
||||
*
|
||||
* @return $this
|
||||
*/
|
||||
public function setExpire_year($expire_year)
|
||||
{
|
||||
$this->expire_year = $expire_year;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get Expire Year
|
||||
* 4 digit card expiry year from the saved card
|
||||
*
|
||||
* @deprecated Use getExpireYear
|
||||
* @deprecated Instead use getExpireYear
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
@@ -294,4 +264,5 @@ class CreditCardToken extends PPModel
|
||||
{
|
||||
return $this->expire_year;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user