fidor_schema 0.3.5 → 0.4.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 -0
- data/lib/fidor_schema_version.rb +1 -1
- data/schema/v1.0/account.json +1 -4
- data/schema/v1.0/base_types/lists.json +32 -0
- data/schema/v1.0/sepa_direct_debit.json +5 -0
- data/schema/v1.0/transaction.json +18 -5
- data/spec/fidor_schema_spec.rb +2 -2
- metadata +3 -13
- data/schema/v1.0/lists/accounts.json +0 -22
- data/schema/v1.0/lists/batch_direct_debits.json +0 -22
- data/schema/v1.0/lists/batch_transfers.json +0 -22
- data/schema/v1.0/lists/collection.json +0 -20
- data/schema/v1.0/lists/customers.json +0 -22
- data/schema/v1.0/lists/internal_transfers.json +0 -22
- data/schema/v1.0/lists/sepa_credit_transfers.json +0 -22
- data/schema/v1.0/lists/sepa_direct_debits.json +0 -22
- data/schema/v1.0/lists/sepa_mandates.json +0 -22
- data/schema/v1.0/lists/transactions.json +0 -22
- data/schema/v1.0/lists/users.json +0 -22
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62915f5be4ab9ef346a2863dd9a9b722023d24c1
|
4
|
+
data.tar.gz: 1bb21c5f020113acb70e9e14e840f540b4f66669
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9735c425b487162ca5e0f1c654118003b262d016b45906826511d1b51b44e7e34718aa492a3b7cae7895134f63cbc9b71af0d71d1e1f720478c96611e9f3fcb0
|
7
|
+
data.tar.gz: d690c254b44b85ab6650b62a872a922bcb0acc5271ab20744f4339ac0d32cbb9ca46300503e63278a5eee09e4d866c7ad888d57b04c3c1f7b802bb89e70a5bcf
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,9 @@ A more detailed view of the changes can be found in the [commit messages](https:
|
|
4
4
|
|
5
5
|
##2014-11
|
6
6
|
|
7
|
+
* Lists of any object type are now returned under the generic 'data' key
|
8
|
+
* Transaction clarify nested transaction_type_details
|
9
|
+
* Transaction amount can be negative
|
7
10
|
* add rate_limit endpoint
|
8
11
|
|
9
12
|
##2014-10
|
data/lib/fidor_schema_version.rb
CHANGED
data/schema/v1.0/account.json
CHANGED
@@ -0,0 +1,32 @@
|
|
1
|
+
{
|
2
|
+
"type" : "object",
|
3
|
+
"title" : "List",
|
4
|
+
"name" : "list",
|
5
|
+
"description" : "A paginated list of objects",
|
6
|
+
"properties" : {
|
7
|
+
"data" : {
|
8
|
+
"description" : "The requested objects",
|
9
|
+
"type" : "array"
|
10
|
+
},
|
11
|
+
"collection" : {
|
12
|
+
"type" : "object",
|
13
|
+
"name" : "collection",
|
14
|
+
"description" : "Pagination information for a list of returned object (not standalone)",
|
15
|
+
"properties" : {
|
16
|
+
"current_page" : {
|
17
|
+
"type" : "integer"
|
18
|
+
},
|
19
|
+
"per_page" : {
|
20
|
+
"type" : "integer"
|
21
|
+
},
|
22
|
+
"total_entries" : {
|
23
|
+
"type" : "integer"
|
24
|
+
},
|
25
|
+
"total_pages" : {
|
26
|
+
"type" : "integer"
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
@@ -22,6 +22,11 @@
|
|
22
22
|
"type" : "string",
|
23
23
|
"required" : true
|
24
24
|
},
|
25
|
+
"creditor_identifier" : {
|
26
|
+
"description" : "Creditor Identifier",
|
27
|
+
"type" : "string",
|
28
|
+
"readonly" : true
|
29
|
+
},
|
25
30
|
"amount" : {
|
26
31
|
"$ref" : "./base_types/base_types.json#definitions/amount",
|
27
32
|
"required" : true
|
@@ -21,16 +21,28 @@
|
|
21
21
|
"type" : "object",
|
22
22
|
"oneOf" : [
|
23
23
|
{
|
24
|
-
"
|
24
|
+
"name" : "credit_card_details",
|
25
|
+
"properties" : {
|
26
|
+
"$ref" : "./transaction_type_details/credit_card_details.json#properties"
|
27
|
+
}
|
25
28
|
},
|
26
29
|
{
|
27
|
-
"
|
30
|
+
"name" : "internal_transfer_details",
|
31
|
+
"properties" : {
|
32
|
+
"$ref" : "./transaction_type_details/internal_transfer_details.json#properties"
|
33
|
+
}
|
28
34
|
},
|
29
35
|
{
|
30
|
-
"
|
36
|
+
"name" : "sepa_credit_transfer_details",
|
37
|
+
"properties" : {
|
38
|
+
"$ref" : "./transaction_type_details/sepa_credit_transfer_details.json#properties"
|
39
|
+
}
|
31
40
|
},
|
32
41
|
{
|
33
|
-
"
|
42
|
+
"name" : "sepa_direct_debit_details",
|
43
|
+
"properties" : {
|
44
|
+
"$ref" : "./transaction_type_details/sepa_direct_debit_details.json#properties"
|
45
|
+
}
|
34
46
|
}
|
35
47
|
]
|
36
48
|
},
|
@@ -39,7 +51,8 @@
|
|
39
51
|
"readonly" : true
|
40
52
|
},
|
41
53
|
"amount" : {
|
42
|
-
"
|
54
|
+
"description" : "The transferred amount in account currency, in minor units, e.g. 1EUR is represented as 100. Can be negative e.g. if something was withdrawn from an account.",
|
55
|
+
"type" : "integer",
|
43
56
|
"readonly" : true
|
44
57
|
},
|
45
58
|
"currency" : {
|
data/spec/fidor_schema_spec.rb
CHANGED
@@ -22,8 +22,8 @@ describe Fidor::Schema do
|
|
22
22
|
|
23
23
|
it 'in single schema' do
|
24
24
|
SchemaTools.schema_path = Fidor::Schema.path
|
25
|
-
schema = SchemaTools::Reader.read('
|
26
|
-
expect(schema['properties']['
|
25
|
+
schema = SchemaTools::Reader.read('account').to_h
|
26
|
+
expect(schema['properties']['customers']['items']['properties']['id']['type']).to eq 'string'
|
27
27
|
|
28
28
|
end
|
29
29
|
|
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.4.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-11-
|
11
|
+
date: 2014-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,22 +113,12 @@ files:
|
|
113
113
|
- lib/fidor_schema_version.rb
|
114
114
|
- schema/v1.0/account.json
|
115
115
|
- schema/v1.0/base_types/base_types.json
|
116
|
+
- schema/v1.0/base_types/lists.json
|
116
117
|
- schema/v1.0/batch_direct_debit.json
|
117
118
|
- schema/v1.0/batch_transfer.json
|
118
119
|
- schema/v1.0/customer.json
|
119
120
|
- schema/v1.0/error.json
|
120
121
|
- schema/v1.0/internal_transfer.json
|
121
|
-
- schema/v1.0/lists/accounts.json
|
122
|
-
- schema/v1.0/lists/batch_direct_debits.json
|
123
|
-
- schema/v1.0/lists/batch_transfers.json
|
124
|
-
- schema/v1.0/lists/collection.json
|
125
|
-
- schema/v1.0/lists/customers.json
|
126
|
-
- schema/v1.0/lists/internal_transfers.json
|
127
|
-
- schema/v1.0/lists/sepa_credit_transfers.json
|
128
|
-
- schema/v1.0/lists/sepa_direct_debits.json
|
129
|
-
- schema/v1.0/lists/sepa_mandates.json
|
130
|
-
- schema/v1.0/lists/transactions.json
|
131
|
-
- schema/v1.0/lists/users.json
|
132
122
|
- schema/v1.0/rate_limit.json
|
133
123
|
- schema/v1.0/sepa_credit_transfer.json
|
134
124
|
- schema/v1.0/sepa_direct_debit.json
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../account.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../batch_direct_debit.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../batch_transfer.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,20 +0,0 @@
|
|
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
|
-
}
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../customer.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../internal_transfer.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../sepa_credit_transfer.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../sepa_direct_debit.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../sepa_mandate.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../transaction.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
@@ -1,22 +0,0 @@
|
|
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
|
-
"type" : "object",
|
11
|
-
"properties" : {
|
12
|
-
"$ref" : "../user.json#properties"
|
13
|
-
}
|
14
|
-
}
|
15
|
-
},
|
16
|
-
"links" : {},
|
17
|
-
"collection" : {
|
18
|
-
"$ref" : "./collection.json#"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|