Skip to content

Commit

Permalink
enums
Browse files Browse the repository at this point in the history
  • Loading branch information
joshtynjala committed Aug 26, 2022
1 parent 0256856 commit 0769756
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions src/feathers/validators/CreditCardValidatorCardType.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package feathers.validators;
@see `feathers.validators.CreditCardValidator`
**/
final class CreditCardValidatorCardType {
@:enum abstract CreditCardValidatorCardType(String) from String to String {
//--------------------------------------------------------------------------
//
// Class constants
Expand All @@ -35,25 +35,25 @@ final class CreditCardValidatorCardType {
/**
Specifies the card type as MasterCard.
**/
public static final MASTER_CARD:String = "MasterCard";
public var MASTER_CARD = "MasterCard";

/**
Specifies the card type as Visa.
**/
public static final VISA:String = "Visa";
public var VISA = "Visa";

/**
Specifies the card type as American Express.
**/
public static final AMERICAN_EXPRESS:String = "American Express";
public var AMERICAN_EXPRESS = "American Express";

/**
Specifies the card type as Discover.
**/
public static final DISCOVER:String = "Discover";
public var DISCOVER = "Discover";

/**
Specifies the card type as Diners Club.
**/
public static final DINERS_CLUB:String = "Diners Club";
public var DINERS_CLUB = "Diners Club";
}
8 changes: 4 additions & 4 deletions src/feathers/validators/CurrencyValidatorAlignSymbol.hx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ package feathers.validators;
@see `feathers.validators.CurrencyValidator`
**/
final class CurrencyValidatorAlignSymbol {
@:enum abstract CurrencyValidatorAlignSymbol(String) from String to String {
//--------------------------------------------------------------------------
//
// Class constants
Expand All @@ -36,17 +36,17 @@ final class CurrencyValidatorAlignSymbol {
Specifies `"any"` as the alignment of the currency symbol
for the CurrencyValidator class.
**/
public static final ANY:String = "any";
public var ANY = "any";

/**
Specifies `"left"` as the alignment of the currency symbol
for the CurrencyValidator class.
**/
public static final LEFT:String = "left";
public var LEFT = "left";

/**
Specifies `"right"` as the alignment of the currency symbol
for the CurrencyValidator class.
**/
public static final RIGHT:String = "right";
public var RIGHT = "right";
}
6 changes: 3 additions & 3 deletions src/feathers/validators/NumberValidatorDomainType.hx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ package feathers.validators;
@see `feathers.validators.NumberValidator`
**/
final class NumberValidatorDomainType {
@:enum abstract NumberValidatorDomainType(String) from String to String {
//--------------------------------------------------------------------------
//
// Class constants
Expand All @@ -33,10 +33,10 @@ final class NumberValidatorDomainType {
/**
* Specifies to validate an integer number.
**/
public static final INT:String = "int";
public var INT = "int";

/**
Specifies to validate a real number.
**/
public static final REAL:String = "real";
public var REAL = "real";
}
8 changes: 4 additions & 4 deletions src/feathers/validators/ZipCodeValidatorDomainType.hx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ package feathers.validators;
@see `feathers.validators.ZipCodeValidator`
**/
final class ZipCodeValidatorDomainType {
@:enum abstract ZipCodeValidatorDomainType(String) from String to String {
//--------------------------------------------------------------------------
//
// Class constants
Expand All @@ -34,15 +34,15 @@ final class ZipCodeValidatorDomainType {
/**
Specifies to validate a United States or Canadian ZIP code.
**/
public static final US_OR_CANADA:String = "US or Canada";
public var US_OR_CANADA = "US or Canada";

/**
Specifies to validate a United States ZIP code.
**/
public static final US_ONLY:String = "US Only";
public var US_ONLY = "US Only";

/**
Specifies to validate a Canadian ZIP code.
**/
public static final CANADA_ONLY:String = "Canada Only";
public var CANADA_ONLY = "Canada Only";
}

0 comments on commit 0769756

Please sign in to comment.