import os
import sys

#4 levels up
if not (os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))) in sys.path): sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(__file__)))))
if not (os.path.dirname(os.path.dirname(os.path.dirname(__file__))) in sys.path): sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(__file__))))
if not (os.path.dirname(os.path.dirname(__file__)) in sys.path): sys.path.append(os.path.dirname(os.path.dirname(__file__)))
if not (os.path.dirname(__file__) in sys.path): sys.path.append(os.path.dirname(__file__))


thisfolder =os.path.dirname(__file__)
module_id = os.path.basename(thisfolder)
module_version = 0.1

from _serverApp import thisApp
from _serverApp import log_message

from bankServices__API import authorize_and_commit_subscription
from bankServices__API import authorize_payment
from bankServices__API import authorize_subscription
from bankServices__API import bank_is_supported
from bankServices__API import change_subscription
from bankServices__API import commit_subscription
from bankServices__API import create_authorize_and_commit_subscription
from bankServices__API import create_subscription
from bankServices__API import delete_payment
from bankServices__API import delete_subscription
from bankServices__API import get_access_token
from bankServices__API import get_account_balances
from bankServices__API import get_account_details
from bankServices__API import get_account_payments
from bankServices__API import get_account_subscriptions
from bankServices__API import get_account_transactions
from bankServices__API import get_authorization_token
from bankServices__API import get_payment_details
from bankServices__API import get_payment_status
from bankServices__API import get_subscription_accounts
from bankServices__API import get_subscription_customers
from bankServices__API import get_subscription_details
from bankServices__API import post_payment

msg = f'module [{module_id}] [[version {module_version}]] loaded.'
if thisApp.get_module_debug_level(module_id):
    log_message(msg)
