本文整理匯總了TypeScript中eligibility/model/eligibilityCheck.notEligible函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript notEligible函數的具體用法?TypeScript notEligible怎麽用?TypeScript notEligible使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。
在下文中一共展示了notEligible函數的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: checkEligibility
checkEligibility (value: ClaimType): EligibilityCheck {
switch (value) {
case ClaimType.PERSONAL_CLAIM:
return eligible()
case ClaimType.MULTIPLE_CLAIM:
return notEligible(NotEligibleReason.MULTIPLE_CLAIMANTS)
case ClaimType.REPRESENTATIVE_CLAIM:
return notEligible(NotEligibleReason.CLAIM_ON_BEHALF)
default:
throw new Error(`Unexpected ClaimType: ${value.option}`)
}
}
示例2: checkEligibility
checkEligibility (value: ClaimValue): EligibilityCheck {
switch (value) {
case ClaimValue.NOT_KNOWN:
return notEligible(NotEligibleReason.CLAIM_VALUE_NOT_KNOWN)
case ClaimValue.OVER_10000:
return notEligible(NotEligibleReason.CLAIM_VALUE_OVER_10000)
case ClaimValue.UNDER_10000:
return eligible()
default:
throw new Error(`Unexpected claim value: ${value.option}`)
}
}
示例3: checkEligibility
checkEligibility (value: DefendantAgeOption): EligibilityCheck {
switch (value) {
case DefendantAgeOption.YES:
return eligible()
case DefendantAgeOption.COMPANY_OR_ORGANISATION:
return eligible()
case DefendantAgeOption.NO:
return notEligible(NotEligibleReason.UNDER_18_DEFENDANT)
default:
throw new Error(`Unexpected claim value: ${value.option}`)
}
}
示例4: checkEligibility
checkEligibility (value: YesNoOption): EligibilityCheck {
return value === YesNoOption.YES ? eligible() : notEligible(NotEligibleReason.DEFENDANT_ADDRESS)
}
示例5: checkEligibility
checkEligibility (value: YesNoOption): EligibilityCheck {
return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.HELP_WITH_FEES)
}
示例6: checkEligibility
checkEligibility (value: YesNoOption): EligibilityCheck {
return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.CLAIM_IS_FOR_TENANCY_DEPOSIT)
}
示例7: checkEligibility
checkEligibility (value: YesNoOption): EligibilityCheck {
return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.GOVERNMENT_DEPARTMENT)
}
示例8: checkEligibility
checkEligibility (value: YesNoOption): EligibilityCheck {
return value === YesNoOption.NO ? eligible() : notEligible(NotEligibleReason.MULTIPLE_DEFENDANTS)
}
示例9: checkEligibility
checkEligibility (value: YesNoOption): EligibilityCheck {
return value === YesNoOption.YES ? eligible() : notEligible(NotEligibleReason.UNDER_18)
}