Skip to content

Commit d923d93

Browse files
committed
Move supplementary-billing to new billing folder
https://eaflood.atlassian.net/browse/WATER-4057 We are on the cusp of adding our second bill run type; two-part tariff. Our experience of implementing the first, supplementary billing has shown that we're going to need a lot of services! 😁 So, ahead of starting to implement we are doing some housekeeping in our services folder. The first of these was to [Move db-export services to data folder](#299). The second of these is to move the `services/supplementary-billing/` to `services/billing/supplementary/`.
1 parent 859cc78 commit d923d93

File tree

60 files changed

+183
-183
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+183
-183
lines changed

app/controllers/bill-runs/bill-runs.controller.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
const Boom = require('@hapi/boom')
99

1010
const CreateBillRunValidator = require('../../validators/bill-runs/create-bill-run.validator.js')
11-
const NewBillingBatchService = require('../../services/supplementary-billing/new-billing-batch.service.js')
11+
const NewBillingBatchService = require('../../services/billing/supplementary/new-billing-batch.service.js')
1212

1313
async function create (request, h) {
1414
const validatedData = CreateBillRunValidator.go(request.payload)

app/services/supplementary-billing/check-live-bill-run.service.js renamed to app/services/billing/supplementary/check-live-bill-run.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module CheckLiveBillRunService
66
*/
77

8-
const BillingBatchModel = require('../../models/water/billing-batch.model.js')
8+
const BillingBatchModel = require('../../../models/water/billing-batch.model.js')
99

1010
const LIVE_STATUSES = ['processing', 'ready', 'review', 'queued']
1111

app/services/supplementary-billing/create-billing-batch-event.service.js renamed to app/services/billing/supplementary/create-billing-batch-event.service.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* @module CreateBillingBatchEventService
66
*/
77

8-
const CreateBillingBatchEventPresenter = require('../../presenters/supplementary-billing/create-billing-batch-event.presenter.js')
9-
const EventModel = require('../../models/water/event.model.js')
10-
const GeneralLib = require('../../lib/general.lib.js')
8+
const CreateBillingBatchEventPresenter = require('../../../presenters/supplementary-billing/create-billing-batch-event.presenter.js')
9+
const EventModel = require('../../../models/water/event.model.js')
10+
const GeneralLib = require('../../../lib/general.lib.js')
1111

1212
/**
1313
* Create an event for when a new bill run is initialised

app/services/supplementary-billing/create-billing-batch.service.js renamed to app/services/billing/supplementary/create-billing-batch.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module CreateBillingBatchService
66
*/
77

8-
const BillingBatchModel = require('../../models/water/billing-batch.model.js')
8+
const BillingBatchModel = require('../../../models/water/billing-batch.model.js')
99

1010
/**
1111
* Create a new billing batch

app/services/supplementary-billing/create-billing-transaction.service.js renamed to app/services/billing/supplementary/create-billing-transaction.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module CreateTransactionsService
66
*/
77

8-
const BillingTransactionModel = require('../../models/water/billing-transaction.model.js')
8+
const BillingTransactionModel = require('../../../models/water/billing-transaction.model.js')
99

1010
/**
1111
* Persists a billing transaction in the db

app/services/supplementary-billing/fetch-charge-versions.service.js renamed to app/services/billing/supplementary/fetch-charge-versions.service.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
const { ref } = require('objection')
99

10-
const ChargeVersion = require('../../models/water/charge-version.model.js')
11-
const ChargeVersionWorkflow = require('../../models/water/charge-version-workflow.model.js')
10+
const ChargeVersion = require('../../../models/water/charge-version.model.js')
11+
const ChargeVersionWorkflow = require('../../../models/water/charge-version-workflow.model.js')
1212

1313
/**
1414
* Fetch all SROC charge versions to be processed as part of supplementary billing

app/services/supplementary-billing/fetch-invoice-account-numbers.service.js renamed to app/services/billing/supplementary/fetch-invoice-account-numbers.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module FetchInvoiceAccountNumbersService
66
*/
77

8-
const InvoiceAccountModel = require('../../models/crm-v2/invoice-account.model.js')
8+
const InvoiceAccountModel = require('../../../models/crm-v2/invoice-account.model.js')
99

1010
/**
1111
* Fetch all invoice account numbers for the supplied charge versions

app/services/supplementary-billing/fetch-invoices-to-be-reissued.service.js renamed to app/services/billing/supplementary/fetch-invoices-to-be-reissued.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module FetchInvoicesToBeReissuedService
66
*/
77

8-
const BillingInvoiceModel = require('../../models/water/billing-invoice.model.js')
8+
const BillingInvoiceModel = require('../../../models/water/billing-invoice.model.js')
99

1010
/**
1111
* Takes a region and fetches billing invoices in that region marked for reissuing, along with their transactions

app/services/supplementary-billing/fetch-previous-billing-transactions.service.js renamed to app/services/billing/supplementary/fetch-previous-billing-transactions.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @module FetchPreviousBillingTransactionsService
77
*/
88

9-
const { db } = require('../../../db/db.js')
9+
const { db } = require('../../../../db/db.js')
1010

1111
/**
1212
* Fetches the previously billed transactions that match the invoice, licence and year provided, removing any debits

app/services/supplementary-billing/fetch-region.service.js renamed to app/services/billing/supplementary/fetch-region.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module FetchRegionService
66
*/
77

8-
const RegionModel = require('../../models/water/region.model.js')
8+
const RegionModel = require('../../../models/water/region.model.js')
99

1010
/**
1111
* Fetches the region with the matching NALD Region ID

app/services/supplementary-billing/handle-errored-billing-batch.service.js renamed to app/services/billing/supplementary/handle-errored-billing-batch.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module HandleErroredBillingBatchService
66
*/
77

8-
const BillingBatchModel = require('../../models/water/billing-batch.model.js')
8+
const BillingBatchModel = require('../../../models/water/billing-batch.model.js')
99

1010
/**
1111
* Sets the status of the specified billing batch to `error`, and logs an error if this can't be done.

app/services/supplementary-billing/initiate-billing-batch.service.js renamed to app/services/billing/supplementary/initiate-billing-batch.service.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
* @module InitiateBillingBatchService
66
*/
77

8-
const BillingBatchModel = require('../../models/water/billing-batch.model.js')
9-
const ChargingModuleCreateBillRunService = require('../charging-module/create-bill-run.service.js')
8+
const BillingBatchModel = require('../../../models/water/billing-batch.model.js')
9+
const ChargingModuleCreateBillRunService = require('../../charging-module/create-bill-run.service.js')
1010
const CheckLiveBillRunService = require('./check-live-bill-run.service.js')
1111
const CreateBillingBatchService = require('./create-billing-batch.service.js')
1212
const CreateBillingBatchEventService = require('./create-billing-batch-event.service.js')
13-
const ExpandedError = require('../../errors/expanded.error.js')
13+
const ExpandedError = require('../../../errors/expanded.error.js')
1414

1515
/**
1616
* Initiate a new billing batch

app/services/supplementary-billing/new-billing-batch.service.js renamed to app/services/billing/supplementary/new-billing-batch.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*/
77

88
const BillingPeriodsService = require('./billing-periods.service.js')
9-
const CreateBillingBatchPresenter = require('../../presenters/supplementary-billing/create-billing-batch.presenter.js')
9+
const CreateBillingBatchPresenter = require('../../../presenters/supplementary-billing/create-billing-batch.presenter.js')
1010
const InitiateBillingBatchService = require('./initiate-billing-batch.service.js')
1111
const ProcessBillingBatchService = require('./process-billing-batch.service.js')
1212

app/services/supplementary-billing/process-billing-batch.service.js renamed to app/services/billing/supplementary/process-billing-batch.service.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@
55
* @module ProcessBillingBatchService
66
*/
77

8-
const BillingBatchError = require('../../errors/billing-batch.error.js')
9-
const BillingBatchModel = require('../../models/water/billing-batch.model.js')
10-
const ChargingModuleGenerateService = require('../charging-module/generate-bill-run.service.js')
8+
const BillingBatchError = require('../../../errors/billing-batch.error.js')
9+
const BillingBatchModel = require('../../../models/water/billing-batch.model.js')
10+
const ChargingModuleGenerateService = require('../../charging-module/generate-bill-run.service.js')
1111
const FetchChargeVersionsService = require('./fetch-charge-versions.service.js')
1212
const HandleErroredBillingBatchService = require('./handle-errored-billing-batch.service.js')
13-
const LegacyRequestLib = require('../../lib/legacy-request.lib.js')
13+
const LegacyRequestLib = require('../../../lib/legacy-request.lib.js')
1414
const ProcessBillingPeriodService = require('./process-billing-period.service.js')
1515
const ReissueInvoicesService = require('./reissue-invoices.service.js')
1616
const UnflagUnbilledLicencesService = require('./unflag-unbilled-licences.service.js')
1717

18-
const FeatureFlagsConfig = require('../../../config/feature-flags.config.js')
18+
const FeatureFlagsConfig = require('../../../../config/feature-flags.config.js')
1919

2020
/**
2121
* Process a given billing batch for the given billing periods. In this case, "process" means that we create the

app/services/supplementary-billing/process-billing-period.service.js renamed to app/services/billing/supplementary/process-billing-period.service.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* @module ProcessBillingPeriodService
66
*/
77

8-
const BillingBatchError = require('../../errors/billing-batch.error.js')
9-
const BillingBatchModel = require('../../models/water/billing-batch.model.js')
10-
const BillingInvoiceModel = require('../../models/water/billing-invoice.model.js')
11-
const BillingInvoiceLicenceModel = require('../../models/water/billing-invoice-licence.model.js')
12-
const BillingTransactionModel = require('../../models/water/billing-transaction.model.js')
8+
const BillingBatchError = require('../../../errors/billing-batch.error.js')
9+
const BillingBatchModel = require('../../../models/water/billing-batch.model.js')
10+
const BillingInvoiceModel = require('../../../models/water/billing-invoice.model.js')
11+
const BillingInvoiceLicenceModel = require('../../../models/water/billing-invoice-licence.model.js')
12+
const BillingTransactionModel = require('../../../models/water/billing-transaction.model.js')
1313
const DetermineChargePeriodService = require('./determine-charge-period.service.js')
1414
const DetermineMinimumChargeService = require('./determine-minimum-charge.service.js')
1515
const GenerateBillingTransactionsService = require('./generate-billing-transactions.service.js')

app/services/supplementary-billing/reissue-invoice.service.js renamed to app/services/billing/supplementary/reissue-invoice.service.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
*/
77
const { randomUUID } = require('crypto')
88

9-
const ChargingModuleReissueInvoiceService = require('../charging-module/reissue-invoice.service.js')
10-
const ChargingModuleViewInvoiceService = require('../charging-module/view-invoice.service.js')
11-
const ExpandedError = require('../../errors/expanded.error.js')
9+
const ChargingModuleReissueInvoiceService = require('../../charging-module/reissue-invoice.service.js')
10+
const ChargingModuleViewInvoiceService = require('../../charging-module/view-invoice.service.js')
11+
const ExpandedError = require('../../../errors/expanded.error.js')
1212
const GenerateBillingInvoiceLicenceService = require('./generate-billing-invoice-licence.service.js')
1313
const GenerateBillingInvoiceService = require('./generate-billing-invoice.service.js')
1414

app/services/supplementary-billing/reissue-invoices.service.js renamed to app/services/billing/supplementary/reissue-invoices.service.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
* @module ReissueInvoicesService
66
*/
77

8-
const BillingInvoiceModel = require('../../models/water/billing-invoice.model.js')
9-
const BillingInvoiceLicenceModel = require('../../models/water/billing-invoice-licence.model.js')
10-
const BillingTransactionModel = require('../../models/water/billing-transaction.model.js')
8+
const BillingInvoiceModel = require('../../../models/water/billing-invoice.model.js')
9+
const BillingInvoiceLicenceModel = require('../../../models/water/billing-invoice-licence.model.js')
10+
const BillingTransactionModel = require('../../../models/water/billing-transaction.model.js')
1111
const FetchInvoicesToBeReissuedService = require('./fetch-invoices-to-be-reissued.service.js')
1212
const ReissueInvoiceService = require('./reissue-invoice.service.js')
1313

app/services/supplementary-billing/send-billing-transactions.service.js renamed to app/services/billing/supplementary/send-billing-transactions.service.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
* @module SendBillingTransactionsService
66
*/
77

8-
const BillingBatchError = require('../../errors/billing-batch.error.js')
9-
const BillingBatchModel = require('../../models/water/billing-batch.model.js')
10-
const ChargingModuleCreateTransactionService = require('../charging-module/create-transaction.service.js')
11-
const ChargingModuleCreateTransactionPresenter = require('../../presenters/charging-module/create-transaction.presenter.js')
8+
const BillingBatchError = require('../../../errors/billing-batch.error.js')
9+
const BillingBatchModel = require('../../../models/water/billing-batch.model.js')
10+
const ChargingModuleCreateTransactionService = require('../../charging-module/create-transaction.service.js')
11+
const ChargingModuleCreateTransactionPresenter = require('../../../presenters/charging-module/create-transaction.presenter.js')
1212

1313
/**
1414
* Sends the provided transactions to the Charging Module and returns an array of the sent transactions, each updated

app/services/supplementary-billing/unflag-unbilled-licences.service.js renamed to app/services/billing/supplementary/unflag-unbilled-licences.service.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @module UnflagUnbilledLicencesService
66
*/
77

8-
const LicenceModel = require('../../models/water/licence.model.js')
8+
const LicenceModel = require('../../../models/water/licence.model.js')
99

1010
/**
1111
* Unflag any licences that were not billed as part of a bill run

test/controllers/bill-runs/bill-runs.controller.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { describe, it, beforeEach, afterEach } = exports.lab = Lab.script()
99
const { expect } = Code
1010

1111
// Things we need to stub
12-
const NewBillingBatchService = require('../../../app/services/supplementary-billing/new-billing-batch.service.js')
12+
const NewBillingBatchService = require('../../../app/services/billing/supplementary/new-billing-batch.service.js')
1313
const Boom = require('@hapi/boom')
1414

1515
// For running our service

test/services/supplementary-billing/billing-periods.service.test.js renamed to test/services/billing/supplementary-billing/billing-periods.service.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const { describe, it, beforeEach, afterEach } = exports.lab = Lab.script()
99
const { expect } = Code
1010

1111
// Thing under test
12-
const BillingPeriodsService = require('../../../app/services/supplementary-billing/billing-periods.service.js')
12+
const BillingPeriodsService = require('../../../../app/services/billing/supplementary/billing-periods.service.js')
1313

1414
describe('Billing Periods service', () => {
1515
let clock

test/services/supplementary-billing/calculate-authorised-and-billable-days.service.test.js renamed to test/services/billing/supplementary-billing/calculate-authorised-and-billable-days.service.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const { describe, it, beforeEach, afterEach } = exports.lab = Lab.script()
88
const { expect } = Code
99

1010
// Test helpers
11-
const ChargeElementHelper = require('../../support/helpers/water/charge-element.helper.js')
12-
const ChargePurposeHelper = require('../../support/helpers/water/charge-purpose.helper.js')
13-
const DatabaseHelper = require('../../support/helpers/database.helper.js')
11+
const ChargeElementHelper = require('../../../support/helpers/water/charge-element.helper.js')
12+
const ChargePurposeHelper = require('../../../support/helpers/water/charge-purpose.helper.js')
13+
const DatabaseHelper = require('../../../support/helpers/database.helper.js')
1414

1515
// Thing under test
16-
const CalculateAuthorisedAndBillableDaysService = require('../../../app/services/supplementary-billing/calculate-authorised-and-billable-days.service.js')
16+
const CalculateAuthorisedAndBillableDaysService = require('../../../../app/services/billing/supplementary/calculate-authorised-and-billable-days.service.js')
1717

1818
// NOTE: You might find it helpful to refresh your understanding of abstraction periods and what the service is trying
1919
// to fathom when referencing them to the billing and charge periods. See the documentation in the service. Also, a

test/services/supplementary-billing/check-live-bill-run.service.test.js renamed to test/services/billing/supplementary-billing/check-live-bill-run.service.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ const { describe, it, beforeEach } = exports.lab = Lab.script()
88
const { expect } = Code
99

1010
// Test helpers
11-
const BillingBatchHelper = require('../../support/helpers/water/billing-batch.helper.js')
12-
const DatabaseHelper = require('../../support/helpers/database.helper.js')
11+
const BillingBatchHelper = require('../../../support/helpers/water/billing-batch.helper.js')
12+
const DatabaseHelper = require('../../../support/helpers/database.helper.js')
1313

1414
// Thing under test
15-
const CheckLiveBillRunService = require('../../../app/services/supplementary-billing/check-live-bill-run.service.js')
15+
const CheckLiveBillRunService = require('../../../../app/services/billing/supplementary/check-live-bill-run.service.js')
1616

1717
describe('Check Live Bill Run service', () => {
1818
let billRun

test/services/supplementary-billing/consolidate-date-ranges.service.test.js renamed to test/services/billing/supplementary-billing/consolidate-date-ranges.service.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { describe, it } = exports.lab = Lab.script()
88
const { expect } = Code
99

1010
// Thing under test
11-
const ConsolidateDateRangesService = require('../../../app/services/supplementary-billing/consolidate-date-ranges.service')
11+
const ConsolidateDateRangesService = require('../../../../app/services/billing/supplementary/consolidate-date-ranges.service')
1212

1313
describe('ConsolidateDateRanges service', () => {
1414
describe('when the provided ranges are non-overlapping', () => {

test/services/supplementary-billing/create-billing-batch-event.service.test.js renamed to test/services/billing/supplementary-billing/create-billing-batch-event.service.test.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ const { describe, it, beforeEach, afterEach } = exports.lab = Lab.script()
99
const { expect } = Code
1010

1111
// Test helpers
12-
const BillingBatchHelper = require('../../support/helpers/water/billing-batch.helper.js')
13-
const BillingBatchModel = require('../../../app/models/water/billing-batch.model.js')
14-
const DatabaseHelper = require('../../support/helpers/database.helper.js')
15-
const EventModel = require('../../../app/models/water/event.model.js')
16-
const RegionHelper = require('../../support/helpers/water/region.helper.js')
12+
const BillingBatchHelper = require('../../../support/helpers/water/billing-batch.helper.js')
13+
const BillingBatchModel = require('../../../../app/models/water/billing-batch.model.js')
14+
const DatabaseHelper = require('../../../support/helpers/database.helper.js')
15+
const EventModel = require('../../../../app/models/water/event.model.js')
16+
const RegionHelper = require('../../../support/helpers/water/region.helper.js')
1717

1818
// Thing under test
19-
const CreateBillingBatchEventService = require('../../../app/services/supplementary-billing/create-billing-batch-event.service.js')
19+
const CreateBillingBatchEventService = require('../../../../app/services/billing/supplementary/create-billing-batch-event.service.js')
2020

2121
describe('Create Event service', () => {
2222
let clock

test/services/supplementary-billing/create-billing-batch.service.test.js renamed to test/services/billing/supplementary-billing/create-billing-batch.service.test.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ const { describe, it, beforeEach } = exports.lab = Lab.script()
88
const { expect } = Code
99

1010
// Test helpers
11-
const BillingBatchModel = require('../../../app/models/water/billing-batch.model.js')
12-
const DatabaseHelper = require('../../support/helpers/database.helper.js')
13-
const RegionHelper = require('../../support/helpers/water/region.helper.js')
14-
const RegionModel = require('../../../app/models/water/region.model.js')
11+
const BillingBatchModel = require('../../../../app/models/water/billing-batch.model.js')
12+
const DatabaseHelper = require('../../../support/helpers/database.helper.js')
13+
const RegionHelper = require('../../../support/helpers/water/region.helper.js')
14+
const RegionModel = require('../../../../app/models/water/region.model.js')
1515

1616
// Thing under test
17-
const CreateBillingBatchService = require('../../../app/services/supplementary-billing/create-billing-batch.service.js')
17+
const CreateBillingBatchService = require('../../../../app/services/billing/supplementary/create-billing-batch.service.js')
1818

1919
describe('Create Billing Batch service', () => {
2020
const financialYearEndings = { fromFinancialYearEnding: 2023, toFinancialYearEnding: 2024 }

test/services/supplementary-billing/create-billing-transaction.service.test.js renamed to test/services/billing/supplementary-billing/create-billing-transaction.service.test.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ const { describe, it } = exports.lab = Lab.script()
88
const { expect } = Code
99

1010
// Test helpers
11-
const BillingTransactionModel = require('../../../app/models/water/billing-transaction.model.js')
11+
const BillingTransactionModel = require('../../../../app/models/water/billing-transaction.model.js')
1212

1313
// Thing under test
14-
const CreateBillingTransactionService = require('../../../app/services/supplementary-billing/create-billing-transaction.service.js')
14+
const CreateBillingTransactionService = require('../../../../app/services/billing/supplementary/create-billing-transaction.service.js')
1515

1616
describe('Create billing transaction service', () => {
1717
const transactionData = {

test/services/supplementary-billing/determine-charge-period.service.test.js renamed to test/services/billing/supplementary-billing/determine-charge-period.service.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const { describe, it, beforeEach } = exports.lab = Lab.script()
88
const { expect } = Code
99

1010
// Thing under test
11-
const DetermineChargePeriodService = require('../../../app/services/supplementary-billing/determine-charge-period.service.js')
11+
const DetermineChargePeriodService = require('../../../../app/services/billing/supplementary/determine-charge-period.service.js')
1212

1313
describe('Determine charge period service', () => {
1414
const billingPeriod = {

test/services/supplementary-billing/determine-minimum-charge.service.test.js renamed to test/services/billing/supplementary-billing/determine-minimum-charge.service.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ const { describe, it, beforeEach, afterEach } = exports.lab = Lab.script()
88
const { expect } = Code
99

1010
// Test helpers
11-
const ChangeReasonHelper = require('../../support/helpers/water/change-reason.helper.js')
12-
const ChargeVersionHelper = require('../../support/helpers/water/charge-version.helper.js')
13-
const DatabaseHelper = require('../../support/helpers/database.helper.js')
11+
const ChangeReasonHelper = require('../../../support/helpers/water/change-reason.helper.js')
12+
const ChargeVersionHelper = require('../../../support/helpers/water/charge-version.helper.js')
13+
const DatabaseHelper = require('../../../support/helpers/database.helper.js')
1414

1515
// Thing under test
16-
const DetermineMinimumChargeService = require('../../../app/services/supplementary-billing/determine-minimum-charge.service.js')
16+
const DetermineMinimumChargeService = require('../../../../app/services/billing/supplementary/determine-minimum-charge.service.js')
1717

1818
describe('Determine minimum charge service', () => {
1919
const chargePeriod = {

0 commit comments

Comments
 (0)