forked from LiveCarta/PayPal-PHP-SDK
- 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
44 lines
1001 B
PHP
44 lines
1001 B
PHP
<?php
|
|
|
|
namespace PayPal\Api;
|
|
|
|
use PayPal\Common\PayPalModel;
|
|
use PayPal\Rest\ApiContext;
|
|
|
|
/**
|
|
* Class TransactionBase
|
|
*
|
|
* A transaction defines the contract of a payment - what is the payment for and who is fulfilling it.
|
|
*
|
|
* @package PayPal\Api
|
|
*
|
|
* @property \PayPal\Api\RelatedResources related_resources
|
|
*/
|
|
class TransactionBase extends CartBase
|
|
{
|
|
/**
|
|
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
|
|
*
|
|
*
|
|
* @param \PayPal\Api\RelatedResources $related_resources
|
|
*
|
|
* @return $this
|
|
*/
|
|
public function setRelatedResources($related_resources)
|
|
{
|
|
$this->related_resources = $related_resources;
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment.
|
|
*
|
|
* @return \PayPal\Api\RelatedResources[]
|
|
*/
|
|
public function getRelatedResources()
|
|
{
|
|
return $this->related_resources;
|
|
}
|
|
|
|
}
|