/**
  * updates an account
  *
  * @param \Abobereich\ApiClient\Models\Account $account
  *
  * @return \Abobereich\ApiClient\Models\Account
  *
  * @throws \InvalidArgumentException when model has no id
  */
 public function update(Account $account)
 {
     if (null === $account->getId()) {
         throw new \InvalidArgumentException('You need an id for updating your model');
     }
     return $this->put('/api/accounts/' . $account->getId(), $account, 'account');
 }
 /**
  * returns all subscriptions related to an account (subscription subscriber)
  *
  * @param int|Account $account
  *
  * @return \Abobereich\ApiClient\Models\Subscription[]|array
  */
 public function allForBeingSubscriber($account)
 {
     $accountId = $account instanceof Account ? $account->getId() : $account;
     return $this->index('/api/subscriptions?subscriber_id=' . intval($accountId), 'subscriptions');
 }