The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

DESCRIPTION

Used by WWW::betfair to provide type checking for parameters passed to the betfair API. Includes betfair's enumerated types.

new

Returns a new WWW::betfair::Type object. Requires no parameters.

checkParameter

Receives a parameter and parameter type and executes the appropriate check method for that type.

checkAccountStatementEnum

Checks submitted value is a valid betfair enumerated type, see accountStatementEnum for details.

checkAccountStatementIncludeEnum

Checks submitted value is a valid betfair enumerated type, see accountStatementIncludeEnum for details.

checkAccountStatusEnum

Checks submitted value is a valid betfair enumerated type, see accountStatusEnum.

checkAccountTypeEnum

Checks submitted value is a valid betfair enumerated type, see accountTypeEnum for details.

checkBetCategoryTypeEnum

Checks submitted value is a valid betfair enumerated type, see betCategoryTypeEnum for details.

checkBetPersistenceTypeEnum

Checks submitted value is a valid betfair enumerated type, see betPersistenceTypeEnum for details.

checkBetsOrderByEnum

Checks submitted value is a valid betfair enumerated type, see betsOrderByEnum for details.

checkBetStatusEnum

Checks submitted value is a valid betfair enumerated type, see betStatusEnum for details.

checkBetTypeEnum

Checks submitted value is a valid betfair enumerated type, see betTypeEnum for details.

checkBillingPeriodEnum

Checks submitted value is a valid betfair enumerated type, see billingPeriodEnum for details.

checkCardTypeEnum

Checks submitted value is a valid betfair enumerated type, see cardTypeEnum for details.

checkGamcareLimitFreqEnum

Checks submitted value is a valid betfair enumerated type, see gamcareLimitFreqEnum for details.

checkGenderEnum

Checks submitted value is a valid betfair enumerated type, see genderEnum for details.

checkMarketStatusEnum

Checks submitted value is a valid betfair enumerated type, see marketStatusEnum for details.

checkMarketTypeEnum

Checks submitted value is a valid betfair enumerated type, see marketTypeEnum for details.

checkArrayMarketTypeEnum

Checks the argument is a non-null arrayref containing only valid marketTypeEnum values.

checkMarketTypeVariantEnum

Checks submitted value is a valid betfair enumerated type, see marketTypeVariantEnum for details.

checkPaymentCardStatusEnum

Checks submitted value is a valid betfair enumerated type, see paymentCardStatusEnum.

checkRegionEnum

Checks submitted value is a valid betfair enumerated type, see regionEnum for details.

checkSecurityQuestion1Enum

Checks submitted value is a valid betfair enumerated type, see securityQuestion1Enum for details.

checkSecurityQuestion2Enum

Checks submitted value is a valid betfair enumerated type, see securityQuestion2Enum for details.

checkServiceEnum

Checks submitted value is a valid betfair enumerated type, see serviceEnum.

checkSortOrderEnum

Checks submitted value is a valid betfair enumerated type, see sortOrderEnum for details.

checkSubscriptionStatusEnum

Checks submitted value is a valid betfair enumerated type, see subscriptionStatusEnum for details.

checkTitleEnum

Checks submitted value is a valid betfair enumerated type, see titleEnum for details.

checkValidationErrorsEnum

Checks submitted value is a valid betfair enumerated type, see validationErrorsEnum for details.

checkDecimal

Checks the value submitted is a decimal number. Accepts whole numbers with no decimal point and negative numbers with a leading minus ('-').

checkExchangeId

Checks the exchange id is either 1 (UK), 2 (Australian) or 3 (Global),

checkCurrencyCode

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 ('-').

checkInt

Checks the value submitted is a whole number. Accepts negative numbers with a leading minus ('-').

checkArrayInt

Checks that the argument is a non-null arrayref containing only integers as defined by the checkInt method.

checkUsername

Checks the username is between 8-20 characters and contains only letters and numbers.

checkPassword

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.

checkDate

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'

checkBoolean

Checks that value is of a valid boolean type: a string value of either 'true' or 'false'.

checkString

Checks that the value is a string with a non-zero length.

checkHash

Checks that the argument is a hash.

checkString9

Checks that the value is a string with a non-zero length that is less than 10 characters.

checkCardDate

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).

checkCv2

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).