This repository has been archived on 2026-04-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
PayPal-PHP-SDK/lib/PayPal/Api/Transaction.php

314 lines
6.4 KiB
PHP

<?php
namespace PayPal\Api;
use PayPal\Common\PPModel;
use PayPal\Rest\ApiContext;
/**
* Class Transaction
*
* @property \PayPal\Api\Amount amount
* @property \PayPal\Api\Payee payee
* @property string description
* @property \PayPal\Api\ItemList item_list
* @property \PayPal\Api\RelatedResources related_resources
* @property \PayPal\Api\Transaction transactions
*/
class Transaction extends PPModel
{
/**
* Set Amount
* Amount being collected
*
* @param \PayPal\Api\Amount $amount
*
* @return $this
*/
public function setAmount($amount)
{
$this->amount = $amount;
return $this;
}
/**
* Get Amount
* Amount being collected
*
* @return \PayPal\Api\Amount
*/
public function getAmount()
{
return $this->amount;
}
/**
* Set Payee
* Recepient of the funds in this transaction
*
* @param \PayPal\Api\Payee $payee
*
* @return $this
*/
public function setPayee($payee)
{
$this->payee = $payee;
return $this;
}
/**
* Get Payee
* Recepient of the funds in this transaction
*
* @return \PayPal\Api\Payee
*/
public function getPayee()
{
return $this->payee;
}
/**
* Set Description
* Description of what is being paid for
*
* @param string $description
*
* @return $this
*/
public function setDescription($description)
{
$this->description = $description;
return $this;
}
/**
* Get Description
* Description of what is being paid for
*
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Set Item List
* List of items being paid for
*
* @param \PayPal\Api\ItemList $item_list
*
* @return $this
*/
public function setItemList($item_list)
{
$this->item_list = $item_list;
return $this;
}
/**
* Get Item List
* List of items being paid for
*
* @return \PayPal\Api\ItemList
*/
public function getItemList()
{
return $this->item_list;
}
/**
* Set Item List
* List of items being paid for
*
* @param \PayPal\Api\ItemList $item_list
*
* @deprecated Use setItemList
*
* @return $this
*/
public function setItem_list($item_list)
{
$this->item_list = $item_list;
return $this;
}
/**
* Get Item List
* List of items being paid for
*
* @deprecated Use getItemList
*
* @return \PayPal\Api\ItemList
*/
public function getItem_list()
{
return $this->item_list;
}
/**
* Set Related Resources
* 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;
}
/**
* Get Related Resources
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment
*
* @return \PayPal\Api\RelatedResources
*/
public function getRelatedResources()
{
return $this->related_resources;
}
/**
* Set Related Resources
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment
*
* @param \PayPal\Api\RelatedResources $related_resources
*
* @deprecated Use setRelatedResources
*
* @return $this
*/
public function setRelated_resources($related_resources)
{
$this->related_resources = $related_resources;
return $this;
}
/**
* Get Related Resources
* List of financial transactions (Sale, Authorization, Capture, Refund) related to the payment
*
* @deprecated Use getRelatedResources
*
* @return \PayPal\Api\RelatedResources
*/
public function getRelated_resources()
{
return $this->related_resources;
}
/**
* Set invoice number.
* Invoice number used to track the payment. 256 characters max.
*
* @param string $invoiceNumber
*
* @return $this
*/
public function setInvoiceNumber($invoiceNumber)
{
$this->invoice_number = $invoiceNumber;
return $this;
}
/**
* Get invoice number.
* Invoice number used to track the payment. 256 characters max.
*
* @return string
*/
public function getInvoiceNumber()
{
return $this->invoice_number;
}
/**
* Set free-form field.
* Free-form field for the use of clients. 256 characters max.
*
* @param string $custom
*
* @return $this
*/
public function setCustom($custom)
{
$this->custom = $custom;
return $this;
}
/**
* Get free-form field.
* Free-form field for the use of clients. 256 characters max.
*
* @return string
*/
public function getCustom()
{
return $this->custom;
}
/**
* Set soft descriptor.
* Soft descriptor used when charging this funding source. 22 characters max.
*
* @param string $softDescriptor
*
* @return $this
*/
public function setSoftDescriptor($softDescriptor)
{
$this->soft_descriptor = $softDescriptor;
return $this;
}
/**
* Get soft descriptor.
* Soft descriptor used when charging this funding source. 22 characters max.
*
* @return string
*/
public function getSoftDescriptor()
{
return $this->soft_descriptor;
}
/**
* Set Transactions
* Additional transactions for complex payment (Parallel and Chained) scenarios
*
* @param \PayPal\Api\self $transactions
*
* @return $this
*/
public function setTransactions($transactions)
{
$this->transactions = $transactions;
return $this;
}
/**
* Set Transactions
* Additional transactions for complex payment (Parallel and Chained) scenarios
*
* @return \PayPal\Api\self
*/
public function getTransactions()
{
return $this->transactions;
}
}