262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
|
# File 'lib/XMLFields.rb', line 262
def self.from_hash(hash, name='billMeLaterRequest')
base = hash[name]
if(base)
this = BillMeLaterRequest.new
this.bmlMerchantId = base['bmlMerchantId']
this.bmlProductType = base['bmlProductType']
this.termsAndConditions = base['termsAndConditions']
this.preapprovalNumber = base['preapprovalNumber']
this.merchantPromotionalCode = base['merchantPromotionalCode']
this.customerPasswordChanged = base['customerPasswordChanged']
this.customerBillingAddressChanged = base['customerBillingAddressChanged']
this.customerEmailChanged = base['customerEmailChanged']
this.customerPhoneChanged = base['customerPhoneChanged']
this.secretQuestionCode = base['secretQuestionCode']
this.secretQuestionAnswer = base['secretQuestionAnswer']
this.virtualAuthenticationKeyPresenceIndicator = base['virtualAuthenticationKeyPresenceIndicator']
this.virtualAuthenticationKeyData = base['virtualAuthenticationKeyData']
this.itemCategoryCode = base['itemCategoryCode']
this.authorizationSourcePlatform = base['authorizationSourcePlatform']
SchemaValidation.validate_long(this.bmlMerchantId, false, name, 'bmlMerchantId')
SchemaValidation.validate_length(this.bmlProductType, false, 1, 2, name, "bmlProductType")
SchemaValidation.validate_size(this.termsAndConditions, false, -99999, 99999, name, 'termsAndConditions')
SchemaValidation.validate_length(this.preapprovalNumber, false, 13, 25, name, "preapprovalNumber")
SchemaValidation.validate_size(this.merchantPromotionalCode, false, -9999, 9999, name, 'merchantPromotionalCode')
SchemaValidation.validate_boolean(this.customerPasswordChanged, false, name, 'customerPasswordChanged')
SchemaValidation.validate_boolean(this.customerBillingAddressChanged, false, name, 'customerBillingAddressChanged')
SchemaValidation.validate_boolean(this.customerEmailChanged, false, name, 'customerEmailChanged')
SchemaValidation.validate_boolean(this.customerPhoneChanged, false, name, 'customerPhoneChanged')
SchemaValidation.validate_length(this.secretQuestionCode, false, 1, 2, name, "secretQuestionCode")
SchemaValidation.validate_length(this.secretQuestionAnswer, false, 1, 25, name, "secretQuestionAnswer")
SchemaValidation.validate_length(this.virtualAuthenticationKeyPresenceIndicator, false, 1, 1, name, "virtualAuthenticationKeyPresenceIndicator")
SchemaValidation.validate_length(this.virtualAuthenticationKeyData, false, 1, 4, name, "virtualAuthenticationKeyData")
SchemaValidation.validate_size(this.itemCategoryCode, false, -9999, 9999, name, 'itemCategoryCode')
this
else
nil
end
end
|