Sha256: 563bf3ea99a139c9c0c3a7a302891d4b5b9ba386795bbabb56e12b669d5d14cb
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
module Peakium class Invoice < APIResource include Peakium::APIOperations::List include Peakium::APIOperations::Create def overdue(params={}, api_key = nil) params = params + { :overdue => true } all(params, api_key); end def pay response, api_key = Peakium.request(:post, pay_url, @api_key) refresh_from(response, api_key) self end private def overdue_url endpoint_url + '/overdue' end def pay_url endpoint_url + '/pay' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
peakium-0.1.4 | lib/peakium/api_resources/invoice.rb |
peakium-0.1.3 | lib/peakium/api_resources/invoice.rb |