package models
import (
    "errors"
)
// Provides operations to manage the collection of agreement entities.
type ManagedAppPinCharacterSet int

const (
    // Numeric characters
    NUMERIC_MANAGEDAPPPINCHARACTERSET ManagedAppPinCharacterSet = iota
    // Alphanumeric and symbolic characters
    ALPHANUMERICANDSYMBOL_MANAGEDAPPPINCHARACTERSET
)

func (i ManagedAppPinCharacterSet) String() string {
    return []string{"numeric", "alphanumericAndSymbol"}[i]
}
func ParseManagedAppPinCharacterSet(v string) (interface{}, error) {
    result := NUMERIC_MANAGEDAPPPINCHARACTERSET
    switch v {
        case "numeric":
            result = NUMERIC_MANAGEDAPPPINCHARACTERSET
        case "alphanumericAndSymbol":
            result = ALPHANUMERICANDSYMBOL_MANAGEDAPPPINCHARACTERSET
        default:
            return 0, errors.New("Unknown ManagedAppPinCharacterSet value: " + v)
    }
    return &result, nil
}
func SerializeManagedAppPinCharacterSet(values []ManagedAppPinCharacterSet) []string {
    result := make([]string, len(values))
    for i, v := range values {
        result[i] = v.String()
    }
    return result
}
