Symitar
Core
- class q2_cores.Symitar.core.Core(logger, core_user, hq_credentials=None, **kwargs)[source]
Bases:
BaseCore
All cores will inherit from this common base class. This contains a self.configured_user property, which is an instance of
q2_sdk.models.cores.models.core_user.CoreUser
.- CONFIG_FILE_NAME = 'Symitar_Core'
- REQUIRED_CONFIGURATIONS = {'CARD_PREFIX': '1', 'DEVICE_TYPE': 'Q2', 'UNIT_NUMBER': '1'}
- OPTIONAL_CONFIGURATIONS = {'GET_CARD_TYPE_WHITELIST': ['Credit Card'], 'SET_MEMBER_NUMBER_AS_DEMO_CIF': False, 'STRIP_ZEROS_FROM_MEMBER_NUMBER': False, 'USE_SYMXCHANGE': False}
- async build_base_query(repgen_name, procedure, member_number=None, data_attrs=None, mock_response_string=None, data_file_name='', rg_params=None, purge_account_cache=False, mock_failure=False)[source]
A helper method for constructing an Repgen/PowerOn Symconnect request string.
- Parameters:
repgen_name (
str
) – Repgen/PowerOn name that will be calledprocedure (
str
) – Value that will be passed to RGSTATEmember_number (
str
) – Symitar account number, defaults to None. If none will use self.configured_user.customer_primary_cifdata_attrs (
dict
) – Key/Value pairs to be saved into a letter file e.g. first_name=Joe, defaults to Nonemock_response_string (
str
) – The response to emulate what Symitar would respond with, defaults to Nonedata_file_name (
str
) – Name of the letter file that will be created if using data_attrs, defaults to “”. If used RGUSERCHR1 will also contain the letter file name.rg_params (
dict
) – RGUSERCHR1 through RGUSERCHR5 parameters, defaults to Nonepurge_account_cache (
bool
) – Will tell the adapter to dump it’s cache for this account, defaults to Falsemock_failure – Simulate a Core failure
- Return type:
- Returns:
A mapper that can be executed on
- async build_demographic_info()[source]
Returns a DemographicInfoMapper ready to execute
- Return type:
- async skip_loan(loan_id, account_id, skip_fee, repgen='Q2.SKIP.PAY', procedure='SKIP', loan_note=None)[source]
- Return type:
- async assess_skip_fee(loan_id, account_id, gl_code, skip_fee, repgen='Q2.SKIP.PAY', startstate='STARTSTATE')[source]
- Return type:
- async open_sub_account(share_type_id, funding_amount, share_start_id, data_file_name, withholdings=None, joint_locator=None)[source]
- Return type:
- build_principal_payment_string(transaction_info)[source]
Builds custom Symitar principal loan payment request to be added to AddFundsTransfer GT Data
- Return type:
DataHelpers
- q2_cores.Symitar.data_helpers.principal_payment_query(str_acct_num_internal=False)[source]
- Return type:
str
- class q2_cores.Symitar.data_helpers.XMLNamespaces(soapenv='http://schemas.xmlsoap.org/soap/envelope/', pow_ns='http://www.symxchange.generated.symitar.com/poweron', tns='http://www.symxchange.generated.symitar.com/common/dto/common')[source]
Bases:
object
XMLNamespaces(soapenv: str = ‘http://schemas.xmlsoap.org/soap/envelope/’, pow_ns: str = ‘http://www.symxchange.generated.symitar.com/poweron’, tns: str = ‘http://www.symxchange.generated.symitar.com/common/dto/common’)
-
soapenv:
str
= 'http://schemas.xmlsoap.org/soap/envelope/'
-
pow_ns:
str
= 'http://www.symxchange.generated.symitar.com/poweron'
-
tns:
str
= 'http://www.symxchange.generated.symitar.com/common/dto/common'
-
soapenv:
- q2_cores.Symitar.data_helpers.make_symxchange_xml(symconnect_string)[source]
reformat repgen string into SOAP request which differ based on call signature. https://confluence.q2ebanking.com/display/ProServ/SymConn+to+SymX