/** * Generated by API Builder - https://www.apibuilder.io * Service version: 1.1.0 * User agent: apibuilder app.apibuilder.io/hbc/api-product-recommendations-lat/1.1.0/scalacheck */ package com.hbc.api.product.recommendations.lat.v1.models.scalacheck import org.scalacheck.{Arbitrary, Gen} object ApiProductRecommendationsLatScalaCheck extends ApiProductRecommendationsLatScalaCheck { implicit def arbitraryJodaDateTime: Arbitrary[_root_.org.joda.time.DateTime] = Arbitrary(genJodaDateTime) def genJodaDateTime: Gen[_root_.org.joda.time.DateTime] = Gen.posNum[Long].map(instant => new _root_.org.joda.time.DateTime(instant)) implicit def arbitraryPlayJsObject: Arbitrary[_root_.play.api.libs.json.JsObject] = Arbitrary(genPlayJsObject) def genPlayJsObject: Gen[_root_.play.api.libs.json.JsObject] = Gen.const(_root_.play.api.libs.json.JsObject.empty) } trait ApiProductRecommendationsLatScalaCheck { implicit def arbitraryJodaDateTime: Arbitrary[_root_.org.joda.time.DateTime] implicit def arbitraryPlayJsObject: Arbitrary[_root_.play.api.libs.json.JsObject] implicit def arbitraryPrice: Arbitrary[com.hbc.api.product.recommendations.lat.v1.models.Price] = Arbitrary(genPrice) def genPrice: Gen[com.hbc.api.product.recommendations.lat.v1.models.Price] = for { was <- Arbitrary.arbitrary[String] now <- Arbitrary.arbitrary[String] onSale <- Arbitrary.arbitrary[Boolean] } yield com.hbc.api.product.recommendations.lat.v1.models.Price(was, now, onSale) implicit def arbitraryRecommendation: Arbitrary[com.hbc.api.product.recommendations.lat.v1.models.Recommendation] = Arbitrary(genRecommendation) def genRecommendation: Gen[com.hbc.api.product.recommendations.lat.v1.models.Recommendation] = for { productId <- Arbitrary.arbitrary[String] productName <- Arbitrary.arbitrary[String] productUrl <- Arbitrary.arbitrary[String] productImageUrl <- Arbitrary.arbitrary[String] brandName <- Arbitrary.arbitrary[String] price <- Arbitrary.arbitrary[com.hbc.api.product.recommendations.lat.v1.models.Price] rating <- Arbitrary.arbitrary[_root_.scala.Option[Double]] numReviews <- Arbitrary.arbitrary[_root_.scala.Option[Long]] } yield com.hbc.api.product.recommendations.lat.v1.models .Recommendation(productId, productName, productUrl, productImageUrl, brandName, price, rating, numReviews) implicit def arbitrarySimilarProductRecommendation : Arbitrary[com.hbc.api.product.recommendations.lat.v1.models.SimilarProductRecommendation] = Arbitrary(genSimilarProductRecommendation) def genSimilarProductRecommendation : Gen[com.hbc.api.product.recommendations.lat.v1.models.SimilarProductRecommendation] = for { recommendations <- Arbitrary.arbitrary[Seq[com.hbc.api.product.recommendations.lat.v1.models.Recommendation]] } yield com.hbc.api.product.recommendations.lat.v1.models.SimilarProductRecommendation(recommendations) implicit def arbitrarySimilarProductContext : Arbitrary[com.hbc.api.product.recommendations.lat.v1.models.SimilarProductContext] = Arbitrary(genSimilarProductContext) def genSimilarProductContext: Gen[com.hbc.api.product.recommendations.lat.v1.models.SimilarProductContext] = com.hbc.api.product.recommendations.lat.v1.models.SimilarProductContext.Pdp }