Skip to content

Commit

Permalink
Merge branch 'release/1.10.16'
Browse files Browse the repository at this point in the history
  • Loading branch information
andrederoos committed Jun 15, 2019
2 parents 15e2c09 + c4997ed commit be64573
Show file tree
Hide file tree
Showing 409 changed files with 1,051 additions and 268 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Change Log

## [1.10.2](https://github.com/bunq/sdk_php/tree/1.10.2) (2019-05-15)
[Full Changelog](https://github.com/bunq/sdk_php/compare/1.10.1...1.10.2)

## [1.10.1](https://github.com/bunq/sdk_php/tree/1.10.1) (2019-05-15)
[Full Changelog](https://github.com/bunq/sdk_php/compare/1.10.0...1.10.1)

Expand Down
2 changes: 1 addition & 1 deletion src/Http/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class ApiClient
/**
* User agent constants.
*/
const HEADER_USER_AGENT_BUNQ_SDK_DEFAULT = 'bunq-sdk-php/1.10.2';
const HEADER_USER_AGENT_BUNQ_SDK_DEFAULT = 'bunq-sdk-php/1.10.16';

/**
* Binary request constants.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/AttachmentMonetaryAccount.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
67 changes: 67 additions & 0 deletions src/Model/Generated/Endpoint/AttachmentMonetaryAccountContent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;

/**
* Fetch the raw content of a monetary account attachment with given ID. The
* raw content is the binary representation of a file, without any JSON
* wrapping.
*
* @generated
*/
class AttachmentMonetaryAccountContent extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_LISTING = 'user/%s/monetary-account/%s/attachment/%s/content';

/**
* Object type.
*/
const OBJECT_TYPE_GET = 'AttachmentMonetaryAccountContent';

/**
* Get the raw content of a specific attachment.
*
* This method is called "listing" because "list" is a restricted PHP word
* and cannot be used as constants, class names, function or method names.
*
* @param int $attachmentId
* @param int|null $monetaryAccountId
* @param string[] $customHeaders
*
* @return BunqResponseString
*/
public static function listing(
int $attachmentId,
int $monetaryAccountId = null,
array $customHeaders = []
): BunqResponseString {
$apiClient = new ApiClient(static::getApiContext());
$responseRaw = $apiClient->get(
vsprintf(
self::ENDPOINT_URL_LISTING,
[static::determineUserId(), static::determineMonetaryAccountId($monetaryAccountId), $attachmentId]
),
[],
$customHeaders
);

return BunqResponseString::castFromBunqResponse(
new BunqResponse($responseRaw->getBodyString(), $responseRaw->getHeaders())
);
}

/**
* @return bool
*/
public function isAllFieldNull()
{
return true;
}
}
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/AttachmentPublic.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/AttachmentPublicContent.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/AttachmentTab.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/AttachmentTabContent.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/AttachmentUser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
62 changes: 62 additions & 0 deletions src/Model/Generated/Endpoint/AttachmentUserContent.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;

/**
* Fetch the raw content of a user attachment with given ID. The raw content
* is the binary representation of a file, without any JSON wrapping.
*
* @generated
*/
class AttachmentUserContent extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_LISTING = 'user/%s/attachment/%s/content';

/**
* Object type.
*/
const OBJECT_TYPE_GET = 'AttachmentUserContent';

/**
* Get the raw content of a specific attachment.
*
* This method is called "listing" because "list" is a restricted PHP word
* and cannot be used as constants, class names, function or method names.
*
* @param int $attachmentId
* @param string[] $customHeaders
*
* @return BunqResponseString
*/
public static function listing(int $attachmentId, array $customHeaders = []): BunqResponseString
{
$apiClient = new ApiClient(static::getApiContext());
$responseRaw = $apiClient->get(
vsprintf(
self::ENDPOINT_URL_LISTING,
[static::determineUserId(), $attachmentId]
),
[],
$customHeaders
);

return BunqResponseString::castFromBunqResponse(
new BunqResponse($responseRaw->getBodyString(), $responseRaw->getHeaders())
);
}

/**
* @return bool
*/
public function isAllFieldNull()
{
return true;
}
}
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/Avatar.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Model\Core\BunqModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down Expand Up @@ -55,7 +56,7 @@ public static function get(
[
static::determineUserId(),
static::determineMonetaryAccountId($monetaryAccountId),
$bankSwitchServiceNetherlandsIncomingPaymentId,
$bankSwitchServiceNetherlandsIncomingPaymentId
]
),
[],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqMeFundraiserProfile.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Model\Core\BunqModel;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down
3 changes: 2 additions & 1 deletion src/Model/Generated/Endpoint/BunqMeFundraiserResult.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down Expand Up @@ -75,7 +76,7 @@ public static function get(
[
static::determineUserId(),
static::determineMonetaryAccountId($monetaryAccountId),
$bunqMeFundraiserResultId,
$bunqMeFundraiserResultId
]
),
[],
Expand Down
3 changes: 2 additions & 1 deletion src/Model/Generated/Endpoint/BunqMeTab.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down Expand Up @@ -149,7 +150,7 @@ public static function create(
),
[
self::FIELD_BUNQME_TAB_ENTRY => $bunqmeTabEntry,
self::FIELD_STATUS => $status,
self::FIELD_STATUS => $status
],
$customHeaders
);
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqMeTabEntry.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Model\Core\BunqModel;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqMeTabResultInquiry.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Model\Core\BunqModel;
Expand Down
3 changes: 2 additions & 1 deletion src/Model/Generated/Endpoint/BunqMeTabResultResponse.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\ApiClient;
Expand Down Expand Up @@ -49,7 +50,7 @@ public static function get(
[
static::determineUserId(),
static::determineMonetaryAccountId($monetaryAccountId),
$bunqMeTabResultResponseId,
$bunqMeTabResultResponseId
]
),
[],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqResponseAttachmentTab.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqResponseAvatar.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqResponseBunqMeTab.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqResponseBunqMeTabList.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqResponseCard.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqResponseCardBatch.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
1 change: 1 addition & 0 deletions src/Model/Generated/Endpoint/BunqResponseCardDebit.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;
Expand Down
Loading

0 comments on commit be64573

Please sign in to comment.