public function __construct(string $merchantId, string $payId, int $totalAmount = null)
 {
     Validator::checkPayId($payId);
     $this->merchantId = $merchantId;
     $this->payId = $payId;
     $this->totalAmount = $totalAmount;
 }
 public function __construct(DateTimeImmutable $responseDateTime, ResultCode $resultCode, string $resultMessage, string $customerId = null)
 {
     Validator::checkCustomerId($customerId);
     $this->responseDateTime = $responseDateTime;
     $this->resultCode = $resultCode;
     $this->resultMessage = $resultMessage;
     $this->customerId = $customerId;
 }
 public function __construct(string $merchantId, string $origPayId, string $orderId, Price $price = null, string $description = null)
 {
     Validator::checkPayId($origPayId);
     Validator::checkOrderId($orderId);
     if ($description !== null) {
         Validator::checkDescription($description);
     }
     $this->merchantId = $merchantId;
     $this->origPayId = $origPayId;
     $this->orderId = $orderId;
     $this->price = $price;
     $this->description = $description;
 }
 public function __construct(string $payId, DateTimeImmutable $responseDateTime, ResultCode $resultCode, string $resultMessage, PaymentStatus $paymentStatus = null, string $authCode = null, string $merchantData = null, array $extensions = [])
 {
     Validator::checkPayId($payId);
     if ($merchantData !== null) {
         Validator::checkMerchantData($merchantData);
     }
     $this->payId = $payId;
     $this->responseDateTime = $responseDateTime;
     $this->resultCode = $resultCode;
     $this->resultMessage = $resultMessage;
     $this->paymentStatus = $paymentStatus;
     $this->authCode = $authCode;
     $this->merchantData = $merchantData;
     $this->extensions = $extensions;
 }
 /**
  * @param string $merchantId
  * @param string $payId
  */
 public function __construct(string $merchantId, string $payId)
 {
     Validator::checkPayId($payId);
     $this->merchantId = $merchantId;
     $this->payId = $payId;
 }
 public function __construct(string $merchantId, string $customerId)
 {
     Validator::checkCustomerId($customerId);
     $this->merchantId = $merchantId;
     $this->customerId = $customerId;
 }
 public function __construct(string $merchantId, string $orderId, PayOperation $payOperation, PayMethod $payMethod, bool $closePayment, string $returnUrl, HttpMethod $returnMethod, Cart $cart, string $description, string $merchantData = null, string $customerId = null, Language $language, int $ttlSec = null, int $logoVersion = null, int $colorSchemeVersion = null)
 {
     Validator::checkOrderId($orderId);
     Validator::checkReturnUrl($returnUrl);
     Validator::checkDescription($description);
     if ($merchantData !== null) {
         Validator::checkMerchantData($merchantData);
     }
     if ($customerId !== null) {
         Validator::checkCustomerId($customerId);
     }
     if ($ttlSec !== null) {
         Validator::checkTtlSec($ttlSec);
     }
     $this->merchantId = $merchantId;
     $this->orderId = $orderId;
     $this->payOperation = $payOperation;
     $this->payMethod = $payMethod;
     $this->closePayment = $closePayment;
     $this->returnUrl = $returnUrl;
     $this->returnMethod = $returnMethod;
     $this->cart = $cart;
     $this->description = $description;
     $this->merchantData = $merchantData;
     $this->customerId = $customerId;
     $this->language = $language;
     $this->ttlSec = $ttlSec;
     $this->logoVersion = $logoVersion;
     $this->colorSchemeVersion = $colorSchemeVersion;
 }