All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.itv.scalapact.shared.PendingPactSettings.scala Maven / Gradle / Ivy

Go to download

Pact model ========== The model project is responsible for providing: * a model to represent pacts * serialization and deserialization * comparison between two parts of the pact model * conversion between the pact model and whatever third party libraries used by the pact-consumer and pact-provider requires You should never need to include this project directly

There is a newer version: 2.4.15
Show newest version
package com.itv.scalapact.shared

import java.time.OffsetDateTime

sealed trait PendingPactSettings {
  def enablePending: Boolean
  def includeWipPactsSince: Option[OffsetDateTime]
}

object PendingPactSettings {

  case object PendingDisabled extends PendingPactSettings {
    val enablePending: Boolean                       = false
    val includeWipPactsSince: Option[OffsetDateTime] = None
  }

  case object PendingEnabled extends PendingPactSettings {
    val enablePending: Boolean                       = true
    val includeWipPactsSince: Option[OffsetDateTime] = None
  }

  case class IncludeWipPacts(wipPactsSince: OffsetDateTime) extends PendingPactSettings {
    val enablePending: Boolean                       = true
    val includeWipPactsSince: Option[OffsetDateTime] = Some(wipPactsSince)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy