updateTransformer

Updates the specified parameters for a transformer. A transformer describes how to process the incoming EDI documents and extract the necessary information to the output file.

Samples


fun main() { 
   //sampleStart 
   // Sample UpdateTransformer call
val resp = b2BiClient.updateTransformer {
    ediType = EdiType.X12Details(X12Details {
        transactionSet = X12TransactionSet.fromValue("X12_110")
        version = X12Version.fromValue("VERSION_4010")
    }
    )
    fileFormat = FileFormat.fromValue("JSON")
    mappingTemplate = "{}"
    name = "transformJSON"
    sampleDocument = "s3://test-bucket/sampleDoc.txt"
    status = TransformerStatus.fromValue("inactive")
    transformerId = "tr-974c129999f84d8c9"
} 
   //sampleEnd
}