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 9, 2017
1 parent 965d5f7 commit 2a3a462
Show file tree
Hide file tree
Showing 70 changed files with 2,065 additions and 317 deletions.
10 changes: 5 additions & 5 deletions src/Model/Generated/Endpoint/AttachmentMonetaryAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,18 @@
*/
class AttachmentMonetaryAccount extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/monetary-account/%s/attachment';

/**
* Binary constants.
*/
const FIELD_BODY = ApiClient::FIELD_BODY;
const FIELD_CONTENT_TYPE = ApiClient::FIELD_CONTENT_TYPE;
const FIELD_DESCRIPTION = ApiClient::FIELD_DESCRIPTION;

/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/monetary-account/%s/attachment';

/**
* Object type.
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Model/Generated/Endpoint/AttachmentPublic.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
*/
class AttachmentPublic extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'attachment-public';
const ENDPOINT_URL_READ = 'attachment-public/%s';

/**
* Binary constants.
*/
const FIELD_BODY = ApiClient::FIELD_BODY;
const FIELD_CONTENT_TYPE = ApiClient::FIELD_CONTENT_TYPE;
const FIELD_DESCRIPTION = ApiClient::FIELD_DESCRIPTION;

/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'attachment-public';
const ENDPOINT_URL_READ = 'attachment-public/%s';

/**
* Object type.
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Model/Generated/Endpoint/AttachmentTab.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
*/
class AttachmentTab extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/monetary-account/%s/attachment-tab';
const ENDPOINT_URL_READ = 'user/%s/monetary-account/%s/attachment-tab/%s';

/**
* Binary constants.
*/
const FIELD_BODY = ApiClient::FIELD_BODY;
const FIELD_CONTENT_TYPE = ApiClient::FIELD_CONTENT_TYPE;
const FIELD_DESCRIPTION = ApiClient::FIELD_DESCRIPTION;

/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/monetary-account/%s/attachment-tab';
const ENDPOINT_URL_READ = 'user/%s/monetary-account/%s/attachment-tab/%s';

/**
* Object type.
*/
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Generated/Endpoint/Avatar.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@
*/
class Avatar extends BunqModel
{
/**
* Field constants.
*/
const FIELD_ATTACHMENT_PUBLIC_UUID = 'attachment_public_uuid';

/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'avatar';
const ENDPOINT_URL_READ = 'avatar/%s';

/**
* Field constants.
*/
const FIELD_ATTACHMENT_PUBLIC_UUID = 'attachment_public_uuid';

/**
* Object type.
*/
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Generated/Endpoint/BillingContractSubscription.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@
*/
class BillingContractSubscription extends BunqModel
{
/**
* Field constants.
*/
const FIELD_SUBSCRIPTION_TYPE = 'subscription_type';

/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/billing-contract-subscription';
const ENDPOINT_URL_LISTING = 'user/%s/billing-contract-subscription';

/**
* Field constants.
*/
const FIELD_SUBSCRIPTION_TYPE = 'subscription_type';

/**
* Object type.
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Model/Generated/Endpoint/BunqMeTab.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,6 @@
*/
class BunqMeTab extends BunqModel
{
/**
* Field constants.
*/
const FIELD_BUNQME_TAB_ENTRY = 'bunqme_tab_entry';
const FIELD_STATUS = 'status';

/**
* Endpoint constants.
*/
Expand All @@ -29,6 +23,12 @@ class BunqMeTab extends BunqModel
const ENDPOINT_URL_LISTING = 'user/%s/monetary-account/%s/bunqme-tab';
const ENDPOINT_URL_READ = 'user/%s/monetary-account/%s/bunqme-tab/%s';

/**
* Field constants.
*/
const FIELD_BUNQME_TAB_ENTRY = 'bunqme_tab_entry';
const FIELD_STATUS = 'status';

/**
* Object type.
*/
Expand Down
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 = 'BunqMeTab';
const OBJECT_TYPE = 'BunqMeTabEntry';

/**
* The uuid of the bunq.me.
Expand Down
44 changes: 44 additions & 0 deletions src/Model/Generated/Endpoint/BunqMeTabResultResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
namespace bunq\Model\Generated\Endpoint;

use bunq\Model\Core\BunqModel;

/**
* Used to view bunq.me TabResultResponse objects belonging to a tab. A
* TabResultResponse is an object that holds details on a tab which has been
* paid from the provided monetary account.
*
* @generated
*/
class BunqMeTabResultResponse extends BunqModel
{
/**
* Object type.
*/
const OBJECT_TYPE = 'BunqMeTabResultResponse';

/**
* The payment made for the bunq.me tab.
*
* @var Payment
*/
protected $payment;

/**
* The payment made for the bunq.me tab.
*
* @return Payment
*/
public function getPayment()
{
return $this->payment;
}

/**
* @param Payment $payment
*/
public function setPayment($payment)
{
$this->payment = $payment;
}
}
17 changes: 17 additions & 0 deletions src/Model/Generated/Endpoint/BunqResponseMasterCardAction.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;

/**
*/
class BunqResponseMasterCardAction extends BunqResponse
{
/**
* @return MasterCardAction
*/
public function getValue(): MasterCardAction
{
return parent::getValue();
}
}
17 changes: 17 additions & 0 deletions src/Model/Generated/Endpoint/BunqResponseMasterCardActionList.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php
namespace bunq\Model\Generated\Endpoint;

use bunq\Http\BunqResponse;

/**
*/
class BunqResponseMasterCardActionList extends BunqResponse
{
/**
* @return MasterCardAction[]
*/
public function getValue(): array
{
return parent::getValue();
}
}
16 changes: 8 additions & 8 deletions src/Model/Generated/Endpoint/Card.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
*/
class Card extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_UPDATE = 'user/%s/card/%s';
const ENDPOINT_URL_READ = 'user/%s/card/%s';
const ENDPOINT_URL_LISTING = 'user/%s/card';

/**
* Field constants.
*/
Expand All @@ -31,17 +38,10 @@ class Card extends BunqModel
const FIELD_PIN_CODE_ASSIGNMENT = 'pin_code_assignment';
const FIELD_MONETARY_ACCOUNT_ID_FALLBACK = 'monetary_account_id_fallback';

/**
* Endpoint constants.
*/
const ENDPOINT_URL_UPDATE = 'user/%s/card/%s';
const ENDPOINT_URL_READ = 'user/%s/card/%s';
const ENDPOINT_URL_LISTING = 'user/%s/card';

/**
* Object type.
*/
const OBJECT_TYPE = 'CardDebit';
const OBJECT_TYPE = 'Card';

/**
* The id of the card.
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Generated/Endpoint/CardDebit.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
*/
class CardDebit extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/card-debit';

/**
* Field constants.
*/
Expand All @@ -31,11 +36,6 @@ class CardDebit extends BunqModel
const FIELD_PIN_CODE_ASSIGNMENT = 'pin_code_assignment';
const FIELD_MONETARY_ACCOUNT_ID_FALLBACK = 'monetary_account_id_fallback';

/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/card-debit';

/**
* Object type.
*/
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 = 'CardUserNameArray';
const OBJECT_TYPE = 'CardName';

/**
* All possible variations (of suitable length) of user's legal name for the
Expand Down
10 changes: 5 additions & 5 deletions src/Model/Generated/Endpoint/CardReplace.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
class CardReplace extends BunqModel
{
/**
* Field constants.
* Endpoint constants.
*/
const FIELD_PIN_CODE = 'pin_code';
const FIELD_SECOND_LINE = 'second_line';
const ENDPOINT_URL_CREATE = 'user/%s/card/%s/replace';

/**
* Endpoint constants.
* Field constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/card/%s/replace';
const FIELD_PIN_CODE = 'pin_code';
const FIELD_SECOND_LINE = 'second_line';

/**
* Object type.
Expand Down
16 changes: 8 additions & 8 deletions src/Model/Generated/Endpoint/CashRegister.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@
*/
class CashRegister extends BunqModel
{
/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/monetary-account/%s/cash-register';
const ENDPOINT_URL_READ = 'user/%s/monetary-account/%s/cash-register/%s';
const ENDPOINT_URL_UPDATE = 'user/%s/monetary-account/%s/cash-register/%s';
const ENDPOINT_URL_LISTING = 'user/%s/monetary-account/%s/cash-register';

/**
* Field constants.
*/
Expand All @@ -34,14 +42,6 @@ class CashRegister extends BunqModel
const FIELD_NOTIFICATION_FILTERS = 'notification_filters';
const FIELD_TAB_TEXT_WAITING_SCREEN = 'tab_text_waiting_screen';

/**
* Endpoint constants.
*/
const ENDPOINT_URL_CREATE = 'user/%s/monetary-account/%s/cash-register';
const ENDPOINT_URL_READ = 'user/%s/monetary-account/%s/cash-register/%s';
const ENDPOINT_URL_UPDATE = 'user/%s/monetary-account/%s/cash-register/%s';
const ENDPOINT_URL_LISTING = 'user/%s/monetary-account/%s/cash-register';

/**
* Object type.
*/
Expand Down
12 changes: 6 additions & 6 deletions src/Model/Generated/Endpoint/CashRegisterQrCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@
*/
class CashRegisterQrCode extends BunqModel
{
/**
* Field constants.
*/
const FIELD_STATUS = 'status';

/**
* Endpoint constants.
*/
Expand All @@ -29,10 +24,15 @@ class CashRegisterQrCode extends BunqModel
const ENDPOINT_URL_READ = 'user/%s/monetary-account/%s/cash-register/%s/qr-code/%s';
const ENDPOINT_URL_LISTING = 'user/%s/monetary-account/%s/cash-register/%s/qr-code';

/**
* Field constants.
*/
const FIELD_STATUS = 'status';

/**
* Object type.
*/
const OBJECT_TYPE = 'TokenQrCashRegister';
const OBJECT_TYPE = 'CashRegisterQrCode';

/**
* The id of the created QR code. Use this id to get the RAW content of the
Expand Down
Loading

0 comments on commit 2a3a462

Please sign in to comment.