Sha256: e7431da7a32b058a21d480ae34b6991ad0d254b5003a58b80ee0a6cc7464e7e2
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
{ "name": "DHL", "courier_code": "dhl", "tracking_numbers": [ { "name": "DHL Express", "regex": "\\s*(?<SerialNumber>([0-9]\\s*){9})(?<CheckDigit>([0-9]\\s*))", "validation": { "checksum": { "name": "mod7" } }, "tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s", "test_numbers": { "valid": [ "3318810025", "8487135506", "3318810036", " 3 3 1 8 8 1 0 0 3 6 ", "3318810014" ], "invalid": [ "3318810010", "3318810034", "3318810011" ] } }, { "name": "DHL Express Air", "regex": "\\s*(?<SerialNumber>([0-9]\\s*){10})(?<CheckDigit>[0-9]\\s*)", "validation": { "checksum": { "name": "mod7" } }, "tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s", "test_numbers": { "valid": [ "73891051146", " 7 3 8 9 1 0 5 1 1 4 6 " ], "invalid": [ "73891051149", "73891051147" ] } }, { "name": "DHL E-Commerce", "regex": "\\s*((G\\s*M\\s*)|(L\\s*X\\s*)|(R\\s*X\\s*)|(U\\s*V\\s*)|(C\\s*N\\s*)|(S\\s*G\\s*)|(T\\s*H\\s*)|(I\\s*N\\s*)|(H\\s*K\\s*)|(M\\s*Y\\s*))\\s*(?<SerialNumber>([0-9]\\s*){10,39})", "validation": {}, "tracking_url": "http://www.dhl.com/en/express/tracking.html?brand=DHL&AWB=%s", "test_numbers": { "valid": [ "GM2951173225174494", "GM295117494011169042" ], "invalid": [ "GS295117494011169041", "GR295117494011169045" ] } } ] }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tracking_number-1.3.5 | lib/data/couriers/dhl.json |
tracking_number-1.3.1 | lib/data/couriers/dhl.json |