Sha256: 4f4cdcffd34ac49a07244d0698e7eba0fd52d55f9fe3ca83bafd53c2f06c37de

Contents?: true

Size: 376 Bytes

Versions: 11

Compression:

Stored size: 376 Bytes

Contents

module Killbill::Litle
  class PrivatePaymentPlugin
    include Singleton

    def get_currency(kb_account_id)
      account = kb_apis.get_account_by_id(kb_account_id)
      account.currency
    rescue => e
      'USD'
    end

    private

    def kb_apis
      # The logger should have been configured when the plugin started
      Killbill::Litle.kb_apis
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
killbill-litle-1.10.0 lib/litle/private_api.rb
killbill-litle-1.9.9 lib/litle/private_api.rb
killbill-litle-1.9.8 lib/litle/private_api.rb
killbill-litle-1.9.7 lib/litle/private_api.rb
killbill-litle-1.9.6 lib/litle/private_api.rb
killbill-litle-1.9.5 lib/litle/private_api.rb
killbill-litle-1.9.4 lib/litle/private_api.rb
killbill-litle-1.9.3 lib/litle/private_api.rb
killbill-litle-1.9.2 lib/litle/private_api.rb
killbill-litle-1.9.1 lib/litle/private_api.rb
killbill-litle-1.9.0 lib/litle/private_api.rb