我正在开发 Shopify 和履行公司之间的中间件,我能够获得 Shopify 的 API 中给出的 UPS 运输方式,但我需要其余的方法来建立一个到履行公司运输代码的转换表。
以下是 UPS 代码:
UPS Ground
UPS Second Day Air
UPS Three-Day Select
UPS Saver
UPS Worldwide Expedited
UPS Standard
UPS Next Day Air Saver
UPS Next Day Air
UPS Next Day Air Early A.M.
UPS Express
UPS Worldwide Express Plus
UPS Expedited
UPS Second Day Air A.M.
UPS Express Early A.M.
UPS Ground 2
UPS Standard 2
UPS Second Day Air 2
UPS Next Day Air 2
UPS 生成的线路如下所示:
“shipping_lines”=>[{"title"=>"UPS Second Day Air", “code”=>"02", “price”=>25.63, “source”=>"ups"}]