qonto_ofx 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
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,431 @@
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
+ p18 2003-02-11 altenburgd@businesslogic.com Initial revision
12
+ p19 2003-02-14 ted.krawiec@citigroup.com Added base classes:
13
+ MailResponseBase,
14
+ IntraRequestBase,
15
+ IntraResponseBase,
16
+ RecurringIntraRequestBase,
17
+ RecurringIntraResponseBase
18
+ p20 2003-03-14 ted.krawiec@citigroup.com Renamed base classes to "Abstract"
19
+ convention:
20
+ AbstractMailResponse,
21
+ AbstractIntraRequest,
22
+ AbstractIntraResponse,
23
+ AbstractRecurringIntraRequest,
24
+ AbstractRecurringIntraResponse
25
+ p21 2002-03-17 altenburgd@businesslogic.com Changed elementFormDefault to "unqualified"
26
+ Changed namespace to "http://ofx.net/types/2003/04"
27
+ -->
28
+
29
+ <xsd:schema
30
+ elementFormDefault="unqualified"
31
+ targetNamespace="http://ofx.net/types/2003/04"
32
+ xmlns:ofx="http://ofx.net/types/2003/04"
33
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
34
+
35
+ <xsd:include schemaLocation="OFX_Banking.xsd"/>
36
+
37
+ <xsd:complexType name="BankMailRequest">
38
+ <xsd:annotation>
39
+ <xsd:documentation>
40
+ The OFX element "BANKMAILRQ" is of type "BankMailRequest"
41
+ </xsd:documentation>
42
+ </xsd:annotation>
43
+
44
+ <xsd:sequence>
45
+ <xsd:choice>
46
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
47
+ <xsd:element name="CCACCTFROM" type="ofx:CreditCardAccount"/>
48
+ </xsd:choice>
49
+ <xsd:element name="MAIL" type="ofx:Mail"/>
50
+ </xsd:sequence>
51
+ </xsd:complexType>
52
+
53
+ <xsd:complexType name="AbstractMailResponse" abstract="true"/>
54
+
55
+ <xsd:complexType name="BankMailResponse">
56
+ <xsd:annotation>
57
+ <xsd:documentation>
58
+ The OFX element "BANKMAILRS" is of type "BankMailResponse"
59
+ </xsd:documentation>
60
+ </xsd:annotation>
61
+
62
+ <xsd:complexContent>
63
+ <xsd:extension base="ofx:AbstractMailResponse">
64
+ <xsd:sequence>
65
+ <xsd:choice>
66
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
67
+ <xsd:element name="CCACCTFROM" type="ofx:CreditCardAccount"/>
68
+ </xsd:choice>
69
+ <xsd:element name="MAIL" type="ofx:Mail"/>
70
+ </xsd:sequence>
71
+ </xsd:extension>
72
+ </xsd:complexContent>
73
+ </xsd:complexType>
74
+
75
+ <xsd:complexType name="CheckMailResponse">
76
+ <xsd:annotation>
77
+ <xsd:documentation>
78
+ The OFX element "CHKMAILRS" is of type "CheckMailResponse"
79
+ </xsd:documentation>
80
+ </xsd:annotation>
81
+
82
+ <xsd:complexContent>
83
+ <xsd:extension base="ofx:AbstractMailResponse">
84
+ <xsd:sequence>
85
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
86
+ <xsd:element name="MAIL" type="ofx:Mail"/>
87
+ <xsd:element name="CHECKNUM" type="ofx:CheckNumberType"/>
88
+ <xsd:element name="TRNAMT" type="ofx:AmountType" minOccurs="0"/>
89
+ <xsd:element name="DTUSER" type="ofx:DateTimeType" minOccurs="0"/>
90
+ <xsd:element name="FEE" type="ofx:AmountType" minOccurs="0"/>
91
+ </xsd:sequence>
92
+ </xsd:extension>
93
+ </xsd:complexContent>
94
+ </xsd:complexType>
95
+
96
+ <xsd:complexType name="DepositMailResponse">
97
+ <xsd:annotation>
98
+ <xsd:documentation>
99
+ The OFX element "DEPMAILRS" is of type "DepositMailResponse"
100
+ </xsd:documentation>
101
+ </xsd:annotation>
102
+
103
+ <xsd:complexContent>
104
+ <xsd:extension base="ofx:AbstractMailResponse">
105
+ <xsd:sequence>
106
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
107
+ <xsd:element name="MAIL" type="ofx:Mail"/>
108
+ <xsd:element name="TRNAMT" type="ofx:AmountType"/>
109
+ <xsd:element name="DTUSER" type="ofx:DateTimeType" minOccurs="0"/>
110
+ <xsd:element name="FEE" type="ofx:AmountType" minOccurs="0"/>
111
+ </xsd:sequence>
112
+ </xsd:extension>
113
+ </xsd:complexContent>
114
+ </xsd:complexType>
115
+
116
+ <xsd:complexType name="AbstractIntraRequest" abstract="true"/>
117
+
118
+ <xsd:complexType name="AbstractIntraResponse" abstract="true"/>
119
+
120
+ <xsd:complexType name="IntraCancellationRequest">
121
+ <xsd:annotation>
122
+ <xsd:documentation>
123
+ The OFX element "INTRACANRQ" is of type "IntraCancellationRequest"
124
+ </xsd:documentation>
125
+ </xsd:annotation>
126
+
127
+ <xsd:complexContent>
128
+ <xsd:extension base="ofx:AbstractIntraRequest">
129
+ <xsd:sequence>
130
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
131
+ </xsd:sequence>
132
+ </xsd:extension>
133
+ </xsd:complexContent>
134
+ </xsd:complexType>
135
+
136
+ <xsd:complexType name="IntraCancellationResponse">
137
+ <xsd:annotation>
138
+ <xsd:documentation>
139
+ The OFX element "INTRACANRS" is of type "IntraCancellationResponse"
140
+ </xsd:documentation>
141
+ </xsd:annotation>
142
+
143
+ <xsd:complexContent>
144
+ <xsd:extension base="ofx:AbstractIntraResponse">
145
+ <xsd:sequence>
146
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
147
+ </xsd:sequence>
148
+ </xsd:extension>
149
+ </xsd:complexContent>
150
+ </xsd:complexType>
151
+
152
+ <xsd:complexType name="IntraModRequest">
153
+ <xsd:annotation>
154
+ <xsd:documentation>
155
+ The OFX element "INTRAMODRQ" is of type "IntraModRequest"
156
+ </xsd:documentation>
157
+ </xsd:annotation>
158
+
159
+ <xsd:complexContent>
160
+ <xsd:extension base="ofx:AbstractIntraRequest">
161
+ <xsd:sequence>
162
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
163
+ <xsd:element name="XFERINFO" type="ofx:TransferInfo"/>
164
+ </xsd:sequence>
165
+ </xsd:extension>
166
+ </xsd:complexContent>
167
+ </xsd:complexType>
168
+
169
+ <xsd:complexType name="IntraModResponse">
170
+ <xsd:annotation>
171
+ <xsd:documentation>
172
+ The OFX element "INTRAMODRS" is of type "IntraModResponse"
173
+ </xsd:documentation>
174
+ </xsd:annotation>
175
+
176
+ <xsd:complexContent>
177
+ <xsd:extension base="ofx:AbstractIntraResponse">
178
+ <xsd:sequence>
179
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
180
+ <xsd:element name="XFERINFO" type="ofx:TransferInfo"/>
181
+ <xsd:element name="XFERPRCSTS" type="ofx:TransferProcessingStatus" minOccurs="0"/>
182
+ </xsd:sequence>
183
+ </xsd:extension>
184
+ </xsd:complexContent>
185
+ </xsd:complexType>
186
+
187
+ <xsd:complexType name="IntraRequest">
188
+ <xsd:annotation>
189
+ <xsd:documentation>
190
+ The OFX element "INTRARQ" is of type "IntraRequest"
191
+ </xsd:documentation>
192
+ </xsd:annotation>
193
+
194
+ <xsd:complexContent>
195
+ <xsd:extension base="ofx:AbstractIntraRequest">
196
+ <xsd:sequence>
197
+ <xsd:element name="XFERINFO" type="ofx:TransferInfo"/>
198
+ </xsd:sequence>
199
+ </xsd:extension>
200
+ </xsd:complexContent>
201
+ </xsd:complexType>
202
+
203
+ <xsd:complexType name="IntraResponse">
204
+ <xsd:annotation>
205
+ <xsd:documentation>
206
+ The OFX element "INTRARS" is of type "IntraResponse"
207
+ </xsd:documentation>
208
+ </xsd:annotation>
209
+
210
+ <xsd:complexContent>
211
+ <xsd:extension base="ofx:AbstractIntraResponse">
212
+ <xsd:sequence>
213
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
214
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
215
+ <xsd:element name="XFERINFO" type="ofx:TransferInfo"/>
216
+ <xsd:choice minOccurs="0">
217
+ <xsd:element name="DTXFERPRJ" type="ofx:DateTimeType"/>
218
+ <xsd:element name="DTPOSTED" type="ofx:DateTimeType"/>
219
+ </xsd:choice>
220
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType" minOccurs="0"/>
221
+ <xsd:element name="XFERPRCSTS" type="ofx:TransferProcessingStatus" minOccurs="0"/>
222
+ </xsd:sequence>
223
+ </xsd:extension>
224
+ </xsd:complexContent>
225
+ </xsd:complexType>
226
+
227
+ <xsd:complexType name="AbstractRecurringIntraRequest" abstract="true"/>
228
+
229
+ <xsd:complexType name="AbstractRecurringIntraResponse" abstract="true"/>
230
+
231
+ <xsd:complexType name="RecurringIntraCancellationRequest">
232
+ <xsd:annotation>
233
+ <xsd:documentation>
234
+ The OFX element "RECINTRACANRQ" is of type "RecurringIntraCancellationRequest"
235
+ </xsd:documentation>
236
+ </xsd:annotation>
237
+
238
+ <xsd:complexContent>
239
+ <xsd:extension base="ofx:AbstractRecurringIntraRequest">
240
+ <xsd:sequence>
241
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
242
+ <xsd:element name="CANPENDING" type="ofx:BooleanType"/>
243
+ </xsd:sequence>
244
+ </xsd:extension>
245
+ </xsd:complexContent>
246
+ </xsd:complexType>
247
+
248
+ <xsd:complexType name="RecurringIntraCancellationResponse">
249
+ <xsd:annotation>
250
+ <xsd:documentation>
251
+ The OFX element "RECINTRACANRS" is of type "RecurringIntraCancellationResponse"
252
+ </xsd:documentation>
253
+ </xsd:annotation>
254
+
255
+ <xsd:complexContent>
256
+ <xsd:extension base="ofx:AbstractRecurringIntraResponse">
257
+ <xsd:sequence>
258
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
259
+ <xsd:element name="CANPENDING" type="ofx:BooleanType"/>
260
+ </xsd:sequence>
261
+ </xsd:extension>
262
+ </xsd:complexContent>
263
+ </xsd:complexType>
264
+
265
+ <xsd:complexType name="RecurringIntraModRequest">
266
+ <xsd:annotation>
267
+ <xsd:documentation>
268
+ The OFX element "RECINTRAMODRQ" is of type "RecurringIntraModRequest"
269
+ </xsd:documentation>
270
+ </xsd:annotation>
271
+
272
+ <xsd:complexContent>
273
+ <xsd:extension base="ofx:AbstractRecurringIntraRequest">
274
+ <xsd:sequence>
275
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
276
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
277
+ <xsd:element name="INTRARQ" type="ofx:IntraRequest"/>
278
+ <xsd:element name="MODPENDING" type="ofx:BooleanType"/>
279
+ </xsd:sequence>
280
+ </xsd:extension>
281
+ </xsd:complexContent>
282
+ </xsd:complexType>
283
+
284
+ <xsd:complexType name="RecurringIntraModResponse">
285
+ <xsd:annotation>
286
+ <xsd:documentation>
287
+ The OFX element "RECINTRAMODRS" is of type "RecurringIntraModResponse"
288
+ </xsd:documentation>
289
+ </xsd:annotation>
290
+
291
+ <xsd:complexContent>
292
+ <xsd:extension base="ofx:AbstractRecurringIntraResponse">
293
+ <xsd:sequence>
294
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
295
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
296
+ <xsd:element name="INTRARS" type="ofx:IntraResponse"/>
297
+ <xsd:element name="MODPENDING" type="ofx:BooleanType"/>
298
+ </xsd:sequence>
299
+ </xsd:extension>
300
+ </xsd:complexContent>
301
+ </xsd:complexType>
302
+
303
+ <xsd:complexType name="RecurringIntraRequest">
304
+ <xsd:annotation>
305
+ <xsd:documentation>
306
+ The OFX element "RECINTRARQ" is of type "RecurringIntraRequest"
307
+ </xsd:documentation>
308
+ </xsd:annotation>
309
+
310
+ <xsd:complexContent>
311
+ <xsd:extension base="ofx:AbstractRecurringIntraRequest">
312
+ <xsd:sequence>
313
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
314
+ <xsd:element name="INTRARQ" type="ofx:IntraRequest"/>
315
+ </xsd:sequence>
316
+ </xsd:extension>
317
+ </xsd:complexContent>
318
+ </xsd:complexType>
319
+
320
+ <xsd:complexType name="RecurringIntraResponse">
321
+ <xsd:annotation>
322
+ <xsd:documentation>
323
+ The OFX element "RECINTRARS" is of type "RecurringIntraResponse"
324
+ </xsd:documentation>
325
+ </xsd:annotation>
326
+
327
+ <xsd:complexContent>
328
+ <xsd:extension base="ofx:AbstractRecurringIntraResponse">
329
+ <xsd:sequence>
330
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
331
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
332
+ <xsd:element name="INTRARS" type="ofx:IntraResponse"/>
333
+ </xsd:sequence>
334
+ </xsd:extension>
335
+ </xsd:complexContent>
336
+ </xsd:complexType>
337
+
338
+ <xsd:complexType name="StatementEndRequest">
339
+ <xsd:annotation>
340
+ <xsd:documentation>
341
+ The OFX element "STMTENDRQ" is of type "StatementEndRequest"
342
+ </xsd:documentation>
343
+ </xsd:annotation>
344
+
345
+ <xsd:sequence>
346
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
347
+ <xsd:element name="DTSTART" type="ofx:DateTimeType" minOccurs="0"/>
348
+ <xsd:element name="DTEND" type="ofx:DateTimeType" minOccurs="0"/>
349
+ <xsd:element name="INCSTMTIMG" type="ofx:BooleanType" minOccurs="0"/>
350
+ </xsd:sequence>
351
+ </xsd:complexType>
352
+
353
+ <xsd:complexType name="StatementEndResponse">
354
+ <xsd:annotation>
355
+ <xsd:documentation>
356
+ The OFX element "STMTENDRS" is of type "StatementEndResponse"
357
+ </xsd:documentation>
358
+ </xsd:annotation>
359
+
360
+ <xsd:sequence>
361
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
362
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
363
+ <xsd:element name="CLOSING" type="ofx:Closing" minOccurs="0" maxOccurs="unbounded"/>
364
+ </xsd:sequence>
365
+ </xsd:complexType>
366
+
367
+ <xsd:complexType name="StatementRequest">
368
+ <xsd:annotation>
369
+ <xsd:documentation>
370
+ The OFX element "STMTRQ" is of type "StatementRequest"
371
+ </xsd:documentation>
372
+ </xsd:annotation>
373
+
374
+ <xsd:sequence>
375
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
376
+ <xsd:element name="INCTRAN" type="ofx:IncTransaction" minOccurs="0"/>
377
+ <xsd:element name="INCTRANIMG" type="ofx:BooleanType" minOccurs="0"/>
378
+ </xsd:sequence>
379
+ </xsd:complexType>
380
+
381
+ <xsd:complexType name="StatementResponse">
382
+ <xsd:annotation>
383
+ <xsd:documentation>
384
+ The OFX element "STMTRS" is of type "StatementResponse"
385
+ </xsd:documentation>
386
+ </xsd:annotation>
387
+
388
+ <xsd:sequence>
389
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
390
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
391
+ <xsd:element name="BANKTRANLIST" type="ofx:BankTransactionList" minOccurs="0"/>
392
+ <xsd:element name="LEDGERBAL" type="ofx:LedgerBalance"/>
393
+ <xsd:element name="AVAILBAL" type="ofx:AvailableBalance" minOccurs="0"/>
394
+ <xsd:element name="BALLIST" type="ofx:BalanceList" minOccurs="0"/>
395
+ <xsd:element name="MKTGINFO" type="ofx:InfoType" minOccurs="0"/>
396
+ </xsd:sequence>
397
+ </xsd:complexType>
398
+
399
+ <xsd:complexType name="StopCheckRequest">
400
+ <xsd:annotation>
401
+ <xsd:documentation>
402
+ The OFX element "STPCHKRQ" is of type "StopCheckRequest"
403
+ </xsd:documentation>
404
+ </xsd:annotation>
405
+
406
+ <xsd:sequence>
407
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
408
+ <xsd:choice>
409
+ <xsd:element name="CHKRANGE" type="ofx:CheckRange"/>
410
+ <xsd:element name="CHKDESC" type="ofx:CheckDescription"/>
411
+ </xsd:choice>
412
+ </xsd:sequence>
413
+ </xsd:complexType>
414
+
415
+ <xsd:complexType name="StopCheckResponse">
416
+ <xsd:annotation>
417
+ <xsd:documentation>
418
+ The OFX element "STPCHKRS" is of type "StopCheckResponse"
419
+ </xsd:documentation>
420
+ </xsd:annotation>
421
+
422
+ <xsd:sequence>
423
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
424
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount"/>
425
+ <xsd:element name="STPCHKNUM" type="ofx:StopCheckNumber" maxOccurs="unbounded"/>
426
+ <xsd:element name="FEE" type="ofx:AmountType"/>
427
+ <xsd:element name="FEEMSG" type="ofx:ShortMessageType"/>
428
+ </xsd:sequence>
429
+ </xsd:complexType>
430
+
431
+ </xsd:schema>
@@ -0,0 +1,223 @@
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
+ p18 2002-02-11 altenburgd@businesslogic.com Initial revision
12
+ p21 2002-03-17 altenburgd@businesslogic.com Changed elementFormDefault to "unqualified"
13
+ Changed namespace to "http://ofx.net/types/2003/04"
14
+ RC4 2003-06-24 gil_clark@intuit.com Added collapse to fixed length, non-string types and enums.
15
+ RC4 2003-07-10 altenburgd@businesslogic.com Changed 'ExtType' to be a restricted string
16
+ 2006-06-13 wendy_dubois@intuit.com Changed EXTDPMTDSC to be optional if EXTDPMTINV is present
17
+
18
+ -->
19
+
20
+ <xsd:schema
21
+ elementFormDefault="unqualified"
22
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
23
+ xmlns:ofx="http://ofx.net/types/2003/04"
24
+ targetNamespace="http://ofx.net/types/2003/04">
25
+
26
+ <xsd:include schemaLocation = "OFX_Common.xsd" />
27
+
28
+ <xsd:complexType name="BillPubInfo">
29
+ <xsd:annotation>
30
+ <xsd:documentation>
31
+ The OFX element "BILLPUBINFO" is of type "BillPubInfo"
32
+ </xsd:documentation>
33
+ </xsd:annotation>
34
+
35
+ <xsd:sequence>
36
+ <xsd:element name="BILLPUB" type="ofx:GenericNameType" />
37
+
38
+ <xsd:element name="BILLID" type="ofx:IdType" />
39
+ </xsd:sequence>
40
+ </xsd:complexType>
41
+
42
+
43
+ <xsd:complexType name="ExtendedPayee">
44
+ <xsd:annotation>
45
+ <xsd:documentation>
46
+ The OFX element "EXTDPAYEE" is of type "ExtendedPayee"
47
+ </xsd:documentation>
48
+ </xsd:annotation>
49
+
50
+ <xsd:sequence>
51
+ <xsd:sequence minOccurs="0" maxOccurs="1">
52
+ <xsd:element name="PAYEEID" type="ofx:PayeeIdType" />
53
+
54
+ <xsd:element name="IDSCOPE" type="ofx:IdScopeEnum" />
55
+
56
+ <xsd:element name="NAME" type="ofx:GenericNameType" />
57
+ </xsd:sequence>
58
+
59
+ <xsd:element name="DAYSTOPAY" type="ofx:DayspanType" />
60
+ </xsd:sequence>
61
+ </xsd:complexType>
62
+
63
+ <xsd:complexType name="ExtendedPayment">
64
+ <xsd:annotation>
65
+ <xsd:documentation>
66
+ The OFX element "EXTDPMT" is of type "ExtendedPayment"
67
+ </xsd:documentation>
68
+ </xsd:annotation>
69
+
70
+ <xsd:sequence>
71
+ <xsd:element name="EXTDPMTFOR" type="ofx:ExtendedPaymentForEnum"
72
+ minOccurs="0" maxOccurs="1" />
73
+
74
+ <xsd:element name="EXTDPMTCHK" type="ofx:ExtType"
75
+ minOccurs="0" maxOccurs="1" />
76
+
77
+ <xsd:choice>
78
+ <xsd:sequence>
79
+ <xsd:element name="EXTDPMTDSC" type="ofx:MessageType" />
80
+
81
+ <xsd:element name="EXTDPMTINV" type="ofx:ExtendedPaymentInvoice"
82
+ minOccurs="0" maxOccurs="1" />
83
+ </xsd:sequence>
84
+
85
+ <xsd:element name="EXTDPMTINV" type="ofx:ExtendedPaymentInvoice" />
86
+ </xsd:choice>
87
+ </xsd:sequence>
88
+ </xsd:complexType>
89
+
90
+ <xsd:simpleType name="ExtendedPaymentForEnum">
91
+ <xsd:annotation>
92
+ <xsd:documentation>
93
+ The OFX element "EXTDPMTFORENUM" is of type "ExtendedPaymentForEnum"
94
+ </xsd:documentation>
95
+ </xsd:annotation>
96
+
97
+ <xsd:restriction base="xsd:string">
98
+ <xsd:whiteSpace value="collapse"/>
99
+ <xsd:enumeration value="INDIVIDUAL" />
100
+ <xsd:enumeration value="BUSINESS" />
101
+ </xsd:restriction>
102
+ </xsd:simpleType>
103
+
104
+ <xsd:complexType name="ExtendedPaymentInvoice">
105
+ <xsd:annotation>
106
+ <xsd:documentation>
107
+ The OFX element "EXTDPMTINV" is of type "ExtendedPaymentInvoice"
108
+ </xsd:documentation>
109
+ </xsd:annotation>
110
+
111
+ <xsd:sequence>
112
+ <xsd:element name="INVOICE" type="ofx:Invoice" minOccurs="1"
113
+ maxOccurs="unbounded" />
114
+ </xsd:sequence>
115
+ </xsd:complexType>
116
+
117
+ <xsd:simpleType name="ExtType">
118
+ <xsd:annotation>
119
+ <xsd:documentation>
120
+ The OFX element "EXT" is of type "ExtType"
121
+ </xsd:documentation>
122
+ </xsd:annotation>
123
+
124
+ <xsd:restriction base="xsd:string">
125
+ <xsd:minLength value="1"/>
126
+ <xsd:maxLength value="10"/>
127
+ <xsd:pattern value="[0-9]+"/>
128
+ <xsd:whiteSpace value="collapse"/>
129
+ </xsd:restriction>
130
+ </xsd:simpleType>
131
+
132
+ <xsd:simpleType name="IdScopeEnum">
133
+ <xsd:annotation>
134
+ <xsd:documentation>
135
+ The OFX element "IDSCOPEENUM" is of type "IdScopeEnum"
136
+ </xsd:documentation>
137
+ </xsd:annotation>
138
+
139
+ <xsd:restriction base="xsd:string">
140
+ <xsd:whiteSpace value="collapse"/>
141
+ <xsd:enumeration value="GLOBAL" />
142
+ <xsd:enumeration value="USER" />
143
+ </xsd:restriction>
144
+ </xsd:simpleType>
145
+
146
+
147
+ <xsd:complexType name="PaymentInfo">
148
+ <xsd:annotation>
149
+ <xsd:documentation>
150
+ The OFX element "PMTINFO" is of type "PaymentInfo"
151
+ </xsd:documentation>
152
+ </xsd:annotation>
153
+
154
+ <xsd:sequence>
155
+ <xsd:element name="BANKACCTFROM" type="ofx:BankAccount" />
156
+
157
+ <xsd:element name="TRNAMT" type="ofx:AmountType" />
158
+
159
+ <xsd:choice>
160
+ <xsd:element name="PAYEEID" type="ofx:PayeeIdType" />
161
+
162
+ <xsd:element name="PAYEE" type="ofx:Payee" />
163
+ </xsd:choice>
164
+
165
+ <xsd:element name="PAYEELSTID" type="ofx:PayeeIdType"
166
+ minOccurs="0" maxOccurs="1" />
167
+
168
+ <xsd:element name="BANKACCTTO" type="ofx:BankAccount"
169
+ minOccurs="0" maxOccurs="1" />
170
+
171
+ <xsd:element name="EXTDPMT" type="ofx:ExtendedPayment" minOccurs="0"
172
+ maxOccurs="unbounded" />
173
+
174
+ <xsd:element name="PAYACCT" type="ofx:IdType" />
175
+
176
+ <xsd:element name="DTDUE" type="ofx:DateTimeType" />
177
+
178
+ <xsd:element name="MEMO" type="ofx:MessageType" minOccurs="0"
179
+ maxOccurs="1" />
180
+
181
+ <xsd:element name="BILLREFINFO" type="ofx:BillRefInfoType"
182
+ minOccurs="0" maxOccurs="1" />
183
+
184
+ <xsd:element name="BILLPUBINFO" type="ofx:BillPubInfo"
185
+ minOccurs="0" maxOccurs="1" />
186
+ </xsd:sequence>
187
+ </xsd:complexType>
188
+
189
+ <xsd:complexType name="PaymentProcessingStatus">
190
+ <xsd:annotation>
191
+ <xsd:documentation>
192
+ The OFX element "PMTPRCSTS" is of type "PaymentProcessingStatus"
193
+ </xsd:documentation>
194
+ </xsd:annotation>
195
+
196
+ <xsd:sequence>
197
+ <xsd:element name="PMTPRCCODE"
198
+ type="ofx:PaymentProcessStatusEnum" />
199
+
200
+ <xsd:element name="DTPMTPRC" type="ofx:DateTimeType" />
201
+ </xsd:sequence>
202
+ </xsd:complexType>
203
+
204
+ <xsd:simpleType name="PaymentProcessStatusEnum">
205
+ <xsd:annotation>
206
+ <xsd:documentation>
207
+ The OFX element "PMTPROCESSSTATUSENUM" is of type "PaymentProcessStatusEnum"
208
+ </xsd:documentation>
209
+ </xsd:annotation>
210
+
211
+ <xsd:restriction base="xsd:string">
212
+ <xsd:whiteSpace value="collapse"/>
213
+ <xsd:enumeration value="CANCELEDON" />
214
+ <xsd:enumeration value="WILLPROCESSON" />
215
+ <xsd:enumeration value="PROCESSEDON" />
216
+ <xsd:enumeration value="NOFUNDSON" />
217
+ <xsd:enumeration value="FAILEDON" />
218
+ </xsd:restriction>
219
+ </xsd:simpleType>
220
+
221
+
222
+ </xsd:schema>
223
+