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