![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/job-board.corals.io/vendor/xendit/xendit-php/src/ |
<?php /** * Payouts.php * php version 7.2.0 * * @category Class * @package Xendit * @author Ellen <[email protected]> * @license https://opensource.org/licenses/MIT MIT License * @link https://api.xendit.co */ namespace Xendit; /** * Class Payouts * * @category Class * @package Xendit * @author Ellen <[email protected]> * @license https://opensource.org/licenses/MIT MIT License * @link https://api.xendit.co */ class Payouts { use ApiOperations\Request; use ApiOperations\Create; use ApiOperations\Retrieve; /** * Instantiate relative URL * * @return string */ public static function classUrl() { return "/payouts"; } /** * Instantiate required params for Create * * @return array */ public static function createReqParams() { return ['external_id', 'amount', 'email']; } /** * Void a payout * * @param string $id payout ID * * @return array[ * 'id'=> string, * 'external_id'=> string, * 'amount'=> int, * 'merchant_name'=> string, * 'status'=> 'ISSUED' || 'DISBURSING' || 'VOIDED' || 'LOCKED' * || 'COMPLETED' || 'FAILED', * 'expiration_timestamp'=> string, * 'created'=> string', * 'email'=> string, * 'payout_url'=> string * ] * @throws Exceptions\ApiException */ public static function void($id) { $url = static::classUrl() . '/' . $id . '/void'; return static::_request('POST', $url); } }