Payments API Updates

This commit is contained in:
Jay Patel
2015-10-02 14:25:46 -05:00
parent 02fca1bda4
commit a37b880e96
112 changed files with 3857 additions and 1495 deletions

View File

@@ -11,21 +11,22 @@ use PayPal\Common\PayPalModel;
*
* @package PayPal\Api
*
* @property string id
* @property string number
* @property string type
* @property int expire_month
* @property int expire_year
* @property string start_month
* @property string start_year
* @property string cvv2
* @property string first_name
* @property string last_name
* @property string billing_country
* @property string id
* @property string number
* @property string type
* @property string expire_month
* @property string expire_year
* @property string start_month
* @property string start_year
* @property string cvv2
* @property string first_name
* @property string last_name
* @property string billing_country
* @property \PayPal\Api\Address billing_address
* @property string external_customer_id
* @property string status
* @property string valid_until
* @property string external_customer_id
* @property string status
* @property string valid_until
* @property string issue_number
* @property \PayPal\Api\Links[] links
*/
class PaymentCard extends PayPalModel
@@ -34,7 +35,7 @@ class PaymentCard extends PayPalModel
* ID of the credit card being saved for later use.
*
* @param string $id
*
*
* @return $this
*/
public function setId($id)
@@ -57,7 +58,7 @@ class PaymentCard extends PayPalModel
* Card number.
*
* @param string $number
*
*
* @return $this
*/
public function setNumber($number)
@@ -81,7 +82,7 @@ class PaymentCard extends PayPalModel
* Valid Values: ["VISA", "AMEX", "SOLO", "JCB", "STAR", "DELTA", "DISCOVER", "SWITCH", "MAESTRO", "CB_NATIONALE", "CONFINOGA", "COFIDIS", "ELECTRON", "CETELEM", "CHINA_UNION_PAY", "MASTERCARD"]
*
* @param string $type
*
*
* @return $this
*/
public function setType($type)
@@ -103,8 +104,8 @@ class PaymentCard extends PayPalModel
/**
* 2 digit card expiry month.
*
* @param int $expire_month
*
* @param string $expire_month
*
* @return $this
*/
public function setExpireMonth($expire_month)
@@ -116,7 +117,7 @@ class PaymentCard extends PayPalModel
/**
* 2 digit card expiry month.
*
* @return int
* @return string
*/
public function getExpireMonth()
{
@@ -126,8 +127,8 @@ class PaymentCard extends PayPalModel
/**
* 4 digit card expiry year
*
* @param int $expire_year
*
* @param string $expire_year
*
* @return $this
*/
public function setExpireYear($expire_year)
@@ -139,7 +140,7 @@ class PaymentCard extends PayPalModel
/**
* 4 digit card expiry year
*
* @return int
* @return string
*/
public function getExpireYear()
{
@@ -147,10 +148,10 @@ class PaymentCard extends PayPalModel
}
/**
* 2 digit card start month.
* 2 digit card start month. Needed for UK Maestro Card.
*
* @param string $start_month
*
*
* @return $this
*/
public function setStartMonth($start_month)
@@ -160,7 +161,7 @@ class PaymentCard extends PayPalModel
}
/**
* 2 digit card start month.
* 2 digit card start month. Needed for UK Maestro Card.
*
* @return string
*/
@@ -170,10 +171,10 @@ class PaymentCard extends PayPalModel
}
/**
* 4 digit card start year.
* 4 digit card start year. Needed for UK Maestro Card.
*
* @param string $start_year
*
*
* @return $this
*/
public function setStartYear($start_year)
@@ -183,7 +184,7 @@ class PaymentCard extends PayPalModel
}
/**
* 4 digit card start year.
* 4 digit card start year. Needed for UK Maestro Card.
*
* @return string
*/
@@ -196,7 +197,7 @@ class PaymentCard extends PayPalModel
* Card validation code. Only supported when making a Payment but not when saving a payment card for future use.
*
* @param string $cvv2
*
*
* @return $this
*/
public function setCvv2($cvv2)
@@ -219,7 +220,7 @@ class PaymentCard extends PayPalModel
* Card holder's first name.
*
* @param string $first_name
*
*
* @return $this
*/
public function setFirstName($first_name)
@@ -242,7 +243,7 @@ class PaymentCard extends PayPalModel
* Card holder's last name.
*
* @param string $last_name
*
*
* @return $this
*/
public function setLastName($last_name)
@@ -265,7 +266,7 @@ class PaymentCard extends PayPalModel
* 2 letter country code
*
* @param string $billing_country
*
*
* @return $this
*/
public function setBillingCountry($billing_country)
@@ -288,7 +289,7 @@ class PaymentCard extends PayPalModel
* Billing Address associated with this card.
*
* @param \PayPal\Api\Address $billing_address
*
*
* @return $this
*/
public function setBillingAddress($billing_address)
@@ -311,7 +312,7 @@ class PaymentCard extends PayPalModel
* A unique identifier of the customer to whom this card account belongs to. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
* @param string $external_customer_id
*
*
* @return $this
*/
public function setExternalCustomerId($external_customer_id)
@@ -335,7 +336,7 @@ class PaymentCard extends PayPalModel
* Valid Values: ["EXPIRED", "ACTIVE"]
*
* @param string $status
*
*
* @return $this
*/
public function setStatus($status)
@@ -358,7 +359,7 @@ class PaymentCard extends PayPalModel
* Date/Time until this resource can be used fund a payment.
*
* @param string $valid_until
*
*
* @return $this
*/
public function setValidUntil($valid_until)
@@ -377,11 +378,34 @@ class PaymentCard extends PayPalModel
return $this->valid_until;
}
/**
* 1-2 digit card issue number. Needed for UK Maestro Card.
*
* @param string $issue_number
*
* @return $this
*/
public function setIssueNumber($issue_number)
{
$this->issue_number = $issue_number;
return $this;
}
/**
* 1-2 digit card issue number. Needed for UK Maestro Card.
*
* @return string
*/
public function getIssueNumber()
{
return $this->issue_number;
}
/**
* Sets Links
*
* @param \PayPal\Api\Links[] $links
*
*
* @return $this
*/
public function setLinks($links)