/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.2-dev * User agent: apibuilder app.apibuilder.io/mard/mard2p-api/0.0.2-dev/scalacheck */ package payp.mard2p.api.v0.models.scalacheck import org.scalacheck.{Arbitrary, Gen} object Mard2pAPIScalaCheck extends Mard2pAPIScalaCheck { 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 Mard2pAPIScalaCheck extends io.apibuilder.common.v0.models.scalacheck.ApibuilderCommonScalaCheck with io.apibuilder.generator.v0.models.scalacheck.ApibuilderGeneratorScalaCheck with io.apibuilder.spec.v0.models.scalacheck.ApibuilderSpecScalaCheck { implicit def arbitraryJodaDateTime: Arbitrary[_root_.org.joda.time.DateTime] implicit def arbitraryPlayJsObject: Arbitrary[_root_.play.api.libs.json.JsObject] implicit def arbitraryAccount: Arbitrary[payp.mard2p.api.v0.models.Account] = Arbitrary(genAccount) def genAccount: Gen[payp.mard2p.api.v0.models.Account] = for { accountid <- Arbitrary.arbitrary[Long] ownerid <- Arbitrary.arbitrary[String] totalAmount <- Arbitrary.arbitrary[Double] currency <- Arbitrary.arbitrary[String] sold <- Arbitrary.arbitrary[Double] debit <- Arbitrary.arbitrary[Double] } yield payp.mard2p.api.v0.models.Account(accountid, ownerid, totalAmount, currency, sold, debit) implicit def arbitraryAccountForm: Arbitrary[payp.mard2p.api.v0.models.AccountForm] = Arbitrary(genAccountForm) def genAccountForm: Gen[payp.mard2p.api.v0.models.AccountForm] = for { accountid <- Arbitrary.arbitrary[Long] ownerid <- Arbitrary.arbitrary[String] totalAmount <- Arbitrary.arbitrary[_root_.scala.Option[Double]] sold <- Arbitrary.arbitrary[Double] debit <- Arbitrary.arbitrary[_root_.scala.Option[Double]] currency <- Arbitrary.arbitrary[String] } yield payp.mard2p.api.v0.models.AccountForm(accountid, ownerid, totalAmount, sold, debit, currency) implicit def arbitraryDeposit: Arbitrary[payp.mard2p.api.v0.models.Deposit] = Arbitrary(genDeposit) def genDeposit: Gen[payp.mard2p.api.v0.models.Deposit] = for { depid <- Arbitrary.arbitrary[Long] paymentid <- Arbitrary.arbitrary[Long] } yield payp.mard2p.api.v0.models.Deposit(depid, paymentid) implicit def arbitraryPayment: Arbitrary[payp.mard2p.api.v0.models.Payment] = Arbitrary(genPayment) def genPayment: Gen[payp.mard2p.api.v0.models.Payment] = for { payid <- Arbitrary.arbitrary[Long] actorid <- Arbitrary.arbitrary[String] amount <- Arbitrary.arbitrary[Double] refAccountid <- Arbitrary.arbitrary[Long] paymentMethod <- Arbitrary.arbitrary[String] operatorid <- Arbitrary.arbitrary[String] phone <- Arbitrary.arbitrary[Long] pin <- Arbitrary.arbitrary[Int] currency <- Arbitrary.arbitrary[String] paymentContext <- Arbitrary.arbitrary[String] } yield payp.mard2p.api.v0.models.Payment( payid, actorid, amount, refAccountid, paymentMethod, operatorid, phone, pin, currency, paymentContext ) implicit def arbitraryPaymentForm: Arbitrary[payp.mard2p.api.v0.models.PaymentForm] = Arbitrary(genPaymentForm) def genPaymentForm: Gen[payp.mard2p.api.v0.models.PaymentForm] = for { payid <- Arbitrary.arbitrary[Long] actorid <- Arbitrary.arbitrary[String] amount <- Arbitrary.arbitrary[Double] refAccountid <- Arbitrary.arbitrary[Long] paymentMethod <- Arbitrary.arbitrary[String] operatorid <- Arbitrary.arbitrary[String] phone <- Arbitrary.arbitrary[Long] pin <- Arbitrary.arbitrary[Int] currency <- Arbitrary.arbitrary[String] paymentContext <- Arbitrary.arbitrary[String] } yield payp.mard2p.api.v0.models.PaymentForm( payid, actorid, amount, refAccountid, paymentMethod, operatorid, phone, pin, currency, paymentContext ) implicit def arbitraryTransfer: Arbitrary[payp.mard2p.api.v0.models.Transfer] = Arbitrary(genTransfer) def genTransfer: Gen[payp.mard2p.api.v0.models.Transfer] = for { transferid <- Arbitrary.arbitrary[Long] senderid <- Arbitrary.arbitrary[String] amount <- Arbitrary.arbitrary[Double] refAccountidReceiver <- Arbitrary.arbitrary[Long] refAccountidSender <- Arbitrary.arbitrary[Long] currency <- Arbitrary.arbitrary[String] } yield payp.mard2p.api.v0.models.Transfer( transferid, senderid, amount, refAccountidReceiver, refAccountidSender, currency ) implicit def arbitraryTransferForm: Arbitrary[payp.mard2p.api.v0.models.TransferForm] = Arbitrary(genTransferForm) def genTransferForm: Gen[payp.mard2p.api.v0.models.TransferForm] = for { transferid <- Arbitrary.arbitrary[Long] senderid <- Arbitrary.arbitrary[String] amount <- Arbitrary.arbitrary[Double] refAccountidReceiver <- Arbitrary.arbitrary[Long] refAccountidSender <- Arbitrary.arbitrary[Long] currency <- Arbitrary.arbitrary[String] } yield payp.mard2p.api.v0.models.TransferForm( transferid, senderid, amount, refAccountidReceiver, refAccountidSender, currency ) implicit def arbitraryValidation: Arbitrary[payp.mard2p.api.v0.models.Validation] = Arbitrary(genValidation) def genValidation: Gen[payp.mard2p.api.v0.models.Validation] = for { valid <- Arbitrary.arbitrary[Boolean] errors <- Arbitrary.arbitrary[Seq[String]] } yield payp.mard2p.api.v0.models.Validation(valid, errors) implicit def arbitraryWithdraw: Arbitrary[payp.mard2p.api.v0.models.Withdraw] = Arbitrary(genWithdraw) def genWithdraw: Gen[payp.mard2p.api.v0.models.Withdraw] = for { wdwid <- Arbitrary.arbitrary[Long] paymentid <- Arbitrary.arbitrary[Long] } yield payp.mard2p.api.v0.models.Withdraw(wdwid, paymentid) implicit def arbitraryAppSortBy: Arbitrary[payp.mard2p.api.v0.models.AppSortBy] = Arbitrary(genAppSortBy) def genAppSortBy: Gen[payp.mard2p.api.v0.models.AppSortBy] = Gen.oneOf(payp.mard2p.api.v0.models.AppSortBy.Created, payp.mard2p.api.v0.models.AppSortBy.Edited) implicit def arbitraryOriginalType: Arbitrary[payp.mard2p.api.v0.models.OriginalType] = Arbitrary(genOriginalType) def genOriginalType: Gen[payp.mard2p.api.v0.models.OriginalType] = payp.mard2p.api.v0.models.OriginalType.ApiJson implicit def arbitraryPublication: Arbitrary[payp.mard2p.api.v0.models.Publication] = Arbitrary(genPublication) def genPublication: Gen[payp.mard2p.api.v0.models.Publication] = Gen.oneOf( payp.mard2p.api.v0.models.Publication.MembershipRequestsCreate, payp.mard2p.api.v0.models.Publication.MembershipsCreate, payp.mard2p.api.v0.models.Publication.ApplicationsCreate, payp.mard2p.api.v0.models.Publication.VersionsCreate ) implicit def arbitrarySortOrder: Arbitrary[payp.mard2p.api.v0.models.SortOrder] = Arbitrary(genSortOrder) def genSortOrder: Gen[payp.mard2p.api.v0.models.SortOrder] = Gen.oneOf(payp.mard2p.api.v0.models.SortOrder.Asc, payp.mard2p.api.v0.models.SortOrder.Desc) implicit def arbitraryVisibility: Arbitrary[payp.mard2p.api.v0.models.Visibility] = Arbitrary(genVisibility) def genVisibility: Gen[payp.mard2p.api.v0.models.Visibility] = payp.mard2p.api.v0.models.Visibility.Public }