001package ca.cdr.api.model.enm;
002
003/*
004 * #%L
005 * Smile CDR - CDR
006 * %%
007 * Copyright (C) 2016 - 2024 Smile CDR, Inc.
008 * %%
009 * All rights reserved.
010 * #L%
011 */
012
013import org.apache.commons.text.CaseUtils;
014
015public enum TransactionLogOutcomeEnum {
016        /**
017         * DO NOT SORT
018         */
019        SUCCESS(true),
020        FAIL(false);
021
022        private final boolean mySuccess;
023
024        TransactionLogOutcomeEnum(boolean theSuccess) {
025                mySuccess = theSuccess;
026        }
027
028        public boolean isSuccess() {
029                return mySuccess;
030        }
031
032        public String toString() {
033                return CaseUtils.toCamelCase(this.name(), true);
034        }
035}