Sha256: 69fd7b08c68bfea6c612bbddf8b0793adcbe9ec1639d456c48adc69d97ebeb67
Contents?: true
Size: 363 Bytes
Versions: 4
Compression:
Stored size: 363 Bytes
Contents
module Octobat class Invoice < APIResource include Octobat::APIOperations::List include Octobat::APIOperations::Create def pay(payment_data) response, api_key = Octobat.request(:patch, pay_url, @api_key, {payment: payment_data}) refresh_from(response, api_key) end private def pay_url url + '/pay' end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
octobat-0.0.5 | lib/octobat/invoice.rb |
octobat-0.0.4 | lib/octobat/invoice.rb |
octobat-0.0.3 | lib/octobat/invoice.rb |
octobat-0.0.2 | lib/octobat/invoice.rb |