Skip to content

Commit

Permalink
Regenerated code. (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Nov 14, 2017
1 parent 933c414 commit b3030ec
Show file tree
Hide file tree
Showing 24 changed files with 47 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/BunqMeTabEntry.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class BunqMeTabEntry extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'BunqMeTabEntry';
const OBJECT_TYPE = 'BunqMeTab';

/**
* The uuid of the bunq.me.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/CardName.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class CardName extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'CardName';
const OBJECT_TYPE = 'CardUserNameArray';

/**
* All possible variations (of suitable length) of user's legal name for the
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/CashRegisterQrCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class CashRegisterQrCode extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'CashRegisterQrCode';
const OBJECT_TYPE = 'TokenQrCashRegister';

/**
* The id of the created QR code. Use this id to get the RAW content of the
Expand Down
1 change: 0 additions & 1 deletion src/Model/Generated/Endpoint/ChatConversation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace bunq\Model\Generated\Endpoint;

use bunq\Context\ApiContext;
use bunq\exception\BunqException;
use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/ChatConversationReference.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ChatConversationReference extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'ChatConversationReference';
const OBJECT_TYPE = 'SupportConversationReference';

/**
* The id of this conversation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ChatConversationSupportExternal extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'ChatConversationSupportExternal';
const OBJECT_TYPE = 'SupportConversationExternal';

/**
* The id of this conversation.
Expand Down
1 change: 0 additions & 1 deletion src/Model/Generated/Endpoint/ChatMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace bunq\Model\Generated\Endpoint;

use bunq\Context\ApiContext;
use bunq\exception\BunqException;
use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/ChatMessageAnnouncement.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ChatMessageAnnouncement extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'ChatMessageAnnouncement';
const OBJECT_TYPE = 'ChatMessageUser';

/**
* The id of the message.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/ChatMessageAttachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ChatMessageAttachment extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'ChatMessageAttachment';
const OBJECT_TYPE = 'Id';

/**
* The id of the newly created chat message.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/ChatMessageStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class ChatMessageStatus extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'ChatMessageStatus';
const OBJECT_TYPE = 'ChatMessageUser';

/**
* The id of the message.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/ChatMessageText.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ChatMessageText extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'ChatMessageText';
const OBJECT_TYPE = 'Id';

/**
* The id of the newly created chat message.
Expand Down
25 changes: 25 additions & 0 deletions src/Model/Generated/Endpoint/CustomerLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ class CustomerLimit extends BunqModel
*/
protected $limitCardDebitMastercard;

/**
* The limit of wildcards, e.g. Maestro or MasterCard cards.
*
* @var int
*/
protected $limitCardDebitWildcard;

/**
* The limit of free replacement cards.
*
Expand Down Expand Up @@ -135,6 +142,24 @@ public function setLimitCardDebitMastercard($limitCardDebitMastercard)
$this->limitCardDebitMastercard = $limitCardDebitMastercard;
}

/**
* The limit of wildcards, e.g. Maestro or MasterCard cards.
*
* @return int
*/
public function getLimitCardDebitWildcard()
{
return $this->limitCardDebitWildcard;
}

/**
* @param int $limitCardDebitWildcard
*/
public function setLimitCardDebitWildcard($limitCardDebitWildcard)
{
$this->limitCardDebitWildcard = $limitCardDebitWildcard;
}

/**
* The limit of free replacement cards.
*
Expand Down
1 change: 0 additions & 1 deletion src/Model/Generated/Endpoint/Device.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace bunq\Model\Generated\Endpoint;

use bunq\Context\ApiContext;
use bunq\exception\BunqException;
use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;
Expand Down
4 changes: 2 additions & 2 deletions src/Model/Generated/Endpoint/IdealMerchantTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class IdealMerchantTransaction extends BunqModel
protected $issuerName;

/**
* The URL to visit to
* The URL to visit to
*
* @var string
*/
Expand Down Expand Up @@ -359,7 +359,7 @@ public function setIssuerName($issuerName)
}

/**
* The URL to visit to
* The URL to visit to
*
* @return string
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class InstallationServerPublicKey extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'InstallationServerPublicKey';
const OBJECT_TYPE = 'ServerPublicKey';

/**
* The server's public key for this Installation.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/InvoiceByUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class InvoiceByUser extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'InvoiceByUser';
const OBJECT_TYPE = 'Invoice';

/**
* The id of the invoice object.
Expand Down
1 change: 0 additions & 1 deletion src/Model/Generated/Endpoint/MonetaryAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace bunq\Model\Generated\Endpoint;

use bunq\Context\ApiContext;
use bunq\exception\BunqException;
use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/PaymentChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PaymentChat extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'PaymentChat';
const OBJECT_TYPE = 'ChatConversationPayment';

/**
* The id of the chat conversation.
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Generated/Endpoint/SchedulePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class SchedulePayment extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'SchedulePayment';
const OBJECT_TYPE = 'ScheduledPayment';

/**
* The payment details.
Expand Down Expand Up @@ -162,9 +162,9 @@ public static function listing(ApiContext $apiContext, int $userId, int $monetar
* @param int $schedulePaymentId
* @param string[] $customHeaders
*
* @return BunqResponseInt
* @return BunqResponseSchedulePayment
*/
public static function update(ApiContext $apiContext, array $requestMap, int $userId, int $monetaryAccountId, int $schedulePaymentId, array $customHeaders = []): BunqResponseInt
public static function update(ApiContext $apiContext, array $requestMap, int $userId, int $monetaryAccountId, int $schedulePaymentId, array $customHeaders = []): BunqResponseSchedulePayment
{
$apiClient = new ApiClient($apiContext);
$responseRaw = $apiClient->put(
Expand All @@ -176,8 +176,8 @@ public static function update(ApiContext $apiContext, array $requestMap, int $us
$customHeaders
);

return BunqResponseInt::castFromBunqResponse(
static::processForId($responseRaw)
return BunqResponseSchedulePayment::castFromBunqResponse(
static::fromJson($responseRaw, self::OBJECT_TYPE)
);
}

Expand Down
1 change: 0 additions & 1 deletion src/Model/Generated/Endpoint/Tab.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace bunq\Model\Generated\Endpoint;

use bunq\Context\ApiContext;
use bunq\exception\BunqException;
use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/TabItemShop.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class TabItemShop extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'TabItemShop';
const OBJECT_TYPE = 'TabItem';

/**
* The id of the created TabItem.
Expand Down
1 change: 0 additions & 1 deletion src/Model/Generated/Endpoint/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
namespace bunq\Model\Generated\Endpoint;

use bunq\Context\ApiContext;
use bunq\exception\BunqException;
use bunq\Http\ApiClient;
use bunq\Http\BunqResponse;
use bunq\Model\Core\BunqModel;
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/UserCredentialPasswordIp.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class UserCredentialPasswordIp extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'UserCredentialPasswordIp';
const OBJECT_TYPE = 'CredentialPasswordIp';

/**
* The id of the credential.
Expand Down
2 changes: 1 addition & 1 deletion src/Model/Generated/Endpoint/UserLight.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class UserLight extends BunqModel
/**
* Object type.
*/
const OBJECT_TYPE = 'UserLight';
const OBJECT_TYPE = 'UserPerson';

/**
* The id of the user.
Expand Down

0 comments on commit b3030ec

Please sign in to comment.