forked from LiveCarta/PayPal-PHP-SDK
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:
@@ -28,23 +28,6 @@ use PayPal\Validation\ArgumentValidator;
|
||||
*/
|
||||
class Refund extends PayPalModel implements IResource
|
||||
{
|
||||
/**
|
||||
* OAuth Credentials to use for this call
|
||||
*
|
||||
* @var \PayPal\Auth\OAuthTokenCredential $credential
|
||||
*/
|
||||
protected static $credential;
|
||||
|
||||
/**
|
||||
* Sets Credential
|
||||
*
|
||||
* @deprecated Pass ApiContext to create/get methods instead
|
||||
* @param \PayPal\Auth\OAuthTokenCredential $credential
|
||||
*/
|
||||
public static function setCredential($credential)
|
||||
{
|
||||
self::$credential = $credential;
|
||||
}
|
||||
|
||||
/**
|
||||
* Identifier of the refund transaction in UTC ISO8601 format.
|
||||
@@ -94,31 +77,6 @@ class Refund extends PayPalModel implements IResource
|
||||
return $this->create_time;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time the resource was created in UTC ISO8601 format.
|
||||
*
|
||||
* @deprecated Instead use setCreateTime
|
||||
*
|
||||
* @param string $create_time
|
||||
* @return $this
|
||||
*/
|
||||
public function setCreate_time($create_time)
|
||||
{
|
||||
$this->create_time = $create_time;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time the resource was created in UTC ISO8601 format.
|
||||
* @deprecated Instead use getCreateTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCreate_time()
|
||||
{
|
||||
return $this->create_time;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time the resource was last updated in UTC ISO8601 format.
|
||||
*
|
||||
@@ -143,31 +101,6 @@ class Refund extends PayPalModel implements IResource
|
||||
return $this->update_time;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time the resource was last updated in UTC ISO8601 format.
|
||||
*
|
||||
* @deprecated Instead use setUpdateTime
|
||||
*
|
||||
* @param string $update_time
|
||||
* @return $this
|
||||
*/
|
||||
public function setUpdate_time($update_time)
|
||||
{
|
||||
$this->update_time = $update_time;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Time the resource was last updated in UTC ISO8601 format.
|
||||
* @deprecated Instead use getUpdateTime
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getUpdate_time()
|
||||
{
|
||||
return $this->update_time;
|
||||
}
|
||||
|
||||
/**
|
||||
* Details including both refunded amount (to Payer) and refunded fee (to Payee).If amount is not specified, it's assumed to be full refund.
|
||||
*
|
||||
@@ -240,31 +173,6 @@ class Refund extends PayPalModel implements IResource
|
||||
return $this->sale_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Sale transaction being refunded.
|
||||
*
|
||||
* @deprecated Instead use setSaleId
|
||||
*
|
||||
* @param string $sale_id
|
||||
* @return $this
|
||||
*/
|
||||
public function setSale_id($sale_id)
|
||||
{
|
||||
$this->sale_id = $sale_id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Sale transaction being refunded.
|
||||
* @deprecated Instead use getSaleId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getSale_id()
|
||||
{
|
||||
return $this->sale_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Capture transaction being refunded.
|
||||
*
|
||||
@@ -289,31 +197,6 @@ class Refund extends PayPalModel implements IResource
|
||||
return $this->capture_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Capture transaction being refunded.
|
||||
*
|
||||
* @deprecated Instead use setCaptureId
|
||||
*
|
||||
* @param string $capture_id
|
||||
* @return $this
|
||||
*/
|
||||
public function setCapture_id($capture_id)
|
||||
{
|
||||
$this->capture_id = $capture_id;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Capture transaction being refunded.
|
||||
* @deprecated Instead use getCaptureId
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCapture_id()
|
||||
{
|
||||
return $this->capture_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Payment resource that this transaction is based on.
|
||||
*
|
||||
@@ -338,31 +221,6 @@ class Refund extends PayPalModel implements IResource
|
||||
return $this->parent_payment;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Payment resource that this transaction is based on.
|
||||
*
|
||||
* @deprecated Instead use setParentPayment
|
||||
*
|
||||
* @param string $parent_payment
|
||||
* @return $this
|
||||
*/
|
||||
public function setParent_payment($parent_payment)
|
||||
{
|
||||
$this->parent_payment = $parent_payment;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* ID of the Payment resource that this transaction is based on.
|
||||
* @deprecated Instead use getParentPayment
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getParent_payment()
|
||||
{
|
||||
return $this->parent_payment;
|
||||
}
|
||||
|
||||
/**
|
||||
* Description of what is being refunded for.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user