Interface CustomerCountryZoneRepositoryInterface

Interface CustomerCountryZoneRepositoryInterface

Direct known implementers

CustomerCountryZoneRepository

Methods summary

public getById( IdType $countryZoneId ) : CustomerCountryZoneInterface

Method to get a country zone with a given ID

public getByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country ) : CustomerCountryZoneInterface

Method to get a county zone with a given name and country

public findByNameAndCountry( CustomerCountryZoneNameInterface $countryZoneName, CustomerCountryInterface $country ) : CustomerCountryZone|null

This method will get the country zone by its name and country if it exists, if not it will return null.

public findCountryZonesByCountryId( IdType $countryId ) : array

This method will get all country zones by a country ID if it exists, if not it will return an empty array.

public findById( IdType $countryZoneId ) : CustomerCountryZone|null

Method to get a country zone by ID if exists else return null

public getUnknownCountryZoneByName( CustomerCountryZoneNameInterface $countryZoneName ) : CustomerCountryZone

This method will return a new CustomerCountryZoneName object representing an unknown country zone. ID is 0 and ISO code is empty.

public isStateMandatory( IdType $countryId ) : boolean

This method returns whether the specified country, necessary, needs a state.

public findCountryZoneByZoneCodeAndCountry( CustomerCountryZoneIsoCodeInterface $zoneCode, CustomerCountryInterface $country ) : CustomerCountryZoneInterface|null

Finds the country zone by the given zone code and country. Null will be returned if no results are found.

public findCountryZoneByZoneCodeAndCountryId( CustomerCountryZoneIsoCodeInterface $zoneCode, IdType $countryId ) : CustomerCountryZoneInterface

Returns the country zone by the given zone code and country id. Null will be returned if no results are found.