Sha256: 3e535cc98ec37763b70012ca6889430fee6fd1bbc345c1c9aab6386d9cd2c8fd

Contents?: true

Size: 606 Bytes

Versions: 2

Compression:

Stored size: 606 Bytes

Contents

require 'peddler/request'
require 'mws/sellers/parsers/marketplace_participations'

module MWS
  module Sellers
    module Requests
      class MarketplaceParticipations < ::Peddler::Request
        def list
          parameters(:list_marketplace_participations)
            .camelize_keys!

          execute
        end

        def list_by_next_token(token = next_token)
          return false unless token

          parameters(:list_marketplace_participations_by_next_token)
            .update(next_token: token)
            .camelize_keys!

          execute
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
peddler-0.6.5 lib/mws/sellers/requests/marketplace_participations.rb
peddler-0.6.4 lib/mws/sellers/requests/marketplace_participations.rb