308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
|
# File 'lib/XMLFields.rb', line 308
def self.from_hash(hash, name='fraudCheck')
base = hash[name]
if(base)
this = FraudCheck.new
this.authenticationValue = base['authenticationValue']
this.authenticationTransactionId = base['authenticationTransactionId']
this.customerIpAddress = base['customerIpAddress']
this.authenticatedByMerchant = base['authenticatedByMerchant']
SchemaValidation.validate_length(this.authenticationValue, false, 1, 56, name, "authenticationValue")
SchemaValidation.validate_length(this.authenticationTransactionId, false, 1, 28, name, "authenticationTransactionId")
SchemaValidation.validate_regex(this.customerIpAddress, false, /\A(\d{1,3}.){3}\d{1,3}\Z/, name, 'customerIpAddress')
SchemaValidation.validate_boolean(this.authenticatedByMerchant, false, name, 'authenticatedByMerchant')
this
else
nil
end
end
|