760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
|
# File 'lib/XMLFields.rb', line 760
def self.from_hash(hash, name='cardPaypage')
base = hash[name]
if(base)
this = CardPaypage.new
this. = base['paypageRegistrationId']
this.expDate = base['expDate']
this.cardValidationNum = base['cardValidationNum']
this.mop = base['type']
SchemaValidation.validate_length(this., true, 1, 512, name, 'paypageRegistrationId')
SchemaValidation.validate_length(this.expDate, false, 4, 4, name, 'expDate')
SchemaValidation.validate_length(this.cardValidationNum, false, 1, 4, name, 'cardValidationNum')
SchemaValidation.validate_enum(this.mop, false, ['','MC','VI','AX','DC','DI','PP','JC','BL','EC'], name, 'type')
this
else
nil
end
end
|