Skip to content

Commit

Permalink
feat: update source code to latest 14.1.0 (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzaczek authored Feb 13, 2024
1 parent 087d6ba commit 956dfb2
Show file tree
Hide file tree
Showing 7 changed files with 47 additions and 12 deletions.
10 changes: 5 additions & 5 deletions src/PocztaPolska/EnumType/StatusEPOEnum.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
class StatusEPOEnum extends AbstractStructEnumBase
{
/**
* Constant for value 'ERROR'
* @return string 'ERROR'
* Constant for value 'NIEZNANY'
* @return string 'NIEZNANY'
*/
public const VALUE_ERROR = 'ERROR';
public const VALUE_NIEZNANY = 'NIEZNANY';
/**
* Constant for value 'NADANIE'
* @return string 'NADANIE'
Expand Down Expand Up @@ -65,7 +65,7 @@ class StatusEPOEnum extends AbstractStructEnumBase

/**
* Return allowed values
* @uses self::VALUE_ERROR
* @uses self::VALUE_NIEZNANY
* @uses self::VALUE_NADANIE
* @uses self::VALUE_W_TRANSPORCIE
* @uses self::VALUE_CLO
Expand All @@ -80,7 +80,7 @@ class StatusEPOEnum extends AbstractStructEnumBase
public static function getValidValues(): array
{
return [
self::VALUE_ERROR,
self::VALUE_NIEZNANY,
self::VALUE_NADANIE,
self::VALUE_W_TRANSPORCIE,
self::VALUE_CLO,
Expand Down
2 changes: 1 addition & 1 deletion src/PocztaPolska/StructType/GetChecklistTemplateList.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function setIdChecklistTemplate(?array $idChecklistTemplate = null): self
public function addToIdChecklistTemplate(int $item): self
{
// validation for constraint: itemType
if (!is_int($item)) {
if (!(is_int($item) || ctype_digit($item))) {
throw new InvalidArgumentException(sprintf('The idChecklistTemplate property can only contain items of type int, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
}
$this->idChecklistTemplate[] = $item;
Expand Down
2 changes: 1 addition & 1 deletion src/PocztaPolska/StructType/GetKarty.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function setIdKarta(?array $idKarta = null): self
public function addToIdKarta(int $item): self
{
// validation for constraint: itemType
if (!is_int($item)) {
if (!(is_int($item) || ctype_digit($item))) {
throw new InvalidArgumentException(sprintf('The idKarta property can only contain items of type int, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
}
$this->idKarta[] = $item;
Expand Down
2 changes: 1 addition & 1 deletion src/PocztaPolska/StructType/GetPlacowkaPocztowa.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function setPni(array $pni): self
public function addToPni(int $item): self
{
// validation for constraint: itemType
if (!is_int($item)) {
if (!(is_int($item) || ctype_digit($item))) {
throw new InvalidArgumentException(sprintf('The pni property can only contain items of type int, %s given', is_object($item) ? get_class($item) : (is_array($item) ? implode(', ', $item) : gettype($item))), __LINE__);
}
// validation for constraint: maxOccurs(5000)
Expand Down
37 changes: 35 additions & 2 deletions src/PocztaPolska/StructType/ReklamacjaRozpatrzonaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@ class ReklamacjaRozpatrzonaType extends AbstractStructBase
* @var string|null
*/
protected ?string $idReklamacja = null;
/**
* The numerReklamacji
* @var string|null
*/
protected ?string $numerReklamacji = null;

/**
* Constructor method for reklamacjaRozpatrzonaType
Expand All @@ -79,6 +84,7 @@ class ReklamacjaRozpatrzonaType extends AbstractStructBase
* @uses ReklamacjaRozpatrzonaType::setNazwaJednostkiRozpatrujacej()
* @uses ReklamacjaRozpatrzonaType::setOsobaRozpatrujaca()
* @uses ReklamacjaRozpatrzonaType::setIdReklamacja()
* @uses ReklamacjaRozpatrzonaType::setNumerReklamacji()
* @param string $guid
* @param string $numerNadania
* @param string $rozstrzygniecie
Expand All @@ -88,8 +94,9 @@ class ReklamacjaRozpatrzonaType extends AbstractStructBase
* @param string $nazwaJednostkiRozpatrujacej
* @param string $osobaRozpatrujaca
* @param string $idReklamacja
* @param string $numerReklamacji
*/
public function __construct(?string $guid = null, ?string $numerNadania = null, ?string $rozstrzygniecie = null, ?int $przyznaneOdszkodowanie = null, ?string $uzasadnienie = null, ?string $dataRozpatrzenia = null, ?string $nazwaJednostkiRozpatrujacej = null, ?string $osobaRozpatrujaca = null, ?string $idReklamacja = null)
public function __construct(?string $guid = null, ?string $numerNadania = null, ?string $rozstrzygniecie = null, ?int $przyznaneOdszkodowanie = null, ?string $uzasadnienie = null, ?string $dataRozpatrzenia = null, ?string $nazwaJednostkiRozpatrujacej = null, ?string $osobaRozpatrujaca = null, ?string $idReklamacja = null, ?string $numerReklamacji = null)
{
$this
->setGuid($guid)
Expand All @@ -100,7 +107,8 @@ public function __construct(?string $guid = null, ?string $numerNadania = null,
->setDataRozpatrzenia($dataRozpatrzenia)
->setNazwaJednostkiRozpatrujacej($nazwaJednostkiRozpatrujacej)
->setOsobaRozpatrujaca($osobaRozpatrujaca)
->setIdReklamacja($idReklamacja);
->setIdReklamacja($idReklamacja)
->setNumerReklamacji($numerReklamacji);
}

/**
Expand Down Expand Up @@ -342,4 +350,29 @@ public function setIdReklamacja(?string $idReklamacja = null): self

return $this;
}

/**
* Get numerReklamacji value
* @return string|null
*/
public function getNumerReklamacji(): ?string
{
return $this->numerReklamacji;
}

/**
* Set numerReklamacji value
* @param string $numerReklamacji
* @return \PocztaPolska\StructType\ReklamacjaRozpatrzonaType
*/
public function setNumerReklamacji(?string $numerReklamacji = null): self
{
// validation for constraint: string
if (!is_null($numerReklamacji) && !is_string($numerReklamacji)) {
throw new InvalidArgumentException(sprintf('Invalid value %s, please provide a string, %s given', var_export($numerReklamacji, true), gettype($numerReklamacji)), __LINE__);
}
$this->numerReklamacji = $numerReklamacji;

return $this;
}
}
3 changes: 2 additions & 1 deletion wsdl/en.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@
</xsd:element>
<xsd:simpleType name="statusEPOEnum">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ERROR"/>
<xsd:enumeration value="NIEZNANY"/>
<xsd:enumeration value="NADANIE"/>
<xsd:enumeration value="W_TRANSPORCIE"/>
<xsd:enumeration value="CLO"/>
Expand Down Expand Up @@ -3254,6 +3254,7 @@
<xsd:attribute name="osobaRozpatrujaca"
type="xsd:string"/>
<xsd:attribute name="idReklamacja" type="xsd:string"/>
<xsd:attribute name="numerReklamacji" type="xsd:string"/>
</xsd:complexType>
<xsd:simpleType name="rozstrzygniecieType">
<xsd:restriction base="xsd:string">
Expand Down
3 changes: 2 additions & 1 deletion wsdl/test/en.wsdl
Original file line number Diff line number Diff line change
Expand Up @@ -2012,7 +2012,7 @@
</xsd:element>
<xsd:simpleType name="statusEPOEnum">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="ERROR"/>
<xsd:enumeration value="NIEZNANY"/>
<xsd:enumeration value="NADANIE"/>
<xsd:enumeration value="W_TRANSPORCIE"/>
<xsd:enumeration value="CLO"/>
Expand Down Expand Up @@ -3254,6 +3254,7 @@
<xsd:attribute name="osobaRozpatrujaca"
type="xsd:string"/>
<xsd:attribute name="idReklamacja" type="xsd:string"/>
<xsd:attribute name="numerReklamacji" type="xsd:string"/>
</xsd:complexType>
<xsd:simpleType name="rozstrzygniecieType">
<xsd:restriction base="xsd:string">
Expand Down

0 comments on commit 956dfb2

Please sign in to comment.