Small improvements to bunq import.

This commit is contained in:
James Cole
2017-09-28 08:17:32 +02:00
parent b80b026246
commit c19c7c680b
4 changed files with 16 additions and 1 deletions

View File

@@ -40,6 +40,15 @@ abstract class BunqRequest
'x-bunq-client-request-id' => 'X-Bunq-Client-Request-Id',
];
/**
* @return ServerPublicKey
*/
public function getServerPublicKey(): ServerPublicKey
{
return $this->serverPublicKey;
}
/**
* BunqRequest constructor.
*/

View File

@@ -68,7 +68,6 @@ class BunqPrerequisites implements PrerequisitesInterface
{
$apiKey = Preferences::getForUser($this->user, 'bunq_api_key', false);
return ($apiKey->data === false || is_null($apiKey->data));
}

View File

@@ -0,0 +1,6 @@
<?php
return [
'bunq_prerequisites_title' => 'Prerequisites for an import from bunq',
'bunq_prerequisites_text' => 'In order to import from bunq, you need to obtain an API key. You can do this through the app.',
];

View File

@@ -69,6 +69,7 @@ return [
'native_amount' => 'Native amount',
'new_email_address' => 'New email address',
'verification' => 'Verification',
'api_key' => 'API key',
'source_account_asset' => 'Source account (asset account)',
'destination_account_expense' => 'Destination account (expense account)',