Sha256: 6f1a6f9ecb1cd802013e0fadb37e7ef51b12aa91d7384ec89de40e4c0d52e56b

Contents?: true

Size: 863 Bytes

Versions: 30

Compression:

Stored size: 863 Bytes

Contents

module GoTransverseTractApi

  module Order

    class BillCycle < Common::Base

      class << self

        #
        # @param {String} type
        # @param {Hash} options
        #
        def find_by_type type, options={}
          return nil unless type.present?

          params ||= GoTransverseTractApi::ApiData.new.get_query_params({type: type}, options)
          GoTransverseTractApi.get_response_for(self, params)
        end

        #
        # @param {String} currency_type
        # @param {Hash} options
        #
        def find_by_currency_type currency_type, options={}
          return nil unless currency_type.present?

          params ||= GoTransverseTractApi::ApiData.new.get_query_params({currency_type: currency_type}, options)
          GoTransverseTractApi.get_response_for(self, params)
        end

      end

    end

  end

end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
gotransverse-tract-api-0.14.0 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.13.0 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.12.0 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.11.2 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.11.1 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.11.0 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.10.0 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.9.2 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.9.1 lib/gotransverse-tract-api/order/bill_cycle.rb
gotransverse-tract-api-0.9.0 lib/gotransverse-tract-api/order/bill_cycle.rb