Removed Deprecated Getter and Setters

- Removed Deprecated Getter Setters from all Model Classes
- All Camelcase getters and setters are removed. Please use first letter uppercase syntax
- E.g. instead of using get_notify_url(), use getNotifyUrl() instead
This commit is contained in:
japatel
2015-01-08 22:23:58 -06:00
parent ed2a4fd41e
commit b011d17cde
150 changed files with 47 additions and 10994 deletions

View File

@@ -122,31 +122,6 @@ class PaymentCard extends PayPalModel
return $this->expire_month;
}
/**
* 2 digit card expiry month.
*
* @deprecated Instead use setExpireMonth
*
* @param int $expire_month
* @return $this
*/
public function setExpire_month($expire_month)
{
$this->expire_month = $expire_month;
return $this;
}
/**
* 2 digit card expiry month.
* @deprecated Instead use getExpireMonth
*
* @return int
*/
public function getExpire_month()
{
return $this->expire_month;
}
/**
* 4 digit card expiry year.
*
@@ -170,31 +145,6 @@ class PaymentCard extends PayPalModel
return $this->expire_year;
}
/**
* 4 digit card expiry year.
*
* @deprecated Instead use setExpireYear
*
* @param int $expire_year
* @return $this
*/
public function setExpire_year($expire_year)
{
$this->expire_year = $expire_year;
return $this;
}
/**
* 4 digit card expiry year.
* @deprecated Instead use getExpireYear
*
* @return int
*/
public function getExpire_year()
{
return $this->expire_year;
}
/**
* 2 digit card start month.
*
@@ -218,31 +168,6 @@ class PaymentCard extends PayPalModel
return $this->start_month;
}
/**
* 2 digit card start month.
*
* @deprecated Instead use setStartMonth
*
* @param int $start_month
* @return $this
*/
public function setStart_month($start_month)
{
$this->start_month = $start_month;
return $this;
}
/**
* 2 digit card start month.
* @deprecated Instead use getStartMonth
*
* @return int
*/
public function getStart_month()
{
return $this->start_month;
}
/**
* 4 digit card start year.
*
@@ -266,31 +191,6 @@ class PaymentCard extends PayPalModel
return $this->start_year;
}
/**
* 4 digit card start year.
*
* @deprecated Instead use setStartYear
*
* @param int $start_year
* @return $this
*/
public function setStart_year($start_year)
{
$this->start_year = $start_year;
return $this;
}
/**
* 4 digit card start year.
* @deprecated Instead use getStartYear
*
* @return int
*/
public function getStart_year()
{
return $this->start_year;
}
/**
* Card validation code. Only supported when making a Payment, but not when saving a payment card for future use.
*
@@ -337,31 +237,6 @@ class PaymentCard extends PayPalModel
return $this->first_name;
}
/**
* Card holder's first name.
*
* @deprecated Instead use setFirstName
*
* @param string $first_name
* @return $this
*/
public function setFirst_name($first_name)
{
$this->first_name = $first_name;
return $this;
}
/**
* Card holder's first name.
* @deprecated Instead use getFirstName
*
* @return string
*/
public function getFirst_name()
{
return $this->first_name;
}
/**
* Card holder's last name.
*
@@ -385,31 +260,6 @@ class PaymentCard extends PayPalModel
return $this->last_name;
}
/**
* Card holder's last name.
*
* @deprecated Instead use setLastName
*
* @param string $last_name
* @return $this
*/
public function setLast_name($last_name)
{
$this->last_name = $last_name;
return $this;
}
/**
* Card holder's last name.
* @deprecated Instead use getLastName
*
* @return string
*/
public function getLast_name()
{
return $this->last_name;
}
/**
* Billing Address associated with this card.
*
@@ -433,31 +283,6 @@ class PaymentCard extends PayPalModel
return $this->billing_address;
}
/**
* Billing Address associated with this card.
*
* @deprecated Instead use setBillingAddress
*
* @param \PayPal\Api\Address $billing_address
* @return $this
*/
public function setBilling_address($billing_address)
{
$this->billing_address = $billing_address;
return $this;
}
/**
* Billing Address associated with this card.
* @deprecated Instead use getBillingAddress
*
* @return \PayPal\Api\Address
*/
public function getBilling_address()
{
return $this->billing_address;
}
/**
* A unique identifier of the customer to whom this card account belongs. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
@@ -481,31 +306,6 @@ class PaymentCard extends PayPalModel
return $this->external_customer_id;
}
/**
* A unique identifier of the customer to whom this card account belongs. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
*
* @deprecated Instead use setExternalCustomerId
*
* @param string $external_customer_id
* @return $this
*/
public function setExternal_customer_id($external_customer_id)
{
$this->external_customer_id = $external_customer_id;
return $this;
}
/**
* A unique identifier of the customer to whom this card account belongs. Generated and provided by the facilitator. This is required when creating or using a stored funding instrument in vault.
* @deprecated Instead use getExternalCustomerId
*
* @return string
*/
public function getExternal_customer_id()
{
return $this->external_customer_id;
}
/**
* State of the funding instrument.
* Valid Values: ["EXPIRED", "ACTIVE"]
@@ -553,31 +353,6 @@ class PaymentCard extends PayPalModel
return $this->valid_until;
}
/**
* Date/Time until this resource can be used to fund a payment.
*
* @deprecated Instead use setValidUntil
*
* @param string $valid_until
* @return $this
*/
public function setValid_until($valid_until)
{
$this->valid_until = $valid_until;
return $this;
}
/**
* Date/Time until this resource can be used to fund a payment.
* @deprecated Instead use getValidUntil
*
* @return string
*/
public function getValid_until()
{
return $this->valid_until;
}
/**
* Sets Links
*