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

@@ -71,31 +71,6 @@ class MerchantPreferences extends PayPalModel
return $this->setup_fee;
}
/**
* Setup fee amount. Default is 0.
*
* @deprecated Instead use setSetupFee
*
* @param \PayPal\Api\Currency $setup_fee
* @return $this
*/
public function setSetup_fee($setup_fee)
{
$this->setup_fee = $setup_fee;
return $this;
}
/**
* Setup fee amount. Default is 0.
* @deprecated Instead use getSetupFee
*
* @return \PayPal\Api\Currency
*/
public function getSetup_fee()
{
return $this->setup_fee;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
*
@@ -120,31 +95,6 @@ class MerchantPreferences extends PayPalModel
return $this->cancel_url;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
*
* @deprecated Instead use setCancelUrl
*
* @param string $cancel_url
* @return $this
*/
public function setCancel_url($cancel_url)
{
$this->cancel_url = $cancel_url;
return $this;
}
/**
* Redirect URL on cancellation of agreement request. 1000 characters max.
* @deprecated Instead use getCancelUrl
*
* @return string
*/
public function getCancel_url()
{
return $this->cancel_url;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
*
@@ -169,31 +119,6 @@ class MerchantPreferences extends PayPalModel
return $this->return_url;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
*
* @deprecated Instead use setReturnUrl
*
* @param string $return_url
* @return $this
*/
public function setReturn_url($return_url)
{
$this->return_url = $return_url;
return $this;
}
/**
* Redirect URL on creation of agreement request. 1000 characters max.
* @deprecated Instead use getReturnUrl
*
* @return string
*/
public function getReturn_url()
{
return $this->return_url;
}
/**
* Notify URL on agreement creation. 1000 characters max.
*
@@ -218,31 +143,6 @@ class MerchantPreferences extends PayPalModel
return $this->notify_url;
}
/**
* Notify URL on agreement creation. 1000 characters max.
*
* @deprecated Instead use setNotifyUrl
*
* @param string $notify_url
* @return $this
*/
public function setNotify_url($notify_url)
{
$this->notify_url = $notify_url;
return $this;
}
/**
* Notify URL on agreement creation. 1000 characters max.
* @deprecated Instead use getNotifyUrl
*
* @return string
*/
public function getNotify_url()
{
return $this->notify_url;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
*
@@ -266,31 +166,6 @@ class MerchantPreferences extends PayPalModel
return $this->max_fail_attempts;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
*
* @deprecated Instead use setMaxFailAttempts
*
* @param string $max_fail_attempts
* @return $this
*/
public function setMax_fail_attempts($max_fail_attempts)
{
$this->max_fail_attempts = $max_fail_attempts;
return $this;
}
/**
* Total number of failed attempts allowed. Default is 0, representing an infinite number of failed attempts.
* @deprecated Instead use getMaxFailAttempts
*
* @return string
*/
public function getMax_fail_attempts()
{
return $this->max_fail_attempts;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
*
@@ -314,31 +189,6 @@ class MerchantPreferences extends PayPalModel
return $this->auto_bill_amount;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
*
* @deprecated Instead use setAutoBillAmount
*
* @param string $auto_bill_amount
* @return $this
*/
public function setAuto_bill_amount($auto_bill_amount)
{
$this->auto_bill_amount = $auto_bill_amount;
return $this;
}
/**
* Allow auto billing for the outstanding amount of the agreement in the next cycle. Allowed values: `YES`, `NO`. Default is `NO`.
* @deprecated Instead use getAutoBillAmount
*
* @return string
*/
public function getAuto_bill_amount()
{
return $this->auto_bill_amount;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
*
@@ -362,31 +212,6 @@ class MerchantPreferences extends PayPalModel
return $this->initial_fail_amount_action;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
*
* @deprecated Instead use setInitialFailAmountAction
*
* @param string $initial_fail_amount_action
* @return $this
*/
public function setInitial_fail_amount_action($initial_fail_amount_action)
{
$this->initial_fail_amount_action = $initial_fail_amount_action;
return $this;
}
/**
* Action to take if a failure occurs during initial payment. Allowed values: `CONTINUE`, `CANCEL`. Default is continue.
* @deprecated Instead use getInitialFailAmountAction
*
* @return string
*/
public function getInitial_fail_amount_action()
{
return $this->initial_fail_amount_action;
}
/**
* Payment types that are accepted for this plan.
*
@@ -410,31 +235,6 @@ class MerchantPreferences extends PayPalModel
return $this->accepted_payment_type;
}
/**
* Payment types that are accepted for this plan.
*
* @deprecated Instead use setAcceptedPaymentType
*
* @param string $accepted_payment_type
* @return $this
*/
public function setAccepted_payment_type($accepted_payment_type)
{
$this->accepted_payment_type = $accepted_payment_type;
return $this;
}
/**
* Payment types that are accepted for this plan.
* @deprecated Instead use getAcceptedPaymentType
*
* @return string
*/
public function getAccepted_payment_type()
{
return $this->accepted_payment_type;
}
/**
* char_set for this plan.
*
@@ -458,29 +258,4 @@ class MerchantPreferences extends PayPalModel
return $this->char_set;
}
/**
* char_set for this plan.
*
* @deprecated Instead use setCharSet
*
* @param string $char_set
* @return $this
*/
public function setChar_set($char_set)
{
$this->char_set = $char_set;
return $this;
}
/**
* char_set for this plan.
* @deprecated Instead use getCharSet
*
* @return string
*/
public function getChar_set()
{
return $this->char_set;
}
}