Sha256: bbc9db11da727ccc5e7695d523ddab30b60e5db9a3ada35ac201cefab5bfaaf8
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
module Gemgento module API module SOAP module Checkout class Shipping # Retrieve a list of shipping methods for a Quote from Magento. # # @param quote [Gemgento::Quote] # @return [Gemgento::MagentoResponse] def self.list(quote) message = { quote_id: quote.magento_id, store_id: quote.store.magento_id } MagentoApi.create_call(:shopping_cart_shipping_list, message) end # Set the Quote shipping method in Magento. # # @param quote [Gemgento::Quote] # @param shipping_method [String] # @return [Gemgento::MagentoResponse] def self.method(quote, shipping_method) message = { quote_id: quote.magento_id, method: shipping_method, store_id: quote.store.magento_id } MagentoApi.create_call(:shopping_cart_shipping_method, message) end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | lib/gemgento/api/soap/checkout/shipping.rb |