Sha256: f1b7d71d06555a89ceceea87526f27bf16cdf0739f1d01dc4f1e303cb3e96ba8
Contents?: true
Size: 496 Bytes
Versions: 3
Compression:
Stored size: 496 Bytes
Contents
module Loopiator module Credits # https://www.loopia.se/api/getcreditsamount/ def get_credits_amount(include_vat: true, customer_number: "") call("getCreditsAmount", customer_number, with_vat).to_f end # https://www.loopia.se/api/payinvoiceusingcredits/ def pay_invoice_using_credits(reference_number, customer_number: "") parse_status_response(call("payInvoiceUsingCredits", customer_number, reference_number.to_s)) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
loopiator-0.4.2 | lib/loopiator/credits.rb |
loopiator-0.4.1 | lib/loopiator/credits.rb |
loopiator-0.4.0 | lib/loopiator/credits.rb |