【发布时间】:2012-10-25 21:08:44
【问题描述】:
我正在开发 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"}]
【问题讨论】:
标签: shopify