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,56 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+
3
+ <!--
4
+
5
+ Open Financial Exchange Specification (c)1996-2003 ("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
+ -->
15
+
16
+ <xsd:schema
17
+ elementFormDefault="unqualified"
18
+ targetNamespace="http://ofx.net/types/2003/04"
19
+ xmlns:ofx="http://ofx.net/types/2003/04"
20
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
21
+
22
+ <xsd:include schemaLocation="OFX_BillerDirectory_Messages.xsd"/>
23
+
24
+ <xsd:complexType name="FindBillerTransactionRequest">
25
+ <xsd:annotation>
26
+ <xsd:documentation>
27
+ The OFX element "FINDBILLERTRNRQ" is of type "FindBillerTransactionRequest"
28
+ </xsd:documentation>
29
+ </xsd:annotation>
30
+
31
+ <xsd:complexContent>
32
+ <xsd:extension base="ofx:AbstractTransactionRequest">
33
+ <xsd:sequence>
34
+ <xsd:element name="FINDBILLERRQ" type="ofx:FindBillerRequest"/>
35
+ </xsd:sequence>
36
+ </xsd:extension>
37
+ </xsd:complexContent>
38
+ </xsd:complexType>
39
+
40
+ <xsd:complexType name="FindBillerTransactionResponse">
41
+ <xsd:annotation>
42
+ <xsd:documentation>
43
+ The OFX element "FINDBILLERTRNRS" is of type "FindBillerTransactionResponse"
44
+ </xsd:documentation>
45
+ </xsd:annotation>
46
+
47
+ <xsd:complexContent>
48
+ <xsd:extension base="ofx:AbstractTransactionResponse">
49
+ <xsd:sequence>
50
+ <xsd:element name="FINDBILLERRS" type="ofx:FindBillerResponse" minOccurs="0"/>
51
+ </xsd:sequence>
52
+ </xsd:extension>
53
+ </xsd:complexContent>
54
+
55
+ </xsd:complexType>
56
+ </xsd:schema>
@@ -0,0 +1,86 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+
3
+ <!--
4
+
5
+ Open Financial Exchange Specification (c)1996-2003 ("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
+ -->
15
+
16
+ <xsd:schema
17
+ elementFormDefault="unqualified"
18
+ 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
+
22
+ <xsd:include schemaLocation = "OFX_BillerDirectory.xsd" />
23
+ <xsd:complexType name="FindBillerRequest">
24
+ <xsd:annotation>
25
+ <xsd:documentation>
26
+ The OFX element "FINDBILLERRQ" is of type "FindBillerRequest"
27
+ </xsd:documentation>
28
+ </xsd:annotation>
29
+
30
+ <xsd:sequence>
31
+ <xsd:element name="DTUPDATE" type="ofx:DateTimeType"
32
+ minOccurs="0" maxOccurs="1" />
33
+
34
+ <xsd:element name="BILLERID" type="ofx:IdType" minOccurs="0"
35
+ maxOccurs="1" />
36
+
37
+ <xsd:element name="NAME" type="ofx:GenericNameType" minOccurs="0"
38
+ maxOccurs="1" />
39
+
40
+ <xsd:element name="ADDR1" type="ofx:AddressType"
41
+ minOccurs="0" maxOccurs="1" />
42
+
43
+ <xsd:element name="ADDR2" type="ofx:AddressType"
44
+ minOccurs="0" maxOccurs="1" />
45
+
46
+ <xsd:element name="ADDR3" type="ofx:AddressType"
47
+ minOccurs="0" maxOccurs="1" />
48
+
49
+ <xsd:element name="CITY" type="ofx:AddressType" minOccurs="0"
50
+ maxOccurs="1" />
51
+
52
+ <xsd:element name="STATE" type="ofx:StateType" minOccurs="0"
53
+ maxOccurs="1" />
54
+
55
+ <xsd:element name="POSTALCODE" type="ofx:ZipType"
56
+ minOccurs="0" maxOccurs="1" />
57
+
58
+ <xsd:element name="COUNTRY" type="ofx:CountryType"
59
+ minOccurs="0" maxOccurs="1" />
60
+
61
+ <xsd:element name="SIC" type="ofx:StandardIndustryCodeType" minOccurs="0"
62
+ maxOccurs="1" />
63
+
64
+ <xsd:element name="CONSUPOSTALCODE" type="ofx:ZipType"
65
+ minOccurs="0" maxOccurs="1" />
66
+
67
+ <xsd:element name="INCIMAGES" type="ofx:BooleanType" />
68
+ </xsd:sequence>
69
+ </xsd:complexType>
70
+
71
+ <xsd:complexType name="FindBillerResponse">
72
+ <xsd:annotation>
73
+ <xsd:documentation>
74
+ The OFX element "FINDBILLERRS" is of type "FindBillerResponse"
75
+ </xsd:documentation>
76
+ </xsd:annotation>
77
+
78
+ <xsd:sequence>
79
+ <xsd:element name="DTUPDATE" type="ofx:DateTimeType" />
80
+
81
+ <xsd:element name="BILLERINFO" type="ofx:BillerInfo"
82
+ minOccurs="0" maxOccurs="unbounded" />
83
+ </xsd:sequence>
84
+ </xsd:complexType>
85
+
86
+ </xsd:schema>