import { Enumify } from 'enumify' export class WyreErrorType extends Enumify { static AccessDeniedException = new WyreErrorType() static AccountLockedException = new WyreErrorType() static CustomerSupportException = new WyreErrorType() static InsufficientFundsException = new WyreErrorType() static LockoutException = new WyreErrorType() static MFARequiredException = new WyreErrorType() static NotFoundException = new WyreErrorType() static RateLimitException = new WyreErrorType() static TransferException = new WyreErrorType() static OrderTooLargeException = new WyreErrorType() static UnknownException = new WyreErrorType() static ValidationException = new WyreErrorType() static _ = WyreErrorType.closeEnum() static fromErrorString(errorString: string): any { const value = WyreErrorType.enumValueOf(errorString) if (value) { return { wyreErrorType: value as WyreErrorType } } return { wyreErrorType: WyreErrorType.UnknownException, typeAsString: errorString } } errorCode() { return this.enumOrdinal } errorDesc(): string { return this.enumKey } toString(): string { return this.enumKey } }