Class: Ecommerce::Resources::AccountOrder
- Defined in:
- lib/ecommerce/resources/account_order.rb
Overview
A wrapper to Ecommerce orders API
- API
-
Documentation: myfreecomm.github.io/passaporte-web/ecommerce/api/index.html
Class Method Summary collapse
-
.find_all(account_uuid, page = 1, limit = 20) ⇒ Object
Lists all Orders of an account and return a collection with orders and pagination information (represented by Ecommerce::Resources::Collection).
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ecommerce::Resources::Base
Class Method Details
.find_all(account_uuid, page = 1, limit = 20) ⇒ Object
Lists all Orders of an account and return a collection with orders and pagination information (represented by Ecommerce::Resources::Collection)
- API
-
Method:
GET /api/accounts/:account_uuid/orders/
Documentation: myfreecomm.github.io/passaporte-web/ecommerce/api/orders.html#listagem-das-ordens-de-compra-de-uma-conta
18 19 20 21 22 23 |
# File 'lib/ecommerce/resources/account_order.rb', line 18 def self.find_all(account_uuid, page = 1, limit = 20) body = { page: page, limit: limit } client.get("/api/accounts/#{account_uuid}/orders/", body: body) do |response| Ecommerce::Resources::OrderCollection.build(response) end end |