Sha256: 30accc0ed21622510161e0bcf6694d30482c7a350f068180540f44b7d8223d41

Contents?: true

Size: 1.54 KB

Versions: 36

Compression:

Stored size: 1.54 KB

Contents

module MuffinMan
  module Finances
    class V0 < SpApiClient
      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

36 entries across 36 versions & 1 rubygems

Version Path
muffin_man-2.1.0 lib/muffin_man/finances/v0.rb
muffin_man-2.0.6 lib/muffin_man/finances/v0.rb
muffin_man-2.0.5 lib/muffin_man/finances/v0.rb
muffin_man-2.0.4 lib/muffin_man/finances/v0.rb
muffin_man-2.0.3 lib/muffin_man/finances/v0.rb
muffin_man-2.0.2 lib/muffin_man/finances/v0.rb
muffin_man-2.0.1 lib/muffin_man/finances/v0.rb
muffin_man-2.0.0 lib/muffin_man/finances/v0.rb
muffin_man-1.5.12 lib/muffin_man/finances/v0.rb
muffin_man-1.5.11 lib/muffin_man/finances/v0.rb
muffin_man-1.5.10 lib/muffin_man/finances/v0.rb
muffin_man-1.5.9 lib/muffin_man/finances/v0.rb
muffin_man-1.5.8 lib/muffin_man/finances/v0.rb
muffin_man-1.5.7 lib/muffin_man/finances/v0.rb
muffin_man-1.5.6 lib/muffin_man/finances/v0.rb
muffin_man-1.5.5 lib/muffin_man/finances/v0.rb
muffin_man-1.5.4 lib/muffin_man/finances/v0.rb
muffin_man-1.5.3 lib/muffin_man/finances/v0.rb
muffin_man-1.5.2 lib/muffin_man/finances/v0.rb
muffin_man-1.5.1 lib/muffin_man/finances/v0.rb