Skip to content

Commit

Permalink
Updated NotificationAnchorObject. #67
Browse files Browse the repository at this point in the history
  • Loading branch information
OGKevin committed Nov 9, 2017
1 parent cf9fad2 commit abdd4c8
Showing 1 changed file with 122 additions and 44 deletions.
166 changes: 122 additions & 44 deletions src/Model/Generated/Object/NotificationAnchorObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,27 @@
use bunq\Model\Generated\Endpoint\BunqMeTab;
use bunq\Model\Generated\Endpoint\BunqMeTabResultInquiry;
use bunq\Model\Generated\Endpoint\BunqMeTabResultResponse;
use bunq\Model\Generated\Endpoint\ChatMessage;
use bunq\Model\Generated\Endpoint\ChatMessageAnnouncement;
use bunq\Model\Generated\Endpoint\ChatMessageStatus;
use bunq\Model\Generated\Endpoint\ChatMessageUser;
use bunq\Model\Generated\Endpoint\DraftPayment;
use bunq\Model\Generated\Endpoint\IdealMerchantTransaction;
use bunq\Model\Generated\Endpoint\Invoice;
use bunq\Model\Generated\Endpoint\MasterCardAction;
use bunq\Model\Generated\Endpoint\MonetaryAccount;
use bunq\Model\Generated\Endpoint\MonetaryAccountBank;
use bunq\Model\Generated\Endpoint\Payment;
use bunq\Model\Generated\Endpoint\PaymentBatch;
use bunq\Model\Generated\Endpoint\RequestInquiry;
use bunq\Model\Generated\Endpoint\RequestInquiryBatch;
use bunq\Model\Generated\Endpoint\RequestResponse;
use bunq\Model\Generated\Endpoint\Schedule;
use bunq\Model\Generated\Endpoint\ScheduleInstance;
use bunq\Model\Generated\Endpoint\SchedulePayment;
use bunq\Model\Generated\Endpoint\ShareInviteBankInquiry;
use bunq\Model\Generated\Endpoint\ShareInviteBankResponse;
use bunq\Model\Generated\Endpoint\TabResultInquiry;
use bunq\Model\Generated\Endpoint\TabResultResponse;
use bunq\Model\Generated\Endpoint\User;
use bunq\Model\Generated\Endpoint\UserCompany;
use bunq\Model\Generated\Endpoint\UserPerson;

/**
* @generated
Expand Down Expand Up @@ -51,9 +54,19 @@ class NotificationAnchorObject extends BunqModel
protected $bunqMeTabResultResponse;

/**
* @var ChatMessage
* @var ChatMessageStatus
*/
protected $chatMessage;
protected $chatMessageStatus;

/**
* @var ChatMessageUser
*/
protected $chatMessageUser;

/**
* @var ChatMessageAnnouncement
*/
protected $chatMessageAnnouncement;

/**
* @var DraftPayment
Expand All @@ -76,9 +89,9 @@ class NotificationAnchorObject extends BunqModel
protected $masterCardAction;

/**
* @var MonetaryAccount
* @var MonetaryAccountBank
*/
protected $monetaryAccount;
protected $monetaryAccountBank;

/**
* @var Payment
Expand Down Expand Up @@ -116,9 +129,9 @@ class NotificationAnchorObject extends BunqModel
protected $shareInviteBankResponse;

/**
* @var Schedule
* @var SchedulePayment
*/
protected $schedule;
protected $scheduledPayment;

/**
* @var ScheduleInstance
Expand All @@ -136,9 +149,14 @@ class NotificationAnchorObject extends BunqModel
protected $tabResultResponse;

/**
* @var User
* @var UserPerson
*/
protected $user;
protected $userPerson;

/**
* @var UserCompany
*/
protected $userCompany;

/**
* @return BunqMeTab
Expand Down Expand Up @@ -189,19 +207,51 @@ public function setBunqMeTabResultResponse($bunqMeTabResultResponse)
}

/**
* @return ChatMessage
* @return ChatMessageStatus
*/
public function getChatMessage()
public function getChatMessageStatus()
{
return $this->chatMessage;
return $this->chatMessageStatus;
}

/**
* @param ChatMessage $chatMessage
* @param ChatMessageStatus $chatMessageStatus
*/
public function setChatMessage($chatMessage)
public function setChatMessageStatus($chatMessageStatus)
{
$this->chatMessage = $chatMessage;
$this->chatMessageStatus = $chatMessageStatus;
}

/**
* @return ChatMessageUser
*/
public function getChatMessageUser()
{
return $this->chatMessageUser;
}

/**
* @param ChatMessageUser $chatMessageUser
*/
public function setChatMessageUser($chatMessageUser)
{
$this->chatMessageUser = $chatMessageUser;
}

/**
* @return ChatMessageAnnouncement
*/
public function getChatMessageAnnouncement()
{
return $this->chatMessageAnnouncement;
}

/**
* @param ChatMessageAnnouncement $chatMessageAnnouncement
*/
public function setChatMessageAnnouncement($chatMessageAnnouncement)
{
$this->chatMessageAnnouncement = $chatMessageAnnouncement;
}

/**
Expand Down Expand Up @@ -269,19 +319,19 @@ public function setMasterCardAction($masterCardAction)
}

/**
* @return MonetaryAccount
* @return MonetaryAccountBank
*/
public function getMonetaryAccount()
public function getMonetaryAccountBank()
{
return $this->monetaryAccount;
return $this->monetaryAccountBank;
}

/**
* @param MonetaryAccount $monetaryAccount
* @param MonetaryAccountBank $monetaryAccountBank
*/
public function setMonetaryAccount($monetaryAccount)
public function setMonetaryAccountBank($monetaryAccountBank)
{
$this->monetaryAccount = $monetaryAccount;
$this->monetaryAccountBank = $monetaryAccountBank;
}

/**
Expand Down Expand Up @@ -397,19 +447,19 @@ public function setShareInviteBankResponse($shareInviteBankResponse)
}

/**
* @return Schedule
* @return SchedulePayment
*/
public function getSchedule()
public function getScheduledPayment()
{
return $this->schedule;
return $this->scheduledPayment;
}

/**
* @param Schedule $schedule
* @param SchedulePayment $scheduledPayment
*/
public function setSchedule($schedule)
public function setScheduledPayment($scheduledPayment)
{
$this->schedule = $schedule;
$this->scheduledPayment = $scheduledPayment;
}

/**
Expand Down Expand Up @@ -461,19 +511,35 @@ public function setTabResultResponse($tabResultResponse)
}

/**
* @return User
* @return UserPerson
*/
public function getUserPerson()
{
return $this->userPerson;
}

/**
* @param UserPerson $userPerson
*/
public function getUser()
public function setUserPerson($userPerson)
{
return $this->user;
$this->userPerson = $userPerson;
}

/**
* @param User $user
* @return UserCompany
*/
public function setUser($user)
public function getUserCompany()
{
$this->user = $user;
return $this->userCompany;
}

/**
* @param UserCompany $userCompany
*/
public function setUserCompany($userCompany)
{
$this->userCompany = $userCompany;
}

/**
Expand All @@ -494,8 +560,16 @@ public function getReferencedObject()
return $this->bunqMeTabResultResponse;
}

if (!is_null($this->chatMessage)) {
return $this->chatMessage;
if (!is_null($this->chatMessageStatus)) {
return $this->chatMessageStatus;
}

if (!is_null($this->chatMessageUser)) {
return $this->chatMessageUser;
}

if (!is_null($this->chatMessageAnnouncement)) {
return $this->chatMessageAnnouncement;
}

if (!is_null($this->draftPayment)) {
Expand All @@ -514,8 +588,8 @@ public function getReferencedObject()
return $this->masterCardAction;
}

if (!is_null($this->monetaryAccount)) {
return $this->monetaryAccount;
if (!is_null($this->monetaryAccountBank)) {
return $this->monetaryAccountBank;
}

if (!is_null($this->payment)) {
Expand Down Expand Up @@ -546,8 +620,8 @@ public function getReferencedObject()
return $this->shareInviteBankResponse;
}

if (!is_null($this->schedule)) {
return $this->schedule;
if (!is_null($this->scheduledPayment)) {
return $this->scheduledPayment;
}

if (!is_null($this->scheduledInstance)) {
Expand All @@ -562,8 +636,12 @@ public function getReferencedObject()
return $this->tabResultResponse;
}

if (!is_null($this->user)) {
return $this->user;
if (!is_null($this->userPerson)) {
return $this->userPerson;
}

if (!is_null($this->userCompany)) {
return $this->userCompany;
}

throw new BunqException(self::ERROR_NULL_FIELDS);
Expand Down

0 comments on commit abdd4c8

Please sign in to comment.