fidor_schema 0.1.18 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d20bce8312da6521a63aa2702dbe8422a20d2ce1
4
- data.tar.gz: 3b140e2370a078335051e76edf9bdd947d96df4b
3
+ metadata.gz: 24d900fc95b176724776d4c8b8506ffd05790c43
4
+ data.tar.gz: 9c1f602c2f2aeb071f1d38b4fa597756bf1dcfb0
5
5
  SHA512:
6
- metadata.gz: 34011c7dc15704691350254dcff74eb7a9f9d15ad2a26c15b86aceba812a4f28468116d093aefa1ddd3eaad5907f5fc262526fb4b3ca33bed283c37cedcea662
7
- data.tar.gz: c66566de7bd062112314300b4b4c51ddbbea51cacd95797523bd02543fb8f5873bcfb0bb4a71662660c51c31c53243b059225bd0ded7846f53c90c283154231b
6
+ metadata.gz: 227dd314a9485593c3ed03d2283bd6f54728af9f8053e52cf5a444b39cd3d55c642613c9226903434f7000ca24fbdd09763ca33b7dc4d8a4a8590b138189080d
7
+ data.tar.gz: be6b447b8639d0ff9f0115b5bbdcda5affa57585ca433cf04b4a743ba07ef5fcc712cb9150e1154e2dd74f6b558c6ad2c813026c563de0f0bc49964611c9b231
data/CHANGELOG.md CHANGED
@@ -1,7 +1,7 @@
1
- = Changelog Fidor API Schema
1
+ #Changelog Fidor API Schema
2
2
 
3
3
  A more detailed view of the changes can be found in the [commit messages](https://github.com/fidor/fidor_schema/commits/)
4
4
 
5
- 2014-10
5
+ **2014-10**
6
6
 
7
- * initial public release - ALPHA
7
+ * initial public release - ALPHA
data/fidor_schema.gemspec CHANGED
@@ -21,8 +21,8 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency 'bundler', '~> 1.5'
22
22
  spec.add_development_dependency 'rspec'
23
23
  spec.add_development_dependency 'activesupport'
24
- spec.add_development_dependency 'json_schema_tools', '>=0.2.6'
24
+ spec.add_development_dependency 'json_schema_tools', '>=0.3.0'
25
25
  spec.add_development_dependency 'activemodel' # required by above
26
26
  spec.add_development_dependency 'rake'
27
27
 
28
- end
28
+ end
@@ -1,5 +1,5 @@
1
1
  module Fidor
2
2
  class Schema
3
- VERSION='0.1.18'
3
+ VERSION='0.2.0'
4
4
  end
5
5
  end
@@ -87,32 +87,39 @@
87
87
  "href" : "accounts/{id}"
88
88
  },
89
89
  {
90
- "rel" : "instances",
91
- "href" : "accounts"
90
+ "rel" : "instances",
91
+ "href" : "accounts",
92
+ "targetSchema" : {
93
+ "$ref" : "./lists/accounts.json#"
94
+ }
92
95
  },
93
96
  {
94
- "rel" : "transactions",
95
- "href" : "accounts/{id}/transactions"
97
+ "rel" : "transactions",
98
+ "href" : "accounts/{id}/transactions",
99
+ "targetSchema" : {
100
+ "$ref" : "./lists/transactions.json#"
101
+ }
96
102
  },
97
103
  {
98
- "rel" : "internal_transfers",
99
- "href" : "accounts/{id}/internal_transfers"
104
+ "rel" : "internal_transfers",
105
+ "href" : "accounts/{id}/internal_transfers",
106
+ "targetSchema" : {
107
+ "$ref" : "./lists/internal_transfers.json#"
108
+ }
100
109
  },
101
110
  {
102
- "rel" : "sepa_credit_transfers",
103
- "href" : "accounts/{id}/sepa_credit_transfers"
111
+ "rel" : "sepa_credit_transfers",
112
+ "href" : "accounts/{id}/sepa_credit_transfers",
113
+ "targetSchema" : {
114
+ "$ref" : "./lists/sepa_credit_transfers.json#"
115
+ }
104
116
  },
105
117
  {
106
- "rel" : "sepa_direct_debits",
107
- "href" : "accounts/{id}/sepa_direct_debits"
108
- },
109
- {
110
- "rel" : "batch_transfers",
111
- "href" : "accounts/{id}/batch_transfers"
112
- },
113
- {
114
- "rel" : "batch_direct_debit",
115
- "href" : "accounts/{id}/batch_direct_debits"
118
+ "rel" : "sepa_direct_debits",
119
+ "href" : "accounts/{id}/sepa_direct_debits",
120
+ "targetSchema" : {
121
+ "$ref" : "./lists/sepa_direct_debits.json#"
122
+ }
116
123
  }
117
124
  ]
118
125
  }
@@ -4,18 +4,16 @@
4
4
  "description" : "Unique identifier of the object",
5
5
  "identity" : true,
6
6
  "readonly" : true,
7
- "type" : "integer"
7
+ "type" : "string"
8
8
  },
9
9
  "account_id" : {
10
10
  "description" : "Fidor account the transaction belongs to.",
11
- "type" : "string",
12
- "pattern" : "\\d{8}"
11
+ "type" : "string"
13
12
  },
14
13
  "user_id" : {
15
14
  "description" : "Identifies the user who created this object",
16
15
  "readonly" : true,
17
- "type" : "string",
18
- "pattern" : "\\d{8}"
16
+ "type" : "string"
19
17
  },
20
18
  "transaction_id" : {
21
19
  "description" : "Identifies a reference to a corresponding transaction",
@@ -65,7 +63,7 @@
65
63
  "bic" : {
66
64
  "description" : "BIC / Swift code of bank",
67
65
  "type" : "string",
68
- "pattern" : "^([A-Z0-9]{8}|[A-Z0-9]{8})$",
66
+ "pattern" : "^[A-Z0-9]{8,11}$",
69
67
  "maxLength" : 11
70
68
  },
71
69
  "eref" : {
@@ -92,10 +90,10 @@
92
90
  "pattern" : "^[A-Za-z0-9_\\.\\, &\\-\\/\\+\\*\\$\\%@üöäÜÖÄ߀]*$"
93
91
  },
94
92
  "amount" : {
95
- "description" : "The transferred amount in account currency, two decimal places. Must be greater than 0 e.g. > 0",
96
- "type" : "number",
93
+ "description" : "The transferred amount in account currency, two decimal places. Must be greater than 0 e.g. > 0",
94
+ "type" : "number",
97
95
  "exclusiveMinimum" : true,
98
- "minimum" : 0
96
+ "minimum" : 0
99
97
  },
100
98
  "transaction_type" : {
101
99
  "description" : "Type of the transaction",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "NOTE" : "THIS OBJECT IS NOT SUPPORTED IN THE CURRENT API VERSION",
3
+ "note" : "this file is for future reference only!",
2
4
  "type" : "object",
3
5
  "title" : "Batch Direct Debit",
4
6
  "name" : "batch_direct_debit",
@@ -53,7 +55,7 @@
53
55
  }
54
56
  }
55
57
  },
56
- "number_of_debits" : {
58
+ "debit_count" : {
57
59
  "description" : "count of debits transactions received in this batch",
58
60
  "readonly" : true,
59
61
  "type" : "integer"
@@ -1,4 +1,6 @@
1
1
  {
2
+ "NOTE" : "THIS OBJECT IS NOT SUPPORTED IN THE CURRENT API VERSION",
3
+ "note" : "this file is for future reference only!",
2
4
  "type" : "object",
3
5
  "title" : "Batch Transfer",
4
6
  "name" : "batch_transfer",
@@ -87,7 +89,7 @@
87
89
  }
88
90
  }
89
91
  },
90
- "number_of_transfers" : {
92
+ "transfer_count" : {
91
93
  "description" : "count of transfers (internal and sepa) transactions received in this batch",
92
94
  "readonly" : true,
93
95
  "type" : "integer"
@@ -114,7 +114,7 @@
114
114
  "birthday" : {
115
115
  "description" : "Date of birth",
116
116
  "type" : "string",
117
- "format" : "date-time",
117
+ "format" : "date",
118
118
  "readonly" : true
119
119
  },
120
120
  "is_verified" : {
@@ -193,12 +193,18 @@
193
193
  "href" : "customers/{id}"
194
194
  },
195
195
  {
196
- "rel" : "instances",
197
- "href" : "customers"
196
+ "rel" : "instances",
197
+ "href" : "customers",
198
+ "targetSchema" : {
199
+ "$ref" : "./lists/customers.json#"
200
+ }
198
201
  },
199
202
  {
200
- "rel" : "accounts",
201
- "href" : "customers/{id}/accounts"
203
+ "rel" : "accounts",
204
+ "href" : "customers/{id}/accounts",
205
+ "targetSchema" : {
206
+ "$ref" : "./lists/accounts.json#"
207
+ }
202
208
  }
203
209
  ]
204
210
  }
@@ -126,6 +126,9 @@
126
126
  "description" : "Sort the results in ASC or DESC",
127
127
  "type" : "string"
128
128
  }
129
+ },
130
+ "targetSchema" : {
131
+ "$ref" : "./lists/internal_transfers.json#"
129
132
  }
130
133
  },
131
134
  {
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Accounts",
4
+ "name" : "accounts",
5
+ "description" : "A paginated list of Account objects",
6
+ "properties" : {
7
+ "accounts" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../account.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Batch Direct Debits",
4
+ "name" : "batch_direct_debits",
5
+ "description" : "A paginated list of Batch Direct Debit objects",
6
+ "properties" : {
7
+ "batch_direct_debits" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../batch_direct_debit.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Batch Transfers",
4
+ "name" : "batch_transfers",
5
+ "description" : "A paginated list of Batch Transfer objects",
6
+ "properties" : {
7
+ "batch_transfers" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../batch_transfer.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Collection",
4
+ "name" : "collection",
5
+ "description" : "Pagination information for a list of returned object (not standalone)",
6
+ "properties" : {
7
+ "current_page" : {
8
+ "type" : "integer"
9
+ },
10
+ "per_page" : {
11
+ "type" : "integer"
12
+ },
13
+ "total_entries" : {
14
+ "type" : "integer"
15
+ },
16
+ "total_pages" : {
17
+ "type" : "integer"
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Customers",
4
+ "name" : "customers",
5
+ "description" : "A paginated list of Customer objects",
6
+ "properties" : {
7
+ "customers" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../customer.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Internal Transfers",
4
+ "name" : "internal_transfers",
5
+ "description" : "A paginated list of Internal Transfer objects",
6
+ "properties" : {
7
+ "internal_transfers" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../internal_transfer.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Sepa Credit Transfers",
4
+ "name" : "sepa_credit_transfers",
5
+ "description" : "A paginated list of Sepa Credit Transfer objects",
6
+ "properties" : {
7
+ "sepa_credit_transfers" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../sepa_credit_transfer.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Sepa Direct Debits",
4
+ "name" : "sepa_direct_debits",
5
+ "description" : "A paginated list of Sepa Direct Debit objects",
6
+ "properties" : {
7
+ "sepa_direct_debits" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../sepa_direct_debit.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Sepa Mandates",
4
+ "name" : "sepa_mandates",
5
+ "description" : "A paginated list of Sepa Mandate objects",
6
+ "properties" : {
7
+ "sepa_mandates" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../sepa_mandate.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Transactions",
4
+ "name" : "transactions",
5
+ "description" : "A paginated list of Transaction objects",
6
+ "properties" : {
7
+ "transactions" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../transaction.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "type" : "object",
3
+ "title" : "Users",
4
+ "name" : "users",
5
+ "description" : "A paginated list of User objects",
6
+ "properties" : {
7
+ "users" : {
8
+ "type" : "array",
9
+ "items" : {
10
+ "$ref" : "../user.json#"
11
+ }
12
+ },
13
+ "links" : {},
14
+ "collection" : {
15
+ "$ref" : "./collection.json#"
16
+ }
17
+ }
18
+ }
@@ -112,6 +112,9 @@
112
112
  "description" : "Sort the results in ASC or DESC",
113
113
  "type" : "string"
114
114
  }
115
+ },
116
+ "targetSchema" : {
117
+ "$ref" : "./lists/sepa_credit_transfers.json#"
115
118
  }
116
119
  },
117
120
  {
@@ -114,6 +114,9 @@
114
114
  "description" : "Sort the results in ASC or DESC",
115
115
  "type" : "string"
116
116
  }
117
+ },
118
+ "targetSchema" : {
119
+ "$ref" : "./lists/sepa_direct_debits.json#"
117
120
  }
118
121
  },
119
122
  {
@@ -147,6 +147,9 @@
147
147
  "description" : "Sort the results in ASC or DESC",
148
148
  "type" : "string"
149
149
  }
150
+ },
151
+ "targetSchema" : {
152
+ "$ref" : "./lists/sepa_mandates.json#"
150
153
  }
151
154
  },
152
155
  {
@@ -127,6 +127,9 @@
127
127
  ],
128
128
  "description" : "Sort the results in ASC or DESC",
129
129
  "type" : "string"
130
+ },
131
+ "targetSchema" : {
132
+ "$ref" : "./lists/transactions.json#"
130
133
  }
131
134
  }
132
135
  }
@@ -5,7 +5,7 @@
5
5
  "description" : "Remote account for a Fidor internal transfer",
6
6
  "properties" : {
7
7
  "remote_account_id" : {
8
- "$ref" : "./base_types/base_types.json#definitions/account_id",
8
+ "$ref" : "../base_types/base_types.json#definitions/account_id",
9
9
  "readonly" : true
10
10
  },
11
11
  "internal_transfer_id" : {
@@ -16,11 +16,11 @@
16
16
  "maxLength" : 70
17
17
  },
18
18
  "remote_iban" : {
19
- "$ref" : "./base_types/base_types.json#definitions/iban",
19
+ "$ref" : "../base_types/base_types.json#definitions/iban",
20
20
  "readonly" : true
21
21
  },
22
22
  "remote_bic" : {
23
- "$ref" : "./base_types/base_types.json#definitions/bic",
23
+ "$ref" : "../base_types/base_types.json#definitions/bic",
24
24
  "readonly" : true
25
25
  }
26
26
  }
@@ -5,11 +5,11 @@
5
5
  "description" : "Remote account information for a SEPA direct debit",
6
6
  "properties" : {
7
7
  "remote_iban" : {
8
- "$ref" : "./base_types/base_types.json#definitions/iban",
8
+ "$ref" : "../base_types/base_types.json#definitions/iban",
9
9
  "readonly" : true
10
10
  },
11
11
  "remote_bic" : {
12
- "$ref" : "./base_types/base_types.json#definitions/bic",
12
+ "$ref" : "../base_types/base_types.json#definitions/bic",
13
13
  "readonly" : true
14
14
  },
15
15
  "mandate_id" : {
@@ -18,7 +18,7 @@
18
18
  "readonly" : true
19
19
  },
20
20
  "eref" : {
21
- "$ref" : "./base_types/base_types.json#definitions/eref",
21
+ "$ref" : "../base_types/base_types.json#definitions/eref",
22
22
  "readonly" : true
23
23
  }
24
24
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fidor_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-06 00:00:00.000000000 Z
11
+ date: 2014-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.6
61
+ version: 0.3.0
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.6
68
+ version: 0.3.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activemodel
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -117,6 +117,17 @@ files:
117
117
  - schema/v1.0/customer.json
118
118
  - schema/v1.0/error.json
119
119
  - schema/v1.0/internal_transfer.json
120
+ - schema/v1.0/lists/accounts.json
121
+ - schema/v1.0/lists/batch_direct_debits.json
122
+ - schema/v1.0/lists/batch_transfers.json
123
+ - schema/v1.0/lists/collection.json
124
+ - schema/v1.0/lists/customers.json
125
+ - schema/v1.0/lists/internal_transfers.json
126
+ - schema/v1.0/lists/sepa_credit_transfers.json
127
+ - schema/v1.0/lists/sepa_direct_debits.json
128
+ - schema/v1.0/lists/sepa_mandates.json
129
+ - schema/v1.0/lists/transactions.json
130
+ - schema/v1.0/lists/users.json
120
131
  - schema/v1.0/sepa_credit_transfer.json
121
132
  - schema/v1.0/sepa_direct_debit.json
122
133
  - schema/v1.0/sepa_mandate.json