Sha256: c9c6f74007467b387dd5933ae5ac5d7e933954ac6be080778143bc2e200bebed

Contents?: true

Size: 495 Bytes

Versions: 9

Compression:

Stored size: 495 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

9 entries across 9 versions & 1 rubygems

Version Path
loopiator-0.3.8 lib/loopiator/credits.rb
loopiator-0.3.7 lib/loopiator/credits.rb
loopiator-0.3.6 lib/loopiator/credits.rb
loopiator-0.3.5 lib/loopiator/credits.rb
loopiator-0.3.4 lib/loopiator/credits.rb
loopiator-0.3.3 lib/loopiator/credits.rb
loopiator-0.3.2 lib/loopiator/credits.rb
loopiator-0.3.1 lib/loopiator/credits.rb
loopiator-0.3.0 lib/loopiator/credits.rb