diff --git a/Api/X/X2/Request.php b/Api/X/X2/Request.php index 4384682..00b5df4 100644 --- a/Api/X/X2/Request.php +++ b/Api/X/X2/Request.php @@ -41,6 +41,9 @@ class Request extends X\Request /** @var bool trans/onlyauth */ protected $onlyAuth = true; + /** @var bool wmb_denomination */ + protected $wmbDenomination = true; + /** * @param string $authType * @@ -72,7 +75,7 @@ protected function getValidationRules() return array( RequestValidator::TYPE_REQUIRED => array( 'transactionExternalId', 'payerPurse', 'payeePurse', 'amount', - 'invoiceId', 'onlyAuth', + 'invoiceId', 'onlyAuth', 'wmbDenomination' ), RequestValidator::TYPE_DEPEND_REQUIRED => array( 'signerWmid' => array('authType' => array(self::AUTH_CLASSIC)), @@ -100,6 +103,7 @@ public function getData() $xml .= self::xmlElement('wminvid', $this->invoiceId); $xml .= self::xmlElement('onlyauth', (int)$this->onlyAuth); $xml .= ''; + $xml .= self::xmlElement('wmb_denomination', $this->wmbDenomination); $xml .= ''; return $xml; @@ -277,4 +281,20 @@ public function setOnlyAuth($onlyAuth) { $this->onlyAuth = (bool)$onlyAuth; } + + /** + * @return bool + */ + public function getWmbDenomination() + { + return $this->wmbDenomination; + } + + /** + * @param bool $wmbDenomination + */ + public function setWmbDenomination($wmbDenomination) + { + $this->wmbDenomination = (bool)$wmbDenomination; + } }