Sha256: b93622c53999ed513bbd2cfd15dd9fc14a52b883e15381f100cf4a2128bc12c6

Contents?: true

Size: 769 Bytes

Versions: 5

Compression:

Stored size: 769 Bytes

Contents

{
  "name": "Canada Post",
  "courier_code": "canada_post",
  "tracking_numbers": [
    {
      "name": "Canada Post (16)",
      "regex": "\\s*(?<SerialNumber>(?<OriginId>([0-9]\\s*){7})([0-9]\\s*){8})(?<CheckDigit>[0-9]\\s*)",
      "validation": {
        "checksum": {
          "name": "mod10",
          "evens_multiplier": 3,
          "odds_multiplier": 1
        }
      },
      "tracking_url": "https://www.canadapost-postescanada.ca/track-reperage/en#/search?searchFor=%s",
      "test_numbers": {
        "valid": [
          "0073938000549297",
          "7035114477138472",
          "4002847016405018"
        ],
        "invalid": [
          "0073938000549292",
          "7035114477138471",
          "5002847016405018"
        ]
      }
    }
  ]
}

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tracking_number-1.3.5 lib/data/couriers/canadapost.json
tracking_number-1.3.1 lib/data/couriers/canadapost.json
tracking_number-1.3.0 lib/data/couriers/canadapost.json
tracking_number-1.2.1 lib/data/couriers/canadapost.json
tracking_number-1.2.0 lib/data/couriers/canadapost.json