aboutsummaryrefslogblamecommitdiff
path: root/src/main/scala/xyz/driver/pdsuidomain/entities/RecordRequestId.scala
blob: 5df87c21d89c160e9c8bceb660c1de2bc97aad4b (plain) (tree)
1
2
3
4
5
6
                                       

                     
                                       
 
                                            








                                                                        
package xyz.driver.pdsuidomain.entities

import java.util.UUID
import xyz.driver.pdsuicommon.logging._

final case class RecordRequestId(id: UUID) {
  override def toString: String = id.toString
}

object RecordRequestId {

  def apply() = new RecordRequestId(UUID.randomUUID())

  implicit def toPhiString(x: RecordRequestId): PhiString = phi"${x.id}"
}