Used by WWW::betfair to provide type checking for parameters passed to the betfair API. Includes betfair's enumerated types.
Returns a new WWW::betfair::Type object. Requires no parameters.
Receives a parameter and parameter type and executes the appropriate check method for that type.
Checks submitted value is a valid betfair enumerated type, see accountStatementEnum for details.
Checks submitted value is a valid betfair enumerated type, see accountStatementIncludeEnum for details.
Checks submitted value is a valid betfair enumerated type, see accountStatusEnum.
Checks submitted value is a valid betfair enumerated type, see accountTypeEnum for details.
Checks submitted value is a valid betfair enumerated type, see betCategoryTypeEnum for details.
Checks submitted value is a valid betfair enumerated type, see betPersistenceTypeEnum for details.
Checks submitted value is a valid betfair enumerated type, see betsOrderByEnum for details.
Checks submitted value is a valid betfair enumerated type, see betStatusEnum for details.
Checks submitted value is a valid betfair enumerated type, see betTypeEnum for details.
Checks submitted value is a valid betfair enumerated type, see billingPeriodEnum for details.
Checks submitted value is a valid betfair enumerated type, see cardTypeEnum for details.
Checks submitted value is a valid betfair enumerated type, see gamcareLimitFreqEnum for details.
Checks submitted value is a valid betfair enumerated type, see genderEnum for details.
Checks submitted value is a valid betfair enumerated type, see marketStatusEnum for details.
Checks submitted value is a valid betfair enumerated type, see marketTypeEnum for details.
Checks the argument is a non-null arrayref containing only valid marketTypeEnum values.
Checks submitted value is a valid betfair enumerated type, see marketTypeVariantEnum for details.
Checks submitted value is a valid betfair enumerated type, see paymentCardStatusEnum.
Checks submitted value is a valid betfair enumerated type, see regionEnum for details.
Checks submitted value is a valid betfair enumerated type, see securityQuestion1Enum for details.
Checks submitted value is a valid betfair enumerated type, see securityQuestion2Enum for details.
Checks submitted value is a valid betfair enumerated type, see serviceEnum.
Checks submitted value is a valid betfair enumerated type, see sortOrderEnum for details.
Checks submitted value is a valid betfair enumerated type, see subscriptionStatusEnum for details.
Checks submitted value is a valid betfair enumerated type, see titleEnum for details.
Checks submitted value is a valid betfair enumerated type, see validationErrorsEnum for details.
Checks the value submitted is a decimal number. Accepts whole numbers with no decimal point and negative numbers with a leading minus ('-').
Checks the exchange id is either 1 (UK), 2 (Australian) or 3 (Global),
Checks the value submitted is a valid currency code accepted by betfair (e.g. 'EUR', 'GBP', 'CAD'). Accepts whole numbers with no decimal point and negative numbers with a leading minus ('-').
Checks the value submitted is a whole number. Accepts negative numbers with a leading minus ('-').
Checks that the argument is a non-null arrayref containing only integers as defined by the checkInt method.
Checks the username is between 8-20 characters and contains only letters and numbers.
Checks password is between 8-20 characters. No further checking is done as the password is encrypted. The actual betfair rules are alphanumeric characters plus these valid symbols: $!?()*+,:;=@_./-[]{} with the total length between 8-20 characters.
Checks date follows the XML datetime specification. Note that betfair will only accept datetimes not date values and it must be passed as a string. Some valid examples:
# standard datetime '2013-01-18T12:30:58' # datetime with UTC timezone '2013-01-18T12:30:58Z' # datetime with -5hrs timezone '2013-01-18T12:30:58-05:00' # datetime with +6hrs timezone '2013-01-18T12:30:58+06:00'
Checks that value is of a valid boolean type: a string value of either 'true' or 'false'.
Checks that the value is a string with a non-zero length.
Checks that the argument is a hash.
Checks that the value is a string with a non-zero length that is less than 10 characters.
Checks for a number containing exactly 4 digits. If the number begins with 0, it must be quoted (else Perl will remove the leading 0).
Checks for a number containing exactly 3 digits. If the number begins with 0, it must be quoted (else Perl will remove the leading 0).
To install WWW::betfair, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WWW::betfair
CPAN shell
perl -MCPAN -e shell install WWW::betfair
For more information on module installation, please visit the detailed CPAN module installation guide.