Class: MWS::Finances::Client
- Inherits:
-
Peddler::Client
- Object
- Peddler::Client
- MWS::Finances::Client
- Defined in:
- lib/mws/finances/client.rb
Overview
With the MWS Finances API you can retrieve financial transactions for your seller account.
Instance Attribute Summary
Attributes inherited from Peddler::Client
#auth_token, #body, #merchant_id, #path, #primary_marketplace_id, #version
Instance Method Summary collapse
-
#get_service_status ⇒ Peddler::XMLParser
Gets API status.
-
#list_financial_event_groups(financial_event_group_started_after, opts = {}) ⇒ Peddler::XMLParser
Lists financial event groups.
-
#list_financial_event_groups_by_next_token(next_token) ⇒ Peddler::XMLParser
Lists the next page of financial event groups.
-
#list_financial_events(opts = {}) ⇒ Peddler::XMLParser
Lists financial events.
-
#list_financial_events_by_next_token(next_token) ⇒ Peddler::XMLParser
Lists the next page of financial events.
Methods inherited from Peddler::Client
#aws_endpoint, #defaults, #error_handler, #headers, #initialize, #marketplace, #marketplace_id, #marketplace_id=, on_error, #on_error, #operation, path, #run, version
Constructor Details
This class inherits a constructor from Peddler::Client
Instance Method Details
#get_service_status ⇒ Peddler::XMLParser
Gets API status
74 75 76 77 78 |
# File 'lib/mws/finances/client.rb', line 74 def get_service_status operation('GetServiceStatus') run end |
#list_financial_event_groups(financial_event_group_started_after, opts = {}) ⇒ Peddler::XMLParser
Lists financial event groups
48 49 50 51 52 53 54 55 56 |
# File 'lib/mws/finances/client.rb', line 48 def list_financial_event_groups(financial_event_group_started_after, opts = {}) operation('ListFinancialEventGroups') .add('FinancialEventGroupStartedAfter' => financial_event_group_started_after) .add(opts) run end |
#list_financial_event_groups_by_next_token(next_token) ⇒ Peddler::XMLParser
Lists the next page of financial event groups
63 64 65 66 67 68 |
# File 'lib/mws/finances/client.rb', line 63 def list_financial_event_groups_by_next_token(next_token) operation('ListFinancialEventGroupsByNextToken') .add('NextToken' => next_token) run end |
#list_financial_events(opts = {}) ⇒ Peddler::XMLParser
Lists financial events
23 24 25 26 |
# File 'lib/mws/finances/client.rb', line 23 def list_financial_events(opts = {}) operation('ListFinancialEvents').add(opts) run end |
#list_financial_events_by_next_token(next_token) ⇒ Peddler::XMLParser
Lists the next page of financial events
33 34 35 36 37 38 |
# File 'lib/mws/finances/client.rb', line 33 def list_financial_events_by_next_token(next_token) operation('ListFinancialEventsByNextToken') .add('NextToken' => next_token) run end |