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,412 @@
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
+ p18 2002-02-11 altenburgd@businesslogic.com Initial revision
11
+ p20 2003-03-10 raberm@businesslogic.com Added AbstractRecurringPaymentRequest and made the following types extend it:
12
+ RecurringPaymentRequest, RecurringPaymentCancelRequest, RecurringPaymentModRequest,
13
+ Added AbstractRecurringPaymentResponse and made the following types extend it:
14
+ RecurringPaymentCancelResponse, RecurringPaymentModResponse, RecurringPaymentResponse
15
+ p21 altenburgd@businesslogic.com Added AbstractPaymentResponse and made the following types extend it:
16
+ PaymentResponse, PaymentModResponse, PaymentCancelResponse
17
+ Added AbstractPayeeResponse and made the following types extend it:
18
+ PayeeResponse, PayeeModResponse, PayeeDeleteResponse
19
+ Added 'AbstractPaymentRequest' and made the following types extend it:
20
+ PaymentRequest, PaymentModRequest, and PaymentCancelRequest
21
+ p21 2002-03-17 altenburgd@businesslogic.com Changed elementFormDefault to "unqualified"
22
+ Changed namespace to "http://ofx.net/types/2003/04"
23
+ -->
24
+ <xsd:schema targetNamespace="http://ofx.net/types/2003/04" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ofx="http://ofx.net/types/2003/04" elementFormDefault="unqualified">
25
+ <xsd:include schemaLocation="OFX_BillPay.xsd"/>
26
+
27
+ <xsd:complexType name="AbstractPayeeRequest" abstract="true"/>
28
+
29
+ <xsd:complexType name="PayeeRequest">
30
+ <xsd:annotation>
31
+ <xsd:documentation>
32
+ The OFX element "PAYEERQ" is of type "PayeeRequest"
33
+ </xsd:documentation>
34
+ </xsd:annotation>
35
+ <xsd:complexContent>
36
+ <xsd:extension base="ofx:AbstractPayeeRequest">
37
+ <xsd:sequence>
38
+ <xsd:choice>
39
+ <xsd:element name="PAYEEID" type="ofx:PayeeIdType"/>
40
+ <xsd:element name="PAYEE" type="ofx:Payee"/>
41
+ </xsd:choice>
42
+ <xsd:element name="BANKACCTTO" type="ofx:BankAccount" minOccurs="0"/>
43
+ <xsd:element name="PAYACCT" type="ofx:IdType" minOccurs="0" maxOccurs="unbounded"/>
44
+ </xsd:sequence>
45
+ </xsd:extension>
46
+ </xsd:complexContent>
47
+ </xsd:complexType>
48
+
49
+ <xsd:complexType name="PayeeModRequest">
50
+ <xsd:annotation>
51
+ <xsd:documentation>
52
+ The OFX element "PAYEEMODRQ" is of type "PayeeModRequest"
53
+ </xsd:documentation>
54
+ </xsd:annotation>
55
+ <xsd:complexContent>
56
+ <xsd:extension base="ofx:AbstractPayeeRequest">
57
+ <xsd:sequence>
58
+ <xsd:element name="PAYEELSTID" type="ofx:PayeeIdType"/>
59
+ <xsd:sequence minOccurs="0">
60
+ <xsd:element name="PAYEE" type="ofx:Payee"/>
61
+ <xsd:element name="BANKACCTTO" type="ofx:BankAccount" minOccurs="0"/>
62
+ </xsd:sequence>
63
+ <xsd:element name="PAYACCT" type="ofx:IdType" minOccurs="0" maxOccurs="unbounded"/>
64
+ </xsd:sequence>
65
+ </xsd:extension>
66
+ </xsd:complexContent>
67
+ </xsd:complexType>
68
+
69
+ <xsd:complexType name="PayeeDeleteRequest">
70
+ <xsd:annotation>
71
+ <xsd:documentation>
72
+ The OFX element "PAYEEDELRQ" is of type "PayeeDeleteRequest"
73
+ </xsd:documentation>
74
+ </xsd:annotation>
75
+ <xsd:complexContent>
76
+ <xsd:extension base="ofx:AbstractPayeeRequest">
77
+ <xsd:sequence>
78
+ <xsd:element name="PAYEELSTID" type="ofx:PayeeIdType"/>
79
+ </xsd:sequence>
80
+ </xsd:extension>
81
+ </xsd:complexContent>
82
+ </xsd:complexType>
83
+
84
+ <xsd:complexType name="AbstractPayeeResponse" abstract="true">
85
+ <xsd:sequence>
86
+ <xsd:element name="PAYEELSTID" type="ofx:PayeeIdType"/>
87
+ </xsd:sequence>
88
+ </xsd:complexType>
89
+
90
+ <xsd:complexType name="PayeeResponse">
91
+ <xsd:annotation>
92
+ <xsd:documentation>
93
+ The OFX element "PAYEERS" is of type "PayeeResponse"
94
+ </xsd:documentation>
95
+ </xsd:annotation>
96
+ <xsd:complexContent>
97
+ <xsd:extension base="ofx:AbstractPayeeResponse">
98
+ <xsd:sequence>
99
+ <xsd:sequence minOccurs="0">
100
+ <xsd:element name="PAYEE" type="ofx:Payee"/>
101
+ <xsd:element name="BANKACCTTO" type="ofx:BankAccount" minOccurs="0"/>
102
+ </xsd:sequence>
103
+ <xsd:element name="EXTDPAYEE" type="ofx:ExtendedPayee" minOccurs="0"/>
104
+ <xsd:element name="PAYACCT" type="ofx:IdType" minOccurs="0" maxOccurs="unbounded"/>
105
+ </xsd:sequence>
106
+ </xsd:extension>
107
+ </xsd:complexContent>
108
+ </xsd:complexType>
109
+
110
+ <xsd:complexType name="PayeeModResponse">
111
+ <xsd:annotation>
112
+ <xsd:documentation>
113
+ The OFX element "PAYEEMODRS" is of type "PayeeModResponse"
114
+ </xsd:documentation>
115
+ </xsd:annotation>
116
+ <xsd:complexContent>
117
+ <xsd:extension base="ofx:AbstractPayeeResponse">
118
+ <xsd:sequence>
119
+ <xsd:sequence minOccurs="0">
120
+ <xsd:element name="PAYEE" type="ofx:Payee"/>
121
+ <xsd:element name="BANKACCTTO" type="ofx:BankAccount" minOccurs="0"/>
122
+ </xsd:sequence>
123
+ <xsd:element name="PAYACCT" type="ofx:IdType" minOccurs="0" maxOccurs="unbounded"/>
124
+ <xsd:element name="EXTDPAYEE" type="ofx:ExtendedPayee" minOccurs="0"/>
125
+ </xsd:sequence>
126
+ </xsd:extension>
127
+ </xsd:complexContent>
128
+ </xsd:complexType>
129
+
130
+ <xsd:complexType name="PayeeDeleteResponse">
131
+ <xsd:annotation>
132
+ <xsd:documentation>
133
+ The OFX element "PAYEEDELRS" is of type "PayeeDeleteResponse"
134
+ </xsd:documentation>
135
+ </xsd:annotation>
136
+ <xsd:complexContent>
137
+ <xsd:extension base="ofx:AbstractPayeeResponse"/>
138
+ </xsd:complexContent>
139
+ </xsd:complexType>
140
+
141
+ <xsd:complexType name="PaymentInquiryResponse">
142
+ <xsd:annotation>
143
+ <xsd:documentation>
144
+ The OFX element "PMTINQRS" is of type "PaymentInquiryResponse"
145
+ </xsd:documentation>
146
+ </xsd:annotation>
147
+ <xsd:sequence>
148
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
149
+ <xsd:element name="PMTPRCSTS" type="ofx:PaymentProcessingStatus"/>
150
+ <xsd:element name="CHECKNUM" type="ofx:CheckNumberType" minOccurs="0"/>
151
+ </xsd:sequence>
152
+ </xsd:complexType>
153
+ <xsd:complexType name="PaymentMailRequest">
154
+ <xsd:annotation>
155
+ <xsd:documentation>
156
+ The OFX element "PMTMAILRQ" is of type "PaymentMailRequest"
157
+ </xsd:documentation>
158
+ </xsd:annotation>
159
+ <xsd:sequence>
160
+ <xsd:element name="MAIL" type="ofx:Mail"/>
161
+ <xsd:sequence minOccurs="0">
162
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
163
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
164
+ </xsd:sequence>
165
+ </xsd:sequence>
166
+ </xsd:complexType>
167
+ <xsd:complexType name="PaymentMailResponse">
168
+ <xsd:annotation>
169
+ <xsd:documentation>
170
+ The OFX element "PMTMAILRS" is of type "PaymentMailResponse"
171
+ </xsd:documentation>
172
+ </xsd:annotation>
173
+ <xsd:sequence>
174
+ <xsd:element name="MAIL" type="ofx:Mail"/>
175
+ <xsd:sequence minOccurs="0">
176
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
177
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
178
+ </xsd:sequence>
179
+ </xsd:sequence>
180
+ </xsd:complexType>
181
+
182
+ <xsd:complexType name="AbstractPaymentRequest" abstract="true"/>
183
+
184
+ <xsd:complexType name="PaymentRequest">
185
+ <xsd:annotation>
186
+ <xsd:documentation>
187
+ The OFX element "PMTRQ" is of type "PaymentRequest"
188
+ </xsd:documentation>
189
+ </xsd:annotation>
190
+ <xsd:complexContent>
191
+ <xsd:extension base="ofx:AbstractPaymentRequest">
192
+ <xsd:sequence>
193
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
194
+ </xsd:sequence>
195
+ </xsd:extension>
196
+ </xsd:complexContent>
197
+ </xsd:complexType>
198
+
199
+ <xsd:complexType name="PaymentModRequest">
200
+ <xsd:annotation>
201
+ <xsd:documentation>
202
+ The OFX element "PMTMODRQ" is of type "PaymentModRequest"
203
+ </xsd:documentation>
204
+ </xsd:annotation>
205
+ <xsd:complexContent>
206
+ <xsd:extension base="ofx:AbstractPaymentRequest">
207
+ <xsd:sequence>
208
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
209
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
210
+ </xsd:sequence>
211
+ </xsd:extension>
212
+ </xsd:complexContent>
213
+ </xsd:complexType>
214
+
215
+ <xsd:complexType name="PaymentCancelRequest">
216
+ <xsd:annotation>
217
+ <xsd:documentation>
218
+ The OFX element "PMTCANCRQ" is of type "PaymentCancelRequest"
219
+ </xsd:documentation>
220
+ </xsd:annotation>
221
+ <xsd:complexContent>
222
+ <xsd:extension base="ofx:AbstractPaymentRequest">
223
+ <xsd:sequence>
224
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
225
+ </xsd:sequence>
226
+ </xsd:extension>
227
+ </xsd:complexContent>
228
+ </xsd:complexType>
229
+
230
+
231
+ <xsd:complexType name="PaymentInquiryRequest">
232
+ <xsd:annotation>
233
+ <xsd:documentation>
234
+ The OFX element "PMTINQRQ" is of type "PaymentInquiryRequest"
235
+ </xsd:documentation>
236
+ </xsd:annotation>
237
+ <xsd:sequence>
238
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
239
+ </xsd:sequence>
240
+ </xsd:complexType>
241
+
242
+ <xsd:complexType name="AbstractPaymentResponse" abstract="true">
243
+ <xsd:sequence>
244
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType"/>
245
+ </xsd:sequence>
246
+ </xsd:complexType>
247
+
248
+ <xsd:complexType name="PaymentResponse">
249
+ <xsd:annotation>
250
+ <xsd:documentation>
251
+ The OFX element "PMTRS" is of type "PaymentResponse"
252
+ </xsd:documentation>
253
+ </xsd:annotation>
254
+ <xsd:complexContent>
255
+ <xsd:extension base="ofx:AbstractPaymentResponse">
256
+ <xsd:sequence>
257
+ <xsd:element name="PAYEELSTID" type="ofx:PayeeIdType"/>
258
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
259
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
260
+ <xsd:element name="EXTDPAYEE" type="ofx:ExtendedPayee" minOccurs="0"/>
261
+ <xsd:element name="CHECKNUM" type="ofx:CheckNumberType" minOccurs="0"/>
262
+ <xsd:element name="PMTPRCSTS" type="ofx:PaymentProcessingStatus"/>
263
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType" minOccurs="0"/>
264
+ </xsd:sequence>
265
+ </xsd:extension>
266
+ </xsd:complexContent>
267
+ </xsd:complexType>
268
+
269
+ <xsd:complexType name="PaymentModResponse">
270
+ <xsd:annotation>
271
+ <xsd:documentation>
272
+ The OFX element "PMTMODRS" is of type "PaymentModResponse"
273
+ </xsd:documentation>
274
+ </xsd:annotation>
275
+ <xsd:complexContent>
276
+ <xsd:extension base="ofx:AbstractPaymentResponse">
277
+ <xsd:sequence>
278
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
279
+ <xsd:element name="PMTPRCSTS" type="ofx:PaymentProcessingStatus" minOccurs="0"/>
280
+ </xsd:sequence>
281
+ </xsd:extension>
282
+ </xsd:complexContent>
283
+ </xsd:complexType>
284
+
285
+ <xsd:complexType name="PaymentCancelResponse">
286
+ <xsd:annotation>
287
+ <xsd:documentation>
288
+ The OFX element "PMTCANCRS" is of type "PaymentCancelResponse"
289
+ </xsd:documentation>
290
+ </xsd:annotation>
291
+ <xsd:complexContent>
292
+ <xsd:extension base="ofx:AbstractPaymentResponse"/>
293
+ </xsd:complexContent>
294
+ </xsd:complexType>
295
+
296
+
297
+ <xsd:complexType name="AbstractRecurringPaymentRequest" abstract="true"/>
298
+
299
+ <xsd:complexType name="AbstractRecurringPaymentResponse" abstract="true">
300
+ <xsd:sequence>
301
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
302
+ </xsd:sequence>
303
+ </xsd:complexType>
304
+
305
+
306
+ <xsd:complexType name="RecurringPaymentCancelRequest">
307
+ <xsd:annotation>
308
+ <xsd:documentation>
309
+ The OFX element "RECPMTCANCRQ" is of type "RecurringPaymentCancelRequest"
310
+ </xsd:documentation>
311
+ </xsd:annotation>
312
+ <xsd:complexContent>
313
+ <xsd:extension base="ofx:AbstractRecurringPaymentRequest">
314
+ <xsd:sequence>
315
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
316
+
317
+ <xsd:element name="CANPENDING" type="ofx:BooleanType"/>
318
+ </xsd:sequence>
319
+ </xsd:extension>
320
+ </xsd:complexContent>
321
+ </xsd:complexType>
322
+ <xsd:complexType name="RecurringPaymentCancelResponse">
323
+ <xsd:annotation>
324
+ <xsd:documentation>
325
+ The OFX element "RECPMTCANCRS" is of type "RecurringPaymentCancelResponse"
326
+ </xsd:documentation>
327
+ </xsd:annotation>
328
+ <xsd:complexContent>
329
+ <xsd:extension base="ofx:AbstractRecurringPaymentResponse">
330
+ <xsd:sequence>
331
+ <xsd:element name="CANPENDING" type="ofx:BooleanType"/>
332
+ </xsd:sequence>
333
+ </xsd:extension>
334
+ </xsd:complexContent>
335
+ </xsd:complexType>
336
+ <xsd:complexType name="RecurringPaymentModRequest">
337
+ <xsd:annotation>
338
+ <xsd:documentation>
339
+ The OFX element "RECPMTMODRQ" is of type "RecurringPaymentModRequest"
340
+ </xsd:documentation>
341
+ </xsd:annotation>
342
+ <xsd:complexContent>
343
+ <xsd:extension base="ofx:AbstractRecurringPaymentRequest">
344
+ <xsd:sequence>
345
+ <xsd:element name="RECSRVRTID" type="ofx:ServerIdType"/>
346
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
347
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
348
+ <xsd:element name="INITIALAMT" type="ofx:AmountType" minOccurs="0"/>
349
+ <xsd:element name="FINALAMT" type="ofx:AmountType" minOccurs="0"/>
350
+ <xsd:element name="MODPENDING" type="ofx:BooleanType"/>
351
+ </xsd:sequence>
352
+ </xsd:extension>
353
+ </xsd:complexContent>
354
+ </xsd:complexType>
355
+ <xsd:complexType name="RecurringPaymentModResponse">
356
+ <xsd:annotation>
357
+ <xsd:documentation>
358
+ The OFX element "RECPMTMODRS" is of type "RecurringPaymentModResponse"
359
+ </xsd:documentation>
360
+ </xsd:annotation>
361
+ <xsd:complexContent>
362
+ <xsd:extension base="ofx:AbstractRecurringPaymentResponse">
363
+ <xsd:sequence>
364
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
365
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
366
+ <xsd:element name="INITIALAMT" type="ofx:AmountType" minOccurs="0"/>
367
+ <xsd:element name="FINALAMT" type="ofx:AmountType" minOccurs="0"/>
368
+ <xsd:element name="MODPENDING" type="ofx:BooleanType"/>
369
+ </xsd:sequence>
370
+ </xsd:extension>
371
+ </xsd:complexContent>
372
+ </xsd:complexType>
373
+
374
+ <xsd:complexType name="RecurringPaymentRequest">
375
+ <xsd:annotation>
376
+ <xsd:documentation>
377
+ The OFX element "RECPMTRQ" is of type "RecurringPaymentRequest"
378
+ </xsd:documentation>
379
+ </xsd:annotation>
380
+ <xsd:complexContent>
381
+ <xsd:extension base="ofx:AbstractRecurringPaymentRequest">
382
+ <xsd:sequence>
383
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
384
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
385
+ <xsd:element name="INITIALAMT" type="ofx:AmountType" minOccurs="0"/>
386
+ <xsd:element name="FINALAMT" type="ofx:AmountType" minOccurs="0"/>
387
+ </xsd:sequence>
388
+ </xsd:extension>
389
+ </xsd:complexContent>
390
+ </xsd:complexType>
391
+
392
+ <xsd:complexType name="RecurringPaymentResponse">
393
+ <xsd:annotation>
394
+ <xsd:documentation>
395
+ The OFX element "RECPMTRS" is of type "RecurringPaymentResponse"
396
+ </xsd:documentation>
397
+ </xsd:annotation>
398
+ <xsd:complexContent>
399
+ <xsd:extension base="ofx:AbstractRecurringPaymentResponse">
400
+ <xsd:sequence>
401
+ <xsd:element name="PAYEELSTID" type="ofx:PayeeIdType"/>
402
+ <xsd:element name="CURDEF" type="ofx:CurrencyEnum"/>
403
+ <xsd:element name="RECURRINST" type="ofx:RecurringInstructions"/>
404
+ <xsd:element name="PMTINFO" type="ofx:PaymentInfo"/>
405
+ <xsd:element name="INITIALAMT" type="ofx:AmountType" minOccurs="0"/>
406
+ <xsd:element name="FINALAMT" type="ofx:AmountType" minOccurs="0"/>
407
+ <xsd:element name="EXTDPAYEE" type="ofx:ExtendedPayee" minOccurs="0"/>
408
+ </xsd:sequence>
409
+ </xsd:extension>
410
+ </xsd:complexContent>
411
+ </xsd:complexType>
412
+ </xsd:schema>
@@ -0,0 +1,263 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <!--
3
+ Open Financial Exchange Specification (c)1996-2003 ("Specification") by all of its publishers:
4
+ CheckFree Corp., Intuit Inc., and Microsoft Corporation. All rights reserved.
5
+
6
+ Revision History:
7
+
8
+ Version Date Editor Email Addr Short Description
9
+ p18 2002-02-11 altenburgd@businesslogic.com Initial revision
10
+ p21 2002-03-17 altenburgd@businesslogic.com Changed elementFormDefault to "unqualified"
11
+ Changed namespace to "http://ofx.net/types/2003/04"
12
+ RC4 2003-06-24 gil_clark@intuit.com Added collapse to fixed length, non-string types and enums.
13
+ -->
14
+ <xsd:schema targetNamespace="http://ofx.net/types/2003/04" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ofx="http://ofx.net/types/2003/04" elementFormDefault="unqualified">
15
+ <xsd:include schemaLocation="OFX_Common.xsd"/>
16
+ <xsd:simpleType name="BillPaymentstatusCodeEnum">
17
+ <xsd:annotation>
18
+ <xsd:documentation>
19
+ The OFX element "BILLPMTSTATUSCODEENUM" is of type "BillPaymentstatusCodeEnum"
20
+ </xsd:documentation>
21
+ </xsd:annotation>
22
+ <xsd:restriction base="xsd:string">
23
+ <xsd:whiteSpace value="collapse"/>
24
+ <xsd:enumeration value="PAIDOUTOFBAND"/>
25
+ <xsd:enumeration value="AUTOPAY"/>
26
+ <xsd:enumeration value="CANCELLED"/>
27
+ <xsd:enumeration value="UNPAYABLE"/>
28
+ <xsd:enumeration value="NONE"/>
29
+ <xsd:enumeration value="SCHEDULED"/>
30
+ <xsd:enumeration value="PROCESSED"/>
31
+ <xsd:enumeration value="POSTED"/>
32
+ </xsd:restriction>
33
+ </xsd:simpleType>
34
+ <xsd:simpleType name="BillStatusCodeEnum">
35
+ <xsd:annotation>
36
+ <xsd:documentation>
37
+ The OFX element "BILLSTATUSCODEENUM" is of type "BillStatusCodeEnum"
38
+ </xsd:documentation>
39
+ </xsd:annotation>
40
+ <xsd:restriction base="xsd:string">
41
+ <xsd:whiteSpace value="collapse"/>
42
+ <xsd:enumeration value="WITHDRAWN"/>
43
+ <xsd:enumeration value="UNDELIVERABLE"/>
44
+ <xsd:enumeration value="NEW"/>
45
+ <xsd:enumeration value="DELIVERED"/>
46
+ <xsd:enumeration value="VIEWED"/>
47
+ <xsd:enumeration value="RETIRED"/>
48
+ </xsd:restriction>
49
+ </xsd:simpleType>
50
+ <xsd:simpleType name="BillTypeEnum">
51
+ <xsd:annotation>
52
+ <xsd:documentation>
53
+ The OFX element "BILLTYPEENUM" is of type "BillTypeEnum"
54
+ </xsd:documentation>
55
+ </xsd:annotation>
56
+ <xsd:restriction base="xsd:string">
57
+ <xsd:whiteSpace value="collapse"/>
58
+ <xsd:enumeration value="BILL"/>
59
+ <xsd:enumeration value="STATEMENT"/>
60
+ <xsd:enumeration value="NOTICE"/>
61
+ </xsd:restriction>
62
+ </xsd:simpleType>
63
+ <xsd:simpleType name="StatusModBYEnum">
64
+ <xsd:annotation>
65
+ <xsd:documentation>
66
+ The OFX element "STATUSMODBYENUM" is of type "StatusModBYEnum"
67
+ </xsd:documentation>
68
+ </xsd:annotation>
69
+ <xsd:restriction base="xsd:string">
70
+ <xsd:whiteSpace value="collapse"/>
71
+ <xsd:enumeration value="BILLPUBLISHERSR"/>
72
+ <xsd:enumeration value="PMTPROVIDER"/>
73
+ <xsd:enumeration value="PMTPROVIDERSR"/>
74
+ <xsd:enumeration value="BILLER"/>
75
+ <xsd:enumeration value="BILLERSR"/>
76
+ <xsd:enumeration value="CUSTOMER"/>
77
+ <xsd:enumeration value="CUSTAGENT"/>
78
+ <xsd:enumeration value="BILLPUBLISHER"/>
79
+ </xsd:restriction>
80
+ </xsd:simpleType>
81
+ <xsd:simpleType name="ColumnType">
82
+ <xsd:annotation>
83
+ <xsd:documentation>
84
+ The OFX element "COLUMN" is of type "ColumnType"
85
+ </xsd:documentation>
86
+ </xsd:annotation>
87
+ <xsd:restriction base="xsd:string">
88
+ <xsd:maxLength value="8"/>
89
+ <xsd:minLength value="1"/>
90
+ <xsd:whiteSpace value="collapse"/>
91
+ </xsd:restriction>
92
+ </xsd:simpleType>
93
+ <xsd:complexType name="BillDetailRow">
94
+ <xsd:annotation>
95
+ <xsd:documentation>
96
+ The OFX element "BILLDETAILROW" is of type "BillDetailRow"
97
+ </xsd:documentation>
98
+ </xsd:annotation>
99
+ <xsd:choice minOccurs="0" maxOccurs="unbounded">
100
+ <xsd:element name="C" type="ofx:MessageType"/>
101
+ <xsd:element name="N" type="ofx:CharType"/>
102
+ </xsd:choice>
103
+ </xsd:complexType>
104
+ <xsd:complexType name="BillDetailTable">
105
+ <xsd:annotation>
106
+ <xsd:documentation>
107
+ The OFX element "BILLDETAILTABLE" is of type "BillDetailTable"
108
+ </xsd:documentation>
109
+ </xsd:annotation>
110
+ <xsd:sequence>
111
+ <xsd:element name="TABLENAME" type="ofx:GenericNameType"/>
112
+ <xsd:element name="BILLDETAILTABLETYPE" type="ofx:GenericNameType"/>
113
+ <xsd:element name="BILLDETAILROW" type="ofx:BillDetailRow" minOccurs="0" maxOccurs="unbounded"/>
114
+ </xsd:sequence>
115
+ </xsd:complexType>
116
+ <xsd:complexType name="BillPaymentstatus">
117
+ <xsd:annotation>
118
+ <xsd:documentation>
119
+ The OFX element "BILLPMTSTATUS" is of type "BillPaymentstatus"
120
+ </xsd:documentation>
121
+ </xsd:annotation>
122
+ <xsd:sequence>
123
+ <xsd:element name="SRVRTID" type="ofx:ServerIdType" minOccurs="0"/>
124
+ <xsd:element name="BILLPMTSTATUSCODE" type="ofx:BillPaymentstatusCodeEnum"/>
125
+ <xsd:element name="DTEFF" type="ofx:DateTimeType"/>
126
+ <xsd:element name="STATUSMODBY" type="ofx:StatusModBYEnum" minOccurs="0"/>
127
+ </xsd:sequence>
128
+ </xsd:complexType>
129
+ <xsd:complexType name="BillPaymentstatusCounts">
130
+ <xsd:annotation>
131
+ <xsd:documentation>
132
+ The OFX element "BILLPMTSTATUSCOUNTS" is of type "BillPaymentstatusCounts"
133
+ </xsd:documentation>
134
+ </xsd:annotation>
135
+ <xsd:sequence>
136
+ <xsd:element name="BILLPMTSTATUSCODE" type="ofx:BillPaymentstatusCodeEnum"/>
137
+ <xsd:element name="COUNT" type="ofx:IdType"/>
138
+ </xsd:sequence>
139
+ </xsd:complexType>
140
+ <xsd:complexType name="BillStatus">
141
+ <xsd:annotation>
142
+ <xsd:documentation>
143
+ The OFX element "BILLSTATUS" is of type "BillStatus"
144
+ </xsd:documentation>
145
+ </xsd:annotation>
146
+ <xsd:sequence>
147
+ <xsd:element name="BILLSTATUSCODE" type="ofx:BillStatusCodeEnum"/>
148
+ <xsd:element name="DTEFF" type="ofx:DateTimeType"/>
149
+ <xsd:element name="STATUSMODBY" type="ofx:StatusModBYEnum" minOccurs="0"/>
150
+ </xsd:sequence>
151
+ </xsd:complexType>
152
+ <xsd:complexType name="BillStatusCounts">
153
+ <xsd:annotation>
154
+ <xsd:documentation>
155
+ The OFX element "BILLSTATUSCOUNTS" is of type "BillStatusCounts"
156
+ </xsd:documentation>
157
+ </xsd:annotation>
158
+ <xsd:sequence>
159
+ <xsd:element name="BILLSTATUSCODE" type="ofx:BillStatusCodeEnum"/>
160
+ <xsd:element name="COUNT" type="ofx:IdType"/>
161
+ </xsd:sequence>
162
+ </xsd:complexType>
163
+ <xsd:complexType name="ColumnDefinition">
164
+ <xsd:annotation>
165
+ <xsd:documentation>
166
+ The OFX element "COLDEF" is of type "ColumnDefinition"
167
+ </xsd:documentation>
168
+ </xsd:annotation>
169
+ <xsd:sequence>
170
+ <xsd:element name="COLNAME" type="ofx:GenericNameType"/>
171
+ <xsd:element name="COLTYPE" type="ofx:ColumnType"/>
172
+ </xsd:sequence>
173
+ </xsd:complexType>
174
+ <xsd:complexType name="PresentmentBillInfo">
175
+ <xsd:annotation>
176
+ <xsd:documentation>
177
+ The OFX element "PRESBILLINFO" is of type "PresentmentBillInfo"
178
+ </xsd:documentation>
179
+ </xsd:annotation>
180
+ <xsd:sequence>
181
+ <xsd:element name="BILLID" type="ofx:IdType"/>
182
+ <xsd:element name="PRESACCTFROM" type="ofx:PresentmentAccount"/>
183
+ <xsd:element name="PAYEEID" type="ofx:PayeeIdType" minOccurs="0"/>
184
+ <xsd:element name="BILLREFINFO" type="ofx:BillRefInfoType" minOccurs="0"/>
185
+ <xsd:element name="AMTDUE" type="ofx:AmountType"/>
186
+ <xsd:element name="MINAMTDUE" type="ofx:AmountType" minOccurs="0"/>
187
+ <xsd:element name="DTPMTDUE" type="ofx:DateTimeType"/>
188
+ <xsd:element name="DTBILL" type="ofx:DateTimeType"/>
189
+ <xsd:element name="DTOPEN" type="ofx:DateTimeType" minOccurs="0"/>
190
+ <xsd:element name="DTCLOSE" type="ofx:DateTimeType" minOccurs="0"/>
191
+ <xsd:element name="PREVBAL" type="ofx:AmountType" minOccurs="0"/>
192
+ <xsd:element name="ACTIVITY" type="ofx:AmountType" minOccurs="0"/>
193
+ <xsd:element name="ACCTBAL" type="ofx:AmountType" minOccurs="0"/>
194
+ <xsd:element name="INVOICE" type="ofx:Invoice" minOccurs="0"/>
195
+ <xsd:element name="NOTIFYDESIRED" type="ofx:BooleanType"/>
196
+ <xsd:element name="BILLTYPE" type="ofx:BillTypeEnum" minOccurs="0"/>
197
+ <xsd:element name="BILLSTATUS" type="ofx:BillStatus" minOccurs="0" maxOccurs="unbounded"/>
198
+ <xsd:element name="BILLPMTSTATUS" type="ofx:BillPaymentstatus" minOccurs="0" maxOccurs="unbounded"/>
199
+ <xsd:element name="STMNTIMAGE" type="ofx:StatementImage" minOccurs="0"/>
200
+ <xsd:choice>
201
+ <xsd:element name="DETAILAVAILABLE" type="ofx:BooleanType"/>
202
+ <xsd:element name="BILLDETAILTABLE" type="ofx:BillDetailTable"/>
203
+ </xsd:choice>
204
+ </xsd:sequence>
205
+ </xsd:complexType>
206
+ <xsd:complexType name="PresentmentCounts">
207
+ <xsd:annotation>
208
+ <xsd:documentation>
209
+ The OFX element "PRESCOUNTS" is of type "PresentmentCounts"
210
+ </xsd:documentation>
211
+ </xsd:annotation>
212
+ <xsd:sequence>
213
+ <xsd:element name="BILLSTATUSCOUNTS" type="ofx:BillStatusCounts" minOccurs="0" maxOccurs="unbounded"/>
214
+ <xsd:element name="BILLPMTSTATUSCOUNTS" type="ofx:BillPaymentstatusCounts" minOccurs="0" maxOccurs="unbounded"/>
215
+ </xsd:sequence>
216
+ </xsd:complexType>
217
+ <xsd:complexType name="PresentmentDeliveryId">
218
+ <xsd:annotation>
219
+ <xsd:documentation>
220
+ The OFX element "PRESDELIVERYID" is of type "PresentmentDeliveryId"
221
+ </xsd:documentation>
222
+ </xsd:annotation>
223
+ <xsd:sequence>
224
+ <xsd:element name="PRESACCTFROM" type="ofx:PresentmentAccount"/>
225
+ <xsd:element name="BILLID" type="ofx:IdType"/>
226
+ <xsd:element name="DTSEEN" type="ofx:DateTimeType"/>
227
+ </xsd:sequence>
228
+ </xsd:complexType>
229
+ <xsd:complexType name="PresentmentDetail">
230
+ <xsd:annotation>
231
+ <xsd:documentation>
232
+ The OFX element "PRESDETAIL" is of type "PresentmentDetail"
233
+ </xsd:documentation>
234
+ </xsd:annotation>
235
+ <xsd:sequence>
236
+ <xsd:element name="BILLID" type="ofx:IdType"/>
237
+ <xsd:element name="PRESACCTFROM" type="ofx:PresentmentAccount" minOccurs="0"/>
238
+ <xsd:element name="BILLDETAILTABLE" type="ofx:BillDetailTable" minOccurs="0" maxOccurs="unbounded"/>
239
+ </xsd:sequence>
240
+ </xsd:complexType>
241
+ <xsd:complexType name="PresentmentList">
242
+ <xsd:annotation>
243
+ <xsd:documentation>
244
+ The OFX element "PRESLIST" is of type "PresentmentList"
245
+ </xsd:documentation>
246
+ </xsd:annotation>
247
+ <xsd:sequence>
248
+ <xsd:element name="PRESBILLINFO" type="ofx:PresentmentBillInfo" minOccurs="0" maxOccurs="unbounded"/>
249
+ </xsd:sequence>
250
+ </xsd:complexType>
251
+ <xsd:complexType name="StatementImage">
252
+ <xsd:annotation>
253
+ <xsd:documentation>
254
+ The OFX element "STMNTIMAGE" is of type "StatementImage"
255
+ </xsd:documentation>
256
+ </xsd:annotation>
257
+ <xsd:sequence>
258
+ <xsd:element name="IMAGEURL" type="ofx:UrlType"/>
259
+ <xsd:element name="PREFETCHURL" type="ofx:UrlType" minOccurs="0" maxOccurs="unbounded"/>
260
+ <xsd:element name="DTEXPIRE" type="ofx:DateTimeType" minOccurs="0"/>
261
+ </xsd:sequence>
262
+ </xsd:complexType>
263
+ </xsd:schema>