1 /*
2  *  Make.org Core API
3  *  Copyright (C) 2018 Make.org
4  *
5  * This program is free software: you can redistribute it and/or modify
6  *  it under the terms of the GNU Affero General Public License as
7  *  published by the Free Software Foundation, either version 3 of the
8  *  License, or (at your option) any later version.
9  *
10  *  This program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  *  GNU Affero General Public License for more details.
14  *
15  *  You should have received a copy of the GNU Affero General Public License
16  *  along with this program.  If not, see <https://www.gnu.org/licenses/>.
17  *
18  */
19 
20 package org.make.api.partner
21 
22 import io.circe.Decoder
23 import io.circe.generic.semiauto.deriveDecoder
24 import io.swagger.annotations.ApiModelProperty
25 import org.make.core.technical.Pagination
26 import org.make.core.partner.{Partner, PartnerId, PartnerKind}
27 import org.make.core.question.QuestionId
28 import org.make.core.user.UserId
29 import org.make.core.Order
30 
31 import scala.concurrent.Future
32 
33 import scala.annotation.meta.field
34 
35 trait PartnerServiceComponent {
36   def partnerService: PartnerService
37 }
38 
39 trait PartnerService {
40   def getPartner(partnerId: PartnerId): Future[Option[Partner]]
41   def find(
42     offset: Pagination.Offset,
43     end: Option[Pagination.End],
44     sort: Option[String],
45     order: Option[Order],
46     questionId: Option[QuestionId],
47     organisationId: Option[UserId],
48     partnerKind: Option[PartnerKind]
49   ): Future[Seq[Partner]]
50   def count(
51     questionId: Option[QuestionId],
52     organisationId: Option[UserId],
53     partnerKind: Option[PartnerKind]
54   ): Future[Int]
55   def createPartner(request: CreatePartnerRequest): Future[Partner]
56   def updatePartner(partnerId: PartnerId, request: UpdatePartnerRequest): Future[Option[Partner]]
57   def deletePartner(partnerId: PartnerId): Future[Unit]
58 }
59 
60 final case class CreatePartnerRequest(
61   name: String,
62   @(ApiModelProperty @field)(dataType = "string", example = "https://example.com/logo.png")
63   logo: Option[String],
64   @(ApiModelProperty @field)(dataType = "string", example = "https://example.com/link")
65   link: Option[String],
66   @(ApiModelProperty @field)(dataType = "string", example = "11111111-2222-3333-4444-555555555555")
67   organisationId: Option[UserId],
68   @(ApiModelProperty @field)(dataType = "string", allowableValues = PartnerKind.swaggerAllowableValues)
69   partnerKind: PartnerKind,
70   @(ApiModelProperty @field)(dataType = "string", example = "11111111-2222-3333-4444-555555555555")
71   questionId: QuestionId,
72   weight: Float
73 )
74 
75 object CreatePartnerRequest {
76   implicit val decoder: Decoder[CreatePartnerRequest] = deriveDecoder[CreatePartnerRequest]
77 }
78 
79 final case class UpdatePartnerRequest(
80   name: String,
81   @(ApiModelProperty @field)(dataType = "string", example = "https://example.com/logo.png")
82   logo: Option[String],
83   @(ApiModelProperty @field)(dataType = "string", example = "https://example.com/link")
84   link: Option[String],
85   @(ApiModelProperty @field)(dataType = "string", example = "11111111-2222-3333-4444-555555555555")
86   organisationId: Option[UserId],
87   @(ApiModelProperty @field)(dataType = "string", allowableValues = PartnerKind.swaggerAllowableValues)
88   partnerKind: PartnerKind,
89   weight: Float
90 )
91 
92 object UpdatePartnerRequest {
93   implicit val decoder: Decoder[UpdatePartnerRequest] = deriveDecoder[UpdatePartnerRequest]
94 }
Line Stmt Id Pos Tree Symbol Tests Code
76 28543 2734 - 2769 ApplyToImplicitArgs io.circe.generic.semiauto.deriveDecoder io.circe.generic.semiauto.deriveDecoder[org.make.api.partner.CreatePartnerRequest]({ val inst$macro$32: io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.CreatePartnerRequest] = { final class anon$lazy$macro$31 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$31 = { anon$lazy$macro$31.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.CreatePartnerRequest] = decoding.this.DerivedDecoder.deriveDecoder[org.make.api.partner.CreatePartnerRequest, shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.partner.CreatePartnerRequest, (Symbol @@ String("name")) :: (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil, String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.partner.CreatePartnerRequest, (Symbol @@ String("name")) :: (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil](::.apply[Symbol @@ String("name"), (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("name").asInstanceOf[Symbol @@ String("name")], ::.apply[Symbol @@ String("logo"), (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("logo").asInstanceOf[Symbol @@ String("logo")], ::.apply[Symbol @@ String("link"), (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("link").asInstanceOf[Symbol @@ String("link")], ::.apply[Symbol @@ String("organisationId"), (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("organisationId").asInstanceOf[Symbol @@ String("organisationId")], ::.apply[Symbol @@ String("partnerKind"), (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("partnerKind").asInstanceOf[Symbol @@ String("partnerKind")], ::.apply[Symbol @@ String("questionId"), (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("questionId").asInstanceOf[Symbol @@ String("questionId")], ::.apply[Symbol @@ String("weight"), shapeless.HNil.type](scala.Symbol.apply("weight").asInstanceOf[Symbol @@ String("weight")], HNil)))))))), Generic.instance[org.make.api.partner.CreatePartnerRequest, String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil](((x0$3: org.make.api.partner.CreatePartnerRequest) => x0$3 match { case (name: String, logo: Option[String], link: Option[String], organisationId: Option[org.make.core.user.UserId], partnerKind: org.make.core.partner.PartnerKind, questionId: org.make.core.question.QuestionId, weight: Float): org.make.api.partner.CreatePartnerRequest((name$macro$23 @ _), (logo$macro$24 @ _), (link$macro$25 @ _), (organisationId$macro$26 @ _), (partnerKind$macro$27 @ _), (questionId$macro$28 @ _), (weight$macro$29 @ _)) => ::.apply[String, Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil.type](name$macro$23, ::.apply[Option[String], Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil.type](logo$macro$24, ::.apply[Option[String], Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil.type](link$macro$25, ::.apply[Option[org.make.core.user.UserId], org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil.type](organisationId$macro$26, ::.apply[org.make.core.partner.PartnerKind, org.make.core.question.QuestionId :: Float :: shapeless.HNil.type](partnerKind$macro$27, ::.apply[org.make.core.question.QuestionId, Float :: shapeless.HNil.type](questionId$macro$28, ::.apply[Float, shapeless.HNil.type](weight$macro$29, HNil))))))).asInstanceOf[String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil] }), ((x0$4: String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil) => x0$4 match { case (head: String, tail: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil): String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil((name$macro$16 @ _), (head: Option[String], tail: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil): Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil((logo$macro$17 @ _), (head: Option[String], tail: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil): Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil((link$macro$18 @ _), (head: Option[org.make.core.user.UserId], tail: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil): Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil((organisationId$macro$19 @ _), (head: org.make.core.partner.PartnerKind, tail: org.make.core.question.QuestionId :: Float :: shapeless.HNil): org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil((partnerKind$macro$20 @ _), (head: org.make.core.question.QuestionId, tail: Float :: shapeless.HNil): org.make.core.question.QuestionId :: Float :: shapeless.HNil((questionId$macro$21 @ _), (head: Float, tail: shapeless.HNil): Float :: shapeless.HNil((weight$macro$22 @ _), HNil))))))) => partner.this.CreatePartnerRequest.apply(name$macro$16, logo$macro$17, link$macro$18, organisationId$macro$19, partnerKind$macro$20, questionId$macro$21, weight$macro$22) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("name"), String, (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil, Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("logo"), Option[String], (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil, Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("link"), Option[String], (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil, Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("organisationId"), Option[org.make.core.user.UserId], (Symbol @@ String("partnerKind")) :: (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil, org.make.core.partner.PartnerKind :: org.make.core.question.QuestionId :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("partnerKind"), org.make.core.partner.PartnerKind, (Symbol @@ String("questionId")) :: (Symbol @@ String("weight")) :: shapeless.HNil, org.make.core.question.QuestionId :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("questionId"), org.make.core.question.QuestionId, (Symbol @@ String("weight")) :: shapeless.HNil, Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("weight"), Float, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("weight")]](scala.Symbol.apply("weight").asInstanceOf[Symbol @@ String("weight")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("weight")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("questionId")]](scala.Symbol.apply("questionId").asInstanceOf[Symbol @@ String("questionId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("questionId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("partnerKind")]](scala.Symbol.apply("partnerKind").asInstanceOf[Symbol @@ String("partnerKind")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("partnerKind")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("organisationId")]](scala.Symbol.apply("organisationId").asInstanceOf[Symbol @@ String("organisationId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("organisationId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("link")]](scala.Symbol.apply("link").asInstanceOf[Symbol @@ String("link")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("link")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("logo")]](scala.Symbol.apply("logo").asInstanceOf[Symbol @@ String("logo")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("logo")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("name")]](scala.Symbol.apply("name").asInstanceOf[Symbol @@ String("name")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("name")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$31.this.inst$macro$30)).asInstanceOf[io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.CreatePartnerRequest]]; <stable> <accessor> lazy val inst$macro$30: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericDecoderForname: io.circe.Decoder[String] = circe.this.Decoder.decodeString; private[this] val circeGenericDecoderForlink: io.circe.Decoder[Option[String]] = circe.this.Decoder.decodeOption[String](circe.this.Decoder.decodeString); private[this] val circeGenericDecoderFororganisationId: io.circe.Decoder[Option[org.make.core.user.UserId]] = circe.this.Decoder.decodeOption[org.make.core.user.UserId](user.this.UserId.userIdDecoder); private[this] val circeGenericDecoderForpartnerKind: io.circe.Decoder[org.make.core.partner.PartnerKind] = partner.this.PartnerKind.circeDecoder; private[this] val circeGenericDecoderForquestionId: io.circe.Decoder[org.make.core.question.QuestionId] = question.this.QuestionId.QuestionIdDecoder; private[this] val circeGenericDecoderForweight: io.circe.Decoder[Float] = circe.this.Decoder.decodeFloat; final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("name"), String, shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForname.tryDecode(c.downField("name")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("logo"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecode(c.downField("logo")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("link"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecode(c.downField("link")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("organisationId"), Option[org.make.core.user.UserId], shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFororganisationId.tryDecode(c.downField("organisationId")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("partnerKind"), org.make.core.partner.PartnerKind, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForpartnerKind.tryDecode(c.downField("partnerKind")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("questionId"), org.make.core.question.QuestionId, shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionId.tryDecode(c.downField("questionId")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("weight"), Float, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForweight.tryDecode(c.downField("weight")), ReprDecoder.hnilResult)(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance); final override def decodeAccumulating(c: io.circe.HCursor): io.circe.Decoder.AccumulatingResult[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("name"), String, shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForname.tryDecodeAccumulating(c.downField("name")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("logo"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecodeAccumulating(c.downField("logo")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("link"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecodeAccumulating(c.downField("link")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("organisationId"), Option[org.make.core.user.UserId], shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFororganisationId.tryDecodeAccumulating(c.downField("organisationId")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("partnerKind"), org.make.core.partner.PartnerKind, shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForpartnerKind.tryDecodeAccumulating(c.downField("partnerKind")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("questionId"), org.make.core.question.QuestionId, shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForquestionId.tryDecodeAccumulating(c.downField("questionId")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("weight"), Float, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForweight.tryDecodeAccumulating(c.downField("weight")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance) }; new $anon() }: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("questionId"),org.make.core.question.QuestionId] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$31().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.CreatePartnerRequest]](inst$macro$32) })
93 29954 3427 - 3462 ApplyToImplicitArgs io.circe.generic.semiauto.deriveDecoder io.circe.generic.semiauto.deriveDecoder[org.make.api.partner.UpdatePartnerRequest]({ val inst$macro$28: io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.UpdatePartnerRequest] = { final class anon$lazy$macro$27 extends AnyRef with Serializable { def <init>(): anon$lazy$macro$27 = { anon$lazy$macro$27.super.<init>(); () }; <stable> <accessor> lazy val inst$macro$1: io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.UpdatePartnerRequest] = decoding.this.DerivedDecoder.deriveDecoder[org.make.api.partner.UpdatePartnerRequest, shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](shapeless.this.LabelledGeneric.materializeProduct[org.make.api.partner.UpdatePartnerRequest, (Symbol @@ String("name")) :: (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil, String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](DefaultSymbolicLabelling.instance[org.make.api.partner.UpdatePartnerRequest, (Symbol @@ String("name")) :: (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil](::.apply[Symbol @@ String("name"), (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("name").asInstanceOf[Symbol @@ String("name")], ::.apply[Symbol @@ String("logo"), (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("logo").asInstanceOf[Symbol @@ String("logo")], ::.apply[Symbol @@ String("link"), (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("link").asInstanceOf[Symbol @@ String("link")], ::.apply[Symbol @@ String("organisationId"), (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("organisationId").asInstanceOf[Symbol @@ String("organisationId")], ::.apply[Symbol @@ String("partnerKind"), (Symbol @@ String("weight")) :: shapeless.HNil.type](scala.Symbol.apply("partnerKind").asInstanceOf[Symbol @@ String("partnerKind")], ::.apply[Symbol @@ String("weight"), shapeless.HNil.type](scala.Symbol.apply("weight").asInstanceOf[Symbol @@ String("weight")], HNil))))))), Generic.instance[org.make.api.partner.UpdatePartnerRequest, String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil](((x0$3: org.make.api.partner.UpdatePartnerRequest) => x0$3 match { case (name: String, logo: Option[String], link: Option[String], organisationId: Option[org.make.core.user.UserId], partnerKind: org.make.core.partner.PartnerKind, weight: Float): org.make.api.partner.UpdatePartnerRequest((name$macro$20 @ _), (logo$macro$21 @ _), (link$macro$22 @ _), (organisationId$macro$23 @ _), (partnerKind$macro$24 @ _), (weight$macro$25 @ _)) => ::.apply[String, Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil.type](name$macro$20, ::.apply[Option[String], Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil.type](logo$macro$21, ::.apply[Option[String], Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil.type](link$macro$22, ::.apply[Option[org.make.core.user.UserId], org.make.core.partner.PartnerKind :: Float :: shapeless.HNil.type](organisationId$macro$23, ::.apply[org.make.core.partner.PartnerKind, Float :: shapeless.HNil.type](partnerKind$macro$24, ::.apply[Float, shapeless.HNil.type](weight$macro$25, HNil)))))).asInstanceOf[String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil] }), ((x0$4: String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil) => x0$4 match { case (head: String, tail: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil): String :: Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil((name$macro$14 @ _), (head: Option[String], tail: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil): Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil((logo$macro$15 @ _), (head: Option[String], tail: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil): Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil((link$macro$16 @ _), (head: Option[org.make.core.user.UserId], tail: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil): Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil((organisationId$macro$17 @ _), (head: org.make.core.partner.PartnerKind, tail: Float :: shapeless.HNil): org.make.core.partner.PartnerKind :: Float :: shapeless.HNil((partnerKind$macro$18 @ _), (head: Float, tail: shapeless.HNil): Float :: shapeless.HNil((weight$macro$19 @ _), HNil)))))) => partner.this.UpdatePartnerRequest.apply(name$macro$14, logo$macro$15, link$macro$16, organisationId$macro$17, partnerKind$macro$18, weight$macro$19) })), hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("name"), String, (Symbol @@ String("logo")) :: (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil, Option[String] :: Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("logo"), Option[String], (Symbol @@ String("link")) :: (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil, Option[String] :: Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("link"), Option[String], (Symbol @@ String("organisationId")) :: (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil, Option[org.make.core.user.UserId] :: org.make.core.partner.PartnerKind :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("organisationId"), Option[org.make.core.user.UserId], (Symbol @@ String("partnerKind")) :: (Symbol @@ String("weight")) :: shapeless.HNil, org.make.core.partner.PartnerKind :: Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("partnerKind"), org.make.core.partner.PartnerKind, (Symbol @@ String("weight")) :: shapeless.HNil, Float :: shapeless.HNil, shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hconsZipWithKeys[Symbol @@ String("weight"), Float, shapeless.HNil, shapeless.HNil, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out](hlist.this.ZipWithKeys.hnilZipWithKeys, Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("weight")]](scala.Symbol.apply("weight").asInstanceOf[Symbol @@ String("weight")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("weight")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("partnerKind")]](scala.Symbol.apply("partnerKind").asInstanceOf[Symbol @@ String("partnerKind")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("partnerKind")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("organisationId")]](scala.Symbol.apply("organisationId").asInstanceOf[Symbol @@ String("organisationId")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("organisationId")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("link")]](scala.Symbol.apply("link").asInstanceOf[Symbol @@ String("link")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("link")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("logo")]](scala.Symbol.apply("logo").asInstanceOf[Symbol @@ String("logo")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("logo")]])), Witness.mkWitness[Symbol with shapeless.tag.Tagged[String("name")]](scala.Symbol.apply("name").asInstanceOf[Symbol @@ String("name")].asInstanceOf[Symbol with shapeless.tag.Tagged[String("name")]])), scala.this.<:<.refl[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]), shapeless.Lazy.apply[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]](anon$lazy$macro$27.this.inst$macro$26)).asInstanceOf[io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.UpdatePartnerRequest]]; <stable> <accessor> lazy val inst$macro$26: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ({ final class $anon extends io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] { def <init>(): <$anon: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]> = { $anon.super.<init>(); () }; private[this] val circeGenericDecoderForname: io.circe.Decoder[String] = circe.this.Decoder.decodeString; private[this] val circeGenericDecoderForlink: io.circe.Decoder[Option[String]] = circe.this.Decoder.decodeOption[String](circe.this.Decoder.decodeString); private[this] val circeGenericDecoderFororganisationId: io.circe.Decoder[Option[org.make.core.user.UserId]] = circe.this.Decoder.decodeOption[org.make.core.user.UserId](user.this.UserId.userIdDecoder); private[this] val circeGenericDecoderForpartnerKind: io.circe.Decoder[org.make.core.partner.PartnerKind] = partner.this.PartnerKind.circeDecoder; private[this] val circeGenericDecoderForweight: io.circe.Decoder[Float] = circe.this.Decoder.decodeFloat; final def apply(c: io.circe.HCursor): io.circe.Decoder.Result[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("name"), String, shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForname.tryDecode(c.downField("name")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("logo"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecode(c.downField("logo")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("link"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecode(c.downField("link")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("organisationId"), Option[org.make.core.user.UserId], shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFororganisationId.tryDecode(c.downField("organisationId")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("partnerKind"), org.make.core.partner.PartnerKind, shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForpartnerKind.tryDecode(c.downField("partnerKind")), ReprDecoder.consResults[io.circe.Decoder.Result, Symbol @@ String("weight"), Float, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForweight.tryDecode(c.downField("weight")), ReprDecoder.hnilResult)(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance))(io.circe.Decoder.resultInstance); final override def decodeAccumulating(c: io.circe.HCursor): io.circe.Decoder.AccumulatingResult[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out] = ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("name"), String, shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForname.tryDecodeAccumulating(c.downField("name")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("logo"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecodeAccumulating(c.downField("logo")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("link"), Option[String], shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForlink.tryDecodeAccumulating(c.downField("link")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("organisationId"), Option[org.make.core.user.UserId], shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderFororganisationId.tryDecodeAccumulating(c.downField("organisationId")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("partnerKind"), org.make.core.partner.PartnerKind, shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForpartnerKind.tryDecodeAccumulating(c.downField("partnerKind")), ReprDecoder.consResults[io.circe.Decoder.AccumulatingResult, Symbol @@ String("weight"), Float, shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]($anon.this.circeGenericDecoderForweight.tryDecodeAccumulating(c.downField("weight")), ReprDecoder.hnilResultAccumulating)(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance))(io.circe.Decoder.accumulatingResultInstance) }; new $anon() }: io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]).asInstanceOf[io.circe.generic.decoding.ReprDecoder[shapeless.labelled.FieldType[Symbol @@ String("name"),String] :: shapeless.labelled.FieldType[Symbol @@ String("logo"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("link"),Option[String]] :: shapeless.labelled.FieldType[Symbol @@ String("organisationId"),Option[org.make.core.user.UserId]] :: shapeless.labelled.FieldType[Symbol @@ String("partnerKind"),org.make.core.partner.PartnerKind] :: shapeless.labelled.FieldType[Symbol @@ String("weight"),Float] :: shapeless.ops.hlist.ZipWithKeys.hnilZipWithKeys.Out]] }; new anon$lazy$macro$27().inst$macro$1 }; shapeless.Lazy.apply[io.circe.generic.decoding.DerivedDecoder[org.make.api.partner.UpdatePartnerRequest]](inst$macro$28) })