/// <summary> /// Searches all the business ratings involving the specified contract. /// Requires <see cref="APIPermission.CONTRACTS" /> /// <summary> /// <param name="contractId">The contract id.</param> /// <param name="page">The page number.</param> /// <param name="perPage">The number of results per page.</param> public BusinessRatingResult[] BusinessRatingSearchByContractId(int contractId, int page = 1, int perPage = 1) => BusinessRatingRequest.SearchByContractId(Client, contractId, page, perPage);
/// <summary> /// Searches all the business ratings given to the specified user. /// Requires <see cref="APIPermission.CONTRACTS" /> /// <summary> /// <param name="userId">The user id.</param> /// <param name="page">The page number.</param> /// <param name="perPage">The number of results per page.</param> public BusinessRatingResult[] BusinessRatingSearchByToUserId(int userId, int page = 1, int perPage = 1) => BusinessRatingRequest.SearchByToUserId(Client, userId, page, perPage);
/// <summary> /// Gets the business rating from the specified transaction id. /// Requires <see cref="APIPermission.CONTRACTS" /> /// <summary> /// <param name="transactionId">The byte transaction id.</param> public BusinessRatingResult BusinessRatingGet(int transactionId) => BusinessRatingRequest.Get(Client, transactionId);