/home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Endpoints
NameSizeModeActions
BalanceEndpoint.php23530644editdlrm
BalanceReportEndpoint.php20480644editdlrm
BalanceTransactionEndpoint.php20860644editdlrm
ChargebackEndpoint.php13720644editdlrm
ClientEndpoint.php18100644editdlrm
ClientLinkEndpoint.php8840644editdlrm
CollectionEndpointAbstract.php15430644editdlrm
CustomerEndpoint.php33220644editdlrm
CustomerPaymentsEndpoint.php27730644editdlrm
EndpointAbstract.php51630644editdlrm
InvoiceEndpoint.php20640644editdlrm
MandateEndpoint.php41390644editdlrm
MethodEndpoint.php30880644editdlrm
OnboardingEndpoint.php24110644editdlrm
OrderEndpoint.php35750644editdlrm
OrderLineEndpoint.php39300644editdlrm
OrderPaymentEndpoint.php20360644editdlrm
OrderRefundEndpoint.php18990644editdlrm
OrganizationEndpoint.php16730644editdlrm
OrganizationPartnerEndpoint.php15020644editdlrm
PaymentCaptureEndpoint.php33230644editdlrm
PaymentChargebackEndpoint.php24040644editdlrm
PaymentEndpoint.php48150644editdlrm
PaymentLinkEndpoint.php24470644editdlrm
PaymentRefundEndpoint.php32030644editdlrm
PaymentRouteEndpoint.php21420644editdlrm
PermissionEndpoint.php16080644editdlrm
ProfileEndpoint.php38410644editdlrm
ProfileMethodEndpoint.php35780644editdlrm
RefundEndpoint.php13280644editdlrm
SettlementCaptureEndpoint.php11390644editdlrm
SettlementChargebackEndpoint.php11980644editdlrm
SettlementPaymentEndpoint.php11090644editdlrm
SettlementRefundEndpoint.php11660644editdlrm
SettlementsEndpoint.php22940644editdlrm
ShipmentEndpoint.php45450644editdlrm
SubscriptionEndpoint.php60950644editdlrm
TerminalEndpoint.php20550644editdlrm
WalletEndpoint.php10740644editdlrm
Edit: /home/techb158/ileadtechnology.com/vendor/mollie/mollie-api-php/src/Endpoints/EndpointAbstract.php (5163B)
client = $api; } /** * @param array $filters * @return string */ protected function buildQueryString(array $filters) { if (empty($filters)) { return ""; } foreach ($filters as $key => $value) { if ($value === true) { $filters[$key] = "true"; } if ($value === false) { $filters[$key] = "false"; } } return "?" . http_build_query($filters, "", "&"); } /** * @param array $body * @param array $filters * @return mixed * @throws ApiException */ protected function rest_create(array $body, array $filters) { $result = $this->client->performHttpCall( self::REST_CREATE, $this->getResourcePath() . $this->buildQueryString($filters), $this->parseRequestBody($body) ); return ResourceFactory::createFromApiResult($result, $this->getResourceObject()); } /** * Sends a PATCH request to a single Mollie API object. * * @param string $id * @param array $body * * @return mixed * @throws ApiException */ protected function rest_update($id, array $body = []) { if (empty($id)) { throw new ApiException("Invalid resource id."); } $id = urlencode($id); $result = $this->client->performHttpCall( self::REST_UPDATE, "{$this->getResourcePath()}/{$id}", $this->parseRequestBody($body) ); if ($result == null) { return null; } return ResourceFactory::createFromApiResult($result, $this->getResourceObject()); } /** * Retrieves a single object from the REST API. * * @param string $id Id of the object to retrieve. * @param array $filters * @return mixed * @throws ApiException */ protected function rest_read($id, array $filters) { if (empty($id)) { throw new ApiException("Invalid resource id."); } $id = urlencode($id); $result = $this->client->performHttpCall( self::REST_READ, "{$this->getResourcePath()}/{$id}" . $this->buildQueryString($filters) ); return ResourceFactory::createFromApiResult($result, $this->getResourceObject()); } /** * Sends a DELETE request to a single Molle API object. * * @param string $id * @param array $body * * @return mixed * @throws ApiException */ protected function rest_delete($id, array $body = []) { if (empty($id)) { throw new ApiException("Invalid resource id."); } $id = urlencode($id); $result = $this->client->performHttpCall( self::REST_DELETE, "{$this->getResourcePath()}/{$id}", $this->parseRequestBody($body) ); if ($result == null) { return null; } return ResourceFactory::createFromApiResult($result, $this->getResourceObject()); } /** * Get the object that is used by this API endpoint. Every API endpoint uses one type of object. * * @return BaseResource */ abstract protected function getResourceObject(); /** * @param string $resourcePath */ public function setResourcePath($resourcePath) { $this->resourcePath = strtolower($resourcePath); } /** * @return string * @throws ApiException */ public function getResourcePath() { if (strpos($this->resourcePath, "_") !== false) { [$parentResource, $childResource] = explode("_", $this->resourcePath, 2); if (empty($this->parentId)) { throw new ApiException("Subresource '{$this->resourcePath}' used without parent '$parentResource' ID."); } return "$parentResource/{$this->parentId}/$childResource"; } return $this->resourcePath; } /** * @param array $body * @return null|string */ protected function parseRequestBody(array $body) { if (empty($body)) { return null; } return @json_encode($body); } }