Files
interblue.pl/modules/x13allegro/classes/php70/Api/Model/Offers/TaxSettings/Rate.php
2024-10-25 14:16:28 +02:00

26 lines
517 B
PHP

<?php
namespace x13allegro\Api\Model\Offers\TaxSettings;
use JsonSerializable;
final class Rate implements JsonSerializable
{
/** @var string */
public $rate;
/** @var string */
public $countryCode;
/**
* @return array
*/
public function jsonSerialize()
{
return [
'rate' => (is_numeric($this->rate) ? number_format((float)str_replace(',', '.', $this->rate), 2, '.', '') : $this->rate),
'countryCode' => $this->countryCode
];
}
}