lib/mws/finances/client.rb in peddler-1.6.7 vs lib/mws/finances/client.rb in peddler-2.0.0

- old
+ new

@@ -5,31 +5,33 @@ module MWS module Finances # With the MWS Finances API you can retrieve financial transactions for your # seller account. class Client < ::Peddler::Client - version '2015-05-01' - path "/Finances/#{version}" + self.version = '2015-05-01' + self.path = "/Finances/#{version}" # Lists financial events # - # @see http://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEvents.html + # @see https://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEvents.html # @param [Hash] opts # @option opts [Integer] :max_results_per_page # @option opts [String] :amazon_order_id # @option opts [String] :financial_event_group_id # @option opts [String, #iso8601] :posted_after # @option opts [String, #iso8601] :posted_before # @return [Peddler::XMLParser] def list_financial_events(opts = {}) - operation('ListFinancialEvents').add(opts) + operation('ListFinancialEvents') + .add(opts) + run end # Lists the next page of financial events # - # @see http://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEventGroupsByNextToken.html + # @see https://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEventsByNextToken.html # @param [String] next_token # @return [Peddler::XMLParser] def list_financial_events_by_next_token(next_token) operation('ListFinancialEventsByNextToken') .add('NextToken' => next_token) @@ -37,29 +39,29 @@ run end # Lists financial event groups # - # @see http://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEventGroups.html + # @see https://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEventGroups.html # @param [String, #iso8601] financial_event_group_started_after # @param [Hash] opts # @option opts [Integer] :max_results_per_page # @option opts [String, #iso8601] :financial_event_group_started_before # @return [Peddler::XMLParser] def list_financial_event_groups(financial_event_group_started_after, opts = {}) operation('ListFinancialEventGroups') - .add('FinancialEventGroupStartedAfter' => - financial_event_group_started_after) .add(opts) + .add('FinancialEventGroupStartedAfter' => + financial_event_group_started_after) run end # Lists the next page of financial event groups # - # @see http://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEventGroupsByNextToken.html + # @see https://docs.developer.amazonservices.com/en_US/finances/Finances_ListFinancialEventGroupsByNextToken.html # @param [String] next_token # @return [Peddler::XMLParser] def list_financial_event_groups_by_next_token(next_token) operation('ListFinancialEventGroupsByNextToken') .add('NextToken' => next_token) @@ -67,14 +69,13 @@ run end # Gets API status # - # @see http://docs.developer.amazonservices.com/en_US/finances/Finances_GetServiceStatus.html + # @see https://docs.developer.amazonservices.com/en_US/finances/Finances_GetServiceStatus.html # @return [Peddler::XMLParser] def get_service_status operation('GetServiceStatus') - run end end end end