PATH:
home
/
lab2454c
/
crypto.keyreum.com
/
vendor
/
mollie
/
mollie-api-php
/
src
/
Endpoints
<?php namespace Mollie\Api\Endpoints; use Mollie\Api\Resources\Order; use Mollie\Api\Resources\Refund; use Mollie\Api\Resources\RefundCollection; class OrderRefundEndpoint extends CollectionEndpointAbstract { protected $resourcePath = "orders_refunds"; /** * Get the object that is used by this API endpoint. Every API endpoint uses one type of object. * * @return Refund */ protected function getResourceObject() { return new Refund($this->client); } /** * Get the collection object that is used by this API endpoint. Every API endpoint uses one type of collection object. * * @param int $count * @param \stdClass $_links * * @return RefundCollection */ protected function getResourceCollectionObject($count, $_links) { return new RefundCollection($this->client, $count, $_links); } /** * Refund some order lines. You can provide an empty array for the * "lines" data to refund all eligible lines for this order. * * @param Order $order * @param array $data * @param array $filters * * @return Refund * @throws \Mollie\Api\Exceptions\ApiException */ public function createFor(Order $order, array $data, array $filters = []) { return $this->createForId($order->id, $data, $filters); } /** * Refund some order lines. You can provide an empty array for the * "lines" data to refund all eligible lines for this order. * * @param string $orderId * @param array $data * @param array $filters * * @return \Mollie\Api\Resources\BaseResource|\Mollie\Api\Resources\Refund * @throws \Mollie\Api\Exceptions\ApiException */ public function createForId($orderId, array $data, array $filters = []) { $this->parentId = $orderId; return parent::rest_create($data, $filters); } }
[-] OnboardingEndpoint.php
[edit]
[-] SettlementsEndpoint.php
[edit]
[-] MethodEndpoint.php
[edit]
[-] ProfileEndpoint.php
[edit]
[-] OrderRefundEndpoint.php
[edit]
[+]
..
[-] ShipmentEndpoint.php
[edit]
[-] CollectionEndpointAbstract.php
[edit]
[-] SubscriptionEndpoint.php
[edit]
[-] ProfileMethodEndpoint.php
[edit]
[-] OrderPaymentEndpoint.php
[edit]
[-] MandateEndpoint.php
[edit]
[-] EndpointAbstract.php
[edit]
[-] PaymentLinkEndpoint.php
[edit]
[-] WalletEndpoint.php
[edit]
[-] PaymentEndpoint.php
[edit]
[-] PaymentCaptureEndpoint.php
[edit]
[-] RefundEndpoint.php
[edit]
[-] CustomerEndpoint.php
[edit]
[-] InvoiceEndpoint.php
[edit]
[-] PermissionEndpoint.php
[edit]
[-] OrderEndpoint.php
[edit]
[-] ChargebackEndpoint.php
[edit]
[-] OrganizationEndpoint.php
[edit]
[-] CustomerPaymentsEndpoint.php
[edit]
[-] PaymentRefundEndpoint.php
[edit]
[-] OrderLineEndpoint.php
[edit]
[-] PaymentChargebackEndpoint.php
[edit]
[-] SettlementPaymentEndpoint.php
[edit]