private function sanitizeZipCode(CustomerAddressEntity
$address): string
{ $zipCode =
trim($address->
getZipcode() ?? ''
);
if (\
in_array($this->operator,
[self::OPERATOR_EQ, self::OPERATOR_NEQ
], true
)) { return $zipCode;
} // Japanese post codes are separated by dashes but otherwise numeric, replace dashes for numeric expressions
if ($address->
getCountry() &&
$address->
getCountry()->
getIso3() === 'JPN'
) { $zipCode =
str_replace('-', '',
$zipCode);
} return $zipCode;
}}