Sha256: 5f75af6759cb3097909c7c523b3c3a8376a63e10b91ab34356de10fef7c7d949

Contents?: true

Size: 1.14 KB

Versions: 7

Compression:

Stored size: 1.14 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"
        ]
      }
    }
  ]
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
tracking_number-1.1.2 lib/data/couriers/dhl.json
tracking_number-1.1.1 lib/data/couriers/dhl.json
tracking_number-1.0.7 lib/data/couriers/dhl.json
tracking_number-1.0.6 lib/data/couriers/dhl.json
tracking_number-1.0.5 lib/data/couriers/dhl.json
tracking_number-1.0.4 lib/data/couriers/dhl.json
tracking_number-1.0.3 lib/data/couriers/dhl.json