updating stubs to have fluent setters and retaining deprecated methods

This commit is contained in:
Ganesh Hegde
2013-05-28 10:15:29 +05:30
parent 50b09bdbde
commit 86643ec2df
26 changed files with 1388 additions and 404 deletions

View File

@@ -9,8 +9,9 @@ class CreditCardToken extends \PPModel {
*/
public function setCreditCardId($credit_card_id) {
$this->credit_card_id = $credit_card_id;
}
return $this;
}
/**
* ID of a previously saved Credit Card resource using /vault/credit-card API.
* @return string
@@ -18,15 +19,30 @@ class CreditCardToken extends \PPModel {
public function getCreditCardId() {
return $this->credit_card_id;
}
/**
* Deprecated method
*/
public function setCredit_card_id($credit_card_id) {
$this->credit_card_id = $credit_card_id;
return $this;
}
/**
* Deprecated method
*/
public function getCredit_card_id() {
return $this->credit_card_id;
}
/**
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
* @param string $payer_id
*/
public function setPayerId($payer_id) {
$this->payer_id = $payer_id;
}
return $this;
}
/**
* The unique identifier of the payer used when saving this credit card using /vault/credit-card API.
* @return string
@@ -34,15 +50,30 @@ class CreditCardToken extends \PPModel {
public function getPayerId() {
return $this->payer_id;
}
/**
* Deprecated method
*/
public function setPayer_id($payer_id) {
$this->payer_id = $payer_id;
return $this;
}
/**
* Deprecated method
*/
public function getPayer_id() {
return $this->payer_id;
}
/**
* Last 4 digits of the card number from the saved card.
* @param string $last4
*/
public function setLast4($last4) {
$this->last4 = $last4;
}
return $this;
}
/**
* Last 4 digits of the card number from the saved card.
* @return string
@@ -50,15 +81,17 @@ class CreditCardToken extends \PPModel {
public function getLast4() {
return $this->last4;
}
/**
* 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
*/
public function setType($type) {
$this->type = $type;
}
return $this;
}
/**
* 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
@@ -66,15 +99,17 @@ class CreditCardToken extends \PPModel {
public function getType() {
return $this->type;
}
/**
* card expiry month from the saved card with value 1 - 12
* @param integer $expire_month
*/
public function setExpireMonth($expire_month) {
$this->expire_month = $expire_month;
}
return $this;
}
/**
* card expiry month from the saved card with value 1 - 12
* @return integer
@@ -82,15 +117,30 @@ class CreditCardToken extends \PPModel {
public function getExpireMonth() {
return $this->expire_month;
}
/**
* Deprecated method
*/
public function setExpire_month($expire_month) {
$this->expire_month = $expire_month;
return $this;
}
/**
* Deprecated method
*/
public function getExpire_month() {
return $this->expire_month;
}
/**
* 4 digit card expiry year from the saved card
* @param integer $expire_year
*/
public function setExpireYear($expire_year) {
$this->expire_year = $expire_year;
}
return $this;
}
/**
* 4 digit card expiry year from the saved card
* @return integer
@@ -98,5 +148,19 @@ class CreditCardToken extends \PPModel {
public function getExpireYear() {
return $this->expire_year;
}
/**
* Deprecated method
*/
public function setExpire_year($expire_year) {
$this->expire_year = $expire_year;
return $this;
}
/**
* Deprecated method
*/
public function getExpire_year() {
return $this->expire_year;
}
}