Skip to content

Commit

Permalink
Merge branch 'release/1.2.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Yakushev committed Nov 21, 2018
2 parents 64c795e + 834cb98 commit ef02fbc
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
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.1.0';
const HEADER_USER_AGENT_BUNQ_SDK_DEFAULT = 'bunq-sdk-php/1.2.2';

/**
* Binary request constants.
Expand Down
32 changes: 32 additions & 0 deletions src/Model/Generated/Endpoint/MonetaryAccount.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ class MonetaryAccount extends BunqModel implements AnchorObjectInterface
*/
protected $monetaryAccountLight;

/**
* @var MonetaryAccountSavings
*/
protected $monetaryAccountSavings;

/**
* Get a specific MonetaryAccount.
*
Expand Down Expand Up @@ -158,6 +163,25 @@ public function setMonetaryAccountLight($monetaryAccountLight)
$this->monetaryAccountLight = $monetaryAccountLight;
}

/**
* @return MonetaryAccountSavings
*/
public function getMonetaryAccountSavings()
{
return $this->monetaryAccountSavings;
}

/**
* @deprecated User should not be able to set values via setters, use
* constructor.
*
* @param MonetaryAccountSavings $monetaryAccountSavings
*/
public function setMonetaryAccountSavings($monetaryAccountSavings)
{
$this->monetaryAccountSavings = $monetaryAccountSavings;
}

/**
* @return BunqModel
* @throws BunqException
Expand All @@ -176,6 +200,10 @@ public function getReferencedObject()
return $this->monetaryAccountLight;
}

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

throw new BunqException(self::ERROR_NULL_FIELDS);
}

Expand All @@ -196,6 +224,10 @@ public function isAllFieldNull()
return false;
}

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

return true;
}
}

0 comments on commit ef02fbc

Please sign in to comment.