Class: MWS::Sellers

Inherits:
Peddler::Client show all
Defined in:
lib/mws/sellers.rb

Overview

The Sellers API lets sellers retrieve information about their seller account, such as the marketplaces they participate in.

Constant Summary

Constants inherited from Peddler::Client

Peddler::Client::BadMarketplaceId, Peddler::Client::HOSTS

Instance Attribute Summary

Attributes inherited from Peddler::Client

#body, #marketplace_id, #merchant_id

Instance Method Summary collapse

Methods inherited from Peddler::Client

#aws_endpoint, #headers, inherited, #operation, path, #run

Instance Method Details

#get_service_statusPeddler::XMLParser

Gets the service status of the API



35
36
37
38
# File 'lib/mws/sellers.rb', line 35

def get_service_status
  operation('GetServiceStatus')
  run
end

#list_marketplace_participationsPeddler::XMLParser

Lists the marketplaces the seller participates in



14
15
16
17
# File 'lib/mws/sellers.rb', line 14

def list_marketplace_participations
  operation('ListMarketplaceParticipations')
  run
end

#list_marketplace_participations_by_next_token(next_token) ⇒ Peddler::XMLParser

Lists the next page of marketplaces the seller participates in



24
25
26
27
28
29
# File 'lib/mws/sellers.rb', line 24

def list_marketplace_participations_by_next_token(next_token)
  operation('ListMarketplaceParticipationsByNextToken')
    .add('NextToken' => next_token)

  run
end