element <loan> (global)
Namespace:
Type:
anonymous complexType (extension of BaseDetailItem)
Content:
complex, 2 attributes, 14 elements
Defined:
Includes:
definitions of 13 elements
Used:
XML Representation Summary
<loan
   
 = 
xs:string
 = 
xs:string
   
>
   
Content: 
</loan>
Content model elements (14):
name (type xs:string),
Included in content model of elements (1):
Known Usage Locations
Annotation
A loan : the loan owner must be a person in the plan; The owner lends fund to a borrower; The borrower could be one of the following: a person in the plan, a company/trust in the plan or someone not in the plan.
Anonymous Type Detail
Type Derivation Tree
BaseDetailItem (extension)
  complexType
XML Source (w/o annotations (11); see within schema source)
<xs:element name="loan">
<xs:complexType>
<xs:complexContent>
<xs:extension base="BaseDetailItem">
<xs:sequence>
<xs:element minOccurs="0" name="owners" type="owners"/>
<xs:element name="name" type="xs:string"/>
<xs:element maxOccurs="1" minOccurs="1" name="borrowerType" type="loanBorrowerType"/>
<xs:element maxOccurs="1" minOccurs="0" name="borrower" type="xs:string"/>
<xs:element name="balance" type="xs:integer"/>
<xs:element name="interestRate" type="xs:decimal"/>
<xs:element name="paymentAmount" type="xs:integer"/>
<xs:element name="existingLoanInitYear" type="xs:integer"/>
<xs:element maxOccurs="1" minOccurs="0" name="paymentFrequency" type="paymentFrequency"/>
<xs:element maxOccurs="1" minOccurs="0" name="isExistingLoan" type="xs:boolean"/>
<xs:element minOccurs="0" name="appliedEventList" type="appliedEventList"/>
<xs:element minOccurs="0" name="itemStepDetailList" type="modelIdList"/>
<xs:element maxOccurs="1" minOccurs="0" name="onetimePaymentList" type="modelIdList"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
Content Element Detail (all declarations; defined within this component only; 13/14)
appliedEventList
Type:
appliedEventList, complex content
Single event, indicates when the loan is taken out.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="appliedEventList" type="appliedEventList"/>

balance
Type:
xs:integer, predefined, simple content
Start balance of the loan, or the amount of loan to be initiated.
XML Source (w/o annotations (1); see within schema source)
<xs:element name="balance" type="xs:integer"/>

borrower
Type:
xs:string, predefined, simple content
Id of the borrower; Depends on the borrower type, this could be Id of a person in plan, company/trust in plan, or null.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="1" minOccurs="0" name="borrower" type="xs:string"/>

borrowerType
Type:
loanBorrowerType, simple content
Simple Content
enumeration of xs:string
Enumeration:
"PERSON_IN_PLAN", "COMPANY_OR_TRUST", "OUTSIDE_OF_PLAN"
XML Source (see within schema source)
<xs:element maxOccurs="1" minOccurs="1" name="borrowerType" type="loanBorrowerType"/>

existingLoanInitYear
Type:
xs:integer, predefined, simple content
The year that an existing loan was initiated; This year must be earlier or the same with the plan start year.
XML Source (w/o annotations (1); see within schema source)
<xs:element name="existingLoanInitYear" type="xs:integer"/>

interestRate
Type:
xs:decimal, predefined, simple content
Loan can accrue interest.
XML Source (w/o annotations (1); see within schema source)
<xs:element name="interestRate" type="xs:decimal"/>

isExistingLoan
Type:
xs:boolean, predefined, simple content
If true, this is an existing loan, the owner just receive the payment for the loan every year; If false, the plan should move the amount of loan from the the owner to the borrower at the year the loan starts.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="1" minOccurs="0" name="isExistingLoan" type="xs:boolean"/>

itemStepDetailList
Type:
modelIdList, complex content
The step list defines the different points in time, and the different attributes that will change at these points in the timeline.
XML Source (w/o annotations (1); see within schema source)
<xs:element minOccurs="0" name="itemStepDetailList" type="modelIdList"/>

name
Type:
xs:string, predefined, simple content
XML Source (see within schema source)
<xs:element name="name" type="xs:string"/>

onetimePaymentList
Type:
modelIdList, complex content
Contains all the onetime payment on this loan.
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="1" minOccurs="0" name="onetimePaymentList" type="modelIdList"/>

owners
Type:
owners, complex content
XML Source (see within schema source)
<xs:element minOccurs="0" name="owners" type="owners"/>

paymentAmount
Type:
xs:integer, predefined, simple content
The annual or monthly payment amount required to repay the loan.
XML Source (w/o annotations (1); see within schema source)
<xs:element name="paymentAmount" type="xs:integer"/>

paymentFrequency
Type:
paymentFrequency, simple content
Indicating the payment frequency.
Simple Content
enumeration of xs:string
Enumeration:
"WEEKLY", "BI_WEEKLY", "SEMI_MONTHLY", "MONTHLY", "QUARTERLY", "SEMI_ANNUALLY", "ANNUALLY"
XML Source (w/o annotations (1); see within schema source)
<xs:element maxOccurs="1" minOccurs="0" name="paymentFrequency" type="paymentFrequency"/>

XML schema documentation generated with DocFlex/XML 1.12 using DocFlex/XML XSDDoc 2.9.0 template set