Class CountryService
This class is used for finding country data
| category |
System |
|---|---|
| package |
Customer |
| subpackage |
Country |
| implements |
CountryServiceInterface |
__construct(\CustomerCountryRepositoryInterface $customerCountryRepo, \CustomerCountryZoneRepositoryInterface $customerCountryZoneRepo)
\CustomerCountryRepositoryInterface
\CustomerCountryZoneRepositoryInterface
countryHasCountryZones(\CustomerCountryInterface $customerCountry) : boolean
\CustomerCountryInterface
booleantrue|false if there are|are not country zones
countryZoneExistsInCountry(\CustomerCountryZoneInterface $customerCountryZone, \CustomerCountryInterface $customerCountry) : boolean
\CustomerCountryZoneInterface
\CustomerCountryInterface
booleantrue|false if country zone exists|not exists
findCountryByIso2(string $p_countryIso2) : \CustomerCountryInterface|null
findCountryByName(string $p_countryName) : \CustomerCountryInterface
findCountryZoneByNameAndCountry(\CustomerCountryZoneNameInterface|string $p_zoneName, \CustomerCountryInterface $customerCountry) : \CustomerCountryZoneInterface|null
\CustomerCountryZoneNameInterface|string
\CustomerCountryInterface
\CustomerCountryZoneInterface|null
findCountryZonesByCountryId(\IdType $countryId) : array
getCountryById(\IdType $id) : \CustomerCountryInterface
getCountryByIso2(string $p_countryIso2) : \CustomerCountryInterface
getCountryByName(string $p_countryName) : \CustomerCountryInterface
getCountryZoneById(\IdType $id) : \CustomerCountryZoneInterface
getCountryZoneByNameAndCountry(\CustomerCountryZoneNameInterface|string $p_zoneName, \CustomerCountryInterface $customerCountry) : \CustomerCountryZoneInterface
\CustomerCountryZoneNameInterface|string
\CustomerCountryInterface
\CustomerCountryZoneInterface
getUnknownCountryZoneByName(string $p_zoneName) : \CustomerCountryZone
isStateMandatory(\IdType $countryId) : boolean
customerCountryRepo : \CustomerCountryRepositoryInterface
customerCountryZoneRepo : \CustomerCountryZoneRepositoryInterface