diff --git a/src/AmoCRM/EntitiesServices/Traits/PageMethodsTrait.php b/src/AmoCRM/EntitiesServices/Traits/PageMethodsTrait.php index 62ca7399..08e3cab4 100644 --- a/src/AmoCRM/EntitiesServices/Traits/PageMethodsTrait.php +++ b/src/AmoCRM/EntitiesServices/Traits/PageMethodsTrait.php @@ -23,6 +23,7 @@ trait PageMethodsTrait * @return HasPagesInterface * @throws AmoCRMApiException * @throws AmoCRMoAuthApiException + * @throws AmoCRMApiPageNotAvailableException */ public function nextPage(HasPagesInterface $collection): HasPagesInterface { @@ -45,6 +46,7 @@ public function nextPage(HasPagesInterface $collection): HasPagesInterface * @return HasPagesInterface * @throws AmoCRMApiException * @throws AmoCRMoAuthApiException + * @throws AmoCRMApiPageNotAvailableException */ public function prevPage(HasPagesInterface $collection): HasPagesInterface { diff --git a/src/AmoCRM/Models/AccountModel.php b/src/AmoCRM/Models/AccountModel.php index 098861c1..10978004 100644 --- a/src/AmoCRM/Models/AccountModel.php +++ b/src/AmoCRM/Models/AccountModel.php @@ -124,6 +124,9 @@ class AccountModel extends BaseApiModel /** @var string|null */ protected $currency; + /** @var string|null */ + protected $currencySymbol; + /** * @return int */ @@ -319,6 +322,7 @@ public static function fromArray(array $account): self ->setCurrentUserId((int)$account['current_user_id']) ->setCountry((string)$account['country']) ->setCurrency((string)$account['currency']) + ->setCurrencySymbol((string)$account['currency_symbol']) ->setUnsortedOn((bool)$account['is_unsorted_on']) ->setMobileFeatureVersion((int)$account['mobile_feature_version']) ->setCustomersMode($account['customers_mode']) @@ -392,6 +396,7 @@ public function toArray(): array 'current_user_id' => $this->getCurrentUserId(), 'country' => $this->getCountry(), 'currency' => $this->getCurrency(), + 'currency_symbol' => $this->getCurrencySymbol(), 'is_unsorted_on' => $this->getIsUnsortedOn(), 'mobile_feature_version' => $this->getMobileFeatureVersion(), 'customers_mode' => $this->getCustomersMode(), @@ -699,6 +704,26 @@ public function setCurrency(?string $currency): AccountModel return $this; } + /** + * @return string|null + */ + public function getCurrencySymbol(): ?string + { + return $this->currencySymbol; + } + + /** + * @param string|null $currencySymbol + * + * @return AccountModel + */ + public function setCurrencySymbol(?string $currencySymbol): AccountModel + { + $this->currencySymbol = $currencySymbol; + + return $this; + } + /** * @return array */