for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Korobovn\CloudPayments\Message\Request;
use Korobovn\CloudPayments\Message\Request\Model\CancelPaymentModel;
use Korobovn\CloudPayments\Message\Request\Model\ModelInterface;
use Korobovn\CloudPayments\Message\Response\InvalidRequestResponse;
use Korobovn\CloudPayments\Message\Response\SuccessResponse;
use Korobovn\CloudPayments\Message\Strategy\StrategyInterface;
use Korobovn\CloudPayments\Message\Strategy\SuccessStrategy;
/**
* @method CancelPaymentModel getModel()
* @method InvalidRequestResponse|SuccessResponse send()
* @method static CancelPaymentRequest create()
*
* @see https://developers.cloudpayments.ru/#otmena-oplaty
*/
class CancelPaymentRequest extends AbstractRequest
{
* {@inheritDoc}
protected function getRelativeUrl(): string
return '/payments/void';
}
public function createModel(): ModelInterface
return new CancelPaymentModel;
public function getStrategy(): StrategyInterface
return new SuccessStrategy;