Skip to content

Commit

Permalink
remove BundleObtainParameters.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Viacheslav Rudkovskyi committed Feb 23, 2024
1 parent 9d587fe commit 3052686
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 27 deletions.
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import Context from './vo/Context';
import Page from './vo/Page';
import ValidationParameters from './vo/ValidationParameters';
import ValidationResults from './vo/ValidationResults';
import BundleObtainParameters from './vo/BundleObtainParameters';

// Services
import Service from './services/Service';
Expand Down Expand Up @@ -70,7 +69,6 @@ export {
Page,
ValidationParameters,
ValidationResults,
BundleObtainParameters,

// Expose Services
Service,
Expand Down
8 changes: 4 additions & 4 deletions src/services/BundleService.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,18 +163,18 @@ export default {
* @param number string
*
* licensee number
* @param bundleObtainParameters NetLicensing.BundleObtainParameters
* @param licenseeNumber String
*
* return array of licenses
* @returns {Promise}
*/
async obtain(context, number, bundleObtainParameters) {
async obtain(context, number, licenseeNumber) {
CheckUtils.paramNotEmpty(number, Constants.NUMBER);
CheckUtils.paramNotEmpty(bundleObtainParameters.getLicenseeNumber(), Constants.Licensee.LICENSEE_NUMBER);
CheckUtils.paramNotEmpty(licenseeNumber, Constants.Licensee.LICENSEE_NUMBER);

const { ENDPOINT_PATH, ENDPOINT_OBTAIN_PATH } = Constants.Bundle;

const queryParams = { [Constants.Licensee.LICENSEE_NUMBER]: bundleObtainParameters.getLicenseeNumber() };
const queryParams = { [Constants.Licensee.LICENSEE_NUMBER]: licenseeNumber };

const { data: { items: { item: items } } } = await Service
.post(context, `${ENDPOINT_PATH}/${number}/${ENDPOINT_OBTAIN_PATH}`, queryParams);
Expand Down
21 changes: 0 additions & 21 deletions src/vo/BundleObtainParameters.js

This file was deleted.

0 comments on commit 3052686

Please sign in to comment.