Sha256: 782cb0c8bb353f10a3c33fff764b90ff07bf6653ca14e2f484aac6b827759b0d
Contents?: true
Size: 803 Bytes
Versions: 2
Compression:
Stored size: 803 Bytes
Contents
# frozen_string_literal: true module FinApps module REST class Orders < FinApps::REST::Resources # :nodoc: using ObjectExtensions using StringExtensions def show(id) raise MissingArgumentsError.new 'Missing argument: id.' if id.blank? super end def list(_params=nil) # TODO: get the paramaters for the pagination # GET /v2/list/orders/:page/:requested/:sort/:asc # :page - page number requested # :requested - number of results per page requested # :sort - sort order # options: # date - the date of the order # status - the status of the order # :asc - sort order true for asc false for desc super 'list/orders/1/10000/date/false' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
finapps-2.0.20 | lib/finapps/rest/orders.rb |
finapps-2.0.19 | lib/finapps/rest/orders.rb |