testMapping

abstract suspend fun testMapping(input: TestMappingRequest): TestMappingResponse

Maps the input file according to the provided template file. The API call downloads the file contents from the Amazon S3 location, and passes the contents in as a string, to the inputFileContent parameter.

Samples

// Sample TestMapping call
val resp = b2BiClient.testMapping {
    fileFormat = FileFormat.fromValue("JSON")
    inputFileContent = "Sample file content"
    mappingTemplate = "$"
}