Skip to content

Commit be64573

Browse files
committed
Merge branch 'release/1.10.16'
2 parents 15e2c09 + c4997ed commit be64573

File tree

409 files changed

+1051
-268
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

409 files changed

+1051
-268
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## [1.10.2](https://github.com/bunq/sdk_php/tree/1.10.2) (2019-05-15)
4+
[Full Changelog](https://github.com/bunq/sdk_php/compare/1.10.1...1.10.2)
5+
36
## [1.10.1](https://github.com/bunq/sdk_php/tree/1.10.1) (2019-05-15)
47
[Full Changelog](https://github.com/bunq/sdk_php/compare/1.10.0...1.10.1)
58

src/Http/ApiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ApiClient
8585
/**
8686
* User agent constants.
8787
*/
88-
const HEADER_USER_AGENT_BUNQ_SDK_DEFAULT = 'bunq-sdk-php/1.10.2';
88+
const HEADER_USER_AGENT_BUNQ_SDK_DEFAULT = 'bunq-sdk-php/1.10.16';
8989

9090
/**
9191
* Binary request constants.

src/Model/Generated/Endpoint/AttachmentConversationContent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace bunq\Model\Generated\Endpoint;
34

45
use bunq\Http\ApiClient;

src/Model/Generated/Endpoint/AttachmentMonetaryAccount.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace bunq\Model\Generated\Endpoint;
34

45
use bunq\Http\ApiClient;
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
<?php
2+
3+
namespace bunq\Model\Generated\Endpoint;
4+
5+
use bunq\Http\ApiClient;
6+
use bunq\Http\BunqResponse;
7+
use bunq\Model\Core\BunqModel;
8+
9+
/**
10+
* Fetch the raw content of a monetary account attachment with given ID. The
11+
* raw content is the binary representation of a file, without any JSON
12+
* wrapping.
13+
*
14+
* @generated
15+
*/
16+
class AttachmentMonetaryAccountContent extends BunqModel
17+
{
18+
/**
19+
* Endpoint constants.
20+
*/
21+
const ENDPOINT_URL_LISTING = 'user/%s/monetary-account/%s/attachment/%s/content';
22+
23+
/**
24+
* Object type.
25+
*/
26+
const OBJECT_TYPE_GET = 'AttachmentMonetaryAccountContent';
27+
28+
/**
29+
* Get the raw content of a specific attachment.
30+
*
31+
* This method is called "listing" because "list" is a restricted PHP word
32+
* and cannot be used as constants, class names, function or method names.
33+
*
34+
* @param int $attachmentId
35+
* @param int|null $monetaryAccountId
36+
* @param string[] $customHeaders
37+
*
38+
* @return BunqResponseString
39+
*/
40+
public static function listing(
41+
int $attachmentId,
42+
int $monetaryAccountId = null,
43+
array $customHeaders = []
44+
): BunqResponseString {
45+
$apiClient = new ApiClient(static::getApiContext());
46+
$responseRaw = $apiClient->get(
47+
vsprintf(
48+
self::ENDPOINT_URL_LISTING,
49+
[static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $attachmentId]
50+
),
51+
[],
52+
$customHeaders
53+
);
54+
55+
return BunqResponseString::castFromBunqResponse(
56+
new BunqResponse($responseRaw->getBodyString(), $responseRaw->getHeaders())
57+
);
58+
}
59+
60+
/**
61+
* @return bool
62+
*/
63+
public function isAllFieldNull()
64+
{
65+
return true;
66+
}
67+
}

src/Model/Generated/Endpoint/AttachmentPublic.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace bunq\Model\Generated\Endpoint;
34

45
use bunq\Http\ApiClient;

src/Model/Generated/Endpoint/AttachmentPublicContent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace bunq\Model\Generated\Endpoint;
34

45
use bunq\Http\ApiClient;

src/Model/Generated/Endpoint/AttachmentTab.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace bunq\Model\Generated\Endpoint;
34

45
use bunq\Http\ApiClient;

src/Model/Generated/Endpoint/AttachmentTabContent.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace bunq\Model\Generated\Endpoint;
34

45
use bunq\Http\ApiClient;

src/Model/Generated/Endpoint/AttachmentUser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace bunq\Model\Generated\Endpoint;
34

45
use bunq\Http\ApiClient;

0 commit comments

Comments
 (0)