Untitled

mail@pastecode.io avatar
unknown
plain_text
10 months ago
7.0 kB
2
Indexable
Never
ManualAuditConverter

//    public static AuditServiceUpdateCallRecordingRequest getAuditServiceUpdateCallRecordingRequest(
//            ) {
//
//        return AuditServiceUpdateCallRecordingRequest.builder().auditRemark(manualAuditRequest.getAuditRemark())
//                .rude(manualAuditRequest.isRude()).ztp(manualAuditRequest.isZtp()).build();
//    }

CustomerIdFilter

//        return Filter.builder()
//                .id(CUSTOMERID_FILTER_ID)
//                .name(CUSTOMERID_FILTER_NAME)
//                .type(SEARCH_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(null)
//                .step(null)
//                .filterValues(null)
//                .defaultFilterValues(null)
//                .build();

AuditStatusFilter 

//        return Filter.builder()
//                .id(AUDITSTATUS_FILTER_ID)
//                .name(AUDITSTATUS_FILTER_NAME)
//                .type(RADIOBUTTON_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(null)
//                .step(null)
//                .filterValues(filterOptions)
//                .defaultFilterValues(defaultFilterOptions)
//                .build();

//        final List<FilterOption> filterOptions = Arrays.stream(FilterMetadataApiConstant.AuditStatusType.values())
//                .map(auditStatusType -> new FilterOption(auditStatusType.getLabel(), auditStatusType.getValue()))
//                .collect(Collectors.toList());
//        final List<FilterOption> defaultFilterOptions = new ArrayList<>();
//        defaultFilterOptions.add(new FilterOption(FilterMetadataApiConstant.AuditStatusType.COMPLETED.getLabel(),
//                FilterMetadataApiConstant.AuditStatusType.COMPLETED.getValue()));

//        final List<Object> filterValue = Arrays.stream(FilterMetadataApiConstant.AuditStatusType.values())
//                .map(auditStatusType -> new Object[]{auditStatusType.getLabel(), auditStatusType.getValue()})
//                .collect(Collectors.toList());
        //The above may not be correct

AuditTypeFilter -

//        final List<FilterOption> filterOptions = Arrays.stream(FilterMetadataApiConstant.AuditTypeType.values())
//                .map(auditTypeType -> new FilterOption(auditTypeType.getLabel(), auditTypeType.getValue()))
//                .collect(Collectors.toList());
//        final List<FilterOption> defaultFilterOptions = new ArrayList<>();
//        defaultFilterOptions.add(new FilterOption(FilterMetadataApiConstant.AuditTypeType.SYSTEM.getLabel(),
//                FilterMetadataApiConstant.AuditTypeType.SYSTEM.getValue()));

//        return Filter.builder()
//                .id(AUDITTYPE_FILTER_ID)
//                .name(AUDITTYPE_FILTER_NAME)
//                .type(RADIOBUTTON_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(null)
//                .step(null)
//                .filterValues(filterOptions)
//                .defaultFilterValues(defaultFilterOptions)
//                .build();

FileSize Filter -

//        return Filter.builder()
//                .id(FILESIZE_FILTER_ID)
//                .name(FILESIZE_FILTER_NAME)
//                .type(RANGE_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(FILESIZE_SUBTYPE)
//                .step(FILESIZE_STEP)
//                .filterValues(filterRange)
//                .defaultFilterValues(defaultFilterRange)
//                .build();

LoanId Filter -

//        return Filter.builder()
//                .id(LOANID_FILTER_ID)
//                .name(LOANID_FILTER_NAME)
//                .type(SEARCH_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(null)
//                .step(null)
//                .filterValues(null)
//                .defaultFilterValues(null)
//                .build();

MonthFilter -

//        final List<FilterOption> filterOptions = Arrays.stream(FilterMetadataApiConstant.MonthType.values())
//                .map(monthType -> new FilterOption(monthType.getLabel(), monthType.getValue()))
//                .collect(Collectors.toList());

//        return Filter.builder()
//                .id(MONTH_FILTER_ID)
//                .name(MONTH_FILTER_NAME)
//                .type(RADIOBUTTON_FILTER_TYPE.getValue())
//                .isClearable(false)
//                .subtype(null)
//                .step(null)
//                .filterValues(filterOptions)
//                .defaultFilterValues(filterOptions.get(0))
//                .build();

VerticalFilter -

//        final List<FilterOption> filterOptions = Arrays.stream(FilterMetadataApiConstant.VerticalType.values())
//                .map(verticalType -> new FilterOption(verticalType.getLabel(), verticalType.getValue()))
//                .collect(Collectors.toList());
//        final List<FilterOption> defaultFilterOptions = new ArrayList<>();
//        defaultFilterOptions.add(new FilterOption(FilterMetadataApiConstant.VerticalType.CONSUMER.getLabel(),
//                FilterMetadataApiConstant.VerticalType.CONSUMER.getValue()));

//        return Filter.builder()
//                .id(VERTICAL_FILTER_ID)
//                .name(VERTICAL_FILTER_NAME)
//                .type(CHECKBOX_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(null)
//                .step(null)
//                .filterValues(filterOptions)
//                .defaultFilterValues(defaultFilterOptions)
//                .build();

RecordingDateFilter -

//        return Filter.builder()
//                .id(RECORDINGDATE_FILTER_ID)
//                .name(RECORDINGDATE_FILTER_NAME)
//                .type(RANGE_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(recordingDateSubtype)
//                .step(null)
//                .filterValues(filterRange)
//                .defaultFilterValues(filterRange)
//                .build();

ProductFilter -

//        final List<FilterOption> filterOptions = Arrays.stream(FilterMetadataApiConstant.ProductType.values())
//                .map(productType -> new FilterOption(productType.getLabel(), productType.getValue()))
//                .collect(Collectors.toList());
//        final List<FilterOption> defaultFilterOptions = new ArrayList<>();
//        defaultFilterOptions.add(new FilterOption(FilterMetadataApiConstant.ProductType.BUSINESS_LOAN.getLabel(),
//                FilterMetadataApiConstant.ProductType.BUSINESS_LOAN.getValue()));

//        return Filter.builder()
//                .id(PRODUCT_FILTER_ID)
//                .name(PRODUCT_FILTER_NAME)
//                .type(CHECKBOX_FILTER_TYPE.getValue())
//                .isClearable(true)
//                .subtype(null)
//                .step(null)
//                .filterValues(filterOptions)
//                .defaultFilterValues(defaultFilterOptions)
//                .build();