{"size": 597, "ext": "js", "max_stars_repo_path": "src/shared/lib/connectors/services/water/LicenceVersionPurposeConditionsService.js", "max_stars_repo_name": "DEFRA/water-abstraction-ui", "max_stars_repo_stars_event_min_datetime": "2018-01-29T19:29:33.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-04T13:40:52.000Z", "max_issues_repo_path": "src/shared/lib/connectors/services/water/LicenceVersionPurposeConditionsService.js", "max_issues_repo_name": "DEFRA/water-abstraction-ui", "max_issues_repo_issues_event_min_datetime": "2018-02-14T09:17:30.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-31T10:45:14.000Z", "max_forks_repo_path": "src/shared/lib/connectors/services/water/LicenceVersionPurposeConditionsService.js", "max_forks_repo_name": "DEFRA/water-abstraction-ui", "max_forks_repo_forks_event_min_datetime": "2021-04-10T21:30:58.000Z", "max_forks_repo_forks_event_max_datetime": "2021-10-04T15:38:34.000Z"}
{"max_stars_count": 4, "max_issues_count": 1598, "max_forks_count": 2, "avg_line_length": 39.8, "max_line_length": 90, "alphanum_fraction": 0.770519263}
const ServiceClient = require('../ServiceClient');

class LicenceVersionPurposeConditionsService extends ServiceClient {
  getLicenceVersionPurposeConditionById (lvpcId, options = {}) {
    const url = this.joinUrl('licence-version-purpose-conditions', lvpcId);
    return this.serviceRequest.get(url, options);
  }
  getLicenceVersionPurposeConditionsByLicenceId (licenceId, options = {}) {
    const url = this.joinUrl('licences', licenceId, 'licence-version-purpose-conditions');
    return this.serviceRequest.get(url, options);
  }
}

module.exports = LicenceVersionPurposeConditionsService;
