ATTENTION: This gem is work in progress and not feature complete (yet)
Ruby wrapper for the Crealogix E-Banking web "offline-tool" (API).
gem install logix
Certificate & Private key: To be able to connect to your bank you need a valid Certificate and Private Key (usually issued by your Bank / Crealogix).
First you create a new Logix::Client instance like follow:
Example:
client = Logix::Client.new(password: 'y0l0', certificate: "CERTIFICATE CONTENT HERE", private_key: "KEY CONTENT hERE", endpoint: "tb.raiffeisendirect.ch")
TODO: Show example for additional options like soft_cert_authentication_endpoint here.
Certificate Activation If the certificate expires it has to be renewed once using following command:
client.activate!(codeA: 'XXX', codeB: 'xxx')
After creating the client you can log-in like this.
Login:
client.login!
If the login is successfull it will return true. Otherwise the method will return false.
To see the specific error codes you can use the client.last_response method.
Getting the last response
This will return the last HTTP response as a Faraday Hash object.
client.last_response
MT940 Download
client.mt940_download(data_type: newMT940)
Returns the latest unprocessesd MT940 Files.
client.mt940_download(data_type: oldMT940)
Returns all MT940 Files that have already been processed.
##Still in work
Following API methods are complete:
client.login!client.mt940_download(needs tests)
Following API methods are not yet implemented:
client.sys_infoclient.authenticate!client.logoutclient.session_statusclient.login_timeclient.esr_downloadclient.ipi_downloadclient.lsv_downloadclient.mt471_downloadclient.mt536_downloadclient.mt5xx_downloadclient.dta_uploadclient.dta_status_requestclient.download_bank_document_categoriesclient.download_bank_documents