sbt-graphql.AddTransferAgreementCompliance.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tdr-generated-graphql_2.13 Show documentation
Show all versions of tdr-generated-graphql_2.13 Show documentation
Classes to be used by the graphql client to communicate with the TDR graphql API
The newest version!
package graphql.codegen
import java.util.UUID
import java.time.ZonedDateTime
import java.time.LocalDateTime
import io.circe.{ Decoder, Encoder }
import io.circe.generic.semiauto.{ deriveDecoder, deriveEncoder }
import sangria.macros._
import types._
object AddTransferAgreementCompliance {
object addTransferAgreementCompliance extends GraphQLQuery {
val document: sangria.ast.Document = graphql"""mutation addTransferAgreementCompliance($$input: AddTransferAgreementComplianceInput!) {
addTransferAgreementCompliance(addTransferAgreementComplianceInput: $$input) {
consignmentId
appraisalSelectionSignedOff
sensitivityReviewSignedOff
initialOpenRecords
}
}"""
case class Variables(input: AddTransferAgreementComplianceInput)
object Variables { implicit val jsonEncoder: Encoder[Variables] = deriveEncoder[Variables] }
case class Data(addTransferAgreementCompliance: AddTransferAgreementCompliance)
object Data { implicit val jsonDecoder: Decoder[Data] = deriveDecoder[Data] }
case class AddTransferAgreementCompliance(consignmentId: UUID, appraisalSelectionSignedOff: Boolean, sensitivityReviewSignedOff: Boolean, initialOpenRecords: Option[Boolean])
object AddTransferAgreementCompliance {
implicit val jsonDecoder: Decoder[AddTransferAgreementCompliance] = deriveDecoder[AddTransferAgreementCompliance]
implicit val jsonEncoder: Encoder[AddTransferAgreementCompliance] = deriveEncoder[AddTransferAgreementCompliance]
}
}
}