Sha256: 5584cc467945c98e205bdf2f9c48db868c702fb35af92a25b7dcede1464bc92a

Contents?: true

Size: 1.6 KB

Versions: 11

Compression:

Stored size: 1.6 KB

Contents

require "muffin_man/enable_logger"

module MuffinMan
  module Finances
    class V0 < SpApiClient
      include EnableLogger

      def list_financial_event_groups(max_results_per_page = nil, financial_event_group_started_before = nil, financial_event_group_started_after = nil, next_token = nil)
        @local_var_path = "/finances/v0/financialEventGroups"
        @query_params = {}
        @query_params["MaxResultsPerPage"] = max_results_per_page unless max_results_per_page.nil?
        unless financial_event_group_started_before.nil?
          @query_params["FinancialEventGroupStartedBefore"] =
            financial_event_group_started_before
        end
        unless financial_event_group_started_after.nil?
          @query_params["FinancialEventGroupStartedAfter"] =
            financial_event_group_started_after
        end
        @query_params["NextToken"] = next_token unless next_token.nil?
        @request_type = "GET"
        call_api
      end

      def list_financial_events_by_group_id(event_group_id, max_results_per_page = nil, posted_after = nil, posted_before = nil, next_token = nil)
        @local_var_path = "/finances/v0/financialEventGroups/#{event_group_id}/financialEvents"
        @query_params = {}
        @query_params["MaxResultsPerPage"] = max_results_per_page unless max_results_per_page.nil?
        @query_params["PostedAfter"] = posted_after unless posted_after.nil?
        @query_params["PostedBefore"] = posted_before unless posted_before.nil?
        @query_params["NextToken"] = next_token unless next_token.nil?
        @request_type = "GET"
        call_api
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
muffin_man-2.4.8 lib/muffin_man/finances/v0.rb
muffin_man-2.4.7 lib/muffin_man/finances/v0.rb
muffin_man-2.4.6 lib/muffin_man/finances/v0.rb
muffin_man-2.4.5 lib/muffin_man/finances/v0.rb
muffin_man-2.4.4 lib/muffin_man/finances/v0.rb
muffin_man-2.4.3 lib/muffin_man/finances/v0.rb
muffin_man-2.4.2 lib/muffin_man/finances/v0.rb
muffin_man-2.3.0 lib/muffin_man/finances/v0.rb
muffin_man-2.2.2 lib/muffin_man/finances/v0.rb
muffin_man-2.2.1 lib/muffin_man/finances/v0.rb
muffin_man-2.1.3 lib/muffin_man/finances/v0.rb