/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.1.0 * User agent: apibuilder app.apibuilder.io/paintbatch-com/paint-batch-optimizer/1.1.0/scala_mock_models */ package com.paintbatch.mock { object Factories { def randomString(length: Int = 24): String = { _root_.scala.util.Random.alphanumeric.take(length).mkString } def makeSheen(): com.paintbatch.models.Sheen = com.paintbatch.models.Sheen.Matte def makeStatus(): com.paintbatch.models.Status = com.paintbatch.models.Status.Ok def makeDemand(): com.paintbatch.models.Demand = com.paintbatch.models.Demand( paints = Nil ) def makeHealthcheck(): com.paintbatch.models.Healthcheck = com.paintbatch.models.Healthcheck( status = com.paintbatch.mock.Factories.makeStatus() ) def makeOptimizeRequest(): com.paintbatch.models.OptimizeRequest = com.paintbatch.models.OptimizeRequest( colors = 1, customers = 1, demands = Nil ) def makePaint(): com.paintbatch.models.Paint = com.paintbatch.models.Paint( id = 1, sheen = com.paintbatch.mock.Factories.makeSheen() ) def makeReadableError(): com.paintbatch.models.ReadableError = com.paintbatch.models.ReadableError( text = Factories.randomString(24) ) } }