diff --git a/apps/backend/.eslintrc.js b/apps/backend/.eslintrc.js index 7574ac7e..07c1be8a 100644 --- a/apps/backend/.eslintrc.js +++ b/apps/backend/.eslintrc.js @@ -19,6 +19,7 @@ module.exports = { }, rules: { 'no-console': 'off', + '@typescript-eslint/comma-dangle': ['error', 'only-multiline'], '@typescript-eslint/no-explicit-any': 'error', '@typescript-eslint/interface-name-prefix': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', @@ -60,6 +61,7 @@ module.exports = { } } ], + 'comma-dangle': 'off', 'unused-imports/no-unused-imports': 'error', 'unused-imports/no-unused-vars': [ 'warn', diff --git a/apps/backend/.prettierrc b/apps/backend/.prettierrc index dbed27f4..0fe30bd4 100644 --- a/apps/backend/.prettierrc +++ b/apps/backend/.prettierrc @@ -1,6 +1,6 @@ { "singleQuote": true, - "trailingComma": "none", + "trailingComma": "es5", "arrowParens": "always", "tabWidth": 2, "useTabs": false, diff --git a/apps/backend/src/app.config.ts b/apps/backend/src/app.config.ts index 1cd451cf..9c6a1a37 100644 --- a/apps/backend/src/app.config.ts +++ b/apps/backend/src/app.config.ts @@ -2,12 +2,12 @@ import { BadRequestException, ValidationError, ValidationPipe, - ValidationPipeOptions + ValidationPipeOptions, } from '@nestjs/common'; import { NestFactory } from '@nestjs/core'; import { ExpressAdapter, - NestExpressApplication + NestExpressApplication, } from '@nestjs/platform-express'; import express from 'express'; @@ -38,7 +38,7 @@ export const validationPipeConfig: ValidationPipeOptions = { if (error.constraints) { messages.push({ property: error.property, - errors: Object.values(error.constraints) + errors: Object.values(error.constraints), }); } if (error.children && error.children?.length > 0) { @@ -52,7 +52,7 @@ export const validationPipeConfig: ValidationPipeOptions = { }; const errorMessages = errors.map((error) => getErrorMessages(error)); throw new BadRequestException(errorMessages); - } + }, }; export async function createNestApp(): Promise<{ @@ -70,7 +70,7 @@ export async function createNestApp(): Promise<{ process.env.RUNTIME_ENV === 'test' ) { app = await NestFactory.create(AppModule, { - bufferLogs: true + bufferLogs: true, }); app.useLogger(app.get(AppLogger)); } else { @@ -105,11 +105,11 @@ export async function createNestApp(): Promise<{ envName: process.env.ENV_NAME, nodeEnv: process.env.NODE_ENV, runtimeEnv: process.env.RUNTIME_ENV, - alertsEnabled: Boolean(false) + alertsEnabled: Boolean(false), }); return { app, - expressApp + expressApp, }; } diff --git a/apps/backend/src/app.controller.ts b/apps/backend/src/app.controller.ts index 77d94479..d51fa177 100644 --- a/apps/backend/src/app.controller.ts +++ b/apps/backend/src/app.controller.ts @@ -21,7 +21,7 @@ export class AppController { @ApiOperation({}) getHealth(): object { return { - status: 'ok' + status: 'ok', }; } } diff --git a/apps/backend/src/app.module.ts b/apps/backend/src/app.module.ts index 7aa94196..8cdb9de3 100644 --- a/apps/backend/src/app.module.ts +++ b/apps/backend/src/app.module.ts @@ -33,7 +33,7 @@ import { TransactionModule } from './transaction/transaction.module'; ignoreEnvFile: process.env.RUNTIME_ENV === 'local' || process.env.RUNTIME_ENV === 'ci' ? false - : true + : true, }), AwsSdkModule.forRoot({ defaultServiceOptions: { @@ -42,14 +42,14 @@ import { TransactionModule } from './transaction/transaction.module'; ? { endpoint: process.env.AWS_ENDPOINT || 'http://localhost:9000', region: 'ca-central-1', - s3ForcePathStyle: true + s3ForcePathStyle: true, } - : {}) + : {}), }, - services: [S3] - }) + services: [S3], + }), ], controllers: [AppController], - providers: [AppService] + providers: [AppService], }) export class AppModule {} diff --git a/apps/backend/src/app.service.ts b/apps/backend/src/app.service.ts index c6c644c0..f88f4f38 100644 --- a/apps/backend/src/app.service.ts +++ b/apps/backend/src/app.service.ts @@ -6,7 +6,7 @@ export class AppService { return { buildId: process.env.BUILD_ID ?? 'NA', info: process.env.BUILD_INFO ?? 'NA', - env: process.env.ENV_NAME ?? 'NA' + env: process.env.ENV_NAME ?? 'NA', }; } } diff --git a/apps/backend/src/common/common.errors.ts b/apps/backend/src/common/common.errors.ts index d0124455..70763f81 100644 --- a/apps/backend/src/common/common.errors.ts +++ b/apps/backend/src/common/common.errors.ts @@ -5,19 +5,19 @@ export const CommonError = { INTERNAL_ERROR: { errorType: 'INTERNAL_ERROR', errorMessage: 'Internal Server Error', - httpStatus: HttpStatus.INTERNAL_SERVER_ERROR + httpStatus: HttpStatus.INTERNAL_SERVER_ERROR, } as GenericError, FAILED_FIELD_VALIDATION: { errorType: 'FAILED_FIELD_VALIDATION', errorMessage: 'Some fields were rejected. Please, check your information and try again.', - httpStatus: HttpStatus.PRECONDITION_FAILED + httpStatus: HttpStatus.PRECONDITION_FAILED, } as GenericError, GATEWAY_TIMEOUT: { errorType: 'GATEWAY_TIMEOUT', errorMessage: 'Gateway Timeout', - httpStatus: HttpStatus.GATEWAY_TIMEOUT - } as GenericError + httpStatus: HttpStatus.GATEWAY_TIMEOUT, + } as GenericError, }; diff --git a/apps/backend/src/common/const.ts b/apps/backend/src/common/const.ts index 2c40841b..016a6455 100644 --- a/apps/backend/src/common/const.ts +++ b/apps/backend/src/common/const.ts @@ -2,14 +2,14 @@ export enum MatchStatus { PENDING = 'PENDING', IN_PROGRESS = 'IN_PROGRESS', MATCH = 'MATCH', - EXCEPTION = 'EXCEPTION' + EXCEPTION = 'EXCEPTION', } export const MatchStatusAll = [ MatchStatus.EXCEPTION, MatchStatus.MATCH, MatchStatus.PENDING, - MatchStatus.IN_PROGRESS + MatchStatus.IN_PROGRESS, ]; export enum TransactionCode { @@ -18,9 +18,9 @@ export enum TransactionCode { PREAUTH_PURCHASE_COMPLETE = 12, MERCH_RETURN = 14, PURCHASE_ADJUSTMENT = 21, - MERCH_RETURN_ADJUSTMENT = 22 + MERCH_RETURN_ADJUSTMENT = 22, } export enum Dates { - FISCAL_YEAR_START_DATE = '2023-01-01' + FISCAL_YEAR_START_DATE = '2023-01-01', } diff --git a/apps/backend/src/common/decorators/fixedWidthRecord.decorator.ts b/apps/backend/src/common/decorators/fixedWidthRecord.decorator.ts index d5a81190..e7478c76 100644 --- a/apps/backend/src/common/decorators/fixedWidthRecord.decorator.ts +++ b/apps/backend/src/common/decorators/fixedWidthRecord.decorator.ts @@ -67,7 +67,7 @@ export enum DataType { Card = 'Card', TransactionCode = 'TransactionCode', TransactionType = 'TransactionType', - MerchantLocation = 'MerchantLocation' + MerchantLocation = 'MerchantLocation', } export const ColumnMetadataKey = Symbol('Column:metadata'); diff --git a/apps/backend/src/common/documentation.ts b/apps/backend/src/common/documentation.ts index 80f41787..11d48b65 100644 --- a/apps/backend/src/common/documentation.ts +++ b/apps/backend/src/common/documentation.ts @@ -14,7 +14,7 @@ export const Documentation = (app: INestApplication) => { .build(); const baseDocument = SwaggerModule.createDocument(app, options, { - include: [TransactionModule, ParseModule, ReconciliationModule, AppModule] + include: [TransactionModule, ParseModule, ReconciliationModule, AppModule], }); SwaggerModule.setup('api', app, baseDocument, { @@ -24,7 +24,7 @@ export const Documentation = (app: INestApplication) => { operationsSorter: 'alpha', tagsSorter: 'alpha', defaultModelsExpandDepth: 2, - defaultModelExpandDepth: 2 - } + defaultModelExpandDepth: 2, + }, }); }; diff --git a/apps/backend/src/common/entities/FixedWidthRecord.ts b/apps/backend/src/common/entities/FixedWidthRecord.ts index 1c4af6ff..7de01c87 100644 --- a/apps/backend/src/common/entities/FixedWidthRecord.ts +++ b/apps/backend/src/common/entities/FixedWidthRecord.ts @@ -5,12 +5,12 @@ import { ColumnMetadataKey, ColumnOptions, ColumnVariableKey, - DataType + DataType, } from '../decorators/fixedWidthRecord.decorator'; import { decimalFormat, timeFormat, - parseFlatDateString + parseFlatDateString, } from '../utils/format'; type DelimiterOptions = { @@ -96,7 +96,7 @@ export class FixedWidthRecord> // get `__proto__` and (recursively) all parent classes const rs = new Set([ ...(fields || []), - ...this.getAllFields(Object.getPrototypeOf(clz)) + ...this.getAllFields(Object.getPrototypeOf(clz)), ]); return Array.from(rs); } @@ -111,7 +111,7 @@ export class FixedWidthRecord> ); return { field, - options + options, }; }); fieldsWithMeta.sort((a, b) => { @@ -133,7 +133,7 @@ export class FixedWidthRecord> result = Buffer.concat([ result.slice(0, pos + 1), Buffer.from(target.delimiter?.value), - result.slice(pos + 1) + result.slice(pos + 1), ]); }); } diff --git a/apps/backend/src/common/error-exception.filter.ts b/apps/backend/src/common/error-exception.filter.ts index 14c9b72a..71d291cf 100644 --- a/apps/backend/src/common/error-exception.filter.ts +++ b/apps/backend/src/common/error-exception.filter.ts @@ -6,7 +6,7 @@ import { HttpException, HttpStatus, Logger, - Inject + Inject, } from '@nestjs/common'; import { Response } from 'express'; import { CommonError } from './common.errors'; @@ -36,7 +36,7 @@ export class ErrorExceptionFilter implements ExceptionFilter { (exception as any)?.response?.message || CommonError.INTERNAL_ERROR.errorMessage, - errorDetails: {} + errorDetails: {}, }; } diff --git a/apps/backend/src/common/generic-exception.ts b/apps/backend/src/common/generic-exception.ts index d58f196d..79929803 100644 --- a/apps/backend/src/common/generic-exception.ts +++ b/apps/backend/src/common/generic-exception.ts @@ -27,7 +27,7 @@ export class GenericException extends HttpException { super( { error: error.errorType, - message: error.errorMessage || originalError?.message + message: error.errorMessage || originalError?.message, }, errorCode ); diff --git a/apps/backend/src/common/promises.ts b/apps/backend/src/common/promises.ts index 3caecdb3..5fe608ca 100644 --- a/apps/backend/src/common/promises.ts +++ b/apps/backend/src/common/promises.ts @@ -1,6 +1,6 @@ export async function mapLimit( arr: T[], - fn: (x: T , i: number) => Promise, + fn: (x: T, i: number) => Promise, limit = 10 ): Promise { if (limit < 1) { diff --git a/apps/backend/src/common/ro/empty-response.ro.ts b/apps/backend/src/common/ro/empty-response.ro.ts index f0da2732..4f7da00f 100644 --- a/apps/backend/src/common/ro/empty-response.ro.ts +++ b/apps/backend/src/common/ro/empty-response.ro.ts @@ -8,7 +8,7 @@ export class EmptyResponse { `, example: {}, nullable: false, - required: true + required: true, }) // eslint-disable-next-line @typescript-eslint/ban-types data!: {}; diff --git a/apps/backend/src/common/transformers/numericColumnTransformer.ts b/apps/backend/src/common/transformers/numericColumnTransformer.ts index 9c4a61f4..f5984ef9 100644 --- a/apps/backend/src/common/transformers/numericColumnTransformer.ts +++ b/apps/backend/src/common/transformers/numericColumnTransformer.ts @@ -1,9 +1,8 @@ - export class ColumnNumericTransformer { - to(data: number): number { - return data; - } - from(data: string): number { - return parseFloat(data); - } - } \ No newline at end of file + to(data: number): number { + return data; + } + from(data: string): number { + return parseFloat(data); + } +} diff --git a/apps/backend/src/constants.ts b/apps/backend/src/constants.ts index 61cd82c1..7e0a92b2 100644 --- a/apps/backend/src/constants.ts +++ b/apps/backend/src/constants.ts @@ -2,20 +2,20 @@ export const ALL = 'all'; export enum Ministries { SBC = 'SBC', - LABOUR = 'LABOUR' + LABOUR = 'LABOUR', } export enum FileTypes { TDI17 = 'TDI17', TDI34 = 'TDI34', DDF = 'DDF', - SBC_SALES = 'SBC_SALES' + SBC_SALES = 'SBC_SALES', } export enum FileNames { TDI17 = 'F08TDI17', TDI34 = 'F08TDI34', - SBC_SALES = 'SBC_SALES' + SBC_SALES = 'SBC_SALES', } export interface ParseArgsTDI { @@ -33,5 +33,5 @@ export interface DateRange { export enum PaymentMethodClassification { CASH = 'CASH', POS = 'POS', - IGNORE = 'IGNORE' + IGNORE = 'IGNORE', } diff --git a/apps/backend/src/database/database-logger.ts b/apps/backend/src/database/database-logger.ts index 629e02dc..721518a1 100644 --- a/apps/backend/src/database/database-logger.ts +++ b/apps/backend/src/database/database-logger.ts @@ -12,13 +12,17 @@ export class DatabaseLogger implements TypeOrmLogger { logQueryError(error: string, query: string, parameters?: unknown[]) { this.logger.error( - `${query} -- Parameters: ${this.stringifyParameters(parameters)} -- ${error}`, + `${query} -- Parameters: ${this.stringifyParameters( + parameters + )} -- ${error}` ); } logQuerySlow(time: number, query: string, parameters?: unknown[]) { this.logger.warn( - `Time: ${time} -- Parameters: ${this.stringifyParameters(parameters)} -- ${query}`, + `Time: ${time} -- Parameters: ${this.stringifyParameters( + parameters + )} -- ${query}` ); } diff --git a/apps/backend/src/database/database.module.ts b/apps/backend/src/database/database.module.ts index e1a5fc10..db25b9b6 100644 --- a/apps/backend/src/database/database.module.ts +++ b/apps/backend/src/database/database.module.ts @@ -16,7 +16,7 @@ const config: PostgresConnectionOptions = { username: process.env.DB_USER || 'postgres', password: process.env.DB_PASSWORD, logging: !!process.env.DEBUG, - logger: process.env.DEBUG ? new DatabaseLogger() : undefined + logger: process.env.DEBUG ? new DatabaseLogger() : undefined, }; const getEnvironmentSpecificConfig = (env?: string) => { @@ -27,7 +27,7 @@ const getEnvironmentSpecificConfig = (env?: string) => { migrationsRun: false, entities: [join(__dirname, '../**/*.entity.js')], migrations: [join(__dirname, '../migrations/*.js')], - logging: ['migration'] as LoggerOptions + logging: ['migration'] as LoggerOptions, }; case 'test': return { @@ -36,7 +36,7 @@ const getEnvironmentSpecificConfig = (env?: string) => { autoLoadEntities: true, entities: [join(__dirname, '../**/*.entity.{js,ts}')], migrations: [join(__dirname, '../migrations/*.{js,ts}')], - logging: ['migration'] as LoggerOptions + logging: ['migration'] as LoggerOptions, }; case 'ci': return { @@ -46,14 +46,14 @@ const getEnvironmentSpecificConfig = (env?: string) => { dropSchema: true, entities: [join(__dirname, '../**/*.entity.{js,ts}')], migrations: [join(__dirname, '../migrations/*.{js,ts}')], - logging: ['migration'] as LoggerOptions + logging: ['migration'] as LoggerOptions, }; default: return { synchronize: false, migrationsRun: false, autoLoadEntities: true, - logging: ['error', 'warn', 'migration'] as LoggerOptions + logging: ['error', 'warn', 'migration'] as LoggerOptions, }; } }; @@ -63,14 +63,14 @@ const environmentSpecificConfig = getEnvironmentSpecificConfig(nodeEnv); export const appOrmConfig: PostgresConnectionOptions = { ...config, - ...environmentSpecificConfig + ...environmentSpecificConfig, }; @Module({ imports: [ TypeOrmModule.forRootAsync({ - useFactory: () => appOrmConfig - }) - ] + useFactory: () => appOrmConfig, + }), + ], }) export class DatabaseModule {} diff --git a/apps/backend/src/database/datasource.ts b/apps/backend/src/database/datasource.ts index 9cf411a2..a01efd76 100644 --- a/apps/backend/src/database/datasource.ts +++ b/apps/backend/src/database/datasource.ts @@ -6,7 +6,7 @@ import { LocationEntity } from '../location/entities'; import { TransactionEntity, PaymentEntity, - PaymentMethodEntity + PaymentMethodEntity, } from '../transaction/entities/index'; export default new DataSource({ @@ -22,10 +22,10 @@ export default new DataSource({ TransactionEntity, POSDepositEntity, CashDepositEntity, - LocationEntity + LocationEntity, ], migrations: [__dirname + '/migrations/**/*{.ts,.js}'], synchronize: false, logging: logLevels, - logger: dbLogger + logger: dbLogger, }); diff --git a/apps/backend/src/database/migrations/2524636800000-migration.ts b/apps/backend/src/database/migrations/2524636800000-migration.ts index 7ac4efe2..b5d7ac46 100755 --- a/apps/backend/src/database/migrations/2524636800000-migration.ts +++ b/apps/backend/src/database/migrations/2524636800000-migration.ts @@ -20,7 +20,7 @@ export class migration2524636800000 implements MigrationInterface { method: pm.method, description: pm.description, sbc_code: parseInt(pm.sbc_code), - classification: pm.classification + classification: pm.classification, }); }); diff --git a/apps/backend/src/deposits/cash-deposit.service.ts b/apps/backend/src/deposits/cash-deposit.service.ts index 9ea0529b..ece99f63 100644 --- a/apps/backend/src/deposits/cash-deposit.service.ts +++ b/apps/backend/src/deposits/cash-deposit.service.ts @@ -65,11 +65,11 @@ export class CashDepositService { pt_location_id: location.pt_location_id, metadata: { program: program }, deposit_date, - status: In(depositStatus) + status: In(depositStatus), }, order: { - deposit_amt_cdn: 'ASC' - } + deposit_amt_cdn: 'ASC', + }, }); } @@ -86,11 +86,11 @@ export class CashDepositService { deposit_date: Raw( (alias) => `${alias} <= :to_date and ${alias} >= :from_date`, { to_date, from_date } - ) + ), }, order: { - deposit_date: 'ASC' - } + deposit_date: 'ASC', + }, }); const uniqueDates = dates.map((d) => d.deposit_date); return Array.from(new Set(uniqueDates)); @@ -133,8 +133,8 @@ export class CashDepositService { pt_location_id: location.pt_location_id, metadata: { program: program }, deposit_date: LessThanOrEqual(date), - status: MatchStatus.IN_PROGRESS - } + status: MatchStatus.IN_PROGRESS, + }, }); } /** @@ -159,15 +159,15 @@ export class CashDepositService { `${alias} >= :from_date::date and ${alias} <= :to_date::date`, { from_date, - to_date + to_date, } ), - pt_location_id: location.pt_location_id + pt_location_id: location.pt_location_id, }, order: { deposit_date: 'ASC', - deposit_amt_cdn: 'ASC' - } + deposit_amt_cdn: 'ASC', + }, }); } } diff --git a/apps/backend/src/deposits/deposit.module.ts b/apps/backend/src/deposits/deposit.module.ts index e3c8e906..3b7fa976 100644 --- a/apps/backend/src/deposits/deposit.module.ts +++ b/apps/backend/src/deposits/deposit.module.ts @@ -9,9 +9,9 @@ import { LocationModule } from '../location/location.module'; @Module({ imports: [ LocationModule, - TypeOrmModule.forFeature([POSDepositEntity, CashDepositEntity]) + TypeOrmModule.forFeature([POSDepositEntity, CashDepositEntity]), ], providers: [PosDepositService, CashDepositService, Logger], - exports: [PosDepositService, CashDepositService, TypeOrmModule] + exports: [PosDepositService, CashDepositService, TypeOrmModule], }) export class DepositModule {} diff --git a/apps/backend/src/deposits/entities/cash-deposit.entity.ts b/apps/backend/src/deposits/entities/cash-deposit.entity.ts index e00c9aba..fd0b26bf 100644 --- a/apps/backend/src/deposits/entities/cash-deposit.entity.ts +++ b/apps/backend/src/deposits/entities/cash-deposit.entity.ts @@ -3,7 +3,7 @@ import { OneToMany, Column, Entity, - PrimaryGeneratedColumn + PrimaryGeneratedColumn, } from 'typeorm'; import { FileMetadata } from '../../common/columns/metadata'; import { MatchStatus } from '../../common/const'; @@ -45,7 +45,7 @@ export class CashDepositEntity { type: 'numeric', precision: 16, scale: 2, - transformer: new ColumnNumericTransformer() + transformer: new ColumnNumericTransformer(), }) deposit_amt_curr: number; @@ -56,7 +56,7 @@ export class CashDepositEntity { type: 'numeric', precision: 16, scale: 2, - transformer: new ColumnNumericTransformer() + transformer: new ColumnNumericTransformer(), }) exchange_adj_amt: number; @@ -64,7 +64,7 @@ export class CashDepositEntity { type: 'numeric', precision: 16, scale: 2, - transformer: new ColumnNumericTransformer() + transformer: new ColumnNumericTransformer(), }) deposit_amt_cdn: number; @@ -84,7 +84,7 @@ export class CashDepositEntity { status: MatchStatus; @OneToMany(() => PaymentEntity, (payment) => payment.cash_deposit_match, { - nullable: true + nullable: true, }) payment_match?: Relation; diff --git a/apps/backend/src/deposits/entities/pos-deposit.entity.ts b/apps/backend/src/deposits/entities/pos-deposit.entity.ts index f46f5db8..eaeac435 100644 --- a/apps/backend/src/deposits/entities/pos-deposit.entity.ts +++ b/apps/backend/src/deposits/entities/pos-deposit.entity.ts @@ -5,7 +5,7 @@ import { JoinColumn, ManyToOne, PrimaryGeneratedColumn, - Relation + Relation, } from 'typeorm'; import { FileMetadata } from '../../common/columns'; import { MatchStatus } from '../../common/const'; @@ -38,7 +38,7 @@ export class POSDepositEntity { type: 'numeric', precision: 16, scale: 2, - transformer: new ColumnNumericTransformer() + transformer: new ColumnNumericTransformer(), }) transaction_amt: number; @@ -59,7 +59,7 @@ export class POSDepositEntity { @ManyToOne(() => PaymentMethodEntity, (pd) => pd.method, { eager: true, - cascade: false + cascade: false, }) @JoinColumn({ name: 'payment_method', referencedColumnName: 'method' }) payment_method: Relation; diff --git a/apps/backend/src/deposits/pos-deposit.service.ts b/apps/backend/src/deposits/pos-deposit.service.ts index 8dc0599d..f4170dab 100644 --- a/apps/backend/src/deposits/pos-deposit.service.ts +++ b/apps/backend/src/deposits/pos-deposit.service.ts @@ -36,21 +36,21 @@ export class PosDepositService { where: { transaction_date: date, metadata: { - program: program + program: program, }, status: depositStatus, - merchant_id: In(merchant_ids) + merchant_id: In(merchant_ids), }, relations: { - payment_method: true + payment_method: true, }, // Order by needs to be in this order for matching logic. // We need to batch them using order to ease matches order: { transaction_amt: 'ASC', payment_method: { method: 'ASC' }, - transaction_time: 'ASC' - } + transaction_time: 'ASC', + }, }); } @@ -92,7 +92,7 @@ export class PosDepositService { (alias) => `${alias} >= :from_date::date and ${alias} <= :to_date::date`, { from_date, to_date } - ) + ), }); qb.groupBy('settlement_date'); @@ -102,13 +102,13 @@ export class PosDepositService { qb.orderBy({ settlement_date: 'ASC', transaction_amt: 'ASC', - terminal_no: 'ASC' + terminal_no: 'ASC', }); const deposits = await qb.getRawMany(); return deposits.map((d) => ({ ...d, - settlement_date: format(new Date(d.settlement_date), 'yyyy-MM-dd') + settlement_date: format(new Date(d.settlement_date), 'yyyy-MM-dd'), })); } async savePOSDepositEntities( diff --git a/apps/backend/src/excelexport/excelexport.module.ts b/apps/backend/src/excelexport/excelexport.module.ts index 875d31d0..0d4f0ba4 100644 --- a/apps/backend/src/excelexport/excelexport.module.ts +++ b/apps/backend/src/excelexport/excelexport.module.ts @@ -4,6 +4,6 @@ import { S3ManagerService } from '../s3-manager/s3-manager.service'; @Module({ providers: [ExcelExportService, S3ManagerService, Logger], - exports: [ExcelExportService] + exports: [ExcelExportService], }) export class ExcelExportModule {} diff --git a/apps/backend/src/excelexport/excelexport.service.ts b/apps/backend/src/excelexport/excelexport.service.ts index 56b4c831..cb52a2e3 100644 --- a/apps/backend/src/excelexport/excelexport.service.ts +++ b/apps/backend/src/excelexport/excelexport.service.ts @@ -52,7 +52,7 @@ export class ExcelExportService { Bucket: `pcc-recon-reports-${process.env.RUNTIME_ENV}`, Body: stream, ContentType: - 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' + 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', }) .promise(); }) diff --git a/apps/backend/src/exception/exception.module.ts b/apps/backend/src/exception/exception.module.ts index 0524f054..fa226f5c 100644 --- a/apps/backend/src/exception/exception.module.ts +++ b/apps/backend/src/exception/exception.module.ts @@ -7,6 +7,6 @@ import { TransactionModule } from '../transaction/transaction.module'; @Module({ imports: [DepositModule, TransactionModule, LocationModule], providers: [ExceptionService, Logger], - exports: [ExceptionService] + exports: [ExceptionService], }) export class ExceptionModule {} diff --git a/apps/backend/src/flat-files/ddf/DDFDetails.ts b/apps/backend/src/flat-files/ddf/DDFDetails.ts index bbd3723a..f1019e9d 100644 --- a/apps/backend/src/flat-files/ddf/DDFDetails.ts +++ b/apps/backend/src/flat-files/ddf/DDFDetails.ts @@ -1,10 +1,10 @@ import { Column, - DataType + DataType, } from '../../common/decorators/fixedWidthRecord.decorator'; import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../common/entities/FixedWidthRecord'; export interface IDDFDetails extends IFixedWidthRecord { @@ -53,7 +53,7 @@ export class DDFDetails start: 0, width: 1, format: { type: DataType.Integer }, - example: 2 + example: 2, }) public get rcd_type() { return this.resource.rcd_type; @@ -65,7 +65,7 @@ export class DDFDetails @Column({ start: 1, - width: 8 + width: 8, }) public get merchant_no() { return this.resource.merchant_no; @@ -97,7 +97,7 @@ export class DDFDetails start: 26, width: 2, example: 'V ', - format: { type: DataType.Card } + format: { type: DataType.Card }, }) public get card_vendor() { return this.resource.card_vendor; @@ -120,7 +120,7 @@ export class DDFDetails start: 47, width: 8, example: '20220404', - format: { type: DataType.Date } + format: { type: DataType.Date }, }) public get transaction_date() { return this.resource.transaction_date; @@ -134,7 +134,7 @@ export class DDFDetails start: 55, width: 4, example: '1539', - format: { type: DataType.Time } + format: { type: DataType.Time }, }) public get transaction_time() { return this.resource.transaction_time; @@ -148,7 +148,7 @@ export class DDFDetails start: 59, width: 8, example: '20220405', - format: { type: DataType.Date } + format: { type: DataType.Date }, }) public get settlement_date() { return this.resource.settlement_date; @@ -162,7 +162,7 @@ export class DDFDetails start: 67, width: 2, example: '10', - format: { type: DataType.TransactionCode } + format: { type: DataType.TransactionCode }, }) public get transaction_code() { return this.resource.transaction_code; @@ -204,7 +204,7 @@ export class DDFDetails } @Column({ start: 80, - width: 9 + width: 9, }) public set transaction_amount(data) { this.resource.transaction_amount = data; diff --git a/apps/backend/src/flat-files/tdi17/TDI17Details.ts b/apps/backend/src/flat-files/tdi17/TDI17Details.ts index 718a5365..7da06b45 100644 --- a/apps/backend/src/flat-files/tdi17/TDI17Details.ts +++ b/apps/backend/src/flat-files/tdi17/TDI17Details.ts @@ -1,10 +1,10 @@ import { Column, - DataType + DataType, } from '../../common/decorators/fixedWidthRecord.decorator'; import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../common/entities/FixedWidthRecord'; export interface ITDI17Details extends IFixedWidthRecord { @@ -106,7 +106,7 @@ export class TDI17Details @Column({ start: 24, - width: 3 + width: 3, }) public get seq_no() { return this.resource.seq_no; @@ -165,7 +165,7 @@ export class TDI17Details @Column({ start: 82, width: 12, - format: { type: DataType.Decimal } + format: { type: DataType.Decimal }, }) public get exchange_adj_amt() { return this.resource.exchange_adj_amt; diff --git a/apps/backend/src/flat-files/tdi17/TDI17Header.ts b/apps/backend/src/flat-files/tdi17/TDI17Header.ts index 15c54d73..5e6c3f4d 100644 --- a/apps/backend/src/flat-files/tdi17/TDI17Header.ts +++ b/apps/backend/src/flat-files/tdi17/TDI17Header.ts @@ -1,10 +1,10 @@ import { Column, - DataType + DataType, } from '../../common/decorators/fixedWidthRecord.decorator'; import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../common/entities/FixedWidthRecord'; export interface ITDI17Header extends IFixedWidthRecord { diff --git a/apps/backend/src/flat-files/tdi17/TDI17Trailer.ts b/apps/backend/src/flat-files/tdi17/TDI17Trailer.ts index bdc8399e..9820a589 100644 --- a/apps/backend/src/flat-files/tdi17/TDI17Trailer.ts +++ b/apps/backend/src/flat-files/tdi17/TDI17Trailer.ts @@ -1,10 +1,10 @@ import { Column, - DataType + DataType, } from '../../common/decorators/fixedWidthRecord.decorator'; import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../common/entities/FixedWidthRecord'; export interface ITDI17Trailer extends IFixedWidthRecord { diff --git a/apps/backend/src/flat-files/tdi34/TDI34Details.ts b/apps/backend/src/flat-files/tdi34/TDI34Details.ts index 31ed7949..162ab36b 100644 --- a/apps/backend/src/flat-files/tdi34/TDI34Details.ts +++ b/apps/backend/src/flat-files/tdi34/TDI34Details.ts @@ -1,11 +1,11 @@ import { TransactionCode } from '../../common/const'; import { Column, - DataType + DataType, } from '../../common/decorators/fixedWidthRecord.decorator'; import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../common/entities/FixedWidthRecord'; export interface ITDI34Details extends IFixedWidthRecord { @@ -122,7 +122,7 @@ export class TDI34Details @Column({ start: 59, width: 8, - format: { type: DataType.Date } + format: { type: DataType.Date }, }) public get settlement_date() { return this.resource.settlement_date; @@ -161,7 +161,7 @@ export class TDI34Details @Column({ start: 78, - width: 2 + width: 2, }) public get fill3() { return this.resource.fill3; diff --git a/apps/backend/src/flat-files/tdi34/TDI34Header.ts b/apps/backend/src/flat-files/tdi34/TDI34Header.ts index 18f46430..9d196eb5 100644 --- a/apps/backend/src/flat-files/tdi34/TDI34Header.ts +++ b/apps/backend/src/flat-files/tdi34/TDI34Header.ts @@ -1,10 +1,10 @@ import { Column, - DataType + DataType, } from '../../common/decorators/fixedWidthRecord.decorator'; import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../common/entities/FixedWidthRecord'; export interface ITDI34Header extends IFixedWidthRecord { diff --git a/apps/backend/src/flat-files/tdi34/TDI34Trailer.ts b/apps/backend/src/flat-files/tdi34/TDI34Trailer.ts index 3b2aa80b..1c6ff968 100644 --- a/apps/backend/src/flat-files/tdi34/TDI34Trailer.ts +++ b/apps/backend/src/flat-files/tdi34/TDI34Trailer.ts @@ -1,10 +1,10 @@ import { Column, - DataType + DataType, } from '../../common/decorators/fixedWidthRecord.decorator'; import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../common/entities/FixedWidthRecord'; export interface ITDI34Trailer extends IFixedWidthRecord { diff --git a/apps/backend/src/lambda.ts b/apps/backend/src/lambda.ts index f2f496c5..95509a9d 100644 --- a/apps/backend/src/lambda.ts +++ b/apps/backend/src/lambda.ts @@ -4,7 +4,7 @@ import { APIGatewayProxyResult, Context, Callback, - Handler + Handler, } from 'aws-lambda'; import { createNestApp } from './app.config'; diff --git a/apps/backend/src/lambdas/parseFlatFile.ts b/apps/backend/src/lambdas/parseFlatFile.ts index 05d25f95..d4253922 100644 --- a/apps/backend/src/lambdas/parseFlatFile.ts +++ b/apps/backend/src/lambdas/parseFlatFile.ts @@ -41,7 +41,7 @@ export const handler = async (event: parseFlatFileEvent, context?: Context) => { type: event.type, fileContents: contents?.Body?.toString() || '', program: event.program, - fileName: event.filename + fileName: event.filename, }), appLogger, event?.outputPath ?? undefined diff --git a/apps/backend/src/lambdas/parser.ts b/apps/backend/src/lambdas/parser.ts index 88cc65c0..4aaec8f6 100644 --- a/apps/backend/src/lambdas/parser.ts +++ b/apps/backend/src/lambdas/parser.ts @@ -133,7 +133,7 @@ export const handler = async (event?: unknown, _context?: Context) => { type: fileType, fileName: filename, program: ministry, - fileContents: Buffer.from(file.Body?.toString() || '').toString() + fileContents: Buffer.from(file.Body?.toString() || '').toString(), }); if (fileType === FileTypes.TDI34) { diff --git a/apps/backend/src/lambdas/reconcile.ts b/apps/backend/src/lambdas/reconcile.ts index bc7ea2a6..75011e00 100644 --- a/apps/backend/src/lambdas/reconcile.ts +++ b/apps/backend/src/lambdas/reconcile.ts @@ -82,7 +82,7 @@ const runPosReconciliation = async ( for (const location of locations) { const dates: Date[] = eachDayOfInterval({ start: new Date(event.period.from), - end: new Date(event.period.to) + end: new Date(event.period.to), }); for (const [index, pos_date] of dates.entries()) { @@ -114,7 +114,7 @@ const runCashReconciliation = async ( program, { to_date: period.to, - from_date: period.from + from_date: period.from, }, location ); @@ -124,7 +124,7 @@ const runCashReconciliation = async ( const dateRange = { from_date: lastDepositDate, - to_date: date + to_date: date, }; appLogger.log({ dateRange }, CashReconciliationService.name); @@ -163,7 +163,7 @@ const runCashExceptions = async ( event.program, { to_date: event.period.to, - from_date: event.period.from + from_date: event.period.from, }, location ); diff --git a/apps/backend/src/lambdas/utils/parseGarms.ts b/apps/backend/src/lambdas/utils/parseGarms.ts index 600efa40..3e11a14f 100644 --- a/apps/backend/src/lambdas/utils/parseGarms.ts +++ b/apps/backend/src/lambdas/utils/parseGarms.ts @@ -5,12 +5,12 @@ import { PaymentMethodEntity } from '../../transaction/entities/payment-method.e import { SBCGarmsDistribution, SBCGarmsJson, - SBCGarmsPayment + SBCGarmsPayment, } from '../../transaction/interface'; import { AccountingItem, Distribution, - Transaction + Transaction, } from '../../transaction/interface/transaction.interface'; /** @@ -28,7 +28,7 @@ export const parseGarms = async ( ): Promise => { const garmsData = garmsJson.map((itm) => ({ ...itm, - payments: itm.payments.filter((payment) => payment.amount !== 0) + payments: itm.payments.filter((payment) => payment.amount !== 0), })); const parsedGarms = garmsData.map( ({ @@ -40,7 +40,7 @@ export const parseGarms = async ( payments, source, misc, - distributions + distributions, }): TransactionEntity => new TransactionEntity({ source_id: Ministries.SBC, @@ -71,12 +71,12 @@ export const parseGarms = async ( ), void_indicator: void_indicator !== ' ' ? true : false, misc: { - ...misc + ...misc, }, source: { location_id: source?.location_id, source_id: source?.source_id, - accepted_payment_methods: source?.accepted_payment_methods ?? [] + accepted_payment_methods: source?.accepted_payment_methods ?? [], }, accounting: Object.values(distributions)?.[0].map( (itm: SBCGarmsDistribution) => @@ -84,14 +84,14 @@ export const parseGarms = async ( sequence: itm.line_number, details: { description: itm.line_description, - code: itm.dist_client_code + code: itm.dist_client_code, }, distributions: Object.values(distributions)?.[0].map( (itm) => new Distribution(itm) - ) + ), } as AccountingItem) - ) - }) + ), + }), }) ); return parsedGarms; @@ -117,5 +117,5 @@ const parseSBCGarmsPayments = ( 2 ) ) - : parseFloat(garmsPayment.amount?.toFixed(2)) + : parseFloat(garmsPayment.amount?.toFixed(2)), }); diff --git a/apps/backend/src/lambdas/utils/parseTDI.ts b/apps/backend/src/lambdas/utils/parseTDI.ts index cd918953..949c8e98 100644 --- a/apps/backend/src/lambdas/utils/parseTDI.ts +++ b/apps/backend/src/lambdas/utils/parseTDI.ts @@ -5,7 +5,7 @@ export const parseTDI = ({ type, fileName, program, - fileContents + fileContents, }: ParseArgsTDI): TDI34Details[] | TDI17Details[] | DDFDetails[] | [] => { const lines = fileContents.split('\n').filter((l: string) => l); lines.splice(0, 1); @@ -39,7 +39,7 @@ export const parseTDI = ({ source_file_line: index + 1, program, source_file_name: fileName, - source_file_length: lines.length + source_file_length: lines.length, }; return item; }); diff --git a/apps/backend/src/location/const.ts b/apps/backend/src/location/const.ts index 108b1b60..e09f0bec 100644 --- a/apps/backend/src/location/const.ts +++ b/apps/backend/src/location/const.ts @@ -1,3 +1,3 @@ export enum LocationEnum { - Bank = 'Bank' + Bank = 'Bank', } diff --git a/apps/backend/src/location/location.module.ts b/apps/backend/src/location/location.module.ts index e597061a..cd7baf2e 100644 --- a/apps/backend/src/location/location.module.ts +++ b/apps/backend/src/location/location.module.ts @@ -6,6 +6,6 @@ import { LocationService } from './location.service'; @Module({ imports: [TypeOrmModule.forFeature([LocationEntity])], providers: [LocationService], - exports: [LocationService, TypeOrmModule] + exports: [LocationService, TypeOrmModule], }) export class LocationModule {} diff --git a/apps/backend/src/location/location.service.ts b/apps/backend/src/location/location.service.ts index 608e5d68..2fcb6cb4 100644 --- a/apps/backend/src/location/location.service.ts +++ b/apps/backend/src/location/location.service.ts @@ -17,15 +17,15 @@ export class LocationService { ): Promise { const merchant_ids = await this.locationRepo.find({ select: { - merchant_id: true + merchant_id: true, }, where: { location_id, - method: Not('Bank') + method: Not('Bank'), }, order: { - location_id: 'ASC' - } + location_id: 'ASC', + }, }); return merchant_ids.map((itm) => itm.merchant_id) as number[]; } @@ -38,16 +38,16 @@ export class LocationService { select: { location_id: true, pt_location_id: true, - description: true + description: true, }, where: { source_id: program, method: `${LocationEnum.Bank}`, - location_id: In(location_ids) + location_id: In(location_ids), }, order: { - location_id: 'ASC' - } + location_id: 'ASC', + }, }); } @@ -57,11 +57,11 @@ export class LocationService { return await this.locationRepo.find({ where: { source_id: source, - method: `${LocationEnum.Bank}` + method: `${LocationEnum.Bank}`, }, order: { - location_id: 'ASC' - } + location_id: 'ASC', + }, }); } } diff --git a/apps/backend/src/logger/logger.module.ts b/apps/backend/src/logger/logger.module.ts index 658f4f34..ffcfa2c2 100644 --- a/apps/backend/src/logger/logger.module.ts +++ b/apps/backend/src/logger/logger.module.ts @@ -3,6 +3,6 @@ import { AppLogger } from './logger.service'; @Module({ providers: [AppLogger], - exports: [AppLogger] + exports: [AppLogger], }) export class LoggerModule {} diff --git a/apps/backend/src/logger/logger.service.ts b/apps/backend/src/logger/logger.service.ts index 24e8ddeb..1a92f19c 100644 --- a/apps/backend/src/logger/logger.service.ts +++ b/apps/backend/src/logger/logger.service.ts @@ -16,12 +16,12 @@ export class AppLogger implements LoggerService { winston.format.simple(), winston.format.colorize() ), - level: 'debug' + level: 'debug', }), new winston.transports.File({ filename: `${format(new Date(), 'yyyy-MM-dd')}`, - level: 'verbose' - }) + level: 'verbose', + }), ] : [ new winston.transports.Console({ @@ -29,10 +29,10 @@ export class AppLogger implements LoggerService { winston.format.simple(), winston.format.colorize() ), - level: 'debug' - }) + level: 'debug', + }), ], - exitOnError: false + exitOnError: false, }); } @@ -55,7 +55,7 @@ export class AppLogger implements LoggerService { message = { url: config?.url, method: config?.method, - ...(response?.data ? { data: response.data } : {}) + ...(response?.data ? { data: response.data } : {}), }; } // For handling manually crafted validation error message arrays, see 'exceptionFactory' in 'app.config.ts' diff --git a/apps/backend/src/parse/parse.controller.ts b/apps/backend/src/parse/parse.controller.ts index a2a1734b..922a8c31 100644 --- a/apps/backend/src/parse/parse.controller.ts +++ b/apps/backend/src/parse/parse.controller.ts @@ -6,7 +6,7 @@ import { Controller, ClassSerializerInterceptor, Inject, - Logger + Logger, } from '@nestjs/common'; import { FileInterceptor } from '@nestjs/platform-express'; import { ApiConsumes, ApiBody, ApiTags } from '@nestjs/swagger'; @@ -34,19 +34,19 @@ export class ParseController { program: { type: 'string', enum: ['SBC', 'LABOUR'], - nullable: false + nullable: false, }, fileType: { type: 'string', enum: ['TDI17', 'TDI34'], - nullable: false + nullable: false, }, file: { type: 'string', - format: 'binary' - } - } - } + format: 'binary', + }, + }, + }, }) @UseInterceptors(FileInterceptor('file')) uploadFile( @@ -58,7 +58,7 @@ export class ParseController { type: body.fileType, fileName: file.originalname, program: body.program, - fileContents: contents + fileContents: contents, }); } } diff --git a/apps/backend/src/parse/parse.module.ts b/apps/backend/src/parse/parse.module.ts index 1e160150..4b53ce87 100644 --- a/apps/backend/src/parse/parse.module.ts +++ b/apps/backend/src/parse/parse.module.ts @@ -4,6 +4,6 @@ import { ParseService } from './parse.service'; @Module({ controllers: [ParseController], - providers: [ParseService, Logger] + providers: [ParseService, Logger], }) export class ParseModule {} diff --git a/apps/backend/src/parse/parse.service.ts b/apps/backend/src/parse/parse.service.ts index 3e5615c3..32c4d2a0 100644 --- a/apps/backend/src/parse/parse.service.ts +++ b/apps/backend/src/parse/parse.service.ts @@ -11,7 +11,7 @@ export class ParseService { type, fileName, program, - fileContents + fileContents, }: ParseArgsTDI): Promise { try { return parseTDI({ type, fileName, program, fileContents }); diff --git a/apps/backend/src/reconciliation/cash-exceptions.service.ts b/apps/backend/src/reconciliation/cash-exceptions.service.ts index e991644e..24587e30 100644 --- a/apps/backend/src/reconciliation/cash-exceptions.service.ts +++ b/apps/backend/src/reconciliation/cash-exceptions.service.ts @@ -45,7 +45,7 @@ export class CashExceptionsService { payments.map((itm) => ({ ...itm, timestamp: itm.timestamp, - status: MatchStatus.EXCEPTION + status: MatchStatus.EXCEPTION, })) ); @@ -53,13 +53,13 @@ export class CashExceptionsService { await this.cashDepositService.updateDeposits( deposits.map((itm) => ({ ...itm, - status: MatchStatus.EXCEPTION + status: MatchStatus.EXCEPTION, })) ); return { payments: paymentExceptions?.length ?? 0, - deposits: depositExceptions?.length ?? 0 + deposits: depositExceptions?.length ?? 0, }; } } diff --git a/apps/backend/src/reconciliation/cash-reconciliation.service.ts b/apps/backend/src/reconciliation/cash-reconciliation.service.ts index 30af8ee9..205660a9 100644 --- a/apps/backend/src/reconciliation/cash-reconciliation.service.ts +++ b/apps/backend/src/reconciliation/cash-reconciliation.service.ts @@ -107,12 +107,12 @@ export class CashReconciliationService { ...itm, timestamp: itm.timestamp, status: MatchStatus.MATCH, - cash_deposit_match: deposits[dindex] - })) + cash_deposit_match: deposits[dindex], + })), }; matches.push({ aggregatedPayment: aggregatedPayments[pindex], - deposit: deposits[dindex] + deposit: deposits[dindex], }); } break; @@ -197,7 +197,7 @@ export class CashReconciliationService { itm.payments.map((itm: PaymentEntity) => ({ ...itm, timestamp: itm.timestamp, - status: MatchStatus.IN_PROGRESS + status: MatchStatus.IN_PROGRESS, })) ); @@ -205,7 +205,7 @@ export class CashReconciliationService { .filter((itm: CashDepositEntity) => itm.status !== MatchStatus.MATCH) .map((itm: CashDepositEntity) => ({ ...itm, - status: MatchStatus.IN_PROGRESS + status: MatchStatus.IN_PROGRESS, })); this.appLogger.log( @@ -221,11 +221,11 @@ export class CashReconciliationService { const updatePayments = await this.paymentService.updatePayments([ ...matchedPayments, - ...inProgressPayments + ...inProgressPayments, ]); const updateDeposits = await this.cashDepositService.updateDeposits([ ...matchedDeposits, - ...inProgressDeposits + ...inProgressDeposits, ]); const updatedAggregatedPayments = this.paymentService.aggregatePayments(updatePayments); @@ -241,7 +241,7 @@ export class CashReconciliationService { depositsMatched: matchedDeposits.length, depositsInProgress: inProgressDeposits.length, totalUpdatedPayments: updatedAggregatedPayments.length, - totalUpdatedDeposits: updateDeposits.length + totalUpdatedDeposits: updateDeposits.length, }; } } diff --git a/apps/backend/src/reconciliation/pos-reconciliation.service.ts b/apps/backend/src/reconciliation/pos-reconciliation.service.ts index 2b3148f0..58410d4c 100644 --- a/apps/backend/src/reconciliation/pos-reconciliation.service.ts +++ b/apps/backend/src/reconciliation/pos-reconciliation.service.ts @@ -110,13 +110,13 @@ export class POSReconciliationService { ...payment, status: MatchStatus.MATCH, timestamp: payment.timestamp, - pos_deposit_match: deposit + pos_deposit_match: deposit, }, deposit: { ...deposit, status: MatchStatus.MATCH, - timestamp: deposit.timestamp - } + timestamp: deposit.timestamp, + }, }); break; } @@ -152,7 +152,7 @@ export class POSReconciliationService { if (pendingPayments.length === 0 && pendingDeposits.length === 0) { return { - message: 'No pending payments or deposits found' + message: 'No pending payments or deposits found', }; } @@ -213,7 +213,7 @@ export class POSReconciliationService { .map((itm) => ({ ...itm, timestamp: itm.timestamp, - status: MatchStatus.EXCEPTION + status: MatchStatus.EXCEPTION, })) ) ); @@ -224,7 +224,7 @@ export class POSReconciliationService { .map((itm) => ({ ...itm, timestamp: itm.timestamp, - status: MatchStatus.EXCEPTION + status: MatchStatus.EXCEPTION, })) ) ); @@ -238,7 +238,7 @@ export class POSReconciliationService { total_matched_payments: paymentsMatched.length, total_matched_deposits: depositsMatched.length, total_payment_exceptions: paymentExceptions.length, - total_deposit_exceptions: depositExcpetions.length + total_deposit_exceptions: depositExcpetions.length, }; } } diff --git a/apps/backend/src/reconciliation/reconciliation.module.ts b/apps/backend/src/reconciliation/reconciliation.module.ts index c2086122..e77e14ed 100644 --- a/apps/backend/src/reconciliation/reconciliation.module.ts +++ b/apps/backend/src/reconciliation/reconciliation.module.ts @@ -12,8 +12,8 @@ import { TransactionModule } from '../transaction/transaction.module'; CashReconciliationService, POSReconciliationService, Logger, - CashExceptionsService + CashExceptionsService, ], - exports: [] + exports: [], }) export class ReconciliationModule {} diff --git a/apps/backend/src/reconciliation/types/const.ts b/apps/backend/src/reconciliation/types/const.ts index 2e3a0f78..03e01bfe 100644 --- a/apps/backend/src/reconciliation/types/const.ts +++ b/apps/backend/src/reconciliation/types/const.ts @@ -1,4 +1,4 @@ export enum ReconciliationType { CASH = 'CASH', - POS = 'POS' + POS = 'POS', } diff --git a/apps/backend/src/reporting/const.ts b/apps/backend/src/reporting/const.ts index e591c57a..c90fac4a 100644 --- a/apps/backend/src/reporting/const.ts +++ b/apps/backend/src/reporting/const.ts @@ -6,7 +6,7 @@ export const dailySummaryColumns = [ { header: 'Total Payments', key: 'total_payments' }, { header: 'Total Unmatched', key: 'total_unmatched_payments' }, { header: '% Unmatched', key: 'percent_unmatched' }, - { header: 'Sum Of Payments', key: 'total_sum' } + { header: 'Sum Of Payments', key: 'total_sum' }, ]; export const detailedReportColumns = [ @@ -38,12 +38,12 @@ export const detailedReportColumns = [ { header: 'Dist Stob Code', key: 'dist_stob_code' }, { header: 'Dist Project Code', key: 'dist_project_code' }, { header: 'Dist Location Code', key: 'dist_location_code' }, - { header: 'Dist Future Code', key: 'dist_future_code' } + { header: 'Dist Future Code', key: 'dist_future_code' }, ]; export enum Report { DAILY_SUMMARY = 'Daily Summary', DETAILED_REPORT = 'Reconciliation Details', - CAS_REPORT = 'CAS Comparison' + CAS_REPORT = 'CAS Comparison', } export const casReportColumns = [ @@ -56,5 +56,5 @@ export const casReportColumns = [ { header: 'Dist Resp Code', key: 'dist_resp_code' }, { header: 'Dist Stob Code', key: 'dist_stob_code' }, { header: 'Dist Service Line Code', key: 'dist_service_line_code' }, - { header: 'Dist Project Code', key: 'dist_project_code' } + { header: 'Dist Project Code', key: 'dist_project_code' }, ]; diff --git a/apps/backend/src/reporting/details-report.service.ts b/apps/backend/src/reporting/details-report.service.ts index 1d1cc24c..894c5b87 100644 --- a/apps/backend/src/reporting/details-report.service.ts +++ b/apps/backend/src/reporting/details-report.service.ts @@ -3,7 +3,7 @@ import { CashDepositDetailsReport, POSDepositDetailsReport, PaymentDetailsReport, - DetailsReport + DetailsReport, } from './detailed-report'; import { DailySummary, ReportConfig } from './interfaces'; import { rowStyle } from './styles'; @@ -66,9 +66,9 @@ export class DetailedReportService { total_payments: total, total_unmatched_payments: exceptions, percent_unmatched: unmatchedPercentage, - total_sum: parseFloat(totalSum.toFixed(2)) + total_sum: parseFloat(totalSum.toFixed(2)), }, - style: rowStyle(exceptions !== 0) + style: rowStyle(exceptions !== 0), }; } @@ -89,7 +89,7 @@ export class DetailedReportService { const allPendingAndInProgressCashPayments: PaymentEntity[] = await this.paymentService.findCashPayments(dateRange, location, [ MatchStatus.PENDING, - MatchStatus.IN_PROGRESS + MatchStatus.IN_PROGRESS, ]); return [ @@ -99,7 +99,7 @@ export class DetailedReportService { ...currentCashPaymentsByDepositDates.map( (itm) => new PaymentDetailsReport(location, itm, twoMostRecentDepositDates) - ) + ), ]; } @@ -140,7 +140,7 @@ export class DetailedReportService { const twoMostRecentDepositDates = cashDepositDatesForPaymentsQuery && { from_date: cashDepositDatesForPaymentsQuery[1], - to_date: cashDepositDatesForPaymentsQuery[0] + to_date: cashDepositDatesForPaymentsQuery[0], }; const payments = await this.findCashPaymentsForDetailedReport( @@ -155,12 +155,12 @@ export class DetailedReportService { ), ...currentCashDeposits.map( (itm) => new CashDepositDetailsReport(location, itm) - ) + ), ]; return { payments, - deposits + deposits, }; } @@ -187,7 +187,7 @@ export class DetailedReportService { ), deposits: posDeposits.map( (itm) => new POSDepositDetailsReport(location, itm) - ) + ), }; } /** @@ -202,7 +202,7 @@ export class DetailedReportService { ): Promise { const dateRange: DateRange = { from_date: config.period.from, - to_date: config.period.to + to_date: config.period.to, }; const cashData = await this.findCashDataForDetailedReport( location, @@ -218,7 +218,7 @@ export class DetailedReportService { ...posData.deposits, ...posData.payments, ...cashData.deposits, - ...cashData.payments + ...cashData.payments, ]; } } diff --git a/apps/backend/src/reporting/reporting.module.ts b/apps/backend/src/reporting/reporting.module.ts index 54a4ffe5..56cca4a1 100644 --- a/apps/backend/src/reporting/reporting.module.ts +++ b/apps/backend/src/reporting/reporting.module.ts @@ -13,9 +13,9 @@ import { TransactionModule } from '../transaction/transaction.module'; LocationModule, ExcelExportModule, DepositModule, - TransactionModule + TransactionModule, ], providers: [ReportingService, DetailedReportService, Logger], - exports: [ReportingService] + exports: [ReportingService], }) export class ReportingModule {} diff --git a/apps/backend/src/reporting/reporting.service.ts b/apps/backend/src/reporting/reporting.service.ts index a357fc1e..eb9d120d 100644 --- a/apps/backend/src/reporting/reporting.service.ts +++ b/apps/backend/src/reporting/reporting.service.ts @@ -7,7 +7,7 @@ import { dailySummaryColumns, detailedReportColumns, Report, - casReportColumns + casReportColumns, } from './const'; import { DetailedReportService } from './details-report.service'; import { DailySummary, ReportConfig } from './interfaces'; @@ -84,7 +84,7 @@ export class ReportingService { const dateRange = { from_date: format(from_date, 'yyyy-MM-dd'), - to_date: format(to_date, 'yyyy-MM-dd') + to_date: format(to_date, 'yyyy-MM-dd'), }; this.appLogger.log( `Generating cas report for: ${format(from_date, 'yyyy-MM-dd')}-${format( @@ -123,12 +123,12 @@ export class ReportingService { const filterOptions = { from: { column: 1, - row: 2 + row: 2, }, to: { column: casReportColumns.length, - row: details.length + 1 - } + row: details.length + 1, + }, }; this.excelWorkbook.addFilterOptions(Report.CAS_REPORT, filterOptions); @@ -136,7 +136,7 @@ export class ReportingService { 'F', 'H', 'I', - 'J' + 'J', ]); } /** @@ -161,7 +161,7 @@ export class ReportingService { .filter((itm) => itm.deposit_amt_cdn.toString() !== '0.00') .map((itm) => ({ deposit_date: itm.deposit_date, - deposit_amt_cdn: itm.deposit_amt_cdn + deposit_amt_cdn: itm.deposit_amt_cdn, })); const posDeposits: POSDepositEntity[] = @@ -179,7 +179,7 @@ export class ReportingService { location, payment_method, settlement_date, - amount: parseFloat(transaction_amt.toString()) + amount: parseFloat(transaction_amt.toString()), }) ); @@ -189,7 +189,7 @@ export class ReportingService { location, payment_method: 'CASH DEPOSIT', settlement_date: itm.deposit_date, - amount: itm.deposit_amt_cdn + amount: itm.deposit_amt_cdn, }) ); @@ -255,12 +255,12 @@ export class ReportingService { const filterOptions = { from: { column: 1, - row: 2 + row: 2, }, to: { column: detailedReportColumns.length, - row: data.length + 1 - } + row: data.length + 1, + }, }; this.excelWorkbook.addFilterOptions(Report.DETAILED_REPORT, filterOptions); @@ -317,12 +317,12 @@ export class ReportingService { const filterOptions = { from: { column: 1, - row: 2 + row: 2, }, to: { column: dailySummaryColumns.length, - row: dailySummaryReport.length - } + row: dailySummaryReport.length, + }, }; this.excelWorkbook.addFilterOptions(Report.DAILY_SUMMARY, filterOptions); @@ -367,9 +367,9 @@ export class ReportingService { total_payments: total, total_unmatched_payments: exceptions, percent_unmatched: unmatchedPercentage, - total_sum: parseFloat(totalSum.toFixed(2)) + total_sum: parseFloat(totalSum.toFixed(2)), }, - style: rowStyle(exceptions !== 0) + style: rowStyle(exceptions !== 0), }; } diff --git a/apps/backend/src/reporting/styles.ts b/apps/backend/src/reporting/styles.ts index 0180aeee..19b96dd3 100644 --- a/apps/backend/src/reporting/styles.ts +++ b/apps/backend/src/reporting/styles.ts @@ -8,15 +8,15 @@ export const fontStyle: Partial = { family: 2, size: 12, italic: false, - bold: false + bold: false, }; export const titleStyle: Partial = { font: { ...fontStyle, size: 16, - bold: true - } + bold: true, + }, }; export const placement = (mergeRange: string): Placement => { @@ -24,18 +24,18 @@ export const placement = (mergeRange: string): Placement => { row: 1, column: 'A1', height: 40, - merge: mergeRange + merge: mergeRange, }; }; export const columnStyle: Partial = { font: { ...fontStyle, - bold: true - } + bold: true, + }, }; export const rowCommonStyle: Partial = { - font: { ...fontStyle } + font: { ...fontStyle }, }; export const rowStyle = (exceptions?: boolean): Partial => { @@ -44,9 +44,9 @@ export const rowStyle = (exceptions?: boolean): Partial => { fill: { type: 'pattern', pattern: 'solid', - fgColor: { argb: '1AE78587' } + fgColor: { argb: '1AE78587' }, }, - font: { ...fontStyle } + font: { ...fontStyle }, }; } return rowCommonStyle; diff --git a/apps/backend/src/s3-manager/s3-manager.module.ts b/apps/backend/src/s3-manager/s3-manager.module.ts index 57336502..1fa8d2d6 100644 --- a/apps/backend/src/s3-manager/s3-manager.module.ts +++ b/apps/backend/src/s3-manager/s3-manager.module.ts @@ -8,6 +8,6 @@ https://docs.nestjs.com/modules imports: [], controllers: [], providers: [S3ManagerService], - exports: [S3ManagerService] + exports: [S3ManagerService], }) export class S3ManagerModule {} diff --git a/apps/backend/src/transaction/decorators/areDistributionsValid.ts b/apps/backend/src/transaction/decorators/areDistributionsValid.ts index 2b1e1d6e..faf859b1 100644 --- a/apps/backend/src/transaction/decorators/areDistributionsValid.ts +++ b/apps/backend/src/transaction/decorators/areDistributionsValid.ts @@ -1,7 +1,7 @@ import { isArray, ValidatorConstraint, - ValidatorConstraintInterface + ValidatorConstraintInterface, } from 'class-validator'; import { DistributionDTO } from '../dto/accounting.dto'; diff --git a/apps/backend/src/transaction/decorators/arePaymentMethodsValid.ts b/apps/backend/src/transaction/decorators/arePaymentMethodsValid.ts index 0e2ca6be..9587c6b5 100644 --- a/apps/backend/src/transaction/decorators/arePaymentMethodsValid.ts +++ b/apps/backend/src/transaction/decorators/arePaymentMethodsValid.ts @@ -2,7 +2,7 @@ import { ValidatorConstraint, ValidatorConstraintInterface, ValidationArguments, - isArray + isArray, } from 'class-validator'; import { PaymentDTO } from '../dto/payment.dto'; import { TransactionDTO } from '../dto/transaction.dto'; diff --git a/apps/backend/src/transaction/dto/accounting.dto.ts b/apps/backend/src/transaction/dto/accounting.dto.ts index b0100786..58d6552f 100644 --- a/apps/backend/src/transaction/dto/accounting.dto.ts +++ b/apps/backend/src/transaction/dto/accounting.dto.ts @@ -4,7 +4,7 @@ import { IsString, Length, IsNumber, - IsNumberString + IsNumberString, } from 'class-validator'; /* @@ -16,7 +16,7 @@ export class GlDTO { @ApiProperty({ description: '3 character Client Number - the legal entity (Ministry, Trust, Special Account, Special Fund) and the balancing segment in the General Ledger.', - example: '130' + example: '130', }) @IsString() @IsNotEmpty() @@ -26,7 +26,7 @@ export class GlDTO { @ApiProperty({ description: '5 Character Responsibility Centre - identifies how the ministry has assigned responsibility and accountability to manage human, financial and capital resources.', - example: '29KGT' + example: '29KGT', }) @IsString() @IsNotEmpty() @@ -36,7 +36,7 @@ export class GlDTO { @ApiProperty({ description: '5 Character Service Line Code - identifies the ministry program or service at the lowest functional level desired.', - example: '38513' + example: '38513', }) @IsString() @IsNotEmpty() @@ -46,7 +46,7 @@ export class GlDTO { @ApiProperty({ description: '4 Character STOB (Standard Object of Expenditure) - identifies the nature of goods and services purchased (office supplies, salaries) and the nature of payment (government transfers). Also used to classify transactions according to common characteristics such as expenses, revenue, assets, liabilities and equity.', - example: '4303' + example: '4303', }) @IsString() @IsNotEmpty() @@ -56,7 +56,7 @@ export class GlDTO { @ApiProperty({ description: '7 Character Project Code - identifies projects or additional activity detail as defined by ministries or agencies', - example: '29KGT' + example: '29KGT', }) @IsString() @IsNotEmpty() @@ -66,7 +66,7 @@ export class GlDTO { @ApiProperty({ description: ' 6 Character Location Code - (not yet implemented) defines where (the location) the benefit was received as a result of the transaction.', - example: '000000' + example: '000000', }) @IsString() @IsNotEmpty() @@ -76,7 +76,7 @@ export class GlDTO { @ApiProperty({ description: '5 Character Future Code - (not yet implemented) segment reserved for future business.', - example: '0000' + example: '0000', }) @IsString() @IsNotEmpty() @@ -86,7 +86,7 @@ export class GlDTO { // Supplier Code @ApiProperty({ description: 'Free text description of the distribution', - example: 'lorem ipsum dolor sit amet' + example: 'lorem ipsum dolor sit amet', }) @IsString() @Length(6, 9) @@ -96,7 +96,7 @@ export class GlDTO { export class DistributionDTO { @ApiProperty({ description: 'Line Number', example: '00001' }) @IsNumberString({ - no_symbols: true + no_symbols: true, }) @IsString() @IsNotEmpty() @@ -117,7 +117,7 @@ export class DistributionDTO { @ApiProperty({ description: 'Disbursment GL Account', example: 'Disbursment GL Account', - type: GlDTO + type: GlDTO, }) @IsNotEmpty() disbursment_gl_account!: GlDTO; @@ -125,7 +125,7 @@ export class DistributionDTO { @ApiProperty({ description: 'Revenue GL Account', example: 'Revenue GL Account', - type: GlDTO + type: GlDTO, }) @IsNotEmpty() revenue_gl_account!: GlDTO; @@ -135,10 +135,10 @@ export class AccountingDTO { @ApiProperty({ description: 'Sequential numbers representing an item of sale / service or equivalent', - example: '00001' + example: '00001', }) @IsNumberString({ - no_symbols: true + no_symbols: true, }) @IsString() @IsNotEmpty() @@ -146,13 +146,13 @@ export class AccountingDTO { sequence!: string; @ApiProperty({ - description: 'Details' + description: 'Details', }) @IsNotEmpty() details!: unknown[]; @ApiProperty({ - description: 'Distributions' + description: 'Distributions', }) @IsNotEmpty() distributions!: DistributionDTO[]; diff --git a/apps/backend/src/transaction/dto/payment.dto.ts b/apps/backend/src/transaction/dto/payment.dto.ts index ebd44d3a..2bc5d2e0 100644 --- a/apps/backend/src/transaction/dto/payment.dto.ts +++ b/apps/backend/src/transaction/dto/payment.dto.ts @@ -69,7 +69,7 @@ export class PaymentDTO { @ApiProperty({ description: 'Channel', example: 'in-person', - enum: PaymentChannel + enum: PaymentChannel, }) @IsString() @IsNotEmpty() diff --git a/apps/backend/src/transaction/dto/source.dto.ts b/apps/backend/src/transaction/dto/source.dto.ts index 3630e1ee..42d6654d 100644 --- a/apps/backend/src/transaction/dto/source.dto.ts +++ b/apps/backend/src/transaction/dto/source.dto.ts @@ -16,7 +16,7 @@ export class SourceDTO { @ApiProperty({ description: 'Method Of Payment', - example: ['CASH', 'CHQ', 'P', 'M', 'V'] + example: ['CASH', 'CHQ', 'P', 'M', 'V'], }) @IsString() @Length(1, 10) diff --git a/apps/backend/src/transaction/dto/transaction.dto.ts b/apps/backend/src/transaction/dto/transaction.dto.ts index 335427a2..f9431a54 100644 --- a/apps/backend/src/transaction/dto/transaction.dto.ts +++ b/apps/backend/src/transaction/dto/transaction.dto.ts @@ -10,7 +10,7 @@ import { IsNumber, IsDefined, ArrayUnique, - IsBoolean + IsBoolean, } from 'class-validator'; import { AccountingDTO } from './accounting.dto'; import { PaymentDTO } from './payment.dto'; @@ -19,7 +19,7 @@ import { SourceDTO } from './source.dto'; export class TransactionDTO { @ApiProperty({ description: 'Unique id representing the transaction in the source system', - example: '264595a1-4775-4bfe-9b3a-358bbbb5c4f7' + example: '264595a1-4775-4bfe-9b3a-358bbbb5c4f7', }) @IsString() @IsNotEmpty() @@ -29,7 +29,7 @@ export class TransactionDTO { @IsString() @IsNotEmpty() @IsDateString({ - strict: true + strict: true, }) transaction_date!: string; @@ -42,7 +42,7 @@ export class TransactionDTO { @IsString() @IsNotEmpty() @IsDateString({ - strict: true + strict: true, }) fiscal_close_date!: string; @@ -60,7 +60,7 @@ export class TransactionDTO { miscellaneous!: unknown; @ApiProperty({ - description: 'Source of the Transaction' + description: 'Source of the Transaction', }) @IsNotEmpty() @Type(() => SourceDTO) @@ -68,7 +68,7 @@ export class TransactionDTO { @ApiProperty({ type: PaymentDTO, - description: 'Payment of total amount by method' + description: 'Payment of total amount by method', }) @IsDefined() @IsNotEmpty() @@ -76,7 +76,7 @@ export class TransactionDTO { @Type(() => PaymentDTO) @IsArray() @ArrayMinSize(1, { - message: 'At least 1 Payment Method Required' + message: 'At least 1 Payment Method Required', }) @ArrayUnique( (o: PaymentDTO) => { @@ -91,7 +91,7 @@ export class TransactionDTO { type: AccountingDTO, description: 'Distribution of funds to other ministries and program areas by GL codes', - example: [] + example: [], }) @IsDefined() @IsArray() diff --git a/apps/backend/src/transaction/entities/payment.entity.ts b/apps/backend/src/transaction/entities/payment.entity.ts index 67b27121..3ce8df99 100644 --- a/apps/backend/src/transaction/entities/payment.entity.ts +++ b/apps/backend/src/transaction/entities/payment.entity.ts @@ -6,7 +6,7 @@ import { JoinColumn, ManyToOne, OneToOne, - Relation + Relation, } from 'typeorm'; import { PaymentMethodEntity } from './payment-method.entity'; import { TransactionEntity } from './transaction.entity'; @@ -28,7 +28,7 @@ export class PaymentEntity { type: 'numeric', precision: 16, scale: 2, - transformer: new ColumnNumericTransformer() + transformer: new ColumnNumericTransformer(), }) amount: number; @@ -36,7 +36,7 @@ export class PaymentEntity { type: 'numeric', precision: 16, scale: 2, - nullable: true + nullable: true, }) foreign_currency_amount?: number; @@ -48,7 +48,7 @@ export class PaymentEntity { precision: 16, scale: 4, nullable: true, - transformer: new ColumnNumericTransformer() + transformer: new ColumnNumericTransformer(), }) exchange_rate?: number; @@ -98,12 +98,12 @@ export class PaymentEntity { () => CashDepositEntity, (cashDeposit: CashDepositEntity) => cashDeposit.id, { - nullable: true + nullable: true, } ) @JoinColumn({ name: 'cash_deposit_match', - referencedColumnName: 'id' + referencedColumnName: 'id', }) cash_deposit_match?: Relation; @@ -114,7 +114,7 @@ export class PaymentEntity { ) @JoinColumn({ referencedColumnName: 'id', - name: 'pos_deposit_match' + name: 'pos_deposit_match', }) pos_deposit_match?: Relation; diff --git a/apps/backend/src/transaction/entities/transaction.entity.ts b/apps/backend/src/transaction/entities/transaction.entity.ts index c77c2220..674d757d 100644 --- a/apps/backend/src/transaction/entities/transaction.entity.ts +++ b/apps/backend/src/transaction/entities/transaction.entity.ts @@ -21,7 +21,7 @@ export class TransactionEntity { type: 'numeric', precision: 16, scale: 2, - transformer: new ColumnNumericTransformer() + transformer: new ColumnNumericTransformer(), }) total_transaction_amount: number; @@ -45,7 +45,7 @@ export class TransactionEntity { source_file_name?: string; @OneToMany(() => PaymentEntity, (payment) => payment.transaction, { - cascade: true + cascade: true, }) payments: Relation; diff --git a/apps/backend/src/transaction/interface/transaction.interface.ts b/apps/backend/src/transaction/interface/transaction.interface.ts index 83de5a86..43c259a9 100644 --- a/apps/backend/src/transaction/interface/transaction.interface.ts +++ b/apps/backend/src/transaction/interface/transaction.interface.ts @@ -6,7 +6,7 @@ export enum PaymentChannel { INPERSON = 'in-person', PHONE = 'phone', MAIL = 'mail', - ONLINE = 'online' + ONLINE = 'online', } export interface PaymentMethod { @@ -94,7 +94,7 @@ export class Distribution { project_code: data.dist_project_code, location_code: data.dist_location_code, future_code: data.dist_future_code, - supplier_code: data.supplier_code + supplier_code: data.supplier_code, }); this.revenue_gl_account = new GL({ client_code: data.dist_client_code, @@ -104,7 +104,7 @@ export class Distribution { project_code: data.dist_project_code, location_code: data.dist_location_code, future_code: data.dist_future_code, - supplier_code: data.supplier_code + supplier_code: data.supplier_code, }); } catch (e) { console.log(e); diff --git a/apps/backend/src/transaction/payment.service.ts b/apps/backend/src/transaction/payment.service.ts index b302ac1a..5ef5689e 100644 --- a/apps/backend/src/transaction/payment.service.ts +++ b/apps/backend/src/transaction/payment.service.ts @@ -27,20 +27,20 @@ export class PaymentService { where: { transaction: { transaction_date: date, - location_id: location.location_id + location_id: location.location_id, }, status: paymentStatus, - payment_method: { classification: PaymentMethodClassification.POS } + payment_method: { classification: PaymentMethodClassification.POS }, }, relations: { payment_method: true, - transaction: true + transaction: true, }, order: { amount: 'ASC', payment_method: { method: 'ASC' }, - transaction: { transaction_time: 'ASC' } - } + transaction: { transaction_time: 'ASC' }, + }, }); } @@ -54,7 +54,7 @@ export class PaymentService { status: payment.status, fiscal_close_date: payment.transaction.fiscal_close_date, amount: 0, - payments: [] + payments: [], }; } //TODO I think we need to set the db precision to 2 decimal places to avoid this extra formatting?? @@ -78,20 +78,20 @@ export class PaymentService { select: { amount: true, payment_method: { - method: true + method: true, }, status: true, transaction: { transaction_date: true, - location_id: true - } + location_id: true, + }, }, where: { transaction: { location_id: location.location_id, - transaction_date: date - } - } + transaction_date: date, + }, + }, }); } /** @@ -118,16 +118,16 @@ export class PaymentService { (alias) => `${alias} >= :from_date AND ${alias} <= :to_date`, { from_date: from_date, - to_date: to_date + to_date: to_date, } - ) - } + ), + }, }, relations: { transaction: true, payment_method: true }, order: { transaction: { fiscal_close_date: 'ASC' }, - amount: 'ASC' - } + amount: 'ASC', + }, }); return payments; @@ -154,13 +154,13 @@ export class PaymentService { status: MatchStatus.IN_PROGRESS, transaction: { location_id: location.location_id, - fiscal_close_date: LessThanOrEqual(pastDueDepositDate) - } + fiscal_close_date: LessThanOrEqual(pastDueDepositDate), + }, }, relations: { transaction: true, - payment_method: true - } + payment_method: true, + }, }); } diff --git a/apps/backend/src/transaction/transaction.controller.ts b/apps/backend/src/transaction/transaction.controller.ts index f7dbcbd2..b0d7efc9 100644 --- a/apps/backend/src/transaction/transaction.controller.ts +++ b/apps/backend/src/transaction/transaction.controller.ts @@ -8,7 +8,7 @@ import { InternalServerErrorException, Logger, Post, - UseInterceptors + UseInterceptors, } from '@nestjs/common'; import { ApiBody, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger'; @@ -29,20 +29,20 @@ export class TransactionController { @HttpCode(HttpStatus.CREATED) @UseInterceptors(ClassSerializerInterceptor) @ApiOperation({ - summary: 'Post Sales Event' + summary: 'Post Sales Event', }) @ApiBody({ schema: { - example: transactionJson - } + example: transactionJson, + }, }) @ApiResponse({ description: 'Returns the parsed sales reconciliation data', schema: { example: { - data: [] - } - } + data: [], + }, + }, }) @HttpCode(HttpStatus.CREATED) async saveTransactionEvent(@Body() transactionEvent: TransactionDTO[]) { diff --git a/apps/backend/src/transaction/transaction.module.ts b/apps/backend/src/transaction/transaction.module.ts index bfce8ee9..150e55fc 100644 --- a/apps/backend/src/transaction/transaction.module.ts +++ b/apps/backend/src/transaction/transaction.module.ts @@ -3,7 +3,7 @@ import { TypeOrmModule } from '@nestjs/typeorm'; import { TransactionEntity, PaymentMethodEntity, - PaymentEntity + PaymentEntity, } from './entities'; import { PaymentMethodService } from './payment-method.service'; import { PaymentService } from './payment.service'; @@ -19,8 +19,8 @@ import { LocationModule } from '../location/location.module'; TransactionEntity, PaymentEntity, PaymentMethodEntity, - LocationModule - ]) + LocationModule, + ]), ], controllers: [TransactionController], providers: [TransactionService, PaymentService, PaymentMethodService, Logger], @@ -28,7 +28,7 @@ import { LocationModule } from '../location/location.module'; TypeOrmModule, TransactionService, PaymentMethodService, - PaymentService - ] + PaymentService, + ], }) export class TransactionModule {} diff --git a/apps/backend/test/e2e/app.e2e-spec.ts b/apps/backend/test/e2e/app.e2e-spec.ts index 5178022f..2b58e184 100644 --- a/apps/backend/test/e2e/app.e2e-spec.ts +++ b/apps/backend/test/e2e/app.e2e-spec.ts @@ -8,7 +8,7 @@ describe('AppController (e2e)', () => { beforeEach(async () => { const moduleFixture: TestingModule = await Test.createTestingModule({ - imports: [AppModule] + imports: [AppModule], }).compile(); app = moduleFixture.createNestApplication(); diff --git a/apps/backend/test/e2e/cash-e2e.spec.ts b/apps/backend/test/e2e/cash-e2e.spec.ts index fa0b15ea..c2d9808e 100644 --- a/apps/backend/test/e2e/cash-e2e.spec.ts +++ b/apps/backend/test/e2e/cash-e2e.spec.ts @@ -33,7 +33,7 @@ describe('Reconciliation Service (e2e)', () => { let transService: TransactionService; beforeAll(async () => { const module: TestingModule = await Test.createTestingModule({ - imports: [AppModule] + imports: [AppModule], }).compile(); app = module.createNestApplication(); @@ -77,7 +77,7 @@ describe('Reconciliation Service (e2e)', () => { method: pm.method, description: pm.description, sbc_code: pm.sbc_code, - classification: pm.classification + classification: pm.classification, }); }); @@ -94,7 +94,7 @@ describe('Reconciliation Service (e2e)', () => { join(__dirname, '../fixtures/PROD_SBC_F08TDI17_20230309.DAT'), 'utf8' ) - ).toString() + ).toString(), }) as TDI17Details[]; const entities = parsedTDI17File.map((itm) => new CashDepositEntity(itm)); await cashDepositService.saveCashDepositEntities(entities); @@ -110,7 +110,7 @@ describe('Reconciliation Service (e2e)', () => { join(__dirname, '../fixtures/PROD_SBC_F08TDI34_20230309.DAT'), 'utf8' ) - ).toString() + ).toString(), }) as TDI34Details[]; const tdi34Entities = parsedTDI34File.map( (itm) => new POSDepositEntity(itm) diff --git a/apps/backend/test/e2e/transaction.e2e-spec.ts b/apps/backend/test/e2e/transaction.e2e-spec.ts index 7af7623d..64628b24 100644 --- a/apps/backend/test/e2e/transaction.e2e-spec.ts +++ b/apps/backend/test/e2e/transaction.e2e-spec.ts @@ -11,7 +11,7 @@ describe('Transaction Controller (e2e)', () => { beforeAll(async () => { const moduleFixture: TestingModule = await Test.createTestingModule({ - imports: [AppModule] + imports: [AppModule], }).compile(); app = moduleFixture.createNestApplication(); diff --git a/apps/backend/test/fixtures/flatFileKeys.ts b/apps/backend/test/fixtures/flatFileKeys.ts index 8c56d5ba..cb9632d6 100644 --- a/apps/backend/test/fixtures/flatFileKeys.ts +++ b/apps/backend/test/fixtures/flatFileKeys.ts @@ -17,7 +17,7 @@ export const tdi34Keys = [ 'invoice_no', 'echo_data_field', 'fill4', - 'metadata' + 'metadata', ]; export const tdi17Keys = [ @@ -41,7 +41,7 @@ export const tdi17Keys = [ 'jv_no', 'transaction_date', 'filler', - 'metadata' + 'metadata', ]; export const ddfKeys = [ @@ -66,5 +66,5 @@ export const ddfKeys = [ 'merchant_id', 'filler4', 'filler5', - 'metadata' + 'metadata', ]; diff --git a/apps/backend/test/fixtures/garms.keys.ts b/apps/backend/test/fixtures/garms.keys.ts index 3e9a76ef..6a2a63da 100644 --- a/apps/backend/test/fixtures/garms.keys.ts +++ b/apps/backend/test/fixtures/garms.keys.ts @@ -20,8 +20,8 @@ export const garmsKeys = [ 'line_dollar_amount', 'line_description', 'supplier_code', - 'revenue_gl_account' - ] + 'revenue_gl_account', + ], }, { source: [ @@ -36,9 +36,9 @@ export const garmsKeys = [ 'dist_project_code', 'dist_location_code', 'dist_future_code', - 'supplier_code' - ] - } - ] - } + 'supplier_code', + ], + }, + ], + }, ]; diff --git a/apps/backend/test/integration/deposits/cash-deposit.entity.spec.ts b/apps/backend/test/integration/deposits/cash-deposit.entity.spec.ts index 7df057db..609f71c1 100644 --- a/apps/backend/test/integration/deposits/cash-deposit.entity.spec.ts +++ b/apps/backend/test/integration/deposits/cash-deposit.entity.spec.ts @@ -13,7 +13,7 @@ test('Cash Deposit Entity Instance', () => { type: FileTypes.TDI17, fileName: 'test/TDI17', program: 'SBC', - fileContents: Buffer.from(testFile).toString() + fileContents: Buffer.from(testFile).toString(), }; const data: TDI17Details[] = [...parseTDI(tdi17Mock)] as TDI17Details[]; const cashDeposit: CashDepositEntity[] = data.map( diff --git a/apps/backend/test/integration/deposits/pos-deposit-entity.spec.ts b/apps/backend/test/integration/deposits/pos-deposit-entity.spec.ts index 0066c54d..3105cdeb 100644 --- a/apps/backend/test/integration/deposits/pos-deposit-entity.spec.ts +++ b/apps/backend/test/integration/deposits/pos-deposit-entity.spec.ts @@ -13,7 +13,7 @@ test('Pos Deposit Entity Instance', () => { type: FileTypes.TDI34, fileName: 'test/TDI34', program: 'SBC', - fileContents: Buffer.from(testFile).toString() + fileContents: Buffer.from(testFile).toString(), }; const data: TDI34Details[] = [...parseTDI(tdi34Mock)] as TDI34Details[]; const posDeposit: POSDepositEntity[] = data.map( diff --git a/apps/backend/test/mocks/classes/transaction_mock.ts b/apps/backend/test/mocks/classes/transaction_mock.ts index ee318ec2..5587b685 100644 --- a/apps/backend/test/mocks/classes/transaction_mock.ts +++ b/apps/backend/test/mocks/classes/transaction_mock.ts @@ -27,10 +27,10 @@ export class TransactionMock extends TransactionEntity { this.transaction_date = dateRange.to_date; this.transaction_time = `${faker.datatype.number({ min: 0, - max: 1 + max: 1, })}${faker.datatype.number({ min: 0, - max: 9 + max: 9, })}:00:00`; this.total_transaction_amount = payments.reduce( (acc: any, payment: PaymentEntity) => (acc += payment.amount), diff --git a/apps/backend/test/mocks/const/date_range_mock.ts b/apps/backend/test/mocks/const/date_range_mock.ts index ccfed489..37e6318b 100644 --- a/apps/backend/test/mocks/const/date_range_mock.ts +++ b/apps/backend/test/mocks/const/date_range_mock.ts @@ -12,6 +12,6 @@ export const generateDateRange = (): DateRanges => { return { pastDueDate: format(faker.date.recent(5, from_date), 'yyyy-MM-dd'), to_date, - from_date + from_date, }; }; diff --git a/apps/backend/test/mocks/const/file_metadata_mock.ts b/apps/backend/test/mocks/const/file_metadata_mock.ts index c52b6fcf..c0909a16 100644 --- a/apps/backend/test/mocks/const/file_metadata_mock.ts +++ b/apps/backend/test/mocks/const/file_metadata_mock.ts @@ -7,6 +7,6 @@ export const generateMetadataMock = (filetype: FileTypes): FileMetadata => { date_uploaded: new Date(), source_file_length: 0, source_file_line: 0, - program: Ministries.SBC + program: Ministries.SBC, }; }; diff --git a/apps/backend/test/mocks/const/locations.ts b/apps/backend/test/mocks/const/locations.ts index a368a46d..6d1fee93 100644 --- a/apps/backend/test/mocks/const/locations.ts +++ b/apps/backend/test/mocks/const/locations.ts @@ -15,7 +15,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591041 + merchant_id: 23591041, }, { id: '5a71a6cb-8d6f-415c-a87a-ae97f408113c', @@ -31,7 +31,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591645 + merchant_id: 23591645, }, { id: 'dd5dc8b0-47df-4459-8d6f-7b0e1cb06125', @@ -47,7 +47,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591066 + merchant_id: 23591066, }, { id: 'f77871f8-1c18-47c7-9d9e-4e944edfc3c6', @@ -63,7 +63,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591074 + merchant_id: 23591074, }, { id: 'fd0e49ff-b9d3-4c58-b928-53ebaee5e2c5', @@ -79,7 +79,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591082 + merchant_id: 23591082, }, { id: '06ca8316-d844-40ab-933c-9ab6caad0bd2', @@ -95,7 +95,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 28624979 + merchant_id: 28624979, }, { id: '7b581825-12c2-426e-bc11-b1ab47aea029', @@ -111,7 +111,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591090 + merchant_id: 23591090, }, { id: '858a3f3d-3d2b-446e-8227-a656fcb124b4', @@ -127,7 +127,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591116 + merchant_id: 23591116, }, { id: '8107c36b-c2b7-42c3-b25e-022d489e6c8b', @@ -143,7 +143,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591124 + merchant_id: 23591124, }, { id: '8e355776-29d0-49f3-bbd9-f8f4bf1a7e12', @@ -159,7 +159,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591132 + merchant_id: 23591132, }, { id: 'b1cb8e11-1f96-4759-9ded-9db7ebf64185', @@ -175,7 +175,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591157 + merchant_id: 23591157, }, { id: 'a792c6d9-d086-42cb-9bbd-35d4d5e62542', @@ -191,7 +191,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591173 + merchant_id: 23591173, }, { id: '7dba37c0-0899-450f-94e1-fd55c4c49448', @@ -207,7 +207,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591199 + merchant_id: 23591199, }, { id: '017c76f0-e80a-40b9-b455-c3174ca4cece', @@ -223,7 +223,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591207 + merchant_id: 23591207, }, { id: '1d668d37-fb02-4dc2-9062-6373f99b16e4', @@ -239,7 +239,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591363 + merchant_id: 23591363, }, { id: '57657021-e329-49c7-b853-499b3581a244', @@ -255,7 +255,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591371 + merchant_id: 23591371, }, { id: '2412a095-d4ce-45c7-bf6a-9db60bdb3f44', @@ -271,7 +271,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591389 + merchant_id: 23591389, }, { id: '988b76c4-d9ff-4a45-b608-6b1172702f8a', @@ -287,7 +287,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591397 + merchant_id: 23591397, }, { id: 'a64c0d39-e01b-40a1-b794-4d5e3e3d1b7c', @@ -303,7 +303,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591413 + merchant_id: 23591413, }, { id: '1a3e6d79-9dfa-4a56-9779-d32b7acb6a02', @@ -319,7 +319,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591587 + merchant_id: 23591587, }, { id: '32cd129c-774d-4667-a7ee-215bf651fdad', @@ -335,7 +335,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591595 + merchant_id: 23591595, }, { id: 'd05f5322-1b7c-49a1-b351-bb3ce3c6367c', @@ -351,7 +351,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591603 + merchant_id: 23591603, }, { id: '145324ad-47c4-4bc5-85cf-1ee81921ce1f', @@ -367,7 +367,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591629 + merchant_id: 23591629, }, { id: '20b79ad4-8787-4ce6-90c7-886ad7651b31', @@ -383,7 +383,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591637 + merchant_id: 23591637, }, { id: '1f47657b-7046-469a-bdf5-66561847d25d', @@ -399,7 +399,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591660 + merchant_id: 23591660, }, { id: '87b671ef-8836-45a2-aa7a-cbb63f672f2b', @@ -415,7 +415,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591835 + merchant_id: 23591835, }, { id: '54b136bc-f113-4c91-8b9c-88b2c96543b2', @@ -431,7 +431,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592072 + merchant_id: 23592072, }, { id: 'd6406b4f-16e5-4b66-9bc5-f591bc5314f5', @@ -447,7 +447,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592098 + merchant_id: 23592098, }, { id: 'd4019561-c525-47e2-af06-9112764198f1', @@ -463,7 +463,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592114 + merchant_id: 23592114, }, { id: 'b8cfd546-84e2-4c1e-8b43-d0151f2ba67c', @@ -479,7 +479,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592122 + merchant_id: 23592122, }, { id: '19a12f86-5a7f-4345-95a5-2046ed9fd7c7', @@ -495,7 +495,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592155 + merchant_id: 23592155, }, { id: 'd9bf5d03-fbc9-45aa-b145-04fe23d3927a', @@ -511,7 +511,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592189 + merchant_id: 23592189, }, { id: '45d54209-b8d4-4d02-97fa-4a2a96615850', @@ -527,7 +527,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592205 + merchant_id: 23592205, }, { id: '029a5c3f-6183-4773-9c3a-813e44c25401', @@ -543,7 +543,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592247 + merchant_id: 23592247, }, { id: '71701891-93ba-4d10-9f5f-d05d123b3cc2', @@ -559,7 +559,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592262 + merchant_id: 23592262, }, { id: '6bcdd9a8-4d2a-4213-944f-60d7387caf38', @@ -575,7 +575,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592270 + merchant_id: 23592270, }, { id: '7c84de41-d4cc-4349-ac47-f6b2f32e4e17', @@ -591,7 +591,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592288 + merchant_id: 23592288, }, { id: 'b5422565-6c53-4901-a1ce-97707796bada', @@ -607,7 +607,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592296 + merchant_id: 23592296, }, { id: 'b7cff60b-6f33-4a27-aaa2-63d66f0d1910', @@ -623,7 +623,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592304 + merchant_id: 23592304, }, { id: 'eb3c3102-62f1-4c28-b160-4e31e091896f', @@ -639,7 +639,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592312 + merchant_id: 23592312, }, { id: '4f453779-d958-4ed9-bf23-985c9170cedf', @@ -655,7 +655,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592320 + merchant_id: 23592320, }, { id: 'aa396585-a4dc-4421-8564-f037826d27f1', @@ -671,7 +671,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592338 + merchant_id: 23592338, }, { id: '02e66d7a-6ef5-4ba9-9be6-a6db3b05adab', @@ -687,7 +687,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592346 + merchant_id: 23592346, }, { id: '7aaa9da9-c2ce-4fa3-a117-d955e6f1cc0f', @@ -703,7 +703,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592353 + merchant_id: 23592353, }, { id: '3b1587e5-b654-4c8a-9dc4-ca6872d57dba', @@ -719,7 +719,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592361 + merchant_id: 23592361, }, { id: '6b3fe170-19fd-41aa-89f2-dca3252192b5', @@ -735,7 +735,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592379 + merchant_id: 23592379, }, { id: 'cafd48ae-b77d-44bb-903c-29cf92fe65de', @@ -751,7 +751,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592387 + merchant_id: 23592387, }, { id: '737d283f-f135-4c68-af84-c41c8c13de55', @@ -767,7 +767,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592395 + merchant_id: 23592395, }, { id: '33368d5f-2d7b-437a-a4c2-ec2cb8ca4cb1', @@ -783,7 +783,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592403 + merchant_id: 23592403, }, { id: '6c5ce9aa-a068-494d-9ab8-e3ddf3de015a', @@ -799,7 +799,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592411 + merchant_id: 23592411, }, { id: '9ca830a1-d2ed-4c81-9ee9-58a85f3fc0d1', @@ -815,7 +815,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592429 + merchant_id: 23592429, }, { id: '91289920-29f5-4f62-9f3e-98773e6915e5', @@ -831,7 +831,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592437 + merchant_id: 23592437, }, { id: '88a2f02d-5eba-486d-810c-f90816b940ea', @@ -847,7 +847,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592445 + merchant_id: 23592445, }, { id: 'c03f9e19-06f8-4178-b32b-3c23b54b4984', @@ -863,7 +863,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592452 + merchant_id: 23592452, }, { id: '3f35b4d8-b0fb-44c3-92f3-6b77a33d9f1b', @@ -879,7 +879,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592460 + merchant_id: 23592460, }, { id: 'f9eb8500-f60e-4f2d-9c0e-9aa49d733366', @@ -895,7 +895,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592478 + merchant_id: 23592478, }, { id: 'f9e3dae1-a6dd-45a7-8ab1-1d8f1ff9c506', @@ -911,7 +911,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592486 + merchant_id: 23592486, }, { id: 'ceeb142d-ba59-4dba-9794-fefbcc4209ca', @@ -927,7 +927,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592494 + merchant_id: 23592494, }, { id: '9a5ad29b-2897-4334-86aa-5d2353973478', @@ -943,7 +943,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592502 + merchant_id: 23592502, }, { id: 'dc051660-0d19-4181-b7d5-6e8feb116fdc', @@ -959,7 +959,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592510 + merchant_id: 23592510, }, { id: '2404a9c1-898c-4a5d-b250-337f643e7d53', @@ -975,7 +975,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592528 + merchant_id: 23592528, }, { id: '351192e3-f1e0-4fb0-a7ff-65c1c7d6a03d', @@ -991,7 +991,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23759473 + merchant_id: 23759473, }, { id: '10e3a9c2-4530-49fc-9412-3725fa722243', @@ -1007,7 +1007,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23592536 + merchant_id: 23592536, }, { id: '44fc16b3-a8b0-4e8e-a646-39d6b408ecd3', @@ -1023,7 +1023,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 93683283 + merchant_id: 93683283, }, { id: '5e0c190d-128b-43b4-a545-523ad7f76d29', @@ -1039,7 +1039,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 93683143 + merchant_id: 93683143, }, { id: 'bdd22234-0b70-495c-9e21-22360c70a469', @@ -1055,7 +1055,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 93683267 + merchant_id: 93683267, }, { id: '33e58c1e-a7c4-48e2-90cc-8fe4b1de06b1', @@ -1071,7 +1071,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 93683176 + merchant_id: 93683176, }, { id: 'c81ff0dd-9a30-4491-b799-443de67ca404', @@ -1087,7 +1087,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 93683275 + merchant_id: 93683275, }, { id: 'cfa18149-e9fe-4e10-bee0-00642c6ef325', @@ -1103,7 +1103,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 93683184 + merchant_id: 93683184, }, { id: 'abcb0312-6f81-43ee-8bf5-1c0f64caac7d', @@ -1119,7 +1119,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 93683226 + merchant_id: 93683226, }, { id: '9c1d3c4b-f100-49af-86ea-91ca11327738', @@ -1135,7 +1135,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 25276773 + merchant_id: 25276773, }, { id: '17bc592e-a08a-4460-a61a-ad7d0e351aa3', @@ -1151,7 +1151,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 29266051 + merchant_id: 29266051, }, { id: '4ee4bc8b-3798-4a2a-88c3-cf1b7d51f2be', @@ -1167,7 +1167,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 91226713 + merchant_id: 91226713, }, { id: '9c1c45a2-0eeb-458e-a355-9cbfd3e16214', @@ -1183,7 +1183,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 91226721 + merchant_id: 91226721, }, { id: '7a9cd8b4-e1f4-4087-b197-d7845dea7d9a', @@ -1199,7 +1199,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '1f032089-aa04-4c3f-a361-7ebe7270eeae', @@ -1215,7 +1215,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'f8730291-e471-4d9b-b36a-7e09492d2135', @@ -1231,7 +1231,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '866e0a69-3925-459b-83bc-1993646e4a23', @@ -1247,7 +1247,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '1f8f2b24-bf9b-46e4-8f7f-67d63e37c776', @@ -1263,7 +1263,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'ed758c83-4078-4253-9a12-b8eefa464e6a', @@ -1279,7 +1279,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '0e7c0f0d-745a-4d91-80f0-a4316b36ed76', @@ -1295,7 +1295,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '542213c1-17b0-46e7-8616-060c7f604ed7', @@ -1311,7 +1311,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'c446b111-7124-4318-9881-cc48a0cfd03e', @@ -1327,7 +1327,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'd1e920a3-6b4a-4870-8b1c-f6a3fcedb156', @@ -1343,7 +1343,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'a82cce81-ec49-472a-b644-264b0c0f1d12', @@ -1359,7 +1359,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'ca8b7182-70ed-45f1-8a3d-2e7b80e7222e', @@ -1375,7 +1375,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'f2f25d8f-9266-4ea9-bad8-7ab40db376f0', @@ -1391,7 +1391,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'cfade807-c255-42a3-bb0b-48a69c68baae', @@ -1407,7 +1407,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'd9e58dd7-98ca-4172-ba70-86c62b6ead6c', @@ -1423,7 +1423,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '11a1eeb1-1cc7-4a91-bead-a01d05617252', @@ -1439,7 +1439,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'b7535615-9b12-4ac6-9772-14a3b68391a1', @@ -1455,7 +1455,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '85da9e62-674e-4bec-8874-4eeaf1461628', @@ -1471,7 +1471,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '00881110-042e-4bd3-bf72-0ca445e5e18e', @@ -1487,7 +1487,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '2d002b79-8e48-4028-b5e9-7aab10a0a2c9', @@ -1503,7 +1503,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '9fb4356d-6258-48a3-be19-786fbc3a13f4', @@ -1519,7 +1519,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'cd354f69-9599-4d40-9f8d-59ef2bdd2496', @@ -1535,7 +1535,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '5ef04c5f-8e3c-4a36-a355-6b5b825893ca', @@ -1551,7 +1551,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '7e913300-c9f1-4314-a8f7-8c8754ec8f29', @@ -1567,7 +1567,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'aae9e22c-8f87-49f7-844d-c803ac966ab2', @@ -1583,7 +1583,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'f08be8a0-8c31-4b59-a855-9298ef8e013b', @@ -1599,7 +1599,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '81f6a8c3-8513-48a2-a3aa-905c1cbf7a4f', @@ -1615,7 +1615,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'd87af0de-fa9d-447a-ad4a-3694e09d54bd', @@ -1631,7 +1631,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '9a35756b-5b51-4606-94cd-60cb22091ccf', @@ -1647,7 +1647,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '27f9c020-063e-47c5-9f85-13ce7fe15672', @@ -1663,7 +1663,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'b2f38042-c413-428b-b465-6bac2d4f3cc7', @@ -1679,7 +1679,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'b7f9d55d-6a5e-4dc2-8a1f-245de3e5429a', @@ -1695,7 +1695,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '8f2c3e46-fba9-4644-8c98-0fc79104e1c1', @@ -1711,7 +1711,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'f614f8d9-c23f-46ea-8280-3198ac9f77e7', @@ -1727,7 +1727,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'bb9253ea-1e32-44a1-ab91-1c26618e1c08', @@ -1743,7 +1743,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'd77d18c0-9877-4e61-b2e8-b5800b17d755', @@ -1759,7 +1759,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'a505ff3c-e917-4ffa-9a84-3c73bcbb35f6', @@ -1775,7 +1775,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '8539e463-ba17-45f0-850d-80ce057dcc73', @@ -1791,7 +1791,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '4926e099-5cc3-467d-bd77-36e4240a6635', @@ -1807,7 +1807,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'b677895e-e5f9-411d-b8e5-beda41dfd844', @@ -1823,7 +1823,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'b0eb0ce3-573b-4ab8-bf2e-3cd8a5c44b61', @@ -1839,7 +1839,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '1f6bf42d-05b3-45cd-b3e0-417714a227bd', @@ -1855,7 +1855,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '6a1236c1-aa13-4d51-a4ee-b50c5267a347', @@ -1871,7 +1871,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '67c96c21-a14b-4e13-92e5-ca38f3307d10', @@ -1887,7 +1887,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '2b51a65f-63cd-4178-bca6-46dff33027fb', @@ -1903,7 +1903,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'eda780a0-929e-42ee-9931-cef7ad0a12ec', @@ -1919,7 +1919,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'f1d8379d-effd-4126-adcd-27144d1082f2', @@ -1935,7 +1935,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '3c2a41d9-3b0b-4054-8649-a298acc8878c', @@ -1951,7 +1951,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '23516d9c-7dce-451b-a275-ac528880ecd4', @@ -1967,7 +1967,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'eba2f927-33a7-4a79-a27c-6384a41dc9c7', @@ -1983,7 +1983,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '61b0fbe4-0bb7-4d98-838c-8e12636eb3f8', @@ -1999,7 +1999,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '2f6a0845-d035-49d1-8cf6-bd8fe84b8260', @@ -2015,7 +2015,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'dcd5a422-d93e-4d93-99bb-7d14d43a7fb1', @@ -2031,7 +2031,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'c168afa9-d95f-4876-8799-26e6f362e314', @@ -2047,7 +2047,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '7c1b48c1-9149-4cbe-a87e-5e5786dad030', @@ -2063,7 +2063,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'd199dafa-06b5-44de-a01c-fe6bc0ac9a7c', @@ -2079,7 +2079,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '922627b9-ad0d-4aee-b785-a718ca9abdef', @@ -2095,7 +2095,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '1840efb7-a69e-410a-a5d5-beac8de1a40e', @@ -2111,7 +2111,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'e8ba5408-7748-4f03-8aeb-47cd7452a034', @@ -2127,7 +2127,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '567291bd-0bef-4c5e-bc7d-9160ffe42468', @@ -2143,7 +2143,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '7fb587bf-eee8-4760-9403-5ade64f1ea58', @@ -2159,7 +2159,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '83208abb-7410-4b55-9541-e82026df2abe', @@ -2175,7 +2175,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '9ea05fc0-c381-4a68-be0c-c1db5dc88760', @@ -2191,7 +2191,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '9d762741-a053-42be-8940-34d0b3729cd1', @@ -2207,7 +2207,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '4d0e01d1-a2cd-4af1-bc13-99f408ddd65d', @@ -2223,7 +2223,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '237986c7-cb0c-4fda-961d-fecb674a4d6f', @@ -2239,7 +2239,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '5272bbde-433e-4349-b4b1-9ded8d057391', @@ -2255,7 +2255,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '7dfd3da4-bb2d-48ca-a103-88142e106dc4', @@ -2271,7 +2271,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '8106d0d3-270d-4f64-8b9c-c033fad4e1ef', @@ -2287,7 +2287,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'ff2d0ee9-66da-4a35-b126-ecc75b39513c', @@ -2303,7 +2303,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'ec4cda72-f2a9-40ac-8d42-c8aa5674c7a5', @@ -2319,7 +2319,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: 'a0f6fc0f-e5de-4bea-8b95-e76bb45e8ffb', @@ -2335,7 +2335,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 999999999 + merchant_id: 999999999, }, { id: '0346cb85-576d-4237-9715-1afe687b7a90', @@ -2351,7 +2351,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054353 + merchant_id: 22054353, }, { id: '1a94ece5-fad0-422f-b79b-30faf593a3df', @@ -2367,7 +2367,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043448 + merchant_id: 22043448, }, { id: '81140b2c-8ec8-4e38-b711-e14ebdd330e2', @@ -2383,7 +2383,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054387 + merchant_id: 22054387, }, { id: '97572915-ebea-4d22-b4ac-733678630f86', @@ -2399,7 +2399,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054486 + merchant_id: 22054486, }, { id: '1c872a34-eb28-4ba9-a272-23859eda0247', @@ -2415,7 +2415,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054577 + merchant_id: 22054577, }, { id: '09a59218-bd24-4f55-a6b8-27afee039b7f', @@ -2431,7 +2431,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23684779 + merchant_id: 23684779, }, { id: '07a3aaad-1a42-479a-b71e-8907dbbb24b4', @@ -2447,7 +2447,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042705 + merchant_id: 22042705, }, { id: 'dfdefda8-6f47-48f5-81bb-1961edffd9e9', @@ -2463,7 +2463,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042747 + merchant_id: 22042747, }, { id: '373026cf-0e8e-40a7-95e0-5d82fc7763b8', @@ -2479,7 +2479,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042754 + merchant_id: 22042754, }, { id: '2d5f8763-5227-4cd1-85b1-1cb2fcec4c7a', @@ -2495,7 +2495,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042796 + merchant_id: 22042796, }, { id: 'f55462fe-ecfc-4978-bdd2-03890b0cd48d', @@ -2511,7 +2511,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042820 + merchant_id: 22042820, }, { id: '27a1f0d3-6413-44c6-b993-665690ae0a26', @@ -2527,7 +2527,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042838 + merchant_id: 22042838, }, { id: 'e210d15a-321e-4039-9ed6-8396bb3a3cea', @@ -2543,7 +2543,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042887 + merchant_id: 22042887, }, { id: '8285cccd-6264-47c5-bdc1-566fb2a5ae8d', @@ -2559,7 +2559,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043067 + merchant_id: 22043067, }, { id: '219fc28c-b341-4eba-a2f2-7e2e2a57658c', @@ -2575,7 +2575,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043083 + merchant_id: 22043083, }, { id: '60f5d0db-e830-4645-9e46-b681f244ea4c', @@ -2591,7 +2591,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043141 + merchant_id: 22043141, }, { id: 'de01ba80-d9e7-429f-9edf-624b22ff4d1e', @@ -2607,7 +2607,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043182 + merchant_id: 22043182, }, { id: '3ff68b8c-390a-4642-837d-bf4fa3e64496', @@ -2623,7 +2623,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043208 + merchant_id: 22043208, }, { id: '254ec724-53c7-459e-a2e2-8153d30eb4ae', @@ -2639,7 +2639,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043281 + merchant_id: 22043281, }, { id: '5dfb2bf3-1867-4985-9b34-1e3bffc66cda', @@ -2655,7 +2655,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043315 + merchant_id: 22043315, }, { id: 'a1f6ea8e-546a-4b66-b99b-43f3e4675397', @@ -2671,7 +2671,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043372 + merchant_id: 22043372, }, { id: '629a7435-9c02-4de7-9148-1af82bf9b5c4', @@ -2687,7 +2687,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043380 + merchant_id: 22043380, }, { id: 'f2dfd6cc-7d06-434b-b9e6-47627ed98916', @@ -2703,7 +2703,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043406 + merchant_id: 22043406, }, { id: '80a0f048-00ba-4a8d-9696-ddb73d036598', @@ -2719,7 +2719,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043430 + merchant_id: 22043430, }, { id: '0ecdfa0f-662d-4f71-a145-8f4a2b8e589d', @@ -2735,7 +2735,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043463 + merchant_id: 22043463, }, { id: '99462db6-9dc3-45ab-b5b2-8dfc9ded83a0', @@ -2751,7 +2751,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043505 + merchant_id: 22043505, }, { id: '8c9e78fc-d408-4280-8287-1b4ed89e7ada', @@ -2767,7 +2767,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043539 + merchant_id: 22043539, }, { id: 'b41c01e7-f20b-4a4d-8927-788c538bd3e6', @@ -2783,7 +2783,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043547 + merchant_id: 22043547, }, { id: '8dfb94d4-7bb3-4a90-9c1b-c3b1a8f48244', @@ -2799,7 +2799,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22455675 + merchant_id: 22455675, }, { id: '8bbb93eb-92e3-43db-aa2d-a9804ec99a67', @@ -2815,7 +2815,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043562 + merchant_id: 22043562, }, { id: '5c44eefb-4e10-4774-9075-f44435f35267', @@ -2831,7 +2831,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043596 + merchant_id: 22043596, }, { id: '4b721820-35e2-4ab8-bca7-42e890de3a1d', @@ -2847,7 +2847,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043604 + merchant_id: 22043604, }, { id: '46714ce7-93e5-415b-a4b9-17a2580d26ee', @@ -2863,7 +2863,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043620 + merchant_id: 22043620, }, { id: '6a1f5263-f032-4890-80c8-9406e2a3c753', @@ -2879,7 +2879,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 20803999 + merchant_id: 20803999, }, { id: '107140fa-1ea3-4098-a4a3-f3734c8428af', @@ -2895,7 +2895,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043646 + merchant_id: 22043646, }, { id: '75340602-a111-41fb-b301-873b37e703f3', @@ -2911,7 +2911,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043653 + merchant_id: 22043653, }, { id: '262806ea-bcf0-4502-aff7-8de28233add1', @@ -2927,7 +2927,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043661 + merchant_id: 22043661, }, { id: '8ec8d6ff-75e5-4d5e-89b2-ec2fb814ad41', @@ -2943,7 +2943,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043679 + merchant_id: 22043679, }, { id: 'f9c14e76-c28d-44e0-b97c-fe69543e36e1', @@ -2959,7 +2959,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043703 + merchant_id: 22043703, }, { id: 'b332795d-afc0-4dff-8511-a5d9e4bda161', @@ -2975,7 +2975,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043745 + merchant_id: 22043745, }, { id: '73a7a6da-7b35-4e8c-974b-6b00f5b440e9', @@ -2991,7 +2991,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043810 + merchant_id: 22043810, }, { id: '62f65935-1460-4a4c-b404-56c263f592a5', @@ -3007,7 +3007,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043828 + merchant_id: 22043828, }, { id: 'fcd62d3a-b411-4a18-8ceb-68ce9a19d548', @@ -3023,7 +3023,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043836 + merchant_id: 22043836, }, { id: 'f7c8fef4-69f9-4028-8faa-9e13933ba78c', @@ -3039,7 +3039,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043893 + merchant_id: 22043893, }, { id: '640e24f6-0dcc-4a2f-a163-6f27d280906f', @@ -3055,7 +3055,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043919 + merchant_id: 22043919, }, { id: 'fbb07d90-7a38-4570-b955-f48236aa4fca', @@ -3071,7 +3071,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043984 + merchant_id: 22043984, }, { id: '17b68976-bf22-47b7-bc98-dfced6e5cf34', @@ -3087,7 +3087,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044008 + merchant_id: 22044008, }, { id: '3723c1ee-62a4-4375-a050-7697136a8e81', @@ -3103,7 +3103,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044164 + merchant_id: 22044164, }, { id: '7a0b161a-21f1-441a-9774-a795de1b8941', @@ -3119,7 +3119,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044230 + merchant_id: 22044230, }, { id: 'f7345ce2-d6f4-4a5b-ac8c-fa5d3f7c370d', @@ -3135,7 +3135,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044255 + merchant_id: 22044255, }, { id: 'e51a6e75-633e-4899-b63e-974a4d307ebf', @@ -3151,7 +3151,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044297 + merchant_id: 22044297, }, { id: '2c4daa6d-8bf9-4878-8a83-e3afadf458eb', @@ -3167,7 +3167,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044305 + merchant_id: 22044305, }, { id: 'a94e2394-bc6b-46ac-85ab-db00b91f6e58', @@ -3183,7 +3183,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044313 + merchant_id: 22044313, }, { id: '4531674a-5886-4cd5-84a5-e5462408cbbe', @@ -3199,7 +3199,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044362 + merchant_id: 22044362, }, { id: '20784c9c-9ee1-4526-8f5d-6153c95bdf13', @@ -3215,7 +3215,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044412 + merchant_id: 22044412, }, { id: 'ccb6316e-e9a7-41e9-a0bc-637dc793cc02', @@ -3231,7 +3231,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044438 + merchant_id: 22044438, }, { id: '71d926d9-fcb0-4c92-9470-3bb302a33947', @@ -3247,7 +3247,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044545 + merchant_id: 22044545, }, { id: '1e18eb67-765a-4776-ba12-51b49f7b613c', @@ -3263,7 +3263,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044628 + merchant_id: 22044628, }, { id: '4315ccfd-058d-4cf2-9eb8-6118b9344e7f', @@ -3279,7 +3279,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044701 + merchant_id: 22044701, }, { id: '8e513882-a003-4078-86b5-a62fa9b26c23', @@ -3295,7 +3295,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044750 + merchant_id: 22044750, }, { id: '0ac01838-b122-45a3-9610-d935d6980e5b', @@ -3311,7 +3311,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044859 + merchant_id: 22044859, }, { id: '7353793c-f1a0-4b54-9b4f-3c5bff77bbaa', @@ -3327,7 +3327,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 20777441 + merchant_id: 20777441, }, { id: 'c1ffb7f8-f6ec-4db7-a168-2c50caa876d9', @@ -3343,7 +3343,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044933 + merchant_id: 22044933, }, { id: '1dbbbb6b-52a3-4c1e-9afb-4d0d3b12d816', @@ -3359,7 +3359,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103846 + merchant_id: 24103846, }, { id: '2359c225-a609-44ba-8682-f73d26965f2e', @@ -3375,7 +3375,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103838 + merchant_id: 24103838, }, { id: '695c8c0a-cbc3-4749-8880-8cb4a1ab51a6', @@ -3391,7 +3391,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103895 + merchant_id: 24103895, }, { id: 'aada838d-4941-4c00-b065-7a1cea35676d', @@ -3407,7 +3407,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103879 + merchant_id: 24103879, }, { id: 'eda7e785-b232-43f8-922f-c691861fe64d', @@ -3423,7 +3423,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103861 + merchant_id: 24103861, }, { id: '45f81c60-4eb9-46a2-9ce0-1fd1c98c6536', @@ -3439,7 +3439,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103853 + merchant_id: 24103853, }, { id: 'dd5e070d-9135-449b-981a-ee86f9a05eee', @@ -3455,7 +3455,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103887 + merchant_id: 24103887, }, { id: 'db14d002-efe0-43cc-844f-5e5ab31294ac', @@ -3471,7 +3471,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054353 + merchant_id: 22054353, }, { id: 'd61b5b6d-1039-4ef5-862c-85e3215e54dd', @@ -3487,7 +3487,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043448 + merchant_id: 22043448, }, { id: '8999be85-11d3-49ff-925d-dd0811ba69e0', @@ -3503,7 +3503,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054387 + merchant_id: 22054387, }, { id: '3a3e8a8a-5b3e-4d7b-bbb9-7767919527a8', @@ -3519,7 +3519,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054486 + merchant_id: 22054486, }, { id: 'f7422d70-2d66-4e66-8c4f-81e51d5a4c3b', @@ -3535,7 +3535,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054577 + merchant_id: 22054577, }, { id: 'be011a81-0f1a-4d4a-964e-bc0eb9e74f67', @@ -3551,7 +3551,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23684779 + merchant_id: 23684779, }, { id: '8eb5bc42-12da-423e-bfaa-813868b7b931', @@ -3567,7 +3567,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042705 + merchant_id: 22042705, }, { id: '84ddab7d-8567-41c8-944f-288e11105744', @@ -3583,7 +3583,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042747 + merchant_id: 22042747, }, { id: '91b04da3-9f2c-415e-b54e-a8fd3c0efc94', @@ -3599,7 +3599,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042754 + merchant_id: 22042754, }, { id: '40644485-b633-4fb4-8a41-52a7301ec199', @@ -3615,7 +3615,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042796 + merchant_id: 22042796, }, { id: '14d9cb02-6a5a-470f-8a79-4104290d4345', @@ -3631,7 +3631,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042820 + merchant_id: 22042820, }, { id: 'fbd385d9-b61c-4daf-8973-a9f4f28051f7', @@ -3647,7 +3647,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042838 + merchant_id: 22042838, }, { id: '237c4124-356a-48bd-8d4b-2faa2d5958ba', @@ -3663,7 +3663,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042887 + merchant_id: 22042887, }, { id: '5a8e6538-1343-4ca2-a36f-cf12a95c4afe', @@ -3679,7 +3679,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043067 + merchant_id: 22043067, }, { id: '4c57ad1a-c490-4951-9885-4be3a30dfc0e', @@ -3695,7 +3695,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043083 + merchant_id: 22043083, }, { id: '873ff904-f407-4be8-8a64-daec2d079a81', @@ -3711,7 +3711,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043141 + merchant_id: 22043141, }, { id: '84c3184b-abcd-4a12-be84-e62d7373e5f2', @@ -3727,7 +3727,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043182 + merchant_id: 22043182, }, { id: '807dc335-8376-4fad-a42e-0b5903598ae1', @@ -3743,7 +3743,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043208 + merchant_id: 22043208, }, { id: '0a853ff8-d865-4ef8-9be0-ae60a1a63778', @@ -3759,7 +3759,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043281 + merchant_id: 22043281, }, { id: 'aca14140-7776-4eab-910f-93fc0e3ec4ab', @@ -3775,7 +3775,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043315 + merchant_id: 22043315, }, { id: '1d9a6358-a5e1-48b5-a0a5-0b2b7cb5bf03', @@ -3791,7 +3791,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043372 + merchant_id: 22043372, }, { id: 'd2e787cc-97da-46cf-9bd5-d60440917413', @@ -3807,7 +3807,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043380 + merchant_id: 22043380, }, { id: '1f6c0cd6-8dc1-45ed-9dc4-aba9301d7cfe', @@ -3823,7 +3823,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043406 + merchant_id: 22043406, }, { id: '0040982a-a72d-4474-903f-677e4c6c7d45', @@ -3839,7 +3839,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043430 + merchant_id: 22043430, }, { id: '4a5643be-6753-4cf0-951d-f4723f2228f3', @@ -3855,7 +3855,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043463 + merchant_id: 22043463, }, { id: '10d42ab7-ce61-4ae8-8ca9-a89f4ccb663e', @@ -3871,7 +3871,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043505 + merchant_id: 22043505, }, { id: '1533ac17-dc2f-407a-af1d-4e14fe4ab95e', @@ -3887,7 +3887,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043539 + merchant_id: 22043539, }, { id: '28ee68da-682b-4e36-ae22-3d6b2c38c304', @@ -3903,7 +3903,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043547 + merchant_id: 22043547, }, { id: 'dc7ecd16-a57c-49cc-975d-cb8c3155ca97', @@ -3919,7 +3919,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22455675 + merchant_id: 22455675, }, { id: '74f09e85-d00f-458d-bffe-587e3b267c8f', @@ -3935,7 +3935,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043562 + merchant_id: 22043562, }, { id: 'c4d21a9e-70df-4671-ba5f-7c17446fd354', @@ -3951,7 +3951,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043596 + merchant_id: 22043596, }, { id: '59cfe960-d833-49a0-be23-67f7c72c7fb5', @@ -3967,7 +3967,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043604 + merchant_id: 22043604, }, { id: 'a1caa98b-b049-426b-a432-517d2e9f7305', @@ -3983,7 +3983,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043620 + merchant_id: 22043620, }, { id: 'f0fb0e47-a52b-4aec-9cda-8ad6382e1cdd', @@ -3999,7 +3999,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 20803999 + merchant_id: 20803999, }, { id: '425db771-b1cd-49d6-9d14-61e133d8a1d0', @@ -4015,7 +4015,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043646 + merchant_id: 22043646, }, { id: '531ac121-c298-490f-a198-623d01984b5b', @@ -4031,7 +4031,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043653 + merchant_id: 22043653, }, { id: 'a5c35fe6-85e0-4e34-be89-49c2043df548', @@ -4047,7 +4047,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043661 + merchant_id: 22043661, }, { id: '8dfe5274-e9fc-4252-9dbe-9e8c520ee952', @@ -4063,7 +4063,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043679 + merchant_id: 22043679, }, { id: '07c47ba0-414c-4b34-884f-2a5f6371bde5', @@ -4079,7 +4079,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043703 + merchant_id: 22043703, }, { id: 'efd32b25-fae6-4feb-8624-73eef578fa2e', @@ -4095,7 +4095,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043745 + merchant_id: 22043745, }, { id: '7528fffc-9ebf-487d-a36b-77b1e0536f98', @@ -4111,7 +4111,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043810 + merchant_id: 22043810, }, { id: '43c79d1f-07ef-479c-92d4-37a047b4be2b', @@ -4127,7 +4127,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043828 + merchant_id: 22043828, }, { id: '694c35ee-9c25-4269-ad1c-55953574707f', @@ -4143,7 +4143,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043836 + merchant_id: 22043836, }, { id: 'eda35e58-68da-4d78-aeb1-f5b8b9d90ad1', @@ -4159,7 +4159,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043893 + merchant_id: 22043893, }, { id: '6044ea55-bdb1-4d74-bfbd-431ecfe4aeac', @@ -4175,7 +4175,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043919 + merchant_id: 22043919, }, { id: '804da3b1-50fa-4f74-9540-6d33dfa15680', @@ -4191,7 +4191,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043984 + merchant_id: 22043984, }, { id: 'de3951d4-d710-41f4-8eb8-b6825db8d52b', @@ -4207,7 +4207,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044008 + merchant_id: 22044008, }, { id: 'be1232e1-9cd2-4525-b58f-a3cc8e96862d', @@ -4223,7 +4223,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044164 + merchant_id: 22044164, }, { id: 'b5ab69ad-19b5-482b-8bb9-e16e3c4d4c5f', @@ -4239,7 +4239,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044230 + merchant_id: 22044230, }, { id: 'db958b93-73fb-4f18-93e4-0318cda188ae', @@ -4255,7 +4255,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044255 + merchant_id: 22044255, }, { id: '2829c62c-4671-44ab-a0e5-d42d8a735dec', @@ -4271,7 +4271,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044297 + merchant_id: 22044297, }, { id: 'c1741b43-d4d6-4ebd-9234-83b67192fc43', @@ -4287,7 +4287,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044305 + merchant_id: 22044305, }, { id: '42f4ae60-a372-4427-8094-7c2cfad59df7', @@ -4303,7 +4303,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044313 + merchant_id: 22044313, }, { id: 'f5851797-45ca-4b61-9fa9-9a41b455a236', @@ -4319,7 +4319,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044362 + merchant_id: 22044362, }, { id: '147b7d97-4b37-4090-8949-c8b450bf0e7d', @@ -4335,7 +4335,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044412 + merchant_id: 22044412, }, { id: '344dcf1e-eb8f-4b8d-aaf9-415d56307db1', @@ -4351,7 +4351,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044438 + merchant_id: 22044438, }, { id: '31dcfba6-c8f9-4a72-b56e-0cf9853e105a', @@ -4367,7 +4367,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044545 + merchant_id: 22044545, }, { id: 'b5d1fd20-29c8-47c0-877b-3a8aa0eedf8b', @@ -4383,7 +4383,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044628 + merchant_id: 22044628, }, { id: 'c129897e-f29f-4e92-9ae1-5cca28b41829', @@ -4399,7 +4399,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044701 + merchant_id: 22044701, }, { id: '47361bf3-9ff5-48c2-9d13-9b8e983f18a8', @@ -4415,7 +4415,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044750 + merchant_id: 22044750, }, { id: '60f03709-b10b-4281-8528-a827149d1f93', @@ -4431,7 +4431,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044859 + merchant_id: 22044859, }, { id: '04f61927-973c-41d0-b2ef-4bcdec16fc91', @@ -4447,7 +4447,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 20777441 + merchant_id: 20777441, }, { id: '25d13d14-e6f6-4818-9bb8-0f1aa2d94748', @@ -4463,7 +4463,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044933 + merchant_id: 22044933, }, { id: '881da99b-0f83-43d3-9a3a-7375c4e3b1c2', @@ -4479,7 +4479,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103846 + merchant_id: 24103846, }, { id: '814064be-d686-4ca3-b8b7-318d8d061e89', @@ -4495,7 +4495,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103838 + merchant_id: 24103838, }, { id: '0852ed2b-6065-4d14-9615-d76728b803b7', @@ -4511,7 +4511,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103895 + merchant_id: 24103895, }, { id: 'b9e007a8-efd7-4bfc-9ae1-a38e185dd12e', @@ -4527,7 +4527,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103879 + merchant_id: 24103879, }, { id: '6789c802-4cf8-46fd-a881-84ceb49df338', @@ -4543,7 +4543,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103853 + merchant_id: 24103853, }, { id: 'a6f15b26-c4e0-4716-98c3-6cbe26f10a7b', @@ -4559,7 +4559,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103887 + merchant_id: 24103887, }, { id: '430e6ab3-777e-4c79-93b6-3edbf6cdce50', @@ -4575,7 +4575,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23302208 + merchant_id: 23302208, }, { id: '17ec0df8-e8aa-4c35-b15a-642b5aa50e2a', @@ -4591,7 +4591,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23700609 + merchant_id: 23700609, }, { id: '365e1813-5033-4d1e-b645-2c8b3b54a9e5', @@ -4607,7 +4607,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956607 + merchant_id: 23956607, }, { id: '4823154d-50c5-4776-9320-3e7449b86dad', @@ -4623,7 +4623,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956599 + merchant_id: 23956599, }, { id: '57cf126f-0d7d-4b18-b16c-526cc94d2e3e', @@ -4639,7 +4639,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23700609 + merchant_id: 23700609, }, { id: '3d02b0c7-3d84-4cca-9215-35ae050ddfaf', @@ -4655,7 +4655,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956607 + merchant_id: 23956607, }, { id: '88e2c800-b474-46d8-ace2-b8aa80fe6dcb', @@ -4671,7 +4671,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956599 + merchant_id: 23956599, }, { id: '483422db-fc92-4a84-a4bd-4a4860029cf0', @@ -4687,7 +4687,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054353 + merchant_id: 22054353, }, { id: '15ad15a2-a054-492e-8057-f3099c43a383', @@ -4703,7 +4703,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043448 + merchant_id: 22043448, }, { id: '3bce4b50-ab36-42dc-8df3-f11400925d66', @@ -4719,7 +4719,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054387 + merchant_id: 22054387, }, { id: '8168626c-781a-4cd9-ac62-5e5061184396', @@ -4735,7 +4735,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054486 + merchant_id: 22054486, }, { id: '4fd330af-ae70-4777-9bec-253b39cb3b2a', @@ -4751,7 +4751,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22054577 + merchant_id: 22054577, }, { id: '2007a202-791d-4a0a-9f8f-669c94d23d11', @@ -4767,7 +4767,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23684779 + merchant_id: 23684779, }, { id: 'e0aebfd5-99fc-4744-8244-1ec60a4cfc13', @@ -4783,7 +4783,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042705 + merchant_id: 22042705, }, { id: 'bed331ff-2d7b-4a12-8e3d-933c4f795c70', @@ -4799,7 +4799,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042747 + merchant_id: 22042747, }, { id: 'e35b059b-8832-4d0e-bd03-1cdccf3652c7', @@ -4815,7 +4815,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042754 + merchant_id: 22042754, }, { id: '15ecd79c-4fad-4e78-8e2d-c872340c71f7', @@ -4831,7 +4831,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042796 + merchant_id: 22042796, }, { id: '4a47916b-9317-4692-a4ed-77253219bc00', @@ -4847,7 +4847,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042820 + merchant_id: 22042820, }, { id: '84955e6b-8a4a-42eb-8ce2-b5ca234e4935', @@ -4863,7 +4863,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042838 + merchant_id: 22042838, }, { id: 'a0e90dd4-4016-4449-bcdb-af50e78e0567', @@ -4879,7 +4879,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22042887 + merchant_id: 22042887, }, { id: '332e8a0b-bf66-4f54-b3ec-43de4ab131fa', @@ -4895,7 +4895,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043067 + merchant_id: 22043067, }, { id: 'c9757a4e-cafb-43ec-8a77-a99e28e3a29b', @@ -4911,7 +4911,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043083 + merchant_id: 22043083, }, { id: '8b1eabb4-7a22-458b-a850-c7f119657945', @@ -4927,7 +4927,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043141 + merchant_id: 22043141, }, { id: '846b4d4f-6351-4fa8-bd23-26eb613420ff', @@ -4943,7 +4943,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043182 + merchant_id: 22043182, }, { id: 'e405e771-fc03-42f1-bf18-0d40d25ccff8', @@ -4959,7 +4959,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043208 + merchant_id: 22043208, }, { id: '80b23867-20db-4bab-86ff-c04cc6ffff1d', @@ -4975,7 +4975,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043281 + merchant_id: 22043281, }, { id: '58804dcf-2ec3-410d-a714-9b103099155b', @@ -4991,7 +4991,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043315 + merchant_id: 22043315, }, { id: '0dbbc7cf-86f9-414b-a051-c336806e4b75', @@ -5007,7 +5007,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043372 + merchant_id: 22043372, }, { id: 'f0521e1b-237f-4988-a1c0-008381d0a32d', @@ -5023,7 +5023,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043380 + merchant_id: 22043380, }, { id: '625629ab-380e-48c1-9452-69e9395466b7', @@ -5039,7 +5039,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043406 + merchant_id: 22043406, }, { id: '7e18f686-9c24-48c6-8bf6-becb1e343a72', @@ -5055,7 +5055,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043430 + merchant_id: 22043430, }, { id: 'cb0803ab-04e7-45ca-8b30-6a5537d8a353', @@ -5071,7 +5071,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043463 + merchant_id: 22043463, }, { id: '01da5f35-338a-4475-9cde-44cd10177185', @@ -5087,7 +5087,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043505 + merchant_id: 22043505, }, { id: '160b753c-54e7-4715-a0c1-87479368f141', @@ -5103,7 +5103,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043539 + merchant_id: 22043539, }, { id: '7ab0df7c-1a90-475a-ab13-fd4572aa99c8', @@ -5119,7 +5119,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043547 + merchant_id: 22043547, }, { id: 'd13c77a1-91cc-40c8-b999-05e02eb36058', @@ -5135,7 +5135,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22455675 + merchant_id: 22455675, }, { id: '7eea7759-735c-4cd3-9aa8-2bf69979fddc', @@ -5151,7 +5151,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043562 + merchant_id: 22043562, }, { id: 'fb3ab726-5ebf-466d-ad6d-470ffc290da5', @@ -5167,7 +5167,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043596 + merchant_id: 22043596, }, { id: '9eaa610c-1011-4136-a2bf-ea47662da6db', @@ -5183,7 +5183,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043604 + merchant_id: 22043604, }, { id: 'b573f556-437e-430f-b2e8-9e9394a8789a', @@ -5199,7 +5199,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043620 + merchant_id: 22043620, }, { id: 'df4b68e0-485f-44bf-9974-f6bbfdfdd8b1', @@ -5215,7 +5215,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 20803999 + merchant_id: 20803999, }, { id: '85cd8047-9768-43f8-b180-6fa9cd114bf8', @@ -5231,7 +5231,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043646 + merchant_id: 22043646, }, { id: '9a1f3d74-9820-4fb1-adf3-a7a978524fc5', @@ -5247,7 +5247,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043653 + merchant_id: 22043653, }, { id: 'f1441a38-05ca-4d88-887c-6fe4eb6bbee2', @@ -5263,7 +5263,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043661 + merchant_id: 22043661, }, { id: '10c3f7a2-6897-4554-9fe1-1ac10c68080e', @@ -5279,7 +5279,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043679 + merchant_id: 22043679, }, { id: 'c9efad1b-6461-4483-b2ab-de6c7e866fba', @@ -5295,7 +5295,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043703 + merchant_id: 22043703, }, { id: 'f6efa109-c840-4b9f-afc9-6b4e4c68cd7e', @@ -5311,7 +5311,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043745 + merchant_id: 22043745, }, { id: '42349f57-c3d5-4769-954d-2e5553110024', @@ -5327,7 +5327,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043810 + merchant_id: 22043810, }, { id: '7dc4eb4a-fb9a-4c41-b494-c6f5869e7810', @@ -5343,7 +5343,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043828 + merchant_id: 22043828, }, { id: '4deb7c85-4151-43de-9433-4f577053eead', @@ -5359,7 +5359,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043836 + merchant_id: 22043836, }, { id: '7e41cd2e-48b8-4589-b4b8-c37e7c65afdb', @@ -5375,7 +5375,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043893 + merchant_id: 22043893, }, { id: 'da49539f-7ac9-4ab0-adfc-e906203ded8c', @@ -5391,7 +5391,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043919 + merchant_id: 22043919, }, { id: '6ab79027-ccce-44da-a385-e4f2051b42fb', @@ -5407,7 +5407,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22043984 + merchant_id: 22043984, }, { id: 'bfbe1cb0-61f0-4b55-9006-696f3ccb2adb', @@ -5423,7 +5423,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044008 + merchant_id: 22044008, }, { id: 'ca0daad2-00fb-4e84-ac45-dd9808e93f24', @@ -5439,7 +5439,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044164 + merchant_id: 22044164, }, { id: 'e19cc1a1-69dd-46c8-a6de-14806fdd8260', @@ -5455,7 +5455,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044230 + merchant_id: 22044230, }, { id: 'fc0bd184-ba0d-4105-97e2-8bb515061463', @@ -5471,7 +5471,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044255 + merchant_id: 22044255, }, { id: '73a39996-287d-4e30-8780-091945e020f0', @@ -5487,7 +5487,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044297 + merchant_id: 22044297, }, { id: 'b3290ce8-15db-41a0-bfa1-6e3cb93b6135', @@ -5503,7 +5503,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044305 + merchant_id: 22044305, }, { id: 'e8674944-34d3-40db-8333-8533c21feed4', @@ -5519,7 +5519,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044313 + merchant_id: 22044313, }, { id: '95406746-40f6-4a5a-b65d-008f614138d5', @@ -5535,7 +5535,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044362 + merchant_id: 22044362, }, { id: '76bf1899-025b-4516-8f8c-c9be20206fb4', @@ -5551,7 +5551,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044412 + merchant_id: 22044412, }, { id: '24139a4a-d926-40dc-aa45-0105489f020c', @@ -5567,7 +5567,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044438 + merchant_id: 22044438, }, { id: 'd911f19a-91ab-40e8-9124-e6cbae6cc62c', @@ -5583,7 +5583,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044545 + merchant_id: 22044545, }, { id: '83606b55-0f8b-4477-a5fb-8fb4f138cfe3', @@ -5599,7 +5599,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044628 + merchant_id: 22044628, }, { id: '390ec068-0e22-431f-8e97-e5c499fe2cd4', @@ -5615,7 +5615,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044701 + merchant_id: 22044701, }, { id: 'ae9c766a-5b84-4d62-8c70-b628bf2f3f2a', @@ -5631,7 +5631,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044750 + merchant_id: 22044750, }, { id: '264d4e6c-d92a-45ec-9bbb-94e35782282d', @@ -5647,7 +5647,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044859 + merchant_id: 22044859, }, { id: '17d9e554-a74d-4e2c-bedc-ac6c9ba7828e', @@ -5663,7 +5663,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 20777441 + merchant_id: 20777441, }, { id: '03e62f42-926d-4205-800a-4179bbcc0603', @@ -5679,7 +5679,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 22044933 + merchant_id: 22044933, }, { id: '8a530af3-419f-41da-b9cf-48e788e538b1', @@ -5695,7 +5695,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103846 + merchant_id: 24103846, }, { id: 'c3b89b80-04a3-4f6a-bc2c-e5de445185d8', @@ -5711,7 +5711,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103838 + merchant_id: 24103838, }, { id: '477ab12c-ab10-41d7-ae27-e48dc8978581', @@ -5727,7 +5727,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103895 + merchant_id: 24103895, }, { id: '21153def-3d08-45a3-9f02-081ece350dd1', @@ -5743,7 +5743,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103879 + merchant_id: 24103879, }, { id: 'dee7c22a-d21e-4586-8bcf-75325821bae7', @@ -5759,7 +5759,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103861 + merchant_id: 24103861, }, { id: '6b25fbe2-7360-4317-96f2-8cdf97ce7d2c', @@ -5775,7 +5775,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103861 + merchant_id: 24103861, }, { id: 'c1966864-603b-43dc-a72a-d89903e618a2', @@ -5791,7 +5791,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103853 + merchant_id: 24103853, }, { id: '50831447-0695-4aac-82d7-bf1ee27995fd', @@ -5807,7 +5807,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 24103887 + merchant_id: 24103887, }, { id: 'bf72302d-cf2d-4883-a636-5647b13b77d3', @@ -5823,7 +5823,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23700609 + merchant_id: 23700609, }, { id: '7e0ac6ea-39c9-4a68-ba1e-f023a4bda86b', @@ -5839,7 +5839,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956607 + merchant_id: 23956607, }, { id: 'e35eb1cd-ee90-4d30-875d-da211bb6b685', @@ -5855,7 +5855,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956599 + merchant_id: 23956599, }, { id: '590437cf-e41d-4e44-abf3-d109d4813d61', @@ -5871,7 +5871,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23302208 + merchant_id: 23302208, }, { id: 'f5f78b55-b937-4dd7-a139-574ac62db6d6', @@ -5887,7 +5887,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23700609 + merchant_id: 23700609, }, { id: 'c659672e-bffe-49a8-8875-27acf2023f37', @@ -5903,7 +5903,7 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956607 + merchant_id: 23956607, }, { id: '48fa6dcd-8af4-438b-ac48-97028e6d1300', @@ -5919,8 +5919,8 @@ export const locations: LocationEntity[] = [ service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23956599 - } + merchant_id: 23956599, + }, ]; /*eslint-disable */ @@ -5946,7 +5946,7 @@ export const newLocationList = locations loc.description )?.description ?? '', merchant_ids: [], - pt_location_ids: [] + pt_location_ids: [], }; } diff --git a/apps/backend/test/mocks/const/payment-methods.ts b/apps/backend/test/mocks/const/payment-methods.ts index 71546184..51fa45bc 100644 --- a/apps/backend/test/mocks/const/payment-methods.ts +++ b/apps/backend/test/mocks/const/payment-methods.ts @@ -6,48 +6,48 @@ export const paymentMethods: PaymentMethodEntity[] = [ method: 'AX', description: 'AMEX', sbc_code: 17, - classification: PaymentMethodClassification.POS + classification: PaymentMethodClassification.POS, }, { method: 'P', description: 'DEBIT', sbc_code: 11, - classification: PaymentMethodClassification.POS + classification: PaymentMethodClassification.POS, }, { method: 'V', description: 'VISA', sbc_code: 13, - classification: PaymentMethodClassification.POS + classification: PaymentMethodClassification.POS, }, { method: 'M', description: 'MASTERCARD', sbc_code: 12, - classification: PaymentMethodClassification.POS + classification: PaymentMethodClassification.POS, }, { method: 'PV', description: 'DEBIT_VISA', sbc_code: 18, - classification: PaymentMethodClassification.POS + classification: PaymentMethodClassification.POS, }, { method: 'MV', description: 'DEBIT_MASTERCARD', sbc_code: 19, - classification: PaymentMethodClassification.POS + classification: PaymentMethodClassification.POS, }, { method: 'CASH', description: 'CASH', sbc_code: 1, - classification: PaymentMethodClassification.CASH + classification: PaymentMethodClassification.CASH, }, { method: 'CHQ', description: 'CHEQUE', sbc_code: 2, - classification: PaymentMethodClassification.CASH - } + classification: PaymentMethodClassification.CASH, + }, ]; diff --git a/apps/backend/test/mocks/mocks.cash.spec.ts b/apps/backend/test/mocks/mocks.cash.spec.ts index 8ca636eb..361b28a6 100644 --- a/apps/backend/test/mocks/mocks.cash.spec.ts +++ b/apps/backend/test/mocks/mocks.cash.spec.ts @@ -21,12 +21,12 @@ describe('Tests the generated mock data', () => { const expected = { deposits: cashDepositsMock.map((itm) => ({ date: itm.deposit_date, - amount: itm.deposit_amt_cdn + amount: itm.deposit_amt_cdn, })), payments: aggregatedPayments(cashPaymentsMock).map((itm) => ({ date: itm.fiscal_close_date, - amount: itm.amount - })) + amount: itm.amount, + })), }; expect(expected.payments.map((itm) => itm.amount)).toEqual( expected.deposits.map((itm) => itm.amount) diff --git a/apps/backend/test/mocks/mocks.pos.spec.ts b/apps/backend/test/mocks/mocks.pos.spec.ts index 65cc6274..f632f4aa 100644 --- a/apps/backend/test/mocks/mocks.pos.spec.ts +++ b/apps/backend/test/mocks/mocks.pos.spec.ts @@ -18,11 +18,11 @@ describe('Tests the generated mock data', () => { it('should generate pos payments and deposits with the same date and amount', () => { const expectedPOSDeposits = posDepositsMock.map((itm) => ({ date: itm.transaction_date, - amount: itm.transaction_amt + amount: itm.transaction_amt, })); const expectedPOSPayments = posPaymentsMock.map((itm) => ({ date: itm.transaction.transaction_date, - amount: itm.amount + amount: itm.amount, })); expectedPOSDeposits.forEach((deposit) => expect( diff --git a/apps/backend/test/unit/app/app.controller.spec.ts b/apps/backend/test/unit/app/app.controller.spec.ts index e413454b..c63a017d 100644 --- a/apps/backend/test/unit/app/app.controller.spec.ts +++ b/apps/backend/test/unit/app/app.controller.spec.ts @@ -8,7 +8,7 @@ describe('AppController', () => { beforeEach(async () => { const app: TestingModule = await Test.createTestingModule({ controllers: [AppController], - providers: [AppService] + providers: [AppService], }).compile(); appController = app.get(AppController); @@ -19,7 +19,7 @@ describe('AppController', () => { expect(appController.getVersion()).toStrictEqual({ buildId: 'NA', info: 'NA', - env: 'NA' + env: 'NA', }); }); }); diff --git a/apps/backend/test/unit/deposits/cash-deposit.service.spec.ts b/apps/backend/test/unit/deposits/cash-deposit.service.spec.ts index 9a50538a..21e724ce 100644 --- a/apps/backend/test/unit/deposits/cash-deposit.service.spec.ts +++ b/apps/backend/test/unit/deposits/cash-deposit.service.spec.ts @@ -9,7 +9,7 @@ import { ParseArgsTDI, FileTypes, Ministries, - PaymentMethodClassification + PaymentMethodClassification, } from '../../../src/constants'; import { CashDepositService } from '../../../src/deposits/cash-deposit.service'; import { CashDepositEntity } from '../../../src/deposits/entities/cash-deposit.entity'; @@ -31,11 +31,11 @@ describe('CashDepositService', () => { useValue: { findOneByOrFail: jest.fn(), find: jest.fn(), - save: jest.fn() - } + save: jest.fn(), + }, }, - { provide: Logger, useValue: {} } - ] + { provide: Logger, useValue: {} }, + ], }).compile(); const mockCashData = new MockData(PaymentMethodClassification.CASH); @@ -69,7 +69,7 @@ describe('CashDepositService', () => { type: FileTypes.TDI17, fileName: 'test/TDI17', program: 'SBC', - fileContents: Buffer.from(testCashFile).toString() + fileContents: Buffer.from(testCashFile).toString(), }; const data: TDI17Details[] = [...parseTDI(tdi17Mock)] as TDI17Details[]; const cashDeposit: CashDepositEntity[] = data.map( @@ -95,7 +95,7 @@ describe('CashDepositService', () => { type: FileTypes.TDI34, fileName: 'test/TDI34', program: 'SBC', - fileContents: Buffer.from(testCashFile).toString() + fileContents: Buffer.from(testCashFile).toString(), }; const data: TDI17Details[] = [...parseTDI(tdi34Mock)] as TDI17Details[]; const cashDeposits: CashDepositEntity[] = data.map( @@ -125,7 +125,7 @@ describe('CashDepositService', () => { const expectedEntities = [ { id: 1, deposit_amt_cdn: 100 }, - { id: 2, deposit_amt_cdn: 200 } + { id: 2, deposit_amt_cdn: 200 }, ]; jest @@ -146,9 +146,9 @@ describe('CashDepositService', () => { pt_location_id: location.pt_location_id, metadata: { program }, deposit_date: depositDate, - status: In(status) + status: In(status), }, - order: { deposit_amt_cdn: 'ASC' } + order: { deposit_amt_cdn: 'ASC' }, }); }); @@ -174,9 +174,9 @@ describe('CashDepositService', () => { pt_location_id: location.pt_location_id, metadata: { program }, deposit_date: depositDate, - status: In(status) + status: In(status), }, - order: { deposit_amt_cdn: 'ASC' } + order: { deposit_amt_cdn: 'ASC' }, }); }); @@ -187,7 +187,7 @@ describe('CashDepositService', () => { const expectedEntities = [ { id: 1, deposit_amt_cdn: 100 }, - { id: 2, deposit_amt_cdn: 200 } + { id: 2, deposit_amt_cdn: 200 }, ]; jest @@ -207,9 +207,9 @@ describe('CashDepositService', () => { pt_location_id: location.pt_location_id, metadata: { program }, deposit_date: depositDate, - status: In(MatchStatusAll) + status: In(MatchStatusAll), }, - order: { deposit_amt_cdn: 'ASC' } + order: { deposit_amt_cdn: 'ASC' }, }); }); }); @@ -230,7 +230,7 @@ describe('CashDepositService', () => { expect([updatedEntities[0], updatedEntities[1]]).toEqual([ cashDeposits[0], - cashDeposits[1] + cashDeposits[1], ]); }); }); @@ -260,7 +260,7 @@ describe('CashDepositService', () => { const expectedEntities = [ { id: 1, deposit_amt_cdn: 100 }, - { id: 2, deposit_amt_cdn: 200 } + { id: 2, deposit_amt_cdn: 200 }, ]; jest diff --git a/apps/backend/test/unit/deposits/pos_deposit.service.spec.ts b/apps/backend/test/unit/deposits/pos_deposit.service.spec.ts index 0d652482..00800285 100644 --- a/apps/backend/test/unit/deposits/pos_deposit.service.spec.ts +++ b/apps/backend/test/unit/deposits/pos_deposit.service.spec.ts @@ -9,7 +9,7 @@ import { ParseArgsTDI, FileTypes, Ministries, - PaymentMethodClassification + PaymentMethodClassification, } from '../../../src/constants'; import { POSDepositEntity } from '../../../src/deposits/entities/pos-deposit.entity'; import { PosDepositService } from '../../../src/deposits/pos-deposit.service'; @@ -48,14 +48,14 @@ describe('POSDepositService', () => { .mockReturnValue([{ source_file_name: 'test/TDI34' }]), delete: jest.fn(), where: jest.fn(), - execute: jest.fn() - } + execute: jest.fn(), + }, }, { provide: getRepositoryToken(LocationEntity), - useValue: {} - } - ] + useValue: {}, + }, + ], }).compile(); locationService = module.get(LocationService); service = module.get(PosDepositService); @@ -90,7 +90,7 @@ describe('POSDepositService', () => { type: FileTypes.TDI34, fileName: 'test/TDI34', program: 'SBC', - fileContents: Buffer.from(testFile).toString() + fileContents: Buffer.from(testFile).toString(), }; const data: TDI34Details[] = [...parseTDI(tdi34Mock)] as TDI34Details[]; const posDeposit: POSDepositEntity[] = data.map( @@ -120,7 +120,7 @@ describe('POSDepositService', () => { const expectedPOSDeposits = [ new POSDepositEntity(), - new POSDepositEntity() + new POSDepositEntity(), ]; jest.spyOn(repository, 'find').mockResolvedValue(expectedPOSDeposits); @@ -138,19 +138,19 @@ describe('POSDepositService', () => { where: { transaction_date: date, metadata: { - program: program + program: program, }, status: status, - merchant_id: In([location.merchant_id]) + merchant_id: In([location.merchant_id]), }, relations: { - payment_method: true + payment_method: true, }, order: { transaction_amt: 'ASC', payment_method: { method: 'ASC' }, - transaction_time: 'ASC' - } + transaction_time: 'ASC', + }, }); expect(result).toEqual(expectedPOSDeposits); }); diff --git a/apps/backend/test/unit/location/location.entity.spec.ts b/apps/backend/test/unit/location/location.entity.spec.ts index 0fa84b75..8cae5893 100644 --- a/apps/backend/test/unit/location/location.entity.spec.ts +++ b/apps/backend/test/unit/location/location.entity.spec.ts @@ -15,7 +15,7 @@ test('Location Entity Instance', () => { service_line_code: 0, stob_code: 0, project_code: 0, - merchant_id: 23591041 + merchant_id: 23591041, }); expect(location).toBeInstanceOf(LocationEntity); }); diff --git a/apps/backend/test/unit/location/location.service.spec.ts b/apps/backend/test/unit/location/location.service.spec.ts index 2b1a5b50..4cfd4bf3 100644 --- a/apps/backend/test/unit/location/location.service.spec.ts +++ b/apps/backend/test/unit/location/location.service.spec.ts @@ -18,10 +18,10 @@ describe('LocationService', () => { { provide: getRepositoryToken(LocationEntity), useValue: { - find: jest.fn() - } - } - ] + find: jest.fn(), + }, + }, + ], }).compile(); service = module.get(LocationService); @@ -46,15 +46,15 @@ describe('LocationService', () => { expect(result).toEqual(expectedResult.map((itm) => itm.merchant_id)); expect(locationRepoSpy).toBeCalledWith({ select: { - merchant_id: true + merchant_id: true, }, where: { location_id, - method: Not('Bank') + method: Not('Bank'), }, order: { - location_id: 'ASC' - } + location_id: 'ASC', + }, }); }); it('should get locations by source', async () => { @@ -70,11 +70,11 @@ describe('LocationService', () => { expect(locationRepoSpy).toBeCalledWith({ where: { source_id: source, - method: `${LocationEnum.Bank}` + method: `${LocationEnum.Bank}`, }, order: { - location_id: 'ASC' - } + location_id: 'ASC', + }, }); }); }); diff --git a/apps/backend/test/unit/parsing/fixedWidthRecord.spec.ts b/apps/backend/test/unit/parsing/fixedWidthRecord.spec.ts index c3f7273a..7ca13232 100644 --- a/apps/backend/test/unit/parsing/fixedWidthRecord.spec.ts +++ b/apps/backend/test/unit/parsing/fixedWidthRecord.spec.ts @@ -1,6 +1,6 @@ import { FixedWidthRecord, - IFixedWidthRecord + IFixedWidthRecord, } from '../../../src/common/entities/FixedWidthRecord'; /*eslint-disable @typescript-eslint/no-explicit-any*/ describe('FixedWidthRecord', () => { diff --git a/apps/backend/test/unit/reconciliation/cash-reconciliation.spec.ts b/apps/backend/test/unit/reconciliation/cash-reconciliation.spec.ts index ac6d92af..6481004e 100644 --- a/apps/backend/test/unit/reconciliation/cash-reconciliation.spec.ts +++ b/apps/backend/test/unit/reconciliation/cash-reconciliation.spec.ts @@ -29,7 +29,7 @@ describe('CashReconciliationService', () => { let spy: jest.SpyInstance; beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ - providers: [CashReconciliationService] + providers: [CashReconciliationService], }) .useMocker(createMock) .compile(); diff --git a/apps/backend/test/unit/reconciliation/helpers.ts b/apps/backend/test/unit/reconciliation/helpers.ts index aff65014..3e52f770 100644 --- a/apps/backend/test/unit/reconciliation/helpers.ts +++ b/apps/backend/test/unit/reconciliation/helpers.ts @@ -17,7 +17,7 @@ export const aggregatedPayments = (payments: PaymentEntity[]) => { status: payment.status, fiscal_close_date: payment.transaction.fiscal_close_date, amount: 0, - payments: [] + payments: [], }; } acc[key].amount += parseFloat(payment.amount.toFixed(2)); @@ -52,12 +52,12 @@ export const setSomePaymentsToTwentyMinutesLater = ( ) + 1000 * 60 * 20, 'HH:mm:ss' - ) - } + ), + }, } : { ...itm, - timestamp: itm.timestamp + timestamp: itm.timestamp, } ); }; @@ -73,7 +73,7 @@ export const unmatchedTestData = ( transaction: { ...itm.transaction, transaction_date: format(faker.date.recent(10), 'yyyy-MM-dd'), - location: faker.helpers.arrayElement(locations) + location: faker.helpers.arrayElement(locations), }, timestamp: parse( format(faker.date.recent(10), 'yyyy-MM-dd'), @@ -81,13 +81,13 @@ export const unmatchedTestData = ( new Date() ), amount: faker.datatype.number({ min: 1, max: 1000 }), - payment_method: faker.helpers.arrayElement(paymentMethods) + payment_method: faker.helpers.arrayElement(paymentMethods), })), deposits: posData.map((itm) => ({ ...itm, timestamp: itm.timestamp, - transaction_amt: faker.datatype.number({ min: 1, max: 1000 }) - })) + transaction_amt: faker.datatype.number({ min: 1, max: 1000 }), + })), }; }; diff --git a/apps/backend/test/unit/reconciliation/pos-reconciliation.spec.ts b/apps/backend/test/unit/reconciliation/pos-reconciliation.spec.ts index 27d66936..7ee5ca1b 100644 --- a/apps/backend/test/unit/reconciliation/pos-reconciliation.spec.ts +++ b/apps/backend/test/unit/reconciliation/pos-reconciliation.spec.ts @@ -4,7 +4,7 @@ import { Test, TestingModule } from '@nestjs/testing'; import { setSomePaymentsToTwentyMinutesLater, timeBetweenMatchedPaymentAndDeposit, - unmatchedTestData + unmatchedTestData, } from './helpers'; import { PosDepositService } from './../../../src/deposits/pos-deposit.service'; import { POSReconciliationService } from './../../../src/reconciliation/pos-reconciliation.service'; @@ -42,7 +42,7 @@ describe('POSReconciliationService', () => { beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ - providers: [POSReconciliationService] + providers: [POSReconciliationService], }) .useMocker(createMock) .compile(); diff --git a/apps/backend/test/unit/reporting/excelexport.service.spec.ts b/apps/backend/test/unit/reporting/excelexport.service.spec.ts index e2dbbeb3..cabe90a9 100644 --- a/apps/backend/test/unit/reporting/excelexport.service.spec.ts +++ b/apps/backend/test/unit/reporting/excelexport.service.spec.ts @@ -8,7 +8,7 @@ describe('ExcelExportService', () => { const s3ServiceMock = { // mock the query method that is used - query: jest.fn(() => Promise.resolve({})) + query: jest.fn(() => Promise.resolve({})), }; beforeEach(async () => { @@ -18,9 +18,9 @@ describe('ExcelExportService', () => { Logger, { provide: S3ManagerService, - useValue: s3ServiceMock - } - ] + useValue: s3ServiceMock, + }, + ], }).compile(); service = module.get(ExcelExportService); diff --git a/apps/backend/test/unit/reporting/reporting.service.spec.ts b/apps/backend/test/unit/reporting/reporting.service.spec.ts index 89588e9e..588c198b 100644 --- a/apps/backend/test/unit/reporting/reporting.service.spec.ts +++ b/apps/backend/test/unit/reporting/reporting.service.spec.ts @@ -19,10 +19,10 @@ describe('ReportingService', () => { let service: ReportingService; const mockedRepo = { - findOneOrFail: jest.fn(() => Promise.resolve({})) + findOneOrFail: jest.fn(() => Promise.resolve({})), }; const s3ServiceMock = { - query: jest.fn(() => Promise.resolve({})) + query: jest.fn(() => Promise.resolve({})), }; beforeEach(async () => { @@ -39,29 +39,29 @@ describe('ReportingService', () => { Logger, { provide: S3ManagerService, - useValue: s3ServiceMock + useValue: s3ServiceMock, }, { provide: getRepositoryToken(CashDepositEntity), - useValue: mockedRepo + useValue: mockedRepo, }, { provide: getRepositoryToken(POSDepositEntity), - useValue: mockedRepo + useValue: mockedRepo, }, { provide: getRepositoryToken(PaymentEntity), - useValue: mockedRepo + useValue: mockedRepo, }, { provide: getRepositoryToken(PaymentMethodEntity), - useValue: mockedRepo + useValue: mockedRepo, }, { provide: getRepositoryToken(LocationEntity), - useValue: mockedRepo - } - ] + useValue: mockedRepo, + }, + ], }).compile(); service = module.get(ReportingService); diff --git a/apps/backend/test/unit/s3/s3Service.spec.ts b/apps/backend/test/unit/s3/s3Service.spec.ts index e002d468..342cc975 100644 --- a/apps/backend/test/unit/s3/s3Service.spec.ts +++ b/apps/backend/test/unit/s3/s3Service.spec.ts @@ -15,12 +15,12 @@ describe('Parser (e2e)', () => { defaultServiceOptions: { endpoint: 'http://minio:9000', region: 'ca-central-1', - s3ForcePathStyle: true + s3ForcePathStyle: true, }, - services: [S3] - }) + services: [S3], + }), ], - providers: [S3ManagerService] + providers: [S3ManagerService], }).compile(); service = module.get(S3ManagerService); }); diff --git a/apps/backend/test/unit/transaction/payment.entity.spec.ts b/apps/backend/test/unit/transaction/payment.entity.spec.ts index 2a864332..d5eb2d0e 100644 --- a/apps/backend/test/unit/transaction/payment.entity.spec.ts +++ b/apps/backend/test/unit/transaction/payment.entity.spec.ts @@ -23,7 +23,7 @@ test('Payment Entity Instance', () => { method: 'P', classification: PaymentMethodClassification.POS, description: 'Debit', - sbc_code: 17 + sbc_code: 17, }, transaction: { payments: [], @@ -36,7 +36,7 @@ test('Payment Entity Instance', () => { source_id: 'SBC', location_id: 1, migrated: true, - source_file_name: 'sbc/SBC_SALES_2023_01_10_18_45_04.JSON' + source_file_name: 'sbc/SBC_SALES_2023_01_10_18_45_04.JSON', }, cash_deposit_match: undefined, pos_deposit_match: { @@ -57,16 +57,16 @@ test('Payment Entity Instance', () => { method: 'P', classification: PaymentMethodClassification.POS, description: 'Debit', - sbc_code: 17 + sbc_code: 17, }, metadata: { date_uploaded: new Date('2023-04-28T07:35:13.155Z'), program: 'SBC', source_file_name: 'bcm/PROD_SBC_F08TDI34_20230404.DAT', source_file_line: 1550, - source_file_length: 2116 - } - } + source_file_length: 2116, + }, + }, }); expect(payment).toBeInstanceOf(PaymentEntity); }); diff --git a/apps/backend/test/unit/transaction/transaction.controller.spec.ts b/apps/backend/test/unit/transaction/transaction.controller.spec.ts index e6f750d7..7393e545 100644 --- a/apps/backend/test/unit/transaction/transaction.controller.spec.ts +++ b/apps/backend/test/unit/transaction/transaction.controller.spec.ts @@ -9,7 +9,7 @@ describe('TransactionController', () => { beforeEach(async () => { const module: TestingModule = await Test.createTestingModule({ controllers: [TransactionController], - providers: [Logger, { provide: TransactionService, useValue: jest.fn() }] + providers: [Logger, { provide: TransactionService, useValue: jest.fn() }], }).compile(); controller = module.get(TransactionController); diff --git a/apps/backend/test/unit/transaction/transaction.entity.spec.ts b/apps/backend/test/unit/transaction/transaction.entity.spec.ts index 8a88005c..97cd5aa9 100644 --- a/apps/backend/test/unit/transaction/transaction.entity.spec.ts +++ b/apps/backend/test/unit/transaction/transaction.entity.spec.ts @@ -12,7 +12,7 @@ test('Transaction Entity Instance', () => { source_id: 'SBC', location_id: 1, migrated: true, - source_file_name: 'sbc/SBC_SALES_2023_01_10_18_45_04.JSON' + source_file_name: 'sbc/SBC_SALES_2023_01_10_18_45_04.JSON', }); expect(transaction).toBeInstanceOf(TransactionEntity); diff --git a/apps/backend/test/unit/transaction/transaction.service.spec.ts b/apps/backend/test/unit/transaction/transaction.service.spec.ts index 3609af99..56b99169 100644 --- a/apps/backend/test/unit/transaction/transaction.service.spec.ts +++ b/apps/backend/test/unit/transaction/transaction.service.spec.ts @@ -8,12 +8,12 @@ import { TransactionService } from '../../../src/transaction/transaction.service describe('TransactionService', () => { let service: TransactionService; const mockedRepo = { - findOneOrFail: jest.fn(() => Promise.resolve({})) + findOneOrFail: jest.fn(() => Promise.resolve({})), }; const mockedPaymentService = { // mock the query method that is used - query: jest.fn(() => Promise.resolve({})) + query: jest.fn(() => Promise.resolve({})), }; beforeEach(async () => { @@ -23,13 +23,13 @@ describe('TransactionService', () => { Logger, { provide: getRepositoryToken(TransactionEntity), - useValue: mockedRepo + useValue: mockedRepo, }, { provide: PaymentService, - useValue: mockedPaymentService - } - ] + useValue: mockedPaymentService, + }, + ], }).compile(); service = module.get(TransactionService);