first commit
This commit is contained in:
100
modules/payu/tools/sdk/OpenPayU/Model/Shop.php
Normal file
100
modules/payu/tools/sdk/OpenPayU/Model/Shop.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
|
||||
class Shop
|
||||
{
|
||||
/** @var string */
|
||||
private $shopId;
|
||||
|
||||
/** @var string */
|
||||
private $name;
|
||||
|
||||
/** @var string */
|
||||
private $currencyCode;
|
||||
|
||||
/** @var Balance */
|
||||
private $balance;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getShopId()
|
||||
{
|
||||
return $this->shopId;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $shopId
|
||||
* @return Shop
|
||||
*/
|
||||
public function setShopId($shopId)
|
||||
{
|
||||
$this->shopId = $shopId;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @return Shop
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCurrencyCode()
|
||||
{
|
||||
return $this->currencyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $currencyCode
|
||||
* @return Shop
|
||||
*/
|
||||
public function setCurrencyCode($currencyCode)
|
||||
{
|
||||
$this->currencyCode = $currencyCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return Balance
|
||||
*/
|
||||
public function getBalance()
|
||||
{
|
||||
return $this->balance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Balance $balance
|
||||
* @return Shop
|
||||
*/
|
||||
public function setBalance($balance)
|
||||
{
|
||||
$this->balance = $balance;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return 'Shop [currencyCode=' . $this->shopId .
|
||||
', name=' . $this->name .
|
||||
', currencyCode=' . $this->currencyCode .
|
||||
', balance=' . $this->balance .
|
||||
']';
|
||||
}
|
||||
}
|
||||
78
modules/payu/tools/sdk/OpenPayU/Model/Shop/Balance.php
Normal file
78
modules/payu/tools/sdk/OpenPayU/Model/Shop/Balance.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
class Balance
|
||||
{
|
||||
/** @var string */
|
||||
private $currencyCode;
|
||||
|
||||
/** @var int */
|
||||
private $total;
|
||||
|
||||
/** @var int */
|
||||
private $available;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getCurrencyCode()
|
||||
{
|
||||
return $this->currencyCode;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $currencyCode
|
||||
* @return Balance
|
||||
*/
|
||||
public function setCurrencyCode($currencyCode)
|
||||
{
|
||||
$this->currencyCode = $currencyCode;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getTotal()
|
||||
{
|
||||
return $this->total;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $total
|
||||
* @return Balance
|
||||
*/
|
||||
public function setTotal($total)
|
||||
{
|
||||
$this->total = $total;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getAvailable()
|
||||
{
|
||||
return $this->available;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $available
|
||||
* @return Balance
|
||||
*/
|
||||
public function setAvailable($available)
|
||||
{
|
||||
$this->available = $available;
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function __toString()
|
||||
{
|
||||
return 'Balance [currencyCode=' . $this->currencyCode .
|
||||
', total=' . $this->total .
|
||||
', available=' . $this->available .
|
||||
']';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user