class Ecommerce::Resources::InvoicePlan
A wrapper to Ecommerce
invoice per plan API
- API
-
Documentation: myfreecomm.github.io/passaporte-web/ecommerce/api/index.html
Public Class Methods
find_all(slug, page = 1, limit = 20)
click to toggle source
Lists all paid invoices of a plan and return a collection of invoice with pagination information (represented by Ecommerce::Resources::InvoiceOrderCollection
)
- API
-
Method: <tt>GET /api/:slug/invoices/paid/
Documentation: myfreecomm.github.io/passaporte-web/ecommerce/api/orders.html#listagem-das-faturas-pagas-para-um-plano
# File lib/ecommerce/resources/invoice_plan.rb, line 19 def self.find_all(slug, page = 1, limit = 20) body = { page: page, limit: limit } client.get("/api/#{slug}/invoices/paid/", body: body) do |response| Ecommerce::Resources::InvoiceOrderCollection.build(response) end end