src/Api/Endpoints/Subscription/Payments.php
<?php
declare(strict_types=1);
/*
* This file is part of Paddle SDK.
*
* (c) KodeKeep <hello@kodekeep.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace KodeKeep\Paddle\Api\Endpoints\Subscription;
use KodeKeep\Paddle\Api\Endpoints\Endpoint;
class Payments extends Endpoint
{
/**
* @see https://developer.paddle.com/api-reference/subscription-api/payments/listpayments
*/
public function all(array $data = []): array
{
return $this->post('/2.0/subscription/payments', $data);
}
/**
* @see https://developer.paddle.com/api-reference/subscription-api/payments/updatepayment
*/
public function reschedule(array $data = []): array
{
return $this->post('/2.0/subscription/payments_reschedule', $data);
}
}