Class: LitleOnline::LitleInternalRecurringRequest

Inherits:
Object
  • Object
show all
Includes:
XML::Mapping
Defined in:
lib/XMLFields.rb

Class Method Summary collapse

Class Method Details

.from_hash(hash, name = "litleInternalRecurringRequest") ⇒ Object



1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
# File 'lib/XMLFields.rb', line 1094

def self.from_hash(hash, name="litleInternalRecurringRequest")
  base = hash[name]
  if(base)
    this = LitleInternalRecurringRequest.new
    this.subscriptionId = base['subscriptionId']
    this.recurringTxnId = base['recurringTxnId']
    this.finalPayment = base['finalPayment']
    SchemaValidation.validate_length(this.subscriptionId, true, 19, 19, name, "subscriptionId")
    SchemaValidation.validate_length(this.recurringTxnId, true, 19, 19, name, "recurringTxnId")
    SchemaValidation.validate_boolean(this.finalPayment, true, name, "finalPayment")
    this
  end
end