Sha256: 1be93b7d9e7669f90e29d9d27fd683a4359c970c9aa18b0085421a8da902e0af

Contents?: true

Size: 647 Bytes

Versions: 2

Compression:

Stored size: 647 Bytes

Contents

# frozen_string_literal: true

require 'deposit/engine'

module Deposit
  mattr_accessor :current_tenant_user
  mattr_accessor :layout

  mattr_accessor :deposit_types

  self.current_tenant_user = lambda { |_session, _user|
    { username: 'admin',
      password: 'password',
      session_id: nil,
      api_key: KillBillClient.api_key,
      api_secret: KillBillClient.api_secret }
  }

  def self.config
    {
      layout: layout || 'deposit/layouts/deposit_application'
    }
  end

  # Default deposit types
  self.deposit_types = %w[Wire
                          Check
                          Cash
                          OTHER]
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
killbill-deposit-0.0.4 lib/deposit.rb
killbill-deposit-0.0.3 lib/deposit.rb