-
Notifications
You must be signed in to change notification settings - Fork 54
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
#33 bunq response #34
Conversation
example/user_example.php
Outdated
// Retrieve the active user. | ||
/** @var User[] $users */ | ||
$users = User::listing($apiContext)->getValue(); | ||
$user= $users[INDEX_FIRST]->getUserCompany(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
*/ | ||
public function get($uri, array $customHeaders = []) | ||
{ | ||
return $this->request(self::METHOD_GET, $uri, [], $customHeaders); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bundle the CRUD functions together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
@@ -36,18 +36,20 @@ class AttachmentConversationContent extends BunqModel | |||
* @param int $attachmentId | |||
* @param string[] $customHeaders | |||
* | |||
* @return string|StreamInterface | |||
* @return BunqResponse<string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really php type ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this on purpose added to the generator?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this one is on purpose. For now it is just an indicator of which type is enclosed as value. Further on I will capitalize the type name, get rid of <
and >
, and generate BunqResponse
extensions featuring proper documentation.
@@ -59,13 +60,13 @@ class AttachmentMonetaryAccount extends BunqModel | |||
* @param int $monetaryAccountId | |||
* @param string[] $customHeaders | |||
* | |||
* @return int | |||
* @return BunqResponse<int> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests passing @dnl-blkv
Fixes #33