toValue method
Implementation
String toValue() {
switch (this) {
case CreateAccountFailureReason.accountLimitExceeded:
return 'ACCOUNT_LIMIT_EXCEEDED';
case CreateAccountFailureReason.emailAlreadyExists:
return 'EMAIL_ALREADY_EXISTS';
case CreateAccountFailureReason.invalidAddress:
return 'INVALID_ADDRESS';
case CreateAccountFailureReason.invalidEmail:
return 'INVALID_EMAIL';
case CreateAccountFailureReason.concurrentAccountModification:
return 'CONCURRENT_ACCOUNT_MODIFICATION';
case CreateAccountFailureReason.internalFailure:
return 'INTERNAL_FAILURE';
case CreateAccountFailureReason.govcloudAccountAlreadyExists:
return 'GOVCLOUD_ACCOUNT_ALREADY_EXISTS';
case CreateAccountFailureReason.missingBusinessValidation:
return 'MISSING_BUSINESS_VALIDATION';
case CreateAccountFailureReason.missingPaymentInstrument:
return 'MISSING_PAYMENT_INSTRUMENT';
}
}