commerceguys/zone

Provide a way to match "everything else"

Closed this issue · 1 comments

RoyalMail defines several zones, with "World zone 1" defined as "anything which isn't in any of the other zones.".
The data can be seen here: http://cgit.drupalcode.org/rmzone/tree/rmzone.inc

We need a way to represent this.

We should have a ZoneMember that can take one or more zones, and returns TRUE if the referenced zone(s) don't match.

Question How to name this ZoneMember? Maybe expand the existing ZoneMemberZone to support multiple zones & a negate option?

The world zone 1 consists of 162 countries which could be specified one by one, but performance and maintenance wise it makes the most sense to simply provide custom zone member classes.

Just like I did for the EU in 8352b41.