Skip to content

Commit

Permalink
Merge pull request #7 from plentymarkets/fix/values_not_matching_docu…
Browse files Browse the repository at this point in the history
…mentation

FIX values not matching documentation
  • Loading branch information
Joshua Schaak authored Aug 24, 2022
2 parents 8709d88 + 3546e8c commit 32b4bd7
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -292,9 +292,9 @@ public function listInvalidProperties() : array
$invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 30.";
}

if (null !== $this->container['state_or_province_code'] && (\mb_strlen($this->container['state_or_province_code']) > 30)) {
$invalidProperties[] = "invalid value for 'state_or_province_code', the character length must be smaller than or equal to 30.";
}
// if (null !== $this->container['state_or_province_code'] && (\mb_strlen($this->container['state_or_province_code']) > 30)) {
// $invalidProperties[] = "invalid value for 'state_or_province_code', the character length must be smaller than or equal to 30.";
// }

if ($this->container['postal_code'] === null) {
$invalidProperties[] = "'postal_code' can't be null";
Expand Down Expand Up @@ -505,9 +505,9 @@ public function getStateOrProvinceCode() : ?string
*/
public function setStateOrProvinceCode(?string $state_or_province_code) : self
{
if (null !== $state_or_province_code && (\mb_strlen($state_or_province_code) > 30)) {
throw new \InvalidArgumentException('invalid length for $state_or_province_code when calling Address., must be smaller than or equal to 30.');
}
// if (null !== $state_or_province_code && (\mb_strlen($state_or_province_code) > 30)) {
// throw new \InvalidArgumentException('invalid length for $state_or_province_code when calling Address., must be smaller than or equal to 30.');
// }

$this->container['state_or_province_code'] = $state_or_province_code;

Expand Down

0 comments on commit 32b4bd7

Please sign in to comment.