| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/plugins/djcatalog2payment/paypal/lib/PayPal/Api/ |
Upload File : |
<?php
namespace PayPal\Api;
use PayPal\Common\PayPalModel;
/**
* Class PaymentHistory
*
* List of Payments made by the seller.
*
* @package PayPal\Api
*
* @property \PayPal\Api\Payment[] payments
* @property int count
* @property string next_id
*/
class PaymentHistory extends PayPalModel
{
/**
* A list of Payment resources
*
* @param \PayPal\Api\Payment[] $payments
*
* @return $this
*/
public function setPayments($payments)
{
$this->payments = $payments;
return $this;
}
/**
* A list of Payment resources
*
* @return \PayPal\Api\Payment[]
*/
public function getPayments()
{
return $this->payments;
}
/**
* Append Payments to the list.
*
* @param \PayPal\Api\Payment $payment
* @return $this
*/
public function addPayment($payment)
{
if (!$this->getPayments()) {
return $this->setPayments(array($payment));
} else {
return $this->setPayments(
array_merge($this->getPayments(), array($payment))
);
}
}
/**
* Remove Payments from the list.
*
* @param \PayPal\Api\Payment $payment
* @return $this
*/
public function removePayment($payment)
{
return $this->setPayments(
array_diff($this->getPayments(), array($payment))
);
}
/**
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
*
* @param int $count
*
* @return $this
*/
public function setCount($count)
{
$this->count = $count;
return $this;
}
/**
* Number of items returned in each range of results. Note that the last results range could have fewer items than the requested number of items. Maximum value: 20.
*
* @return int
*/
public function getCount()
{
return $this->count;
}
/**
* Identifier of the next element to get the next range of results.
*
* @param string $next_id
*
* @return $this
*/
public function setNextId($next_id)
{
$this->next_id = $next_id;
return $this;
}
/**
* Identifier of the next element to get the next range of results.
*
* @return string
*/
public function getNextId()
{
return $this->next_id;
}
}