Файл: sngine-v2.8/Script/includes/libs/PayPal/paypal/rest-api-sdk-php/lib/PayPal/Api/RelatedResources.php
Строк: 100
<?php
namespace PayPalApi;
use PayPalCommonPayPalModel;
/**
* Class RelatedResources
*
* Each one representing a financial transaction (Sale, Authorization, Capture, Refund) related to the payment.
*
* @package PayPalApi
*
* @property PayPalApiSale sale
* @property PayPalApiAuthorization authorization
* @property PayPalApiOrder order
* @property PayPalApiCapture capture
* @property PayPalApiRefund refund
*/
class RelatedResources extends PayPalModel
{
/**
* Sale transaction
*
* @param PayPalApiSale $sale
*
* @return $this
*/
public function setSale($sale)
{
$this->sale = $sale;
return $this;
}
/**
* Sale transaction
*
* @return PayPalApiSale
*/
public function getSale()
{
return $this->sale;
}
/**
* Authorization transaction
*
* @param PayPalApiAuthorization $authorization
*
* @return $this
*/
public function setAuthorization($authorization)
{
$this->authorization = $authorization;
return $this;
}
/**
* Authorization transaction
*
* @return PayPalApiAuthorization
*/
public function getAuthorization()
{
return $this->authorization;
}
/**
* Order transaction
*
* @param PayPalApiOrder $order
*
* @return $this
*/
public function setOrder($order)
{
$this->order = $order;
return $this;
}
/**
* Order transaction
*
* @return PayPalApiOrder
*/
public function getOrder()
{
return $this->order;
}
/**
* Capture transaction
*
* @param PayPalApiCapture $capture
*
* @return $this
*/
public function setCapture($capture)
{
$this->capture = $capture;
return $this;
}
/**
* Capture transaction
*
* @return PayPalApiCapture
*/
public function getCapture()
{
return $this->capture;
}
/**
* Refund transaction
*
* @param PayPalApiRefund $refund
*
* @return $this
*/
public function setRefund($refund)
{
$this->refund = $refund;
return $this;
}
/**
* Refund transaction
*
* @return PayPalApiRefund
*/
public function getRefund()
{
return $this->refund;
}
}