qonto_ofx 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +2 -0
  3. data/.rubocop.yml +1 -0
  4. data/.rubocop_todo.yml +68 -0
  5. data/Gemfile +6 -0
  6. data/Gemfile.lock +60 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +34 -0
  9. data/Rakefile +11 -0
  10. data/bin/qonto_ofx +24 -0
  11. data/bin/setup +8 -0
  12. data/lib/api_gateway.rb +47 -0
  13. data/lib/base_validator.rb +17 -0
  14. data/lib/converter.rb +158 -0
  15. data/lib/ofx_validator.rb +17 -0
  16. data/lib/organization_validator.rb +17 -0
  17. data/lib/qonto_ofx/version.rb +3 -0
  18. data/lib/transactions_listing_validator.rb +17 -0
  19. data/qonto_ofx.gemspec +32 -0
  20. data/qonto_organization_schema.json +63 -0
  21. data/qonto_transactions_schema.json +175 -0
  22. data/schema/.DS_Store +0 -0
  23. data/schema/OFX2_Protocol.xsd +783 -0
  24. data/schema/OFX3_Protocol_dotNET.xsd +691 -0
  25. data/schema/OFX_Banking.xsd +119 -0
  26. data/schema/OFX_Banking_Message_Wrappers.xsd +399 -0
  27. data/schema/OFX_Banking_Messages.xsd +431 -0
  28. data/schema/OFX_BillPay.xsd +223 -0
  29. data/schema/OFX_BillPay_Message_Wrappers.xsd +343 -0
  30. data/schema/OFX_BillPay_Messages.xsd +412 -0
  31. data/schema/OFX_BillerDelivery.xsd +263 -0
  32. data/schema/OFX_BillerDelivery_Message_Wrappers.xsd +295 -0
  33. data/schema/OFX_BillerDelivery_Messages.xsd +259 -0
  34. data/schema/OFX_BillerDirectory.xsd +132 -0
  35. data/schema/OFX_BillerDirectory_Message_Wrappers.xsd +56 -0
  36. data/schema/OFX_BillerDirectory_Messages.xsd +86 -0
  37. data/schema/OFX_Common.xsd +2329 -0
  38. data/schema/OFX_CreditCard.xsd +45 -0
  39. data/schema/OFX_CreditCard_Message_Wrappers.xsd +88 -0
  40. data/schema/OFX_CreditCard_Messages.xsd +102 -0
  41. data/schema/OFX_Email.xsd +25 -0
  42. data/schema/OFX_Email_Message_Wrappers.xsd +129 -0
  43. data/schema/OFX_Email_Messages.xsd +72 -0
  44. data/schema/OFX_Image_Message_Wrappers.xsd +31 -0
  45. data/schema/OFX_Image_Messages.xsd +35 -0
  46. data/schema/OFX_InterTransfer.xsd +24 -0
  47. data/schema/OFX_InterTransfer_Message_Wrappers.xsd +195 -0
  48. data/schema/OFX_InterTransfer_Messages.xsd +256 -0
  49. data/schema/OFX_Investment.xsd +1358 -0
  50. data/schema/OFX_Investment_Message_Wrappers.xsd +162 -0
  51. data/schema/OFX_Investment_Messages.xsd +149 -0
  52. data/schema/OFX_Loan_Message_Wrappers.xsd +1 -0
  53. data/schema/OFX_Loan_Messages.xsd +124 -0
  54. data/schema/OFX_Loans.xsd +200 -0
  55. data/schema/OFX_Messages.xsd +18 -0
  56. data/schema/OFX_Profile.xsd +959 -0
  57. data/schema/OFX_Profile_Message_Wrappers.xsd +55 -0
  58. data/schema/OFX_Profile_Messages.xsd +96 -0
  59. data/schema/OFX_SecuritiesList.xsd +357 -0
  60. data/schema/OFX_SecuritiesList_Message_Wrappers.xsd +55 -0
  61. data/schema/OFX_SecuritiesList_Messages.xsd +55 -0
  62. data/schema/OFX_Signon.xsd +243 -0
  63. data/schema/OFX_Signon_Message_Wrappers.xsd +120 -0
  64. data/schema/OFX_Signon_Messages.xsd +211 -0
  65. data/schema/OFX_Signup.xsd +114 -0
  66. data/schema/OFX_Signup_Message_Wrappers.xsd +222 -0
  67. data/schema/OFX_Signup_Messages.xsd +153 -0
  68. data/schema/OFX_Tax1098.xsd +123 -0
  69. data/schema/OFX_Tax1098_Message_Wrappers.xsd +52 -0
  70. data/schema/OFX_Tax1098_Messages.xsd +65 -0
  71. data/schema/OFX_Tax1099.xsd +371 -0
  72. data/schema/OFX_Tax1099_Message_Wrappers.xsd +52 -0
  73. data/schema/OFX_Tax1099_Messages.xsd +50 -0
  74. data/schema/OFX_TaxW2.xsd +204 -0
  75. data/schema/OFX_TaxW2_Message_Wrappers.xsd +52 -0
  76. data/schema/OFX_TaxW2_Messages.xsd +58 -0
  77. data/schema/OFX_TypeDefinitions.xsd +98 -0
  78. data/schema/OFX_WireTransfer.xsd +88 -0
  79. data/schema/OFX_WireTransfer_Message_Wrappers.xsd +101 -0
  80. data/schema/OFX_WireTransfer_Messages.xsd +116 -0
  81. data/test/sample/ofx/invalid.xml +34 -0
  82. data/test/sample/ofx/malformed.xml +38 -0
  83. data/test/sample/ofx/test_result.xml +101 -0
  84. data/test/sample/ofx/valid.xml +38 -0
  85. data/test/sample/organization/invalid_format.txt +1 -0
  86. data/test/sample/organization/malformed.txt +1 -0
  87. data/test/sample/organization/valid_one_account.txt +1 -0
  88. data/test/sample/organization/valid_two_accounts.txt +1 -0
  89. data/test/sample/transactions/corp-1234-bank-account-1-FR0000000000000000000000001.txt +60 -0
  90. data/test/sample/transactions/corp-1234-bank-account-2-FR0000000000000000000000002-p1.txt +28 -0
  91. data/test/sample/transactions/corp-1234-bank-account-2-FR0000000000000000000000002-p2.txt +28 -0
  92. data/test/sample/transactions/invalid_format.txt +1 -0
  93. data/test/sample/transactions/malformed.txt +1 -0
  94. data/test/sample/transactions/valid.txt +1 -0
  95. data/test/test_converter.rb +51 -0
  96. data/test/test_ofx_validator.rb +25 -0
  97. data/test/test_organization_validator.rb +28 -0
  98. data/test/test_transactions_listing_validator.rb +23 -0
  99. metadata +314 -0
@@ -0,0 +1,162 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+
3
+ <!--
4
+
5
+ Open Financial Exchange Specification (c)1996-2004 ("Specification") by all of its publishers:
6
+ CheckFree Corp., Intuit Inc., and Microsoft Corporation. All rights reserved.
7
+
8
+ Revision History:
9
+
10
+ Version Date Editor Email Addr Short Description
11
+
12
+ p18 2002-02-11 altenburgd@businesslogic.com Initial revision
13
+ p21 2002-03-17 altenburgd@businesslogic.com Renamed "Account" to "AbstractAccount"
14
+ Renamed "SyncRequest" to "AbstractSyncRequest"
15
+ Renamed "SyncResponse" to "AbstractSyncResponse"
16
+ Renamed "TransactionRequest" to "AbstractTransactionRequest"
17
+ Renamed "TransactionResponse" to "AbstractTransactionResponse"
18
+
19
+ p21 2002-03-17 altenburgd@businesslogic.com Changed elementFormDefault to "unqualified"
20
+ Changed namespace to "http://ofx.net/types/2003/04"
21
+ -->
22
+
23
+ <xsd:schema
24
+ elementFormDefault="unqualified"
25
+ targetNamespace="http://ofx.net/types/2003/04"
26
+ xmlns:ofx="http://ofx.net/types/2003/04"
27
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
28
+
29
+ <xsd:include schemaLocation="OFX_Investment_Messages.xsd"/>
30
+ <xsd:complexType name="InvestmentMailSyncRequest">
31
+ <xsd:annotation>
32
+ <xsd:documentation>
33
+ The OFX element "INVMAILSYNCRQ" is of type "InvestmentMailSyncRequest"
34
+ </xsd:documentation>
35
+ </xsd:annotation>
36
+
37
+ <xsd:complexContent>
38
+ <xsd:extension base="ofx:AbstractSyncRequest">
39
+ <xsd:sequence>
40
+ <xsd:element name="INCIMAGES" type="ofx:BooleanType"/>
41
+ <xsd:element name="USEHTML" type="ofx:BooleanType"/>
42
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount"/>
43
+ <xsd:element name="INVMAILTRNRQ" type="ofx:InvestmentMailTransactionRequest" minOccurs="0" maxOccurs="unbounded"/>
44
+ </xsd:sequence>
45
+ </xsd:extension>
46
+ </xsd:complexContent>
47
+ </xsd:complexType>
48
+
49
+ <xsd:complexType name="InvestmentMailSyncResponse">
50
+ <xsd:annotation>
51
+ <xsd:documentation>
52
+ The OFX element "INVMAILSYNCRS" is of type "InvestmentMailSyncResponse"
53
+ </xsd:documentation>
54
+ </xsd:annotation>
55
+
56
+ <xsd:complexContent>
57
+ <xsd:extension base="ofx:AbstractSyncResponse">
58
+ <xsd:sequence>
59
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount"/>
60
+ <xsd:element name="INVMAILTRNRS" type="ofx:InvestmentMailTransactionResponse" minOccurs="0" maxOccurs="unbounded"/>
61
+ </xsd:sequence>
62
+ </xsd:extension>
63
+ </xsd:complexContent>
64
+ </xsd:complexType>
65
+ <xsd:complexType name="InvestmentMailTransactionRequest">
66
+ <xsd:annotation>
67
+ <xsd:documentation>
68
+ The OFX element "INVMAILTRNRQ" is of type "InvestmentMailTransactionRequest"
69
+ </xsd:documentation>
70
+ </xsd:annotation>
71
+
72
+ <xsd:complexContent>
73
+ <xsd:extension base="ofx:AbstractTransactionRequest">
74
+ <xsd:sequence>
75
+ <xsd:element name="INVMAILRQ" type="ofx:InvestmentMailRequest"/>
76
+ </xsd:sequence>
77
+ </xsd:extension>
78
+ </xsd:complexContent>
79
+ </xsd:complexType>
80
+
81
+ <xsd:complexType name="InvestmentMailTransactionResponse">
82
+ <xsd:annotation>
83
+ <xsd:documentation>
84
+ The OFX element "INVMAILTRNRS" is of type "InvestmentMailTransactionResponse"
85
+ </xsd:documentation>
86
+ </xsd:annotation>
87
+
88
+ <xsd:complexContent>
89
+ <xsd:extension base="ofx:AbstractTransactionResponse">
90
+ <xsd:sequence>
91
+ <xsd:element name="INVMAILRS" type="ofx:InvestmentMailResponse" minOccurs="0"/>
92
+ </xsd:sequence>
93
+ </xsd:extension>
94
+ </xsd:complexContent>
95
+ </xsd:complexType>
96
+
97
+ <xsd:complexType name="InvestmentStatementTransactionRequest">
98
+ <xsd:annotation>
99
+ <xsd:documentation>
100
+ The OFX element "INVSTMTTRNRQ" is of type "InvestmentStatementTransactionRequest"
101
+ </xsd:documentation>
102
+ </xsd:annotation>
103
+
104
+ <xsd:complexContent>
105
+ <xsd:extension base="ofx:AbstractTransactionRequest">
106
+ <xsd:sequence>
107
+ <xsd:element name="INVSTMTRQ" type="ofx:InvestmentStatementRequest"/>
108
+ </xsd:sequence>
109
+ </xsd:extension>
110
+ </xsd:complexContent>
111
+ </xsd:complexType>
112
+
113
+ <xsd:complexType name="InvestmentStatementTransactionResponse">
114
+ <xsd:annotation>
115
+ <xsd:documentation>
116
+ The OFX element "INVSTMTTRNRS" is of type "InvestmentStatementTransactionResponse"
117
+ </xsd:documentation>
118
+ </xsd:annotation>
119
+
120
+ <xsd:complexContent>
121
+ <xsd:extension base="ofx:AbstractTransactionResponse">
122
+ <xsd:sequence>
123
+ <xsd:element name="INVSTMTRS" type="ofx:InvestmentStatementResponse" minOccurs="0"/>
124
+ </xsd:sequence>
125
+ </xsd:extension>
126
+ </xsd:complexContent>
127
+ </xsd:complexType>
128
+
129
+ <xsd:complexType name="InvestmentStatementEndTransactionRequest">
130
+ <xsd:annotation>
131
+ <xsd:documentation>
132
+ The OFX element "INVSTMTTRNRQ" is of type "InvestmentStatementTransactionRequest"
133
+ </xsd:documentation>
134
+ </xsd:annotation>
135
+
136
+ <xsd:complexContent>
137
+ <xsd:extension base="ofx:AbstractTransactionRequest">
138
+ <xsd:sequence>
139
+ <xsd:element name="INVSTMTENDRQ" type="ofx:InvestmentStatementEndRequest"/>
140
+ </xsd:sequence>
141
+ </xsd:extension>
142
+ </xsd:complexContent>
143
+ </xsd:complexType>
144
+
145
+ <xsd:complexType name="InvestmentStatementEndTransactionResponse">
146
+ <xsd:annotation>
147
+ <xsd:documentation>
148
+ The OFX element "INVSTMTTRNRS" is of type "InvestmentStatementTransactionResponse"
149
+ </xsd:documentation>
150
+ </xsd:annotation>
151
+
152
+ <xsd:complexContent>
153
+ <xsd:extension base="ofx:AbstractTransactionResponse">
154
+ <xsd:sequence>
155
+ <xsd:element name="INVSTMTENDRQ" type="ofx:InvestmentStatementEndResponse"/>
156
+ </xsd:sequence>
157
+ </xsd:extension>
158
+ </xsd:complexContent>
159
+ </xsd:complexType>
160
+
161
+ </xsd:schema>
162
+
@@ -0,0 +1,149 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+
3
+ <!--
4
+
5
+ Open Financial Exchange Specification (c)1996-2004 ("Specification") by all of its publishers:
6
+ CheckFree Corp., Intuit Inc., and Microsoft Corporation. All rights reserved.
7
+
8
+ Revision History:
9
+
10
+ Version Date Editor Email Addr Short Description
11
+
12
+ p18 2002-02-11 altenburgd@businesslogic.com Initial revision
13
+ p21 2002-03-17 altenburgd@businesslogic.com Changed elementFormDefault to "unqualified"
14
+ Changed namespace to "http://ofx.net/types/2003/04"
15
+ p23 2002-05-13 altenburgd@businesslogic.com Bugfixes based on Intuit Schema QA
16
+ -->
17
+
18
+ <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
19
+ xmlns:ofx="http://ofx.net/types/2003/04"
20
+ targetNamespace="http://ofx.net/types/2003/04"
21
+ elementFormDefault="unqualified">
22
+
23
+
24
+ <xsd:include schemaLocation = "OFX_Investment.xsd" />
25
+
26
+ <xsd:complexType name="InvestmentMailRequest">
27
+ <xsd:annotation>
28
+ <xsd:documentation>
29
+ The OFX element "INVMAILRQ" is of type "InvestmentMailRequest"
30
+ </xsd:documentation>
31
+ </xsd:annotation>
32
+
33
+ <xsd:sequence>
34
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount" />
35
+
36
+ <xsd:element name="MAIL" type="ofx:Mail" />
37
+ </xsd:sequence>
38
+ </xsd:complexType>
39
+
40
+ <xsd:complexType name="InvestmentMailResponse">
41
+ <xsd:annotation>
42
+ <xsd:documentation>
43
+ The OFX element "INVMAILRS" is of type "InvestmentMailResponse"
44
+ </xsd:documentation>
45
+ </xsd:annotation>
46
+
47
+ <xsd:sequence>
48
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount" />
49
+
50
+ <xsd:element name="MAIL" type="ofx:Mail" />
51
+ </xsd:sequence>
52
+ </xsd:complexType>
53
+
54
+ <xsd:complexType name="InvestmentStatementEndRequest">
55
+ <xsd:annotation>
56
+ <xsd:documentation>
57
+ The OFX element "INVSTMTENDRQ" is of type "InvestmentStatementEndRequest"
58
+ </xsd:documentation>
59
+ </xsd:annotation>
60
+
61
+ <xsd:sequence>
62
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount" />
63
+ <xsd:element name="DTSTART" type="ofx:DateTimeType" minOccurs="0"/>
64
+ <xsd:element name="DTEND" type="ofx:DateTimeType" minOccurs="0"/>
65
+ <xsd:element name="INCSTMTIMG" type="ofx:BooleanType" minOccurs="0"/>
66
+ </xsd:sequence>
67
+ </xsd:complexType>
68
+
69
+ <xsd:complexType name="InvestmentStatementEndResponse">
70
+ <xsd:annotation>
71
+ <xsd:documentation>
72
+ The OFX element "INVSTMTENDRS" is of type "InvestmentStatementEndResponse"
73
+ </xsd:documentation>
74
+ </xsd:annotation>
75
+
76
+ <xsd:sequence>
77
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
78
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount" />
79
+ <xsd:element name="INVCLOSING" type="ofx:InvestmentClosing" minOccurs="0" maxOccurs="unbounded"/>
80
+ </xsd:sequence>
81
+ </xsd:complexType>
82
+
83
+ <xsd:complexType name="InvestmentStatementRequest">
84
+ <xsd:annotation>
85
+ <xsd:documentation>
86
+ The OFX element "INVSTMTRQ" is of type "InvestmentStatementRequest"
87
+ </xsd:documentation>
88
+ </xsd:annotation>
89
+
90
+ <xsd:sequence>
91
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount" />
92
+
93
+ <xsd:element name="INCTRAN" type="ofx:IncTransaction" />
94
+
95
+ <xsd:element name="INCOO" type="ofx:BooleanType" />
96
+
97
+ <xsd:element name="INCPOS" type="ofx:IncPosition" />
98
+
99
+ <xsd:element name="INCBAL" type="ofx:BooleanType" />
100
+
101
+ <xsd:element name="INC401K" type="ofx:BooleanType" minOccurs="0"
102
+ maxOccurs="1" />
103
+
104
+ <xsd:element name="INC401KBAL" type="ofx:BooleanType" minOccurs="0" maxOccurs="1" />
105
+
106
+ <xsd:element name="INCTRANIMG" type="ofx:BooleanType" minOccurs="0" maxOccurs="1" />
107
+ </xsd:sequence>
108
+ </xsd:complexType>
109
+
110
+ <xsd:complexType name="InvestmentStatementResponse">
111
+ <xsd:annotation>
112
+ <xsd:documentation>
113
+ The OFX element "INVSTMTRS" is of type "InvestmentStatementResponse"
114
+ </xsd:documentation>
115
+ </xsd:annotation>
116
+
117
+ <xsd:sequence>
118
+ <xsd:element name="DTASOF" type="ofx:DateTimeType" />
119
+
120
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum" />
121
+
122
+ <xsd:element name="INVACCTFROM" type="ofx:InvestmentAccount" />
123
+
124
+ <xsd:element name="INVTRANLIST" type="ofx:InvestmentTransactionList"
125
+ minOccurs="0" maxOccurs="1" />
126
+
127
+ <xsd:element name="INVPOSLIST" type="ofx:InvestmentPositionList"
128
+ minOccurs="0" maxOccurs="1" />
129
+
130
+ <xsd:element name="INVBAL" type="ofx:InvestmentBalance" minOccurs="0"
131
+ maxOccurs="1" />
132
+
133
+ <xsd:element name="INVOOLIST" type="ofx:InvestmentOpenOrderList"
134
+ minOccurs="0" maxOccurs="1" />
135
+
136
+ <xsd:element name="MKTGINFO" type="ofx:InfoType"
137
+ minOccurs="0" maxOccurs="1" />
138
+
139
+ <xsd:element name="INV401K" type="ofx:Investment401k" minOccurs="0"
140
+ maxOccurs="1" />
141
+
142
+ <xsd:element name="INV401KBAL" type="ofx:Investment401kBalance"
143
+ minOccurs="0" maxOccurs="1" />
144
+
145
+ </xsd:sequence>
146
+ </xsd:complexType>
147
+
148
+ </xsd:schema>
149
+
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?><!-- Open Financial Exchange Specification (c)1996-2006 ("Specification") by all of its publishers: CheckFree Corp., Intuit Inc., and Microsoft Corporation. All rights reserved. Revision History: Version Date Editor Email Addr Short Description p1 2005-03-11 altenburgd@businesslogic.com Initial revision--><xsd:schema elementFormDefault="unqualified" targetNamespace="http://ofx.net/types/2003/04" xmlns:ofx="http://ofx.net/types/2003/04" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:include schemaLocation="OFX_Loan_Messages.xsd"/> <xsd:complexType name="LoanStatementTransactionRequest"> <xsd:annotation> <xsd:documentation> The OFX element "LOANSTMTTRNRQ" is of type "LoanStatementTransactionRequest" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionRequest"> <xsd:sequence> <xsd:element name="LOANSTMTRQ" type="ofx:LoanStatementRequest"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="LoanStatementTransactionResponse"> <xsd:annotation> <xsd:documentation> The OFX element "LOANSTMTTRNRS" is of type "LoanStatementTransactionResponse" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionResponse"> <xsd:sequence> <xsd:element name="LOANSTMTRS" type="ofx:LoanStatementResponse"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="AmortizationTransactionRequest"> <xsd:annotation> <xsd:documentation> The OFX element "AMRTSTMTTRNRQ" is of type "AmortizationTransactionRequest" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionRequest"> <xsd:sequence> <xsd:element name="AMRTSTMTRQ" type="ofx:AmortizationRequest"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="AmortizationTransactionResponse"> <xsd:annotation> <xsd:documentation> The OFX element "AMRTSTMTTRNRS" is of type "AmortizationTransactionResponse" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionResponse"> <xsd:sequence> <xsd:element name="AMRTSTMTRS" type="ofx:AmortizationResponse"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="LoanStatementEndTransactionRequest"> <xsd:annotation> <xsd:documentation> The OFX element "LOANSTMTENDTRNRQ" is of type "LoanStatementEndTransactionRequest" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionRequest"> <xsd:sequence> <xsd:element name="LOANSTMTENDRQ" type="ofx:LoanStatementEndRequest"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="LoanStatementEndTransactionResponse"> <xsd:annotation> <xsd:documentation> The OFX element "LOANSTMTENDTRNRS" is of type "LoanStatementEndTransactionResponse" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionResponse"> <xsd:sequence> <xsd:element name="LOANSTMTENDRS" type="ofx:LoanStatementEndResponse"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="LoanMailTransactionRequest"> <xsd:annotation> <xsd:documentation> The OFX element "LOANMAILTRNRQ" is of type "LoanMailTransactionRequest" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionRequest"> <xsd:sequence> <xsd:element name="LOANMAILRQ" type="ofx:LoanMailRequest"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="LoanMailTransactionResponse"> <xsd:annotation> <xsd:documentation> The OFX element "LOANMAILTRNRS" is of type "LoanMailTransactionResponse" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractTransactionResponse"> <xsd:sequence> <xsd:element name="LOANMAILRS" type="ofx:LoanMailResponse"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="LoanMailSyncRequest"> <xsd:annotation> <xsd:documentation> The OFX element "LOANMAILSYNCRQ" is of type "LoanMailSyncRequest" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractSyncRequest"> <xsd:sequence> <xsd:element name="INCIMAGES" type="ofx:BooleanType"/> <xsd:element name="USEHTML" type="ofx:BooleanType"/> <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/> <xsd:element name="LOANMAILTRNRQ" type="ofx:LoanMailTransactionRequest" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="LoanMailSyncResponse"> <xsd:annotation> <xsd:documentation> The OFX element "LOANMAILSYNCRS" is of type "LoanMailSyncResponse" </xsd:documentation> </xsd:annotation> <xsd:complexContent> <xsd:extension base="ofx:AbstractSyncResponse"> <xsd:sequence> <xsd:choice> <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/> </xsd:choice> <xsd:element name="LOANMAILTRNRS" type="ofx:LoanMailTransactionResponse" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:extension> </xsd:complexContent> </xsd:complexType></xsd:schema>
@@ -0,0 +1,124 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <!--
3
+
4
+ Open Financial Exchange Specification (c)1996-2003 ("Specification") by all of its publishers:
5
+ CheckFree Corp., Intuit Inc., and Microsoft Corporation. All rights reserved.
6
+
7
+ Revision History:
8
+
9
+ Version Date Editor Email Addr Short Description
10
+ p1 2005-03-11 altenburgd@businesslogic.com Initial revision
11
+ -->
12
+ <xsd:schema xmlns:ofx="http://ofx.net/types/2003/04" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ofx.net/types/2003/04" elementFormDefault="unqualified">
13
+ <xsd:include schemaLocation="OFX_Loans.xsd"/>
14
+ <xsd:include schemaLocation="OFX_Common.xsd"/>
15
+ <xsd:complexType name="LoanStatementRequest">
16
+ <xsd:annotation>
17
+ <xsd:documentation>
18
+ The OFX element "LOANSTMTRQ" is of type "LoanStatementRequest"
19
+ </xsd:documentation>
20
+ </xsd:annotation>
21
+ <xsd:sequence>
22
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
23
+ <xsd:element name="INCTRAN" type="ofx:IncTransaction" minOccurs="0"/>
24
+ </xsd:sequence>
25
+ </xsd:complexType>
26
+ <xsd:complexType name="LoanStatementResponse">
27
+ <xsd:annotation>
28
+ <xsd:documentation>
29
+ The OFX element "LOANSTMTRS" is of type "LoanStatementResponse"
30
+ </xsd:documentation>
31
+ </xsd:annotation>
32
+ <xsd:sequence>
33
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
34
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
35
+ <xsd:element name="LOANTRANLIST" type="ofx:LoanTransactionList" minOccurs="0"/>
36
+ <xsd:element name="PRINBAL" type="ofx:PrincipalBalanceType"/>
37
+ <xsd:element name="AVAILBAL" type="ofx:AvailableBalance" minOccurs="0"/>
38
+ <xsd:element name="MKTGINFO" type="ofx:InfoType" minOccurs="0"/>
39
+ </xsd:sequence>
40
+ </xsd:complexType>
41
+ <xsd:complexType name="AmortizationRequest">
42
+ <xsd:annotation>
43
+ <xsd:documentation>
44
+ The OFX element "AMRTSTMTRQ" is of type "AmortizationRequest"
45
+ </xsd:documentation>
46
+ </xsd:annotation>
47
+ <xsd:sequence>
48
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
49
+ <xsd:element name="DTSTART" type="ofx:DateTimeType" minOccurs="0"/>
50
+ <xsd:element name="DTEND" type="ofx:DateTimeType" minOccurs="0"/>
51
+ </xsd:sequence>
52
+ </xsd:complexType>
53
+ <xsd:complexType name="AmortizationResponse">
54
+ <xsd:annotation>
55
+ <xsd:documentation>
56
+ The OFX element "AMRTSTMTRS" is of type "AmortizationResponse"
57
+ </xsd:documentation>
58
+ </xsd:annotation>
59
+ <xsd:sequence>
60
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
61
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
62
+ <xsd:element name="AMRTTRANLIST" type="ofx:AmortizationTransactionList" minOccurs="0"/>
63
+ <xsd:element name="MKTGINFO" type="ofx:InfoType" minOccurs="0"/>
64
+ </xsd:sequence>
65
+ </xsd:complexType>
66
+ <xsd:complexType name="AmortizationTransactionList">
67
+ <xsd:annotation>
68
+ <xsd:documentation>
69
+ The OFX element "AMRTSTMTRS" is of type "AmortizationResponse"
70
+ </xsd:documentation>
71
+ </xsd:annotation>
72
+ <xsd:sequence>
73
+ <xsd:element name="DTSTART" type="ofx:DateTimeType"/>
74
+ <xsd:element name="DTEND" type="ofx:DateTimeType"/>
75
+ <xsd:element name="AMRTSTMTTRN" type="ofx:AmortizationTransaction" minOccurs="0" maxOccurs="unbounded"/>
76
+ </xsd:sequence>
77
+ </xsd:complexType>
78
+ <xsd:complexType name="LoanStatementEndRequest">
79
+ <xsd:annotation>
80
+ <xsd:documentation>
81
+ The OFX element "LOANSTMTENDRQ" is of type "LoanStatementEndRequest"
82
+ </xsd:documentation>
83
+ </xsd:annotation>
84
+ <xsd:sequence>
85
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
86
+ <xsd:element name="DTSTART" type="ofx:DateTimeType" minOccurs="0"/>
87
+ <xsd:element name="DTEND" type="ofx:DateTimeType" minOccurs="0"/>
88
+ </xsd:sequence>
89
+ </xsd:complexType>
90
+ <xsd:complexType name="LoanStatementEndResponse">
91
+ <xsd:annotation>
92
+ <xsd:documentation>
93
+ The OFX element "LOANSTMTENDRS" is of type "LoanStatementEndResponse"
94
+ </xsd:documentation>
95
+ </xsd:annotation>
96
+ <xsd:sequence>
97
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
98
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
99
+ <xsd:element name="LOANCLOSING" type="ofx:LoanClosing" minOccurs="0" maxOccurs="unbounded"/>
100
+ </xsd:sequence>
101
+ </xsd:complexType>
102
+ <xsd:complexType name="LoanMailRequest">
103
+ <xsd:annotation>
104
+ <xsd:documentation>
105
+ The OFX element "LOANMAILRQ" is of type "LoanMailRequest"
106
+ </xsd:documentation>
107
+ </xsd:annotation>
108
+ <xsd:sequence>
109
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
110
+ <xsd:element name="MAIL" type="ofx:Mail"/>
111
+ </xsd:sequence>
112
+ </xsd:complexType>
113
+ <xsd:complexType name="LoanMailResponse">
114
+ <xsd:annotation>
115
+ <xsd:documentation>
116
+ The OFX element "LOANMAILRS" is of type "LoanMailResponse"
117
+ </xsd:documentation>
118
+ </xsd:annotation>
119
+ <xsd:sequence>
120
+ <xsd:element name="LOANACCTFROM" type="ofx:LoanAccount"/>
121
+ <xsd:element name="MAIL" type="ofx:Mail"/>
122
+ </xsd:sequence>
123
+ </xsd:complexType>
124
+ </xsd:schema>
@@ -0,0 +1,200 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+
3
+ <!--
4
+
5
+ Open Financial Exchange Specification (c)1996-2004
6
+ ("Specification") by all of its publishers:
7
+ CheckFree Corp., Intuit Inc., and Microsoft Corporation. All rights reserved.
8
+
9
+ Revision History:
10
+
11
+ Version Date Editor Email Addr Short Description
12
+ p1 2005-03-11 altenburgd@businesslogic.com Initial revision
13
+ p1.1 2006-06-13 wendy_dubois@intuit.com some bug fixes
14
+ -->
15
+
16
+
17
+ <xsd:schema
18
+ elementFormDefault="unqualified"
19
+ targetNamespace="http://ofx.net/types/2003/04"
20
+ xmlns:ofx="http://ofx.net/types/2003/04"
21
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
22
+
23
+ <xsd:include schemaLocation="OFX_Common.xsd"/>
24
+
25
+ <xsd:complexType name="LoanTransactionList">
26
+ <xsd:annotation>
27
+ <xsd:documentation>
28
+ The OFX element "LOANTRANLIST" is of type "LoanTransactionList"
29
+ </xsd:documentation>
30
+ </xsd:annotation>
31
+
32
+ <xsd:sequence>
33
+ <xsd:element name="DTSTART" type="ofx:DateTimeType"/>
34
+ <xsd:element name="DTEND" type="ofx:DateTimeType"/>
35
+ <xsd:element name="LOANSTMTTRN" type="ofx:LoanStatementTransaction" minOccurs="0" maxOccurs="unbounded"/>
36
+ </xsd:sequence>
37
+ </xsd:complexType>
38
+
39
+ <xsd:complexType name="LoanStatementTransaction">
40
+ <xsd:annotation>
41
+ <xsd:documentation>
42
+ The OFX element "LOANSTMTTRN" is of type "LoanStatementTransaction"
43
+ </xsd:documentation>
44
+ </xsd:annotation>
45
+
46
+ <xsd:sequence>
47
+ <xsd:element name="LOANTRNTYPE" type="ofx:LoanTransactionEnum"/>
48
+ <xsd:element name="DTPOSTED" type="ofx:DateTimeType"/>
49
+ <xsd:element name="DTUSER" type="ofx:DateTimeType" minOccurs="0"/>
50
+ <xsd:element name="TRNAMT" type="ofx:AmountType"/>
51
+ <xsd:element name="LOANTRNAMT" type="ofx:LoanTransactionAmount" minOccurs="0"/>
52
+ <xsd:element name="FITID" type="ofx:FinancialInstitutionTransactionIdType"/>
53
+ <xsd:sequence minOccurs="0">
54
+ <xsd:element name="CORRECTFITID" type="ofx:FinancialInstitutionTransactionIdType"/>
55
+ <xsd:element name="CORRECTACTION" type="ofx:CorrectiveActionEnum"/>
56
+ </xsd:sequence>
57
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType" minOccurs="0"/>
58
+ <xsd:element name="CHECKNUM" type="ofx:CheckNumberType" minOccurs="0"/>
59
+ <xsd:element name="REFNUM" type="ofx:ReferenceNumberType" minOccurs="0"/>
60
+ <xsd:element name="NAME" type="ofx:GenericNameType" minOccurs="0"/>
61
+ <xsd:element name="EXTDNAME" type="ofx:ExtendedNameType" minOccurs="0"/>
62
+ <xsd:choice minOccurs="0">
63
+ <xsd:element name="LOANACCTTO" type="ofx:LoanAccount"/>
64
+ <xsd:element name="BANKACCTTO" type="ofx:BankAccount"/>
65
+ </xsd:choice>
66
+ <xsd:element name="MEMO" type="ofx:MessageType" minOccurs="0"/>
67
+ <xsd:element name="IMAGEDATA" type="ofx:ImageData" minOccurs="0"/>
68
+ <xsd:choice minOccurs="0">
69
+ <xsd:element name="CURRENCY" type="ofx:Currency"/>
70
+ <xsd:element name="ORIGCURRENCY" type="ofx:Currency"/>
71
+ </xsd:choice>
72
+ </xsd:sequence>
73
+ </xsd:complexType>
74
+
75
+ <xsd:complexType name="AmortizationTransaction">
76
+ <xsd:annotation>
77
+ <xsd:documentation>
78
+ The OFX element "AMRTSTMTTRN" is of type "AmortizationTransaction"
79
+ </xsd:documentation>
80
+ </xsd:annotation>
81
+
82
+ <xsd:sequence>
83
+ <xsd:element name="PMTNUMBER" type="ofx:LoanPaymentNumber" minOccurs="0"/>
84
+ <xsd:element name="LOANINITBAL" type="ofx:AmountType" minOccurs="0"/>
85
+ <xsd:element name="PRINBAL" type="ofx:PrincipalBalanceType"/>
86
+ <xsd:element name="LOANTRNAMT" type="ofx:LoanTransactionAmount"/>
87
+ <xsd:element name="LOANIRATE" type="ofx:LoanRateType" minOccurs="0"/>
88
+ <xsd:element name="AMRTTYPE" type="ofx:AmortizationType"/>
89
+ </xsd:sequence>
90
+ </xsd:complexType>
91
+
92
+ <xsd:complexType name="LoanClosing">
93
+ <xsd:annotation>
94
+ <xsd:documentation>
95
+ The OFX element "LOANCLOSING" is of type "LoanClosing"
96
+ </xsd:documentation>
97
+ </xsd:annotation>
98
+
99
+ <xsd:sequence>
100
+ <xsd:element name="FITID" type="ofx:FinancialInstitutionTransactionIdType" />
101
+ <xsd:element name="DTOPEN" type="ofx:DateTimeType" minOccurs="0" maxOccurs="1" />
102
+ <xsd:element name="DTCLOSE" type="ofx:DateTimeType" />
103
+ <xsd:element name="DTNEXT" type="ofx:DateTimeType" minOccurs="0" maxOccurs="1" />
104
+ <xsd:element name="BALOPEN" type="ofx:AmountType" minOccurs="0" maxOccurs="1" />
105
+ <xsd:element name="PRINBAL" type="ofx:PrincipalBalanceType"/>
106
+ <xsd:element name="LOANINT" type="ofx:LoanInterestType"/>
107
+ <xsd:element name="LOANRATE" type="ofx:LoanRateType"/>
108
+ <xsd:element name="ESTPAYOFF" type="ofx:EstimatedPayoff" minOccurs="0"/>
109
+ <xsd:element name="BALLOONAMT" type="ofx:AmountType" minOccurs="0"/>
110
+ <xsd:element name="LOANPMT" type="ofx:LoanPaymentAmount" minOccurs="0"/>
111
+ <xsd:element name="LOANRMNPMTS" type="ofx:LoanNumPaymentsType" minOccurs="0"/>
112
+ <xsd:element name="BALLIST" type="ofx:BalanceList" minOccurs="0"/>
113
+ <xsd:element name="ESCRWBAL" type="ofx:EscrowBalance" minOccurs="0"/>
114
+ <xsd:element name="DTPOSTSTART" type="ofx:DateTimeType" />
115
+ <xsd:element name="DTPOSTEND" type="ofx:DateTimeType" />
116
+ <xsd:element name="MKTGINFO" type="ofx:InfoType" minOccurs="0" maxOccurs="1" />
117
+ <xsd:element name="IMAGEDATA" type="ofx:ImageData" minOccurs="0"/>
118
+ <xsd:choice minOccurs="0" maxOccurs="1">
119
+ <xsd:element name="CURRENCY" type="ofx:Currency" />
120
+ <xsd:element name="ORIGCURRENCY" type="ofx:Currency" />
121
+ </xsd:choice>
122
+ </xsd:sequence>
123
+ </xsd:complexType>
124
+
125
+ <xsd:complexType name="EstimatedPayoff">
126
+ <xsd:annotation>
127
+ <xsd:documentation>
128
+ The OFX element "ESTPAYOFF" is of type "EstimatedPayoff"
129
+ </xsd:documentation>
130
+ </xsd:annotation>
131
+ <xsd:sequence>
132
+ <xsd:element name="ESTPAYOFFBAL" type="ofx:AmountType"/>
133
+ <xsd:element name="DTASOF" type="ofx:DateTimeType"/>
134
+ </xsd:sequence>
135
+ </xsd:complexType>
136
+
137
+ <xsd:complexType name="EscrowBalance">
138
+ <xsd:annotation>
139
+ <xsd:documentation>
140
+ The OFX element "ESCRWBAL" is of type "EscrowBalance"
141
+ </xsd:documentation>
142
+ </xsd:annotation>
143
+
144
+ <xsd:sequence>
145
+ <xsd:element name="BALAMT" type="ofx:AmountType"/>
146
+ <xsd:element name="ESCRWTAXBAL" type="ofx:AmountType" minOccurs="0"/>
147
+ <xsd:element name="ESCRWINSBAL" type="ofx:AmountType" minOccurs="0"/>
148
+ <xsd:element name="ESCRWPMIBAL" type="ofx:AmountType" minOccurs="0"/>
149
+ <xsd:element name="ESCRWFEESBAL" type="ofx:AmountType" minOccurs="0"/>
150
+ <xsd:element name="ESCRWOTHERBAL" type="ofx:AmountType" minOccurs="0"/>
151
+ <xsd:element name="DTASOF" type="ofx:DateTimeType"/>
152
+ </xsd:sequence>
153
+ </xsd:complexType>
154
+
155
+ <xsd:simpleType name="LoanTransactionEnum">
156
+ <xsd:annotation>
157
+ <xsd:documentation>
158
+ The OFX element "LOANTRNTYPE" is of type "LoanTransactionEnum"
159
+ </xsd:documentation>
160
+ </xsd:annotation>
161
+ <xsd:restriction base="xsd:string">
162
+ <xsd:whiteSpace value="collapse"/>
163
+ <xsd:enumeration value="PAYMENT"/>
164
+ <xsd:enumeration value="FEE"/>
165
+ <xsd:enumeration value="LATE"/>
166
+ <xsd:enumeration value="INT"/>
167
+ <xsd:enumeration value="ADVANCE"/>
168
+ <xsd:enumeration value="XFER"/>
169
+ <xsd:enumeration value="BALLOON"/>
170
+ <xsd:enumeration value="OTHER"/>
171
+ </xsd:restriction>
172
+ </xsd:simpleType>
173
+
174
+ <xsd:simpleType name="LoanPaymentNumber">
175
+ <xsd:annotation>
176
+ <xsd:documentation>
177
+ The OFX element "PMTNUMBER" is of type "LoanPaymentNumber"
178
+ </xsd:documentation>
179
+ </xsd:annotation>
180
+ <xsd:restriction base="xsd:string">
181
+ <xsd:maxLength value="3"/>
182
+ <xsd:minLength value="1"/>
183
+ </xsd:restriction>
184
+ </xsd:simpleType>
185
+
186
+ <xsd:simpleType name="AmortizationType">
187
+ <xsd:annotation>
188
+ <xsd:documentation>
189
+ The OFX element "AMRTTYPE" is of type "AmortizationType"
190
+ </xsd:documentation>
191
+ </xsd:annotation>
192
+ <xsd:restriction base="xsd:string">
193
+ <xsd:whiteSpace value="collapse"/>
194
+ <xsd:enumeration value="ORIGINAL"/>
195
+ <xsd:enumeration value="ADJUSTED"/>
196
+ <xsd:enumeration value="PROJECTED"/>
197
+ </xsd:restriction>
198
+ </xsd:simpleType>
199
+
200
+ </xsd:schema>