package com.appdirect.sdk.vendorFields.fieldsValidation;

import java.util.Map;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.appdirect.sdk.vendorFields.model.FlowType;
import com.appdirect.sdk.vendorFields.model.OperationType;

@Configuration
public class VendorFieldConfiguration {
	@Bean
	public VendorFieldValidationController vendorFieldValidationController(VendorFieldValidationHandler vendorFieldValidationHandler) {
		return new VendorFieldValidationController(vendorFieldValidationHandler);
	}

	@Bean
	public VendorFieldValidationHandler vendorFieldValidationHandler() {
		return (String sku, FlowType flowType, OperationType operationType, Map<String, String> fieldValues) -> {
			throw new UnsupportedOperationException(String.format("Vendor Fields Validation Service for sku=%s, flow type=%s and operation type=%s is not supported.", sku, flowType, operationType));
		};
	}
}

@@ -869,18 +869,17 @@
 %25s, flow
- t
+T
 ype=%25s a
@@ -894,10 +894,9 @@
 tion
- t
+T
 ype=

Update src/main/java/com/appdirect/sdk/vendorFields/fieldsValidation/VendorFieldConfiguration.java