def failedUpdate()

in src/main/scala/payment_failure_comms/models/PaymentFailureRecordUpdate.scala [39:45]


  def failedUpdate(record: PaymentFailureRecord): PaymentFailureRecordUpdate = {
    PaymentFailureRecordUpdate(
      Id = record.Id,
      PF_Comms_Last_Stage_Processed__c = record.PF_Comms_Last_Stage_Processed__c,
      PF_Comms_Number_of_Attempts__c = record.PF_Comms_Number_of_Attempts__c.getOrElse(0) + 1
    )
  }