LM-Charles / LMShipService

1 stars 0 forks source link

Quote replace unexpected response. #39

Closed rufuszhu closed 9 years ago

rufuszhu commented 9 years ago

{"client":2,"orderDate":"2012-04-23T18:25:43.511Z","fromAddress":{"address":"7350 Wilson Ave","address2":"","city":"Delta","province":"BC","country":"Canada","postal":"V4G 1H3"},"toAddress":{"address":"743 Lacoma St","address2":"","city":"Prince George","province":"BC","country":"Canada","postal":"V2M 5G4"},"shipments":[{"height":"0","width":"0","length":"0","shipmentPackageType":"SMALL","weight":"500","goodCategoryType":"REGULAR"}],"declareValue":"500","insuranceValue":"0","appointmentDate":1441090800,"appointmentSlotType":"SLOT_3"}

desmond-zhou commented 9 years ago

Researching

desmond-zhou commented 9 years ago

This package is 500kg in weight. Suspect either the address API have some rule we are not following, or this weight is unsupported. So couriers return no quote, will double check.

desmond-zhou commented 9 years ago

The issue is country code is required by courier, please let me know if you can accomondate.

desmond-zhou commented 9 years ago

ie, change the Canada to CA

desmond-zhou commented 9 years ago

The visibilty issue is branched to #41

desmond-zhou commented 9 years ago
{
   "client":2,
   "orderDate":"2012-04-23T18:25:43.511Z",
   "fromAddress":{
      "address":"7350 Wilson Ave",
      "address2":"",
      "city":"Delta",
      "province":"BC",
      "country":"CA",
      "postal":"V4G 1H3"
   },
   "toAddress":{
      "address":"743 Lacoma St",
      "address2":"",
      "city":"Prince George",
      "province":"BC",
      "country":"CA",
      "postal":"V2M 5G4"
   },
   "shipments":[
      {
         "height":"0",
         "width":"0",
         "length":"0",
         "shipmentPackageType":"SMALL",
         "weight":"5",
         "goodCategoryType":"REGULAR"
      }
   ],
   "declareValue":"500",
   "insuranceValue":"0",
   "appointmentDate":1441090800,
   "appointmentSlotType":"SLOT_3"
}
{
  "rateDate": 1441134420019,
  "courierRates": [
    {
      "service_icon_url": "",
      "category": " MEDIUM_COURIER",
      "estimate": 33.79,
      "courierName": "UPS",
      "serviceName": "UPS_WORLDWIDE_EXPEDITED",
      "estimatedDelivery": 1441134420019
    },
    {
      "service_icon_url": "",
      "category": "MEDIUM_COURIER",
      "estimate": 67.1155,
      "courierName": "LONGMEN",
      "serviceName": "LONGMEN_STANDARD",
      "estimatedDelivery": 1441134420019
    },
    {
      "service_icon_url": "",
      "category": "ECONOMY_COURIER",
      "estimate": 12.84,
      "courierName": "FEDEX",
      "serviceName": "FEDEX_GROUND",
      "estimatedDelivery": 1441134420019
    },
    {
      "service_icon_url": "",
      "category": "ECONOMY_COURIER",
      "estimate": 34.1,
      "courierName": "UPS",
      "serviceName": "UPS_STANDARD",
      "estimatedDelivery": 1441134420019
    },
    {
      "service_icon_url": "",
      "category": "FASTEST_COURIER",
      "estimate": 42.56,
      "courierName": "UPS",
      "serviceName": "UPS_EXPRESS",
      "estimatedDelivery": 1441134420019
    },
    {
      "service_icon_url": "",
      "category": "ECONOMY_COURIER",
      "estimate": 35.1,
      "courierName": "UPS",
      "serviceName": "UPS_SAVER",
      "estimatedDelivery": 1441134420019
    }
  ],
  "handlingRate": {
    "service_icon_url": "",
    "category": "HANDLING",
    "estimate": 1,
    "courierName": "LM_DELIVERY",
    "serviceName": "HANDLING",
    "estimatedDelivery": 1441134420019
  },
  "insuranceRate": {
    "service_icon_url": "",
    "category": "INSURANCE",
    "estimate": 0,
    "courierName": "LM_DELIVERY",
    "serviceName": "INSURANCE",
    "estimatedDelivery": 1441134420019
  }
}