for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Cakasim\Payone\Sdk\Api\Message\Payment;
use Cakasim\Payone\Sdk\Api\Message\Payment\Parameter\Amount;
use Cakasim\Payone\Sdk\Api\Message\Payment\Parameter\Currency;
use Cakasim\Payone\Sdk\Api\Message\Request;
/**
* Represents a payment (pre)authorization request.
*
* @author Fabian Böttcher <[email protected]>
* @since 0.1.0
*/
class AuthorizationRequest extends Request implements AuthorizationRequestInterface
{
use Amount,
Currency;
* @inheritDoc
public function getSubAccountId(): ?string
return $this->parameters['aid'] ?? null;
}
public function getClearingType(): ?string
return $this->parameters['clearingtype'] ?? null;
public function getReference(): ?string
return $this->parameters['reference'] ?? null;
* Sets the custom reference of this transaction.
* @param string $reference The reference for this transaction.
* @return $this
public function setReference(string $reference): self
$this->parameters['reference'] = $reference;
return $this;