Sha256: 60c3905e22f9cb61a139f452a406ccd56eca50bca7dac0e5392dd6c36899cbec

Contents?: true

Size: 574 Bytes

Versions: 7

Compression:

Stored size: 574 Bytes

Contents

# frozen_string_literal: true

module MuffinMan
  module VendorDirectFulfillmentInventory
    class V1 < SpApiClient
      def submit_inventory_update(warehouse_id, selling_party, is_full_update, items)
        @local_var_path = "/vendor/directFulfillment/inventory/v1/warehouses/#{warehouse_id}/items"
        @request_body = {
          "inventory" => {
            "sellingParty" => selling_party,
            "isFullUpdate" => is_full_update,
            "items" => items
          }
        }
        @request_type = "POST"
        call_api
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
muffin_man-2.4.8 lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb
muffin_man-2.4.7 lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb
muffin_man-2.4.6 lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb
muffin_man-2.4.5 lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb
muffin_man-2.4.4 lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb
muffin_man-2.4.3 lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb
muffin_man-2.4.2 lib/muffin_man/vendor_direct_fulfillment_inventory/v1.rb