Rules List - rhizamae/checkout GitHub Wiki

Rules

Rule Description
alphanumeric Can be a combination of alphabetical and numerical characters.
array_of_dictionary Must be an Array of objects.
array Must be an Array type.
blank Cannot be an empty String, Array or Hash.
boolean Must be of boolean type.
bps In BPS format e.g. bps_
business_category Must be a valid business category (MCC) .e.g 4511.
business_handle Must be alphanumeric.
business_type Must be a valid business type .e.g corporation.
card_exp_month Must be valid numeric month.
card_exp_year Card expiration must be at least this year or no later than 50 years from now.
card_expiration Checks if card is already expired.
card_number Must be a valid card number.
confirm_password
country Must be a valid country .e.g PH.
currency Must be a valid currency e.g. PHP.
date Checks if value is a valid date in YYYY-MM-DD format.
date_format Checks if value is in YYYY-MM-DD format.
dictionary Must be a Hash.
digit Must be a number.
duplicate Checks for duplicate values on an array. This is accurate only for scalar values.
email Must be a valid email.
in Value must be on the provided list.
integer Must be an Integer type.
luhn Must pass the luhn algorithm.
max Maximum integer value allowed.
max_date Maximum date allowed.
max_length Maximum number of characters allowed.
min Minimum integer value allowed.
min_length Minimum number of characters allowed.
not_in Value should not be on the provided list.
regex Checks if value is valid using the provided regex.
required_by Checks if value is required by other params.
required Value should not be nil.
string Must be a String data type.
url Must be a valid URL.