diff --git a/app/Services/Bunq/Request/BunqRequest.php b/app/Services/Bunq/Request/BunqRequest.php index 7ee19f807c..fc67efaf0f 100644 --- a/app/Services/Bunq/Request/BunqRequest.php +++ b/app/Services/Bunq/Request/BunqRequest.php @@ -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. */ diff --git a/app/Support/Import/Prerequisites/BunqPrerequisites.php b/app/Support/Import/Prerequisites/BunqPrerequisites.php index 2171b76203..8cd8da9697 100644 --- a/app/Support/Import/Prerequisites/BunqPrerequisites.php +++ b/app/Support/Import/Prerequisites/BunqPrerequisites.php @@ -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)); } diff --git a/resources/lang/en_US/bank.php b/resources/lang/en_US/bank.php new file mode 100644 index 0000000000..11f05b3785 --- /dev/null +++ b/resources/lang/en_US/bank.php @@ -0,0 +1,6 @@ + '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.', +]; \ No newline at end of file diff --git a/resources/lang/en_US/form.php b/resources/lang/en_US/form.php index 890a940ead..9f8562113c 100644 --- a/resources/lang/en_US/form.php +++ b/resources/lang/en_US/form.php @@ -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)',