!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/dokan/script/vendor/mollie/mollie-api-php/src/Endpoints/   drwxrwxrwx
Free 13.09 GB of 57.97 GB (22.58%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     OrderLineEndpoint.php (2.23 KB)      -rwxrwxrwx
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Mollie\Api\Endpoints;

use 
Mollie\Api\Exceptions\ApiException;
use 
Mollie\Api\Resources\Order;
use 
Mollie\Api\Resources\OrderLine;
use 
Mollie\Api\Resources\OrderLineCollection;

class 
OrderLineEndpoint extends CollectionEndpointAbstract
{
    protected 
$resourcePath "orders_lines";

    
/**
     * @var string
     */
    
const RESOURCE_ID_PREFIX 'odl_';

    
/**
     * Get the object that is used by this API endpoint. Every API endpoint uses one
     * type of object.
     *
     * @return OrderLine
     */
    
protected function getResourceObject()
    {
        return new 
OrderLine($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 OrderLineCollection
     */
    
protected function getResourceCollectionObject($count$_links)
    {
        return new 
OrderLineCollection($count$_links);
    }

    
/**
     * 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;
    }
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0055 ]--