first commit

This commit is contained in:
2024-10-25 14:16:28 +02:00
commit 925276dbb2
33795 changed files with 4780077 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
<?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
];
}
}