class RestrictionAccountRepositoryOkHttpImpl extends AbstractRepositoryOkHttpImpl implements RestrictionAccountRepository {

  @Override
  public Observable<AccountRestrictions> getAccountRestrictions(Address address) {

    Callable<AccountRestrictionsInfoDTO> callback =
        () -> getClient().getAccountRestrictions(address.plain());
    return exceptionHandling(
        call(callback)
            .map(AccountRestrictionsInfoDTO::getAccountRestrictions)
            .map(this::toAccountRestrictions));
  }

  public  RestrictionAccountRepositoryOkHttpImpl(ApiClient apiClient);

}