Sha256: 5b99c8acd53bb771dbc34f23ec89d9f6dd6c99ea7197543d4c88eeb118557c27
Contents?: true
Size: 444 Bytes
Versions: 2
Compression:
Stored size: 444 Bytes
Contents
module Chargify class Invoice < Base def self.find_by_invoice_id(id) find(:first, params: {id: id}) end def self.find_by_subscription_id(id) find(:all, params: {subscription_id: id}) end def self.unpaid_from_subscription(subscription_id) find(:all, params: {subscription_id: subscription_id, state: "unpaid"}) end def self.unpaid find(:all, params: {state: "unpaid"}) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chargify_api_ares-1.1.0.pre | lib/chargify_api_ares/resources/invoice.rb |
chargify_api_ares-1.0.5 | lib/chargify_api_ares/resources/invoice.rb |