-
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
Add support for the undocumented user/%s/monetary-account/%s/customer-statement/%s/content call #147
Comments
I think this is what you are looking for ?
|
Yes, couldn't find that 👍 |
@karstennilsen i dont understand ? Its listed as the second endpoint under https://doc.bunq.com/#tag/content |
Lol, ok this proves your manual is impossible to read :) You expect this in the customer-statement category. |
the doc is categorized on endpoints. This falls under the |
Totally fine. The only point I'm trying to make is that I as quite experienced developer couldn't find it. |
You can get all the information of a customer statement, but you can't actually download the customer statement.
Please add a content() function in CustomerStatementExport.php.
For now I added for myself:
/**
* @param int $customerStatementExportId
* @param int|null $monetaryAccountId
* @param string[] $customHeaders
*
* @return BunqResponseCustomerStatementExport
*/
public static function content(
int $customerStatementExportId,
int $monetaryAccountId = null,
array $customHeaders = []
) {
$apiClient = new ApiClient(static::getApiContext());
$responseRaw = $apiClient->get(
vsprintf(
self::ENDPOINT_URL_READ . '/content',
[
static::determineUserId(),
static::determineMonetaryAccountId($monetaryAccountId),
$customerStatementExportId,
]
),
[],
$customHeaders
);
The text was updated successfully, but these errors were encountered: