fidor_schema 0.1.18 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -3
- data/fidor_schema.gemspec +2 -2
- data/lib/fidor_schema_version.rb +1 -1
- data/schema/v1.0/account.json +25 -18
- data/schema/v1.0/base_types/base_types.json +7 -9
- data/schema/v1.0/batch_direct_debit.json +3 -1
- data/schema/v1.0/batch_transfer.json +3 -1
- data/schema/v1.0/customer.json +11 -5
- data/schema/v1.0/internal_transfer.json +3 -0
- data/schema/v1.0/lists/accounts.json +18 -0
- data/schema/v1.0/lists/batch_direct_debits.json +18 -0
- data/schema/v1.0/lists/batch_transfers.json +18 -0
- data/schema/v1.0/lists/collection.json +20 -0
- data/schema/v1.0/lists/customers.json +18 -0
- data/schema/v1.0/lists/internal_transfers.json +18 -0
- data/schema/v1.0/lists/sepa_credit_transfers.json +18 -0
- data/schema/v1.0/lists/sepa_direct_debits.json +18 -0
- data/schema/v1.0/lists/sepa_mandates.json +18 -0
- data/schema/v1.0/lists/transactions.json +18 -0
- data/schema/v1.0/lists/users.json +18 -0
- data/schema/v1.0/sepa_credit_transfer.json +3 -0
- data/schema/v1.0/sepa_direct_debit.json +3 -0
- data/schema/v1.0/sepa_mandate.json +3 -0
- data/schema/v1.0/transaction.json +3 -0
- data/schema/v1.0/transaction_type_details/internal_transfer_details.json +1 -1
- data/schema/v1.0/transaction_type_details/sepa_credit_transfer_details.json +2 -2
- data/schema/v1.0/transaction_type_details/sepa_direct_debit_details.json +3 -3
- metadata +15 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d900fc95b176724776d4c8b8506ffd05790c43
|
4
|
+
data.tar.gz: 9c1f602c2f2aeb071f1d38b4fa597756bf1dcfb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 227dd314a9485593c3ed03d2283bd6f54728af9f8053e52cf5a444b39cd3d55c642613c9226903434f7000ca24fbdd09763ca33b7dc4d8a4a8590b138189080d
|
7
|
+
data.tar.gz: be6b447b8639d0ff9f0115b5bbdcda5affa57585ca433cf04b4a743ba07ef5fcc712cb9150e1154e2dd74f6b558c6ad2c813026c563de0f0bc49964611c9b231
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
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
|
-
|
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.
|
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
|
data/lib/fidor_schema_version.rb
CHANGED
data/schema/v1.0/account.json
CHANGED
@@ -87,32 +87,39 @@
|
|
87
87
|
"href" : "accounts/{id}"
|
88
88
|
},
|
89
89
|
{
|
90
|
-
"rel"
|
91
|
-
"href"
|
90
|
+
"rel" : "instances",
|
91
|
+
"href" : "accounts",
|
92
|
+
"targetSchema" : {
|
93
|
+
"$ref" : "./lists/accounts.json#"
|
94
|
+
}
|
92
95
|
},
|
93
96
|
{
|
94
|
-
"rel"
|
95
|
-
"href"
|
97
|
+
"rel" : "transactions",
|
98
|
+
"href" : "accounts/{id}/transactions",
|
99
|
+
"targetSchema" : {
|
100
|
+
"$ref" : "./lists/transactions.json#"
|
101
|
+
}
|
96
102
|
},
|
97
103
|
{
|
98
|
-
"rel"
|
99
|
-
"href"
|
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"
|
103
|
-
"href"
|
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"
|
107
|
-
"href"
|
108
|
-
|
109
|
-
|
110
|
-
|
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" : "
|
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" : "^
|
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"
|
96
|
-
"type"
|
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"
|
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
|
-
"
|
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
|
-
"
|
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"
|
data/schema/v1.0/customer.json
CHANGED
@@ -114,7 +114,7 @@
|
|
114
114
|
"birthday" : {
|
115
115
|
"description" : "Date of birth",
|
116
116
|
"type" : "string",
|
117
|
-
"format" : "date
|
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"
|
197
|
-
"href"
|
196
|
+
"rel" : "instances",
|
197
|
+
"href" : "customers",
|
198
|
+
"targetSchema" : {
|
199
|
+
"$ref" : "./lists/customers.json#"
|
200
|
+
}
|
198
201
|
},
|
199
202
|
{
|
200
|
-
"rel"
|
201
|
-
"href"
|
203
|
+
"rel" : "accounts",
|
204
|
+
"href" : "customers/{id}/accounts",
|
205
|
+
"targetSchema" : {
|
206
|
+
"$ref" : "./lists/accounts.json#"
|
207
|
+
}
|
202
208
|
}
|
203
209
|
]
|
204
210
|
}
|
@@ -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
|
+
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
"description" : "Remote account for a Fidor internal transfer",
|
6
6
|
"properties" : {
|
7
7
|
"remote_account_id" : {
|
8
|
-
"$ref" : "
|
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" : "
|
19
|
+
"$ref" : "../base_types/base_types.json#definitions/iban",
|
20
20
|
"readonly" : true
|
21
21
|
},
|
22
22
|
"remote_bic" : {
|
23
|
-
"$ref" : "
|
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" : "
|
8
|
+
"$ref" : "../base_types/base_types.json#definitions/iban",
|
9
9
|
"readonly" : true
|
10
10
|
},
|
11
11
|
"remote_bic" : {
|
12
|
-
"$ref" : "
|
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" : "
|
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.
|
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-
|
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.
|
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.
|
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
|