/home/techb158/immovalet.com/vendor/mollie/mollie-api-php/src/Endpoints
NameSizeModeActions
ChargebackEndpoint.php13720644editdlrm
CollectionEndpointAbstract.php4710644editdlrm
CustomerEndpoint.php33150644editdlrm
CustomerPaymentsEndpoint.php28450644editdlrm
EndpointAbstract.php64340644editdlrm
InvoiceEndpoint.php20410644editdlrm
MandateEndpoint.php43180644editdlrm
MethodEndpoint.php31230644editdlrm
OnboardingEndpoint.php21320644editdlrm
OrderEndpoint.php36000644editdlrm
OrderLineEndpoint.php30830644editdlrm
OrderPaymentEndpoint.php20990644editdlrm
OrderRefundEndpoint.php19340644editdlrm
OrganizationEndpoint.php16730644editdlrm
PaymentCaptureEndpoint.php17290644editdlrm
PaymentChargebackEndpoint.php16980644editdlrm
PaymentEndpoint.php47850644editdlrm
PaymentLinkEndpoint.php24400644editdlrm
PaymentRefundEndpoint.php23890644editdlrm
PermissionEndpoint.php16080644editdlrm
ProfileEndpoint.php41210644editdlrm
ProfileMethodEndpoint.php36180644editdlrm
RefundEndpoint.php13280644editdlrm
SettlementPaymentEndpoint.php11700644editdlrm
SettlementsEndpoint.php22940644editdlrm
ShipmentEndpoint.php46100644editdlrm
SubscriptionEndpoint.php59750644editdlrm
WalletEndpoint.php10530644editdlrm
Edit: /home/techb158/immovalet.com/vendor/mollie/mollie-api-php/src/Endpoints/OrderLineEndpoint.php (3083B)
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 OrderLineCollection */ protected function getResourceCollectionObject($count, $_links) { return new OrderLineCollection($count, $_links); } /** * Update a specific OrderLine resource. * * Will throw an ApiException if the order line id is invalid or the resource cannot be found. * * @param $orderId * @param string $orderlineId * * @param array $data * * @return \Mollie\Api\Resources\BaseResource|null * @throws \Mollie\Api\Exceptions\ApiException */ public function update($orderId, $orderlineId, array $data = []) { $this->parentId = $orderId; if (empty($orderlineId) || strpos($orderlineId, self::RESOURCE_ID_PREFIX) !== 0) { throw new ApiException("Invalid order line ID: '{$orderlineId}'. An order line ID should start with '".self::RESOURCE_ID_PREFIX."'."); } return parent::rest_update($orderlineId, $data); } /** * Cancel lines for the provided order. * The data array must contain a lines array. * You can pass an empty lines array if you want to cancel all eligible lines. * Returns null if successful. * * @param Order $order * @param array $data * * @return null * @throws ApiException */ public function cancelFor(Order $order, array $data) { return $this->cancelForId($order->id, $data); } /** * Cancel lines for the provided order id. * The data array must contain a lines array. * You can pass an empty lines array if you want to cancel all eligible lines. * Returns null if successful. * * @param string $orderId * @param array $data * * @return null * @throws ApiException */ public function cancelForId($orderId, array $data) { if (! isset($data['lines']) || ! is_array($data['lines'])) { throw new ApiException("A lines array is required."); } $this->parentId = $orderId; $this->client->performHttpCall( self::REST_DELETE, "{$this->getResourcePath()}", $this->parseRequestBody($data) ); return null; } }