openc_bot 0.0.16 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (175) hide show
  1. data/.gitmodules +3 -0
  2. data/.travis.yml +2 -1
  3. data/examples/basic/lib/basic.rb +3 -2
  4. data/lib/openc_bot/helpers/register_methods.rb +2 -1
  5. data/lib/openc_bot/templates/lib/simple_bot.rb +3 -2
  6. data/lib/openc_bot/version.rb +1 -1
  7. data/lib/simple_openc_bot.rb +2 -2
  8. data/openc_bot.gemspec +13 -0
  9. data/publish.sh +12 -0
  10. data/schemas/.gitignore +13 -0
  11. data/schemas/.travis.yml +5 -0
  12. data/schemas/Gemfile +9 -0
  13. data/schemas/Gemfile.lock +34 -0
  14. data/schemas/README.md +2 -0
  15. data/schemas/Rakefile +46 -0
  16. data/schemas/lib/base-statement.json +22 -0
  17. data/schemas/lib/snippets/financial-payment-base.json +4 -0
  18. data/schemas/lib/snippets/licence-base.json +4 -0
  19. data/schemas/{company-schema.json → schemas/company-schema.json} +0 -0
  20. data/schemas/schemas/financial-payment-schema.json +27 -0
  21. data/schemas/{includes → schemas/includes}/address.json +0 -0
  22. data/schemas/{includes → schemas/includes}/alternative_name.json +1 -1
  23. data/schemas/{includes → schemas/includes}/company.json +2 -0
  24. data/schemas/{includes → schemas/includes}/filing.json +0 -0
  25. data/schemas/schemas/includes/financial-payment-data-object.json +60 -0
  26. data/schemas/{includes → schemas/includes}/industry_code.json +0 -0
  27. data/schemas/{includes/license-data.json → schemas/includes/licence-data-object.json} +13 -4
  28. data/schemas/{includes → schemas/includes}/officer.json +0 -0
  29. data/schemas/{includes → schemas/includes}/previous_name.json +0 -0
  30. data/schemas/{includes → schemas/includes}/share-parcel-data.json +0 -0
  31. data/schemas/{includes → schemas/includes}/share-parcel.json +0 -0
  32. data/schemas/{includes → schemas/includes}/subsidiary-relationship-data.json +4 -9
  33. data/schemas/{includes → schemas/includes}/total-shares.json +0 -0
  34. data/schemas/schemas/licence-schema.json +27 -0
  35. data/schemas/schemas/primary-data-schema.json +17 -0
  36. data/schemas/{share-parcel-schema.json → schemas/share-parcel-schema.json} +0 -0
  37. data/schemas/schemas/simple-financial-payment-schema.json +85 -0
  38. data/schemas/schemas/simple-licence-schema.json +54 -0
  39. data/schemas/schemas/simple-subsidiary-schema.json +62 -0
  40. data/schemas/schemas/subsidiary-relationship-schema.json +27 -0
  41. data/schemas/spec/sample-data/invalid/company-01.json +4 -0
  42. data/schemas/spec/sample-data/invalid/company-02.json +5 -0
  43. data/schemas/spec/sample-data/invalid/company-03.json +5 -0
  44. data/schemas/spec/sample-data/invalid/company-04.json +5 -0
  45. data/schemas/spec/sample-data/invalid/company-05.json +5 -0
  46. data/schemas/spec/sample-data/invalid/company-06.json +6 -0
  47. data/schemas/spec/sample-data/invalid/company-07.json +8 -0
  48. data/schemas/spec/sample-data/invalid/company-08.json +7 -0
  49. data/schemas/spec/sample-data/invalid/company-09.json +9 -0
  50. data/schemas/spec/sample-data/invalid/company-10.json +7 -0
  51. data/schemas/spec/sample-data/invalid/company-11.json +9 -0
  52. data/schemas/spec/sample-data/invalid/company-12.json +11 -0
  53. data/schemas/spec/sample-data/invalid/company-13.json +11 -0
  54. data/schemas/spec/sample-data/invalid/company-14.json +7 -0
  55. data/schemas/spec/sample-data/invalid/company-15.json +7 -0
  56. data/schemas/spec/sample-data/invalid/company-16.json +7 -0
  57. data/schemas/spec/sample-data/invalid/company-17.json +9 -0
  58. data/schemas/spec/sample-data/invalid/company-18.json +9 -0
  59. data/schemas/spec/sample-data/invalid/company-19.json +9 -0
  60. data/schemas/spec/sample-data/invalid/company-20.json +9 -0
  61. data/schemas/spec/sample-data/invalid/company-21.json +11 -0
  62. data/schemas/spec/sample-data/invalid/company-22.json +11 -0
  63. data/schemas/spec/sample-data/invalid/company-23.json +7 -0
  64. data/schemas/spec/sample-data/invalid/company-24.json +12 -0
  65. data/schemas/spec/sample-data/invalid/company-25.json +9 -0
  66. data/schemas/spec/sample-data/invalid/company-26.json +11 -0
  67. data/schemas/spec/sample-data/invalid/company-27.json +7 -0
  68. data/schemas/spec/sample-data/invalid/company-28.json +9 -0
  69. data/schemas/spec/sample-data/invalid/company-29.json +12 -0
  70. data/schemas/spec/sample-data/invalid/company-30.json +16 -0
  71. data/schemas/spec/sample-data/invalid/company-31.json +14 -0
  72. data/schemas/spec/sample-data/invalid/company-32.json +11 -0
  73. data/schemas/spec/sample-data/invalid/company-33.json +7 -0
  74. data/schemas/spec/sample-data/invalid/company-34.json +9 -0
  75. data/schemas/spec/sample-data/invalid/company-35.json +9 -0
  76. data/schemas/spec/sample-data/invalid/company-36.json +10 -0
  77. data/schemas/spec/sample-data/invalid/company-37.json +7 -0
  78. data/schemas/spec/sample-data/invalid/company-38.json +9 -0
  79. data/schemas/spec/sample-data/invalid/company-39.json +11 -0
  80. data/schemas/spec/sample-data/invalid/company-40.json +12 -0
  81. data/schemas/spec/sample-data/invalid/company-41.json +12 -0
  82. data/schemas/spec/sample-data/invalid/company-42.json +7 -0
  83. data/schemas/spec/sample-data/invalid/company-43.json +9 -0
  84. data/schemas/spec/sample-data/invalid/company-44.json +11 -0
  85. data/schemas/spec/sample-data/invalid/company-45.json +11 -0
  86. data/schemas/spec/sample-data/invalid/company-46.json +7 -0
  87. data/schemas/spec/sample-data/invalid/company-47.json +9 -0
  88. data/schemas/spec/sample-data/invalid/company-48.json +9 -0
  89. data/schemas/spec/sample-data/invalid/company-49.json +9 -0
  90. data/schemas/spec/sample-data/invalid/company-50.json +9 -0
  91. data/schemas/spec/sample-data/invalid/company-51.json +9 -0
  92. data/schemas/spec/sample-data/invalid/company-52.json +9 -0
  93. data/schemas/spec/sample-data/invalid/company-53.json +10 -0
  94. data/schemas/spec/sample-data/invalid/company-54.json +9 -0
  95. data/schemas/spec/sample-data/invalid/company-55.json +9 -0
  96. data/schemas/spec/sample-data/invalid/financial-payment-01.json +24 -0
  97. data/schemas/spec/sample-data/invalid/licence-01.json +18 -0
  98. data/schemas/spec/sample-data/invalid/licence-02.json +18 -0
  99. data/schemas/spec/sample-data/invalid/licence-03.json +12 -0
  100. data/schemas/spec/sample-data/invalid/licence-04.json +18 -0
  101. data/schemas/spec/sample-data/invalid/licence-05.json +18 -0
  102. data/schemas/spec/sample-data/invalid/licence-06.json +18 -0
  103. data/schemas/spec/sample-data/invalid/licence-07.json +20 -0
  104. data/schemas/spec/sample-data/invalid/licence-08.json +21 -0
  105. data/schemas/spec/sample-data/invalid/primary-data-01.json +4 -0
  106. data/schemas/spec/sample-data/invalid/primary-data-02.json +4 -0
  107. data/schemas/spec/sample-data/invalid/simple-licence-01.json +9 -0
  108. data/schemas/spec/sample-data/invalid/simple-licence-02.json +8 -0
  109. data/schemas/spec/sample-data/invalid/simple-licence-03.json +9 -0
  110. data/schemas/spec/sample-data/invalid/simple-subsidiary-01.json +13 -0
  111. data/schemas/{licence-schema.json → spec/sample-data/licence-schema.json.old} +1 -1
  112. data/schemas/spec/sample-data/valid/company-01.json +6 -0
  113. data/schemas/spec/sample-data/valid/company-02.json +7 -0
  114. data/schemas/spec/sample-data/valid/company-03.json +8 -0
  115. data/schemas/spec/sample-data/valid/company-04.json +7 -0
  116. data/schemas/spec/sample-data/valid/company-05.json +7 -0
  117. data/schemas/spec/sample-data/valid/company-06.json +12 -0
  118. data/schemas/spec/sample-data/valid/company-07.json +9 -0
  119. data/schemas/spec/sample-data/valid/company-08.json +9 -0
  120. data/schemas/spec/sample-data/valid/company-09.json +20 -0
  121. data/schemas/spec/sample-data/valid/company-10.json +9 -0
  122. data/schemas/spec/sample-data/valid/company-11.json +7 -0
  123. data/schemas/spec/sample-data/valid/company-12.json +7 -0
  124. data/schemas/spec/sample-data/valid/company-13.json +7 -0
  125. data/schemas/spec/sample-data/valid/company-14.json +15 -0
  126. data/schemas/spec/sample-data/valid/company-15.json +8 -0
  127. data/schemas/spec/sample-data/valid/company-16.json +9 -0
  128. data/schemas/spec/sample-data/valid/company-17.json +9 -0
  129. data/schemas/spec/sample-data/valid/company-18.json +9 -0
  130. data/schemas/spec/sample-data/valid/company-19.json +26 -0
  131. data/schemas/spec/sample-data/valid/company-20.json +9 -0
  132. data/schemas/spec/sample-data/valid/company-21.json +26 -0
  133. data/schemas/spec/sample-data/valid/company-22.json +20 -0
  134. data/schemas/spec/sample-data/valid/company-23.json +9 -0
  135. data/schemas/spec/sample-data/valid/company-24.json +12 -0
  136. data/schemas/spec/sample-data/valid/company-25.json +12 -0
  137. data/schemas/spec/sample-data/valid/company-26.json +12 -0
  138. data/schemas/spec/sample-data/valid/company-27.json +28 -0
  139. data/schemas/spec/sample-data/valid/company-28.json +9 -0
  140. data/schemas/spec/sample-data/valid/company-29.json +10 -0
  141. data/schemas/spec/sample-data/valid/company-30.json +9 -0
  142. data/schemas/spec/sample-data/valid/company-31.json +17 -0
  143. data/schemas/spec/sample-data/valid/company-32.json +9 -0
  144. data/schemas/spec/sample-data/valid/company-33.json +24 -0
  145. data/schemas/spec/sample-data/valid/company-34.json +9 -0
  146. data/schemas/spec/sample-data/valid/company-35.json +9 -0
  147. data/schemas/spec/sample-data/valid/company-36.json +9 -0
  148. data/schemas/spec/sample-data/valid/company-37.json +9 -0
  149. data/schemas/spec/sample-data/valid/company-38.json +9 -0
  150. data/schemas/spec/sample-data/valid/company-39.json +9 -0
  151. data/schemas/spec/sample-data/valid/company-40.json +9 -0
  152. data/schemas/spec/sample-data/valid/company-41.json +9 -0
  153. data/schemas/spec/sample-data/valid/company-42.json +10 -0
  154. data/schemas/spec/sample-data/valid/financial-payment-01.json +25 -0
  155. data/schemas/spec/sample-data/valid/financial-payment-02.json +29 -0
  156. data/schemas/spec/sample-data/valid/licence-01.json +19 -0
  157. data/schemas/spec/sample-data/valid/licence-02.json +21 -0
  158. data/schemas/spec/sample-data/valid/licence-03.json +21 -0
  159. data/schemas/spec/sample-data/valid/licence-04.json +26 -0
  160. data/schemas/spec/sample-data/valid/primary-data-01.json +4 -0
  161. data/schemas/spec/sample-data/valid/primary-data-02.json +5 -0
  162. data/schemas/spec/sample-data/valid/simple-licence-01.json +10 -0
  163. data/schemas/spec/sample-data/valid/simple-licence-02.json +10 -0
  164. data/schemas/spec/sample-data/valid/simple-licence-03.json +12 -0
  165. data/schemas/spec/sample-data/valid/simple-subsidiary-01.json +13 -0
  166. data/schemas/spec/sample-data/valid/simple-subsidiary-02.json +13 -0
  167. data/schemas/spec/sample-data/valid/subsidiary-relationship-01.json +23 -0
  168. data/schemas/spec/spec_helper.rb +78 -0
  169. data/schemas/spec/validation_spec.rb +39 -0
  170. data/spec/lib/helpers/register_methods_spec.rb +1 -1
  171. data/spec/schemas/company-schema_spec.rb +4 -3
  172. data/spec/simple_openc_bot_spec.rb +9 -8
  173. metadata +164 -19
  174. data/schemas/includes/base-statement.json +0 -27
  175. data/schemas/subsidiary-relationship-schema.json +0 -19
@@ -0,0 +1,9 @@
1
+ /*invalid home_company_number*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "home_company_number": ""
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid home_company_number*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "home_company_number": 42
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid home_legal_name*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "registered_agent_address": ""
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid home_legal_name*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "registered_agent_address": 42
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid registered_agent_name*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "registered_agent_name": ""
8
+ }
9
+ }
@@ -0,0 +1,10 @@
1
+ /*invalid registered_agent_name*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "registered_agent_name": 42
8
+ }
9
+
10
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid registered_agent_address*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "home_legal_name": ""
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*invalid registered_agent_address*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "home_legal_name": 42
8
+ }
9
+ }
@@ -0,0 +1,24 @@
1
+ { "company":
2
+ {
3
+ "name": "Some suppplier",
4
+ "jurisdiction": "France"
5
+ },
6
+ "data": [
7
+ { "data_type": "financial_payment",
8
+ "properties": {
9
+ "currency": "GBP",
10
+ "transaction_number": "ABC1224",
11
+ "reporting_date": "2014-06-01",
12
+ "jurisdiction": "gb",
13
+ "more_details_url": "http://spendnetwork.com/trans_id/12345",
14
+ "description": "some big project",
15
+ "payee_name": "Govt Jobs R Us Inc",
16
+ "entity_name": "Efficiency Agency",
17
+ "department_name": "Department Of Everything",
18
+ "date": "2012-10-22"
19
+ },
20
+ "source_url": "http://example.com/abc123",
21
+ "confidence": "67"
22
+ }
23
+ ]
24
+ }
@@ -0,0 +1,18 @@
1
+ { "company":
2
+ {
3
+ "name": "CENTRAL BANK",
4
+ },
5
+ "data": [
6
+ { "data_type": "licence",
7
+ "properties": {
8
+ "licence_number": "ABC123",
9
+ "category": "Financial",
10
+ "jurisdiction_classification": ["Bank"],
11
+ "jurisdiction_code": "France",
12
+ "reporting_date": "2014-06-01"
13
+ },
14
+ "source_url": "http://example.com/abc123",
15
+ "confidence": "67"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ { "company":
2
+ {
3
+ "jurisdiction": "IA"
4
+ },
5
+ "data": [
6
+ { "data_type": "licence",
7
+ "properties": {
8
+ "licence_number": "ABC123",
9
+ "category": "Financial",
10
+ "jurisdiction_classification": ["Bank"],
11
+ "jurisdiction_code": "France",
12
+ "reporting_date": "2014-06-01"
13
+ },
14
+ "source_url": "http://example.com/abc123",
15
+ "confidence": "67"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,12 @@
1
+ { "company":
2
+ {
3
+ "name": "CENTRAL BANK",
4
+ "jurisdiction": "IA"
5
+ },
6
+ "data": [
7
+ { "data_type": "licence",
8
+ "source_url": "http://example.com/abc123",
9
+ "confidence": "67"
10
+ }
11
+ ]
12
+ }
@@ -0,0 +1,18 @@
1
+ { "company":
2
+ {
3
+ "name": "CENTRAL BANK",
4
+ "jurisdiction": "IA"
5
+ },
6
+ "data": [
7
+ { "properties": {
8
+ "licence_number": "ABC123",
9
+ "category": "Financial",
10
+ "jurisdiction_classification": ["Bank"],
11
+ "jurisdiction_code": "France",
12
+ "reporting_date": "2014-06-01"
13
+ },
14
+ "source_url": "http://example.com/abc123",
15
+ "confidence": "67"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ { "company":
2
+ {
3
+ "name": "CENTRAL BANK",
4
+ "jurisdiction": "IA"
5
+ },
6
+ "data": [
7
+ { "data_type": "licence",
8
+ "properties": {
9
+ "licence_number": "ABC123",
10
+ "category": "Financial",
11
+ "jurisdiction_classification": ["Bank"],
12
+ "jurisdiction_code": "France",
13
+ "reporting_date": "2014-06-01"
14
+ },
15
+ "confidence": "67"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,18 @@
1
+ { "company":
2
+ {
3
+ "name": "CENTRAL BANK",
4
+ "jurisdiction": "IA"
5
+ },
6
+ "data": [
7
+ { "data_type": "licence",
8
+ "properties": {
9
+ "licence_number": "ABC123",
10
+ "category": "Financial",
11
+ "jurisdiction_classification": ["Bank"],
12
+ "jurisdiction_code": "France",
13
+ "reporting_date": "2014-06-01"
14
+ },
15
+ "source_url": "http://example.com/abc123"
16
+ }
17
+ ]
18
+ }
@@ -0,0 +1,20 @@
1
+ { "company":
2
+ {
3
+ "name": "CENTRAL BANK",
4
+ "jurisdiction": "IA",
5
+ "identifier": "abc/123",
6
+ "company_number": "12345"
7
+ },
8
+ "data": [
9
+ { "data_type": "licence",
10
+ "properties": {
11
+ "licence_number": "ABC123",
12
+ "jurisdiction_classification": ["Bank"],
13
+ "jurisdiction_code": "France",
14
+ "sample_date": "2014-06-01"
15
+ },
16
+ "source_url": "http://example.com/abc123",
17
+ "confidence": "67"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,21 @@
1
+ { "company":
2
+ {
3
+ "name": "CENTRAL BANK",
4
+ "jurisdiction": "IA",
5
+ "identifier": "abc/123",
6
+ "company_number": "12345"
7
+ },
8
+ "data": [
9
+ { "data_type": "licence",
10
+ "properties": {
11
+ "category":"foo",
12
+ "licence_number": "ABC123",
13
+ "jurisdiction_classification": ["Bank"],
14
+ "jurisdiction_code": "France",
15
+ "sample_date": "2014-06-01"
16
+ },
17
+ "source_url": "http://example.com/abc123",
18
+ "confidence": "67"
19
+ }
20
+ ]
21
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "source_url": "http://example.com/123",
3
+ "foo": "bar"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "sample_date": "2014-05-29",
3
+ "foo": "bar"
4
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "company_jurisdiction": "gb",
3
+ "licence_number": "ABC123",
4
+ "jurisdiction_classification": "Bank",
5
+ "licence_jurisdiction": "fr",
6
+ "source_url": "http://example.com/abc123",
7
+ "sample_date": "2014-06-01",
8
+ "confidence": "MEDIUM"
9
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "company_jurisdiction": "gb",
3
+ "licence_number": "ABC123",
4
+ "licence_jurisdiction": "fr",
5
+ "source_url": "http://example.com/abc123",
6
+ "sample_date": "2014-06-01",
7
+ "confidence": "MEDIUM"
8
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "company_jurisdiction": "gb",
3
+ "licence_number": "ABC123",
4
+ "jurisdiction_classification": [],
5
+ "licence_jurisdiction": "fr",
6
+ "source_url": "http://example.com/abc123",
7
+ "sample_date": "2014-06-01",
8
+ "confidence": "MEDIUM"
9
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "source_url": "http://somewhere.com/a",
3
+ "sample_date": "2014/02/01",
4
+ "start_date": "2014/01/01",
5
+ "end_date": "2015/02/01",
6
+ "confidence": "HIGH",
7
+ "parent_name": "Widgets R US",
8
+ "parent_jurisdiction": "us_de",
9
+ "direct": true,
10
+ "percentage_controlled": "56.124",
11
+ "subsidiary_name": "Little Widgets",
12
+ "subsidiary_jurisdiction": "us_de"
13
+ }
@@ -11,7 +11,7 @@
11
11
  "data": {
12
12
  "items": {
13
13
  "allOf": [
14
- { "$ref": "includes/license-data.json" }
14
+ { "$ref": "includes/licence-data.json" }
15
15
  ]
16
16
  }
17
17
  }
@@ -0,0 +1,6 @@
1
+ /*simple company*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie"
6
+ }
@@ -0,0 +1,7 @@
1
+ /*simple company*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "registered_address": "32 Foo St, Footown,"
7
+ }
@@ -0,0 +1,8 @@
1
+ /*more complex company*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "incorporation_date": "2010-10-20",
7
+ "dissolution_date": "2012-01-12"
8
+ }
@@ -0,0 +1,7 @@
1
+ /*registered_address*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "registered_address": "32 Foo St, Footown,"
7
+ }
@@ -0,0 +1,7 @@
1
+ /*null registered_address*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "registered_address": null
7
+ }
@@ -0,0 +1,12 @@
1
+ /*valid registered_address object*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "registered_address": {
7
+ "street_address": "32 Foo St",
8
+ "locality": "Footown",
9
+ "region": "Fooshire",
10
+ "postal_code": "FO1 2BA"
11
+ }
12
+ }
@@ -0,0 +1,9 @@
1
+ /*valid registered_address object*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "registered_address": {
7
+ "street_address": "32 Foo St"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*valid registered_address object*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "registered_address": {
7
+ "postal_code": "FO1 2BA"
8
+ }
9
+ }
@@ -0,0 +1,20 @@
1
+ /*valid previous_names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "previous_names": [
7
+ {
8
+ "company_name": "FooBar Inc"
9
+ },
10
+ {
11
+ "company_name": "FooBaz",
12
+ "con_date": "2012-07-22"
13
+ },
14
+ {
15
+ "company_name": "FooBaz",
16
+ "con_date": "2012-07-22",
17
+ "start_date": "2008-01-08"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,9 @@
1
+ /*valid previous_names*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "previous_names": [
7
+
8
+ ]
9
+ }
@@ -0,0 +1,7 @@
1
+ /*valid branch flag*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "branch": "F"
7
+ }
@@ -0,0 +1,7 @@
1
+ /*valid branch flag*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "branch": "L"
7
+ }
@@ -0,0 +1,7 @@
1
+ /*valid branch flag*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "branch": null
7
+ }
@@ -0,0 +1,15 @@
1
+ /*valid all_attributes*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "foo": "bar",
8
+ "some_number": 42,
9
+ "an_array": [
10
+ 1,
11
+ 2,
12
+ 3
13
+ ]
14
+ }
15
+ }
@@ -0,0 +1,8 @@
1
+ /*valid all_attributes*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "us_de",
6
+ "all_attributes": {
7
+ }
8
+ }
@@ -0,0 +1,9 @@
1
+ /*valid jurisdiction_of_origin*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "jurisdiction_of_origin": "Some Country"
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*valid jurisdiction_of_origin*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "jurisdiction_of_origin": null
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ /*valid number_of_employees*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "all_attributes": {
7
+ "number_of_employees": 42
8
+ }
9
+ }
@@ -0,0 +1,26 @@
1
+ /*valid officers*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "officers": [
7
+ {
8
+ "name": "Fred Flintstone"
9
+ },
10
+ {
11
+ "name": "Barney Rubble",
12
+ "position": "Director"
13
+ },
14
+ {
15
+ "name": "Barney Rubble",
16
+ "other_attributes": {
17
+ "foo": "bar"
18
+ }
19
+ },
20
+ {
21
+ "name": "Pebbles",
22
+ "start_date": "2010-12-22",
23
+ "end_date": "2011-01-03"
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,9 @@
1
+ /*valid officers*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "officers": [
7
+
8
+ ]
9
+ }
@@ -0,0 +1,26 @@
1
+ /*valid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": [
7
+ {
8
+ "title": "Annual Report",
9
+ "date": "2010-11-22"
10
+ },
11
+ {
12
+ "description": "Another type of filing",
13
+ "date": "2010-11-22"
14
+ },
15
+ {
16
+ "title": "Annual Report",
17
+ "description": "Another type of filing",
18
+ "uid": "12345A321",
19
+ "date": "2010-11-22"
20
+ },
21
+ {
22
+ "filing_type_name": "Some type",
23
+ "date": "2010-11-22"
24
+ }
25
+ ]
26
+ }
@@ -0,0 +1,20 @@
1
+ /*valid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": [
7
+ {
8
+ "title": "Annual Report",
9
+ "date": "2010-11-22",
10
+ "other_attributes": {
11
+ "foo": "bar"
12
+ }
13
+ },
14
+ {
15
+ "filing_type_name": "Some type",
16
+ "filing_type_code": "10-K",
17
+ "date": "2010-11-22"
18
+ }
19
+ ]
20
+ }
@@ -0,0 +1,9 @@
1
+ /*valid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": [
7
+
8
+ ]
9
+ }
@@ -0,0 +1,12 @@
1
+ /*valid filings*/
2
+ {
3
+ "name": "Foo Inc",
4
+ "company_number": "12345",
5
+ "jurisdiction_code": "ie",
6
+ "filings": [
7
+ {
8
+ "filing_type_name": "Some type",
9
+ "date": "2010-11-22"
10
+ }
11
+ ]
12
+ }