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
boolean
true|false if there are|are not country zones
countryZoneExistsInCountry(\CustomerCountryZoneInterface $customerCountryZone, \CustomerCountryInterface $customerCountry) : boolean
\CustomerCountryZoneInterface
\CustomerCountryInterface
boolean
true|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
findCountryZoneByZoneCodeAndCountry(\CustomerCountryZoneIsoCode $zoneCode, \CustomerCountryInterface $country) : \CustomerCountryZoneInterface|null
Null will be returned if no results are found.
\CustomerCountryZoneInterface|null
Country zone model.
findCountryZoneByZoneCodeAndCountryId(\CustomerCountryZoneIsoCode $zoneCode, \IdType $countryId) : \CustomerCountryZoneInterface
Null will be returned if no results are found.
\CustomerCountryZoneInterface
Country zone model.
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
getCountryZoneByZoneCodeAndCountry(\CustomerCountryZoneIsoCode $zoneCode, \CustomerCountryInterface $country) : \CustomerCountryZoneInterface
An error will be raised if no results are found.
Throws |
|
---|
\CustomerCountryZoneInterface
Country zone model.
getCountryZoneByZoneCodeAndCountryId(\CustomerCountryZoneIsoCode $zoneCode, \IdType $countryId) : \CustomerCountryZoneInterface
An error will be raised if no results are found.
Throws |
|
---|
\CustomerCountryZoneInterface
Country zone model.
getUnknownCountryZoneByName(string $p_zoneName) : \CustomerCountryZone
isStateMandatory(\IdType $countryId) : boolean
customerCountryRepo : \CustomerCountryRepositoryInterface
customerCountryZoneRepo : \CustomerCountryZoneRepositoryInterface