/
home
/
techb158
/
immovalet.com
/
vendor
/
mollie
/
mollie-api-php
/
src
/
Resources
/
/home/techb158/immovalet.com/vendor/mollie/mollie-api-php/src/Resources
mkdir
upload
Name
Size
Mode
Actions
BaseCollection.php
586
0644
edit
dl
rm
BaseResource.php
313
0644
edit
dl
rm
Capture.php
1176
0644
edit
dl
rm
CaptureCollection.php
364
0644
edit
dl
rm
Chargeback.php
978
0644
edit
dl
rm
ChargebackCollection.php
373
0644
edit
dl
rm
CurrentProfile.php
809
0644
edit
dl
rm
CursorCollection.php
2468
0644
edit
dl
rm
Customer.php
5390
0644
edit
dl
rm
CustomerCollection.php
367
0644
edit
dl
rm
Invoice.php
1919
0644
edit
dl
rm
InvoiceCollection.php
364
0644
edit
dl
rm
Issuer.php
514
0644
edit
dl
rm
IssuerCollection.php
214
0644
edit
dl
rm
Mandate.php
1869
0644
edit
dl
rm
MandateCollection.php
773
0644
edit
dl
rm
Method.php
2103
0644
edit
dl
rm
MethodCollection.php
214
0644
edit
dl
rm
MethodPrice.php
734
0644
edit
dl
rm
MethodPriceCollection.php
219
0644
edit
dl
rm
Onboarding.php
1120
0644
edit
dl
rm
Order.php
12538
0644
edit
dl
rm
OrderCollection.php
358
0644
edit
dl
rm
OrderLine.php
8508
0644
edit
dl
rm
OrderLineCollection.php
587
0644
edit
dl
rm
Organization.php
1287
0644
edit
dl
rm
OrganizationCollection.php
379
0644
edit
dl
rm
Payment.php
17070
0644
edit
dl
rm
PaymentCollection.php
364
0644
edit
dl
rm
PaymentLink.php
2385
0644
edit
dl
rm
PaymentLinkCollection.php
377
0644
edit
dl
rm
Permission.php
396
0644
edit
dl
rm
PermissionCollection.php
222
0644
edit
dl
rm
Profile.php
5329
0644
edit
dl
rm
ProfileCollection.php
364
0644
edit
dl
rm
Refund.php
2699
0644
edit
dl
rm
RefundCollection.php
361
0644
edit
dl
rm
ResourceFactory.php
2046
0644
edit
dl
rm
Settlement.php
4602
0644
edit
dl
rm
SettlementCollection.php
373
0644
edit
dl
rm
Shipment.php
2708
0644
edit
dl
rm
ShipmentCollection.php
218
0644
edit
dl
rm
Subscription.php
4685
0644
edit
dl
rm
SubscriptionCollection.php
379
0644
edit
dl
rm
Edit:
/home/techb158/immovalet.com/vendor/mollie/mollie-api-php/src/Resources/Settlement.php
(4602B)
<?php namespace Mollie\Api\Resources; use Mollie\Api\Exceptions\ApiException; use Mollie\Api\MollieApiClient; use Mollie\Api\Types\SettlementStatus; class Settlement extends BaseResource { /** * @var string */ public $resource; /** * Id of the settlement. * * @var string */ public $id; /** * The settlement reference. This corresponds to an invoice that's in your Dashboard. * * @var string */ public $reference; /** * UTC datetime the payment was created in ISO-8601 format. * * @example "2013-12-25T10:30:54+00:00" * @var string */ public $createdAt; /** * The date on which the settlement was settled, in ISO 8601 format. When requesting the open settlement or next settlement the return value is null. * * @example "2013-12-25T10:30:54+00:00" * @var string|null */ public $settledAt; /** * Status of the settlement. * * @var string */ public $status; /** * Total settlement amount in euros. * * @var \stdClass */ public $amount; /** * Revenues and costs nested per year, per month, and per payment method. * * @var \stdClass */ public $periods; /** * The ID of the invoice on which this settlement is invoiced, if it has been invoiced. * * @var string|null */ public $invoiceId; /** * @var \stdClass */ public $_links; /** * Is this settlement still open? * * @return bool */ public function isOpen() { return $this->status === SettlementStatus::STATUS_OPEN; } /** * Is this settlement pending? * * @return bool */ public function isPending() { return $this->status === SettlementStatus::STATUS_PENDING; } /** * Is this settlement paidout? * * @return bool */ public function isPaidout() { return $this->status === SettlementStatus::STATUS_PAIDOUT; } /** * Is this settlement failed? * * @return bool */ public function isFailed() { return $this->status === SettlementStatus::STATUS_FAILED; } /** * Retrieves all payments associated with this settlement * * @param null $limit * @param array $parameters * @return PaymentCollection * @throws \Mollie\Api\Exceptions\ApiException */ public function payments($limit = null, array $parameters = []) { return $this->client->settlementPayments->pageForId($this->id, null, $limit, $parameters); } /** * Retrieves all refunds associated with this settlement * * @return RefundCollection * @throws ApiException */ public function refunds() { if (! isset($this->_links->refunds->href)) { return new RefundCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->refunds->href); return ResourceFactory::createCursorResourceCollection( $this->client, $result->_embedded->refunds, Refund::class, $result->_links ); } /** * Retrieves all chargebacks associated with this settlement * * @return ChargebackCollection * @throws ApiException */ public function chargebacks() { if (! isset($this->_links->chargebacks->href)) { return new ChargebackCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->chargebacks->href); return ResourceFactory::createCursorResourceCollection( $this->client, $result->_embedded->chargebacks, Chargeback::class, $result->_links ); } /** * Retrieves all captures associated with this settlement * * @return CaptureCollection * @throws ApiException */ public function captures() { if (! isset($this->_links->captures->href)) { return new CaptureCollection($this->client, 0, null); } $result = $this->client->performHttpCallToFullUrl(MollieApiClient::HTTP_GET, $this->_links->captures->href); return ResourceFactory::createCursorResourceCollection( $this->client, $result->_embedded->captures, Capture::class, $result->_links ); } }
Save
cmd:
run