Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix NotificationFilter, Model issues and implement PSD2 #179

Merged
merged 4 commits into from
Sep 10, 2019

Conversation

FNG21
Copy link
Contributor

@FNG21 FNG21 commented Sep 6, 2019

This PR closes/fixes the following issues:

README.md Outdated
@@ -84,6 +84,31 @@ BunqContext::loadApiContext($apiContext);

**Tip:** both saving and restoring the context can be done without any arguments. In this case the context will be saved to/restored from the `bunq.conf` file in the same folder with your script.

##### PSD2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

empty line

* @param BunqEnumApiEnvironmentType $environmentType
* @param Certificate $publicCertificate
* @param PrivateKey $privateKey
* @param array $allChainCertificate
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

array of strings? or Certificate?

* @param PrivateKey $privateKey
* @param array $allChainCertificate
* @param string $description
* @param array $allPermittedIp
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same. is this an array of objects?

*/
private function initializeAllDefinitionIfNeeded()
{
if (defined(self::CURL_FIELD_KEY_PINNING)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put a comment why (and for which php version we do this

@@ -349,6 +354,21 @@ protected static function fromJson(BunqResponseRaw $responseRaw, string $wrapper
return new BunqResponse($value[self::INDEX_FIRST], $responseRaw->getHeaders());
}

/**
* @param $path
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

string?

* @return string
* @throws BunqException
*/
private static function determineTokenUriFormat()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return type

*/
class PaymentServiceProviderCredentialInternal extends PaymentServiceProviderCredential
{

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove empty line

* with the private key belonging to the QSEAL
* certificate.
* @param ApiContext $apiContext
* @param array $allCustomHeader
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

define the type

string $clientPublicKeySignature,
ApiContext $apiContext,
array $allCustomHeader = []
) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return type

protected static function fromRawResponse(BunqResponseRaw $responseRaw): BunqResponse
{
$allCredential = UserCredentialPasswordIp::fromJson($responseRaw, self::FIELD_OBJECT_TYPE);
return new BunqResponseUserCredentialPasswordIp($allCredential->getValue(), $responseRaw->getHeaders());
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

always empty line above return

@andrederoos andrederoos merged commit 663fa2d into develop Sep 10, 2019
@andrederoos andrederoos deleted the feature/sdk_php#1295 branch September 10, 2019 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment