Sha256: 22a471a19580ce83f317de15215ff754811b919522cc1e27f558a811658ec8b9

Contents?: true

Size: 527 Bytes

Versions: 4

Compression:

Stored size: 527 Bytes

Contents

module Spree
  module API
    class Client
      module Addresses
        def address(order_number, id, options={})
          get("orders/#{order_number}/addresses/#{id}", options)
        end

        # #get addresses by user
        # def addresses(order_number, options={})
        #   get("orders/#{order_number}/addresses",options)["addresses"]
        # end

        def update_address(order_number, id, options={})
          put("orders/#{order_number}/addresses/#{id}", options)
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cq-spree-api-client-0.0.10 lib/spree-api-client/addresses.rb
cq-spree-api-client-0.0.9 lib/spree-api-client/addresses.rb
cq-spree-api-client-0.0.6 lib/spree-api-client/addresses.rb
cq-spree-api-client-0.0.5 lib/spree-api-client/addresses.rb