Source: factory.service/package.switchx/ObjServiceTruID.py
| Method | Signature | Description |
|---|---|---|
| Send | Send() |
|
| Connect | Connect() |
Invoked from run_workflow_direct. This service requires a valid TransactionGuid to function correctly. First, we check if Param1 is a valid TransactionGuid. If it is not, we check to see if we are getting a CollectionID via _calc_callback_collection_id. |
| run_workflow_direct | run_workflow_direct(guid, param1 = '', param2 = '', param3 = '') |
Entry point for service. Looks for a _calc_api_route field and uses this to determine which route to follow and which functions to run. |
| send_bank_statement | send_bank_statement() -> None |
API call to send a bank statement to truID. |
| send_payslip | send_payslip() -> None |
API call to send a payslip to truID. |
| send_all_docs | send_all_docs() -> None |
API call to send all documents to truID. Uses self.bank_statement_file_locations and self.payslip_file_locations to find necessary files |
| get_all_results | get_all_results(collection_id) -> None |
Entry point to send several API calls to retrieve results from documents that were previously sent to truID. |
| get_bank_statement_results | get_bank_statement_results(collection_id) -> None |
Function calls truID API to get a list of categorised transactions. |
| get_payslip_results | get_payslip_results(collection_id) -> None |
Function to fetch and store data from payslips. |
| get_debit_order_transactions | get_debit_order_transactions(collection_id) -> None |
Function to make a call to truID and receive a list of recurring debit ordres which are then saved to data_colletion_debit_order. |
| get_income_verification | get_income_verification(collection_id) -> None |
Function to make an Income Verification truID call and save the results to data_colletion_income_verification. |
| insert_collection_data | insert_collection_data(collection_id, doc_type) -> None |
|
| fraud_checks | fraud_checks(collection_id) -> None |
|
| download_products_call | download_products_call(collection_id, product_id = '') -> dict |
Function to make a "Downloads Product" call to truID and return the results as a dict. |
| set_product_ids | set_product_ids(collection_id) -> None |
Function to be called when we need to retrieve results from truID. This function makes a call to truID and stores a dictionary of the product IDs that we need to retrieve the different results. |