|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /home/matalashes/www/kite.mata-lashes.com/vendor/xendit/xendit-php/src/ |
Upload File : |
<?php
/**
* DisbursementChannels.php
* php version 7.2.0
*
* @category Class
* @package Xendit
* @author Ellen <ellen@xendit.co>
* @license https://opensource.org/licenses/MIT MIT License
* @link https://api.xendit.co
*/
namespace Xendit;
/**
* Class DisbursementChannels
*
* @category Class
* @package Xendit
* @author Ellen <ellen@xendit.co>
* @license https://opensource.org/licenses/MIT MIT License
* @link https://api.xendit.co
*/
class DisbursementChannels
{
use ApiOperations\Request;
use ApiOperations\Retrieve;
/**
* Instantiate base URL
*
* @return string
*/
public static function classUrl()
{
return '/disbursement-channels';
}
/**
* Send GET request to Get Disbursement Channels
*
* @param none
*
* @return array[
* [
* 'channel_code'=> 'PH_CIMB',
* 'name'=> 'CIMB Bank Philippines Inc',
* 'channel_category'=> 'BANK',
* 'currency'=> 'PHP',
* 'minimum'=> 50000,
* 'maximum'=> 200000000,
* 'minimum_increment'=> 0.01
* ], [
* 'channel_code'=> 'PH_CITI',
* 'name'=> 'Citibank, N.A.',
* 'channel_category'=> 'BANK',
* 'currency'=> 'PHP',
* 'minimum'=> 1,
* 'maximum'=> 999999999,
* 'minimum_increment'=> 1
* ]]
* @throws Exceptions\ApiException
*/
public static function getDisbursementChannels()
{
$url = '/disbursement-channels';
return static::_request('GET', static::classUrl());
}
/**
* Send GET request to Get Disbursement Channels by Channel Category
*
* @param string $channel_category channel category
* @param array $params extra parameters
*
* @return array[
* [
* 'channel_code'=> 'PH_CIMB',
* 'name'=> 'CIMB Bank Philippines Inc',
* 'channel_category'=> 'BANK',
* 'currency'=> 'PHP',
* 'minimum'=> 50000,
* 'maximum'=> 200000000,
* 'minimum_increment'=> 0.01
* ], [
* 'channel_code'=> 'PH_CITI',
* 'name'=> 'Citibank, N.A.',
* 'channel_category'=> 'BANK',
* 'currency'=> 'PHP',
* 'minimum'=> 1,
* 'maximum'=> 999999999,
* 'minimum_increment'=> 1
* ]]
* @throws Exceptions\ApiException
*/
public static function getDisbursementChannelsByChannelCategory($channel_category, $params = [])
{
$url = static::classUrl() . '?channel_category=' . $channel_category;
return static::_request('GET', $url, $params);
}
/**
* Send GET request to Get Disbursement Channels by Channel Code
*
* @param string $channel_code channel Code
* @param array $params extra parameters
*
* @return array[
* [
* 'channel_code'=> 'PH_CIMB',
* 'name'=> 'CIMB Bank Philippines Inc',
* 'channel_category'=> 'BANK',
* 'currency'=> 'PHP',
* 'minimum'=> 50000,
* 'maximum'=> 200000000,
* 'minimum_increment'=> 0.01
* ]]
* @throws Exceptions\ApiException
*/
public static function getDisbursementChannelsByChannelCode($channel_code, $params = [])
{
$url = static::classUrl() . '?channel_code=' . $channel_code;
return static::_request('GET', $url, $params);
}
}