Skip to content

Commit

Permalink
Added MonetaryAccountBank to NotificatoinUrl test. #67
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Nov 9, 2017
1 parent b226d56 commit 6b49bba
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/Model/Generated/Object/NotificationUrlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use bunq\Model\Generated\Endpoint\ChatMessage;
use bunq\Model\Generated\Endpoint\DraftPayment;
use bunq\Model\Generated\Endpoint\MasterCardAction;
use bunq\Model\Generated\Endpoint\MonetaryAccountBank;
use bunq\Model\Generated\Endpoint\Payment;
use bunq\Model\Generated\Object\NotificationUrl;
use bunq\test\BunqSdkTestBase;
Expand All @@ -27,6 +28,7 @@ class NotificationUrlTest extends BunqSdkTestBase
const GET_CHAT_MESSAGE = 'getChatMessage';
const GET_DRAFT_PAYMENT = 'getDraftPayment';
const GET_MASTER_CARD_ACTION = 'getMasterCardAction';
const GET_MONETARY_ACCOUNT_BANK = 'getMonetaryAccount';

/**
* Assertion errors.
Expand All @@ -45,6 +47,7 @@ class NotificationUrlTest extends BunqSdkTestBase
const JSON_PATH_CHAT_MESSAGE_MODEL = self::BASE_PATH_JSON_MODEL . '/ChatMessage.json';
const JSON_PATH_DRAFT_PAYMENT_MODEL = self::BASE_PATH_JSON_MODEL . '/DraftPayment.json';
const JSON_PATH_MASTER_CARD_ACTION_MODEL = self::BASE_PATH_JSON_MODEL . '/MasterCardAction.json';
const JSON_PATH_MONETARY_ACCOUNT_BANK_MODEL = self::BASE_PATH_JSON_MODEL . '/MonetaryAccountBank.json';

/**
* Model root key.
Expand Down Expand Up @@ -85,6 +88,17 @@ public function testBunqMeTabModel()
}


/**
*/
public function testGetMonetaryAccount()
{
$this->executeTest(
self::JSON_PATH_MONETARY_ACCOUNT_BANK_MODEL,
MonetaryAccountBank::class,
self::GET_MONETARY_ACCOUNT_BANK
);
}

/**
*/
public function testMasterCardAction()
Expand Down
57 changes: 57 additions & 0 deletions tests/resource/NotificationUrlJsons/MonetaryAccountBank.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"NotificationUrl": {
"target_url": "nope",
"category": "DRAFT_PAYMENT",
"event_type": "DRAFT_PAYMENT_ACCEPTED",
"object": {
"MonetaryAccountBank": {
"id": 21,
"created": "2017-07-08 00:42:33.951277",
"updated": "2017-07-08 00:42:33.951277",
"alias": [
{
"type": "IBAN",
"value": "NL18BUNQ2025104049",
"name": "bunq"
}
],
"avatar": {
"uuid": "246519c2-1280-4fd8-a864-ed9d313ceeba",
"image": [
{
"attachment_public_uuid": "52613480-7bd1-4da4-be8a-4a15f78c085d",
"height": 126,
"width": 200,
"content_type|": "image\/jpeg"
}
],
"anchor_uuid": "45631547-6bdb-479e-859b-192273964ed4"
},
"balance": null,
"country": "NL",
"currency": "EUR",
"daily_limit": {
"currency": "EUR",
"value": "10000.00"
},
"daily_spent": {
"currency": "EUR",
"value": "0.00"
},
"description": "sofort",
"public_uuid": "45631547-6bdb-479e-859b-192273964ed4",
"status": "ACTIVE",
"sub_status": "NONE",
"timezone": "europe\/amsterdam",
"user_id": 214,
"monetary_account_profile": null,
"notification_filters": [],
"setting": null,
"overdraft_limit": {
"currency": "EUR",
"value": "0.00"
}
}
}
}
}

0 comments on commit 6b49bba

Please sign in to comment.