lib/data/couriers/ups.json in tracking_number-1.3.5 vs lib/data/couriers/ups.json in tracking_number-1.4.0
- old
+ new
@@ -2,10 +2,11 @@
"name": "UPS",
"courier_code": "ups",
"tracking_numbers": [
{
"name": "UPS",
+ "id": "ups",
"regex": [
"\\s*1\\s*Z\\s*(?<SerialNumber>",
"(?<ShipperId>(?:[A-Z0-9]\\s*){6,6})",
"(?<ServiceType>(?:[A-Z0-9]\\s*){2,2})",
"(?<PackageId>(?:[A-Z0-9]\\s*){7,7}))",
@@ -136,11 +137,11 @@
}
},
{
"name": "UPS Waybill",
"regex": [
- "\\s*(?<ServiceType>([A-Z]\\s*){1})",
+ "\\s*(?<ServiceType>([AHJKTV]\\s*){1})",
"(?<SerialNumber>(?:[0-9]\\s*){9})",
"(?<CheckDigit>[0-9]\\s*){1}"
],
"validation": {
"checksum": {
@@ -171,9 +172,10 @@
],
"tracking_url": "https://wwwapps.ups.com/WebTracking/track?track=yes&trackNums=%s",
"test_numbers": {
"valid": [
"K1506235620",
+ "K 150 623 562 0",
"K2479825491",
"J4603636537",
"V0490119172",
"V0431105627"
],