Sha256: a75416a87b37a9a04a52018f66a649bd88fef3d000f911ef4cc8c49a1f7fe213
Contents?: true
Size: 810 Bytes
Versions: 3
Compression:
Stored size: 810 Bytes
Contents
require "mr_speedy_ruby/base" module MrSpeedyRuby # Mr Speedy API Order # @since 1.0.0-alpha.3 class Order < Base # Order List # @since 1.0.0-alpha.3 # # @param [Boolean] sandbox sandbox mode # @param [Hash] payload order query payload # @param payload [Integer, Array<Integer>] :order_id order id # @param payload [String] :status order status # @param payload [Integer] :offset order record offset count # @param payload [Integer] :count order record limit # # @see https://apitest.mrspeedy.ph/business-api/doc#orders # # @return [Json] def orders(payload: {}, sandbox: false) endpoint = "/api/business/#{version}/orders" url = build_url(endpoint, sandbox) get(endpoint: url, token: token, payload: payload) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mr_speedy_ruby-1.0.0.pre.alpha.6 | lib/mr_speedy_ruby/order.rb |
mr_speedy_ruby-1.0.0.pre.alpha.4 | lib/mr_speedy_ruby/order.rb |
mr_speedy_ruby-1.0.0.pre.alpha.3 | lib/mr_speedy_ruby/order.rb |