/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources
Edit: /home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Resources/Settlement.php (4075B)
status === SettlementStatus::STATUS_OPEN;
}
/**
* Is this settlement pending?
*
* @return bool
*/
public function isPending()
{
return $this->status === SettlementStatus::STATUS_PENDING;
}
/**
* Is this settlement paid out?
*
* @return bool
*/
public function isPaidout()
{
return $this->status === SettlementStatus::STATUS_PAIDOUT;
}
/**
* Has this settlement failed?
*
* @return bool
*/
public function isFailed()
{
return $this->status === SettlementStatus::STATUS_FAILED;
}
/**
* Retrieve the first page of payments associated with this settlement.
*
* @param int|null $limit
* @param array $parameters
* @return PaymentCollection
* @throws \Mollie\Api\Exceptions\ApiException
*/
public function payments(int $limit = null, array $parameters = []): PaymentCollection
{
return $this->client->settlementPayments->pageForId(
$this->id,
null,
$limit,
$parameters
);
}
/**
* Retrieve the first page of refunds associated with this settlement.
*
* @param int|null $limit
* @param array $parameters
* @return RefundCollection
* @throws ApiException
*/
public function refunds(int $limit = null, array $parameters = [])
{
return $this->client->settlementRefunds->pageForId(
$this->id,
null,
$limit,
$parameters
);
}
/**
* Retrieve the first page of chargebacks associated with this settlement.
*
* @param int|null $limit
* @param array $parameters
* @return ChargebackCollection
* @throws ApiException
*/
public function chargebacks(int $limit = null, array $parameters = [])
{
return $this->client->settlementChargebacks->pageForId(
$this->id,
null,
$limit,
$parameters
);
}
/**
* Retrieve the first page of cap associated with this settlement.
*
* @param int|null $limit
* @param array $parameters
* @return CaptureCollection
* @throws ApiException
*/
public function captures(int $limit = null, array $parameters = [])
{
return $this->client->settlementCaptures->pageForId(
$this->id,
null,
$limit,
$parameters
);
}
}