Sha256: 2692954c7644ae7f91a653f71727fe2bdc83c8b756d7a3edcc8e0f43f0ab76a4

Contents?: true

Size: 1.27 KB

Versions: 8

Compression:

Stored size: 1.27 KB

Contents

require 'peddler/client'

module MWS
  # The Sellers API lets sellers retrieve information about their seller
  # account, such as the marketplaces they participate in.
  class Sellers < ::Peddler::Client
    path '/Sellers/2011-07-01'

    # Lists the marketplaces the seller participates in
    #
    # @see http://docs.developer.amazonservices.com/en_US/sellers/Sellers_ListMarketplaceParticipations.html
    # @param next_token [String]
    # @return [Peddler::XMLParser]
    def list_marketplace_participations
      operation('ListMarketplaceParticipations')
      run
    end

    # Lists the next page of marketplaces the seller participates in
    #
    # @see http://docs.developer.amazonservices.com/en_US/sellers/Sellers_ListMarketplaceParticipationsByNextToken.html
    # @param next_token [String]
    # @return [Peddler::XMLParser]
    def list_marketplace_participations_by_next_token(next_token)
      operation('ListMarketplaceParticipationsByNextToken')
        .add('NextToken' => next_token)

      run
    end

    # Gets the service status of the API
    #
    # @see http://docs.developer.amazonservices.com/en_US/sellers/MWS_GetServiceStatus.html
    # @return [Peddler::XMLParser]
    def get_service_status
      operation('GetServiceStatus')
      run
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
peddler-0.8.0 lib/mws/sellers.rb
peddler-0.7.11 lib/mws/sellers.rb
peddler-0.7.10 lib/mws/sellers.rb
peddler-0.7.9 lib/mws/sellers.rb
peddler-0.7.8 lib/mws/sellers.rb
peddler-0.7.7 lib/mws/sellers.rb
peddler-0.7.6 lib/mws/sellers.rb
peddler-0.7.5 lib/mws/sellers.rb