# Path: payway/qiwi/conf/settings.py
# QIWI_ALARM  = getattr(settings, 'QIWI_ALARM', 0)
# 
# QIWI_CREATE  = getattr(settings, 'QIWI_CREATE', False)
# 
# QIWI_SOAP_CLIENT_URL = getattr(settings, 'QIWI_SOAP_CLIENT_URL', 'https://ishop.qiwi.ru/services/ishop?wsdl')
# 
# QIWI_BILL_LIFETIME = getattr(settings, 'QIWI_BILL_LIFETIME', 24)  # hours
# 
# QIWI_DATETIME_FORMAT = getattr(settings, 'QIWI_DATETIME_FORMAT', '%d.%m.%Y %H:%M:%S')
# 
# Path: payway/qiwi/conf/settings.py
# QIWI_LOGIN = getattr(settings, 'QIWI_LOGIN')
# 
# QIWI_PASSWORD = getattr(settings, 'QIWI_PASSWORD')
# 
# XML_SCHEMA_PATH = 'file://' + os.path.join(QIWI_MODULE_PATH, 'templates', 'suds', 'XMLSchema.xml')


import datetime
import logging
from suds.xsd import sxbasic
from suds.client import Client
from payway.qiwi.conf.settings import QIWI_ALARM, QIWI_CREATE, QIWI_SOAP_CLIENT_URL, QIWI_BILL_LIFETIME, QIWI_DATETIME_FORMAT
from payway.qiwi.conf.settings import QIWI_LOGIN, QIWI_PASSWORD, XML_SCHEMA_PATH
# -*- coding: UTF-8 -*-


logger = logging.getLogger(__name__)

__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'

sxbasic.Import.bind('http://www.w3.org/2001/XMLSchema', XML_SCHEMA_PATH) # for suds


class QiwiSoapClientException(Exception):

# Path: payway/qiwi/conf/settings.py
# QIWI_ALARM  = getattr(settings, 'QIWI_ALARM', 0)
# 
# QIWI_CREATE  = getattr(settings, 'QIWI_CREATE', False)
# 
# QIWI_SOAP_CLIENT_URL = getattr(settings, 'QIWI_SOAP_CLIENT_URL', 'https://ishop.qiwi.ru/services/ishop?wsdl')
# 
# QIWI_BILL_LIFETIME = getattr(settings, 'QIWI_BILL_LIFETIME', 24)  # hours
# 
# QIWI_DATETIME_FORMAT = getattr(settings, 'QIWI_DATETIME_FORMAT', '%d.%m.%Y %H:%M:%S')
# 
# Path: payway/qiwi/conf/settings.py
# QIWI_LOGIN = getattr(settings, 'QIWI_LOGIN')
# 
# QIWI_PASSWORD = getattr(settings, 'QIWI_PASSWORD')
# 
# XML_SCHEMA_PATH = 'file://' + os.path.join(QIWI_MODULE_PATH, 'templates', 'suds', 'XMLSchema.xml')


# Path: payway/qiwi/soap/client.py
import datetime
import logging
from suds.xsd import sxbasic
from suds.client import Client
from payway.qiwi.conf.settings import QIWI_ALARM, QIWI_CREATE, QIWI_SOAP_CLIENT_URL, QIWI_BILL_LIFETIME, QIWI_DATETIME_FORMAT
from payway.qiwi.conf.settings import QIWI_LOGIN, QIWI_PASSWORD, XML_SCHEMA_PATH

# -*- coding: UTF-8 -*-


logger = logging.getLogger(__name__)

__author__ = 'Razzhivin Alexander'
__email__ = 'admin@httpbots.com'

sxbasic.Import.bind('http://www.w3.org/2001/XMLSchema', XML_SCHEMA_PATH) # for suds


class QiwiSoapClientException(Exception):

    pass