fidor_schema 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cacd9b90d4afd09a59a09adfde1faf7df2947717
4
- data.tar.gz: d777b912086d49bbc59711477aebafb75fd40546
3
+ metadata.gz: 26720032ba3bbe19997f25f94988fe4472913218
4
+ data.tar.gz: 1effccb4d3e864f7bcd6dd09a7f1f357995ada2e
5
5
  SHA512:
6
- metadata.gz: 146f08392166a782420e9d34e9e22fc7bf7a050a948672966cdee5387cce6e42b88a23f6bba62ed4dc1798d4d107efc83d1ab8e4ded2ac1666fd93ee6b4663ae
7
- data.tar.gz: 28f3fa2181234fd18d474c56f2df77be7f431127783350b8aaa5101ba16c400a5be7e25e2538cf4079facfb66237e3e2ac38c8200564beb2bd647c8dc039f0a7
6
+ metadata.gz: 6b0bd0a2eb52a822de1629577ad5e166e8b3faab0c30d7f100363abe9feb81da071318670706542b4cb22b8a9e0e8e78579ca28f3ceaf95297362e5fec7c2b06
7
+ data.tar.gz: f0d5ca76b6e321d4171450a24c9b9e47c3d3b136b26276429c1ff854414c8983f6698511b2cbc3c3f3273dc64adabae6434528d7b26a29d0778a1c51dbd38a8d
data/.travis.yml CHANGED
@@ -5,7 +5,6 @@ branches:
5
5
  - master
6
6
 
7
7
  rvm:
8
- - 1.9.3
9
8
  - 2.1
10
9
  - 2.2
11
10
 
@@ -1,5 +1,5 @@
1
1
  module Fidor
2
2
  class Schema
3
- VERSION = '0.10.0'
3
+ VERSION = '0.10.1'
4
4
  end
5
5
  end
@@ -88,6 +88,11 @@
88
88
  "rel" : "self",
89
89
  "href" : "accounts/{id}"
90
90
  },
91
+ {
92
+ "rel" : "create",
93
+ "href" : "accounts",
94
+ "method" : "POST"
95
+ },
91
96
  {
92
97
  "rel" : "instances",
93
98
  "href" : "accounts"
@@ -109,4 +114,4 @@
109
114
  "href" : "accounts/{id}/sepa_direct_debits"
110
115
  }
111
116
  ]
112
- }
117
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "title": "bank_check",
5
+ "description": "Validate provided bank IBAN",
6
+ "properties": {
7
+ "iban" : {
8
+ "$ref" : "./base_types/base_types.json#definitions/iban"
9
+ },
10
+ "bank_name" : {
11
+ "description" : "Name of the bank provided IBAN belongs to",
12
+ "type" : "string"
13
+ }
14
+ },
15
+ "links": [
16
+ {
17
+ "rel": "iban",
18
+ "href": "bank_check",
19
+ "schema": {
20
+ "type": "object",
21
+ "properties": {
22
+ "iban": {
23
+ "type": "string"
24
+ }
25
+ },
26
+ "required": [
27
+ "iban"
28
+ ]
29
+ }
30
+ }
31
+ ]
32
+ }
@@ -18,6 +18,11 @@
18
18
  "readOnly" : true,
19
19
  "type" : "string"
20
20
  },
21
+ "name" : {
22
+ "description" : "Generic representation of the name, e.g. first name, last name, maiden name",
23
+ "type" : "string",
24
+ "maxLength" : 30
25
+ },
21
26
  "transaction_id" : {
22
27
  "description" : "Identifies a reference to a corresponding transaction",
23
28
  "readOnly" : true,
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "type" : "object",
3
3
  "title" : "List",
4
- "name" : "list",
5
4
  "description" : "A paginated list of objects",
6
5
  "properties" : {
7
6
  "data" : {
@@ -10,7 +9,7 @@
10
9
  },
11
10
  "collection" : {
12
11
  "type" : "object",
13
- "name" : "collection",
12
+ "title" : "Collection",
14
13
  "description" : "Pagination information for a list of returned object (not standalone)",
15
14
  "properties" : {
16
15
  "current_page" : {
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "type" : "object",
3
- "title" : "Blocked Amount",
4
- "name" : "blocked_amount",
3
+ "title" : "blocked_amount",
5
4
  "description" : "",
6
5
  "properties" : {
7
6
 
8
7
  },
9
8
  "links" : []
10
- }
9
+ }
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "$schema" : "http://json-schema.org/draft-04/schema#",
3
3
  "type" : "object",
4
- "title" : "Card PIN Code",
5
- "name" : "pin",
4
+ "title" : "pin",
6
5
  "rel" : "pin",
7
6
  "description" : "Card PIN code",
8
7
  "parent" : "card",
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "$schema" : "http://json-schema.org/draft-04/schema#",
3
3
  "type" : "object",
4
- "title" : "Card",
5
- "name" : "card",
4
+ "title" : "card",
6
5
  "description" : "Cards endpoint",
7
6
  "required" : ["type", "design", "currency", "pin"],
8
7
  "properties" : {
@@ -47,6 +46,14 @@
47
46
  "description" : "Card design",
48
47
  "type" : "string"
49
48
  },
49
+ "pin" : {
50
+ "$ref" : "./card/pin.json#properties/pin"
51
+ },
52
+ "cvc_code" : {
53
+ "description" : "Card's cvc code",
54
+ "type" : "string",
55
+ "pattern" : "^[0-9]{3}$"
56
+ },
50
57
  "currency" : {
51
58
  "$ref" : "./base_types/base_types.json#definitions/currency"
52
59
  },
@@ -142,13 +149,6 @@
142
149
  }
143
150
  },
144
151
  "links" : [
145
- {
146
- "description" : "All cards of a customer",
147
- "href" : "cards",
148
- "method" : "GET",
149
- "rel" : "instances",
150
- "title" : "Index"
151
- },
152
152
  {
153
153
  "description" : "Card details",
154
154
  "href" : "cards/{id}",
@@ -197,14 +197,7 @@
197
197
  "href" : "cards/{id}/activate",
198
198
  "method" : "PUT",
199
199
  "rel" : "activate",
200
- "title" : "Activate",
201
- "properties" : {
202
- "cvc_code" : {
203
- "description" : "Card's pin",
204
- "type" : "string",
205
- "pattern" : "^[0-9]{3}$"
206
- }
207
- }
200
+ "title" : "Activate"
208
201
  },
209
202
  {
210
203
  "description" : "Cancel an existing card: cancel card subscription, lock card",
@@ -231,6 +224,57 @@
231
224
  "$ref" : "./card/pin.json#properties/pin"
232
225
  }
233
226
  }
227
+ },
228
+ {
229
+ "rel" : "instances",
230
+ "href" : "cards",
231
+ "description" : "All cards of a customer",
232
+ "href" : "cards",
233
+ "method" : "GET",
234
+ "rel" : "instances",
235
+ "title" : "Index",
236
+ "properties" : {
237
+ "filter[states]" : {
238
+ "title" : "Find cards in a certain state. Single state or multiple states comma-separated.",
239
+ "enum" : [
240
+ "created",
241
+ "mobile_tan_sent",
242
+ "card_registration_requirments_check",
243
+ "card_registration_pending",
244
+ "card_registration_in_progress",
245
+ "card_registration_canceled",
246
+ "card_registration_completed",
247
+ "active",
248
+ "revoked",
249
+ "canceled",
250
+ "disabled",
251
+ "lost",
252
+ "expired",
253
+ "annual_fee_pending_active",
254
+ "annual_fee_pending_registration_completed"
255
+ ],
256
+ "type" : "string"
257
+ },
258
+ "page" : {
259
+ "title" : "Page",
260
+ "description" : "In paginated results set the page to look for",
261
+ "type" : "integer"
262
+ },
263
+ "per_page" : {
264
+ "title" : "Per page",
265
+ "description" : "Results per page. Default is 10, max is 100",
266
+ "type" : "integer"
267
+ },
268
+ "sort" : {
269
+ "title" : "Sort",
270
+ "enum" : [
271
+ "ASC",
272
+ "DESC"
273
+ ],
274
+ "description" : "Sort the results in ASC or DESC",
275
+ "type" : "string"
276
+ }
277
+ }
234
278
  }
235
279
  ]
236
280
  }
@@ -0,0 +1,34 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/schema#",
3
+ "type" : "object",
4
+ "title" : "card_limit",
5
+ "description" : "See and update your card limits",
6
+ "properties" : {
7
+ "atm_limit" : {
8
+ "description" : "Cash limit",
9
+ "$ref" : "./base_types/base_types.json#definitions/amount"
10
+ },
11
+ "transaction_single_limit" : {
12
+ "description" : "Limit for a single transaction",
13
+ "$ref" : "./base_types/base_types.json#definitions/amount"
14
+ },
15
+ "transaction_volume_limit" : {
16
+ "description" : "Daily transaction limit",
17
+ "$ref" : "./base_types/base_types.json#definitions/amount"
18
+ }
19
+ },
20
+ "links" : [
21
+ {
22
+ "rel" : "self",
23
+ "href" : "card_limits"
24
+ },
25
+ {
26
+ "description" : "Update your card limits",
27
+ "href" : "card_limits",
28
+ "method" : "PUT",
29
+ "rel" : "update",
30
+ "title" : "update_card_limits"
31
+ }
32
+
33
+ ]
34
+ }
@@ -15,23 +15,19 @@
15
15
  },
16
16
  "first_name" : {
17
17
  "description" : "The given name of the customer",
18
- "type" : "string",
19
- "maxLength" : 30
18
+ "$ref" : "./base_types/base_types.json#definitions/name"
20
19
  },
21
20
  "additional_first_name" : {
22
21
  "description" : "The additional given name of the customer",
23
- "type" : "string",
24
- "maxLength" : 30
22
+ "$ref" : "./base_types/base_types.json#definitions/name"
25
23
  },
26
24
  "last_name" : {
27
25
  "description" : "The family name of the customer",
28
- "type" : "string",
29
- "maxLength" : 30
26
+ "$ref" : "./base_types/base_types.json#definitions/name"
30
27
  },
31
28
  "maiden_name" : {
32
29
  "description" : "Name at birth, maiden name.",
33
- "type" : "string",
34
- "maxLength" : 30
30
+ "$ref" : "./base_types/base_types.json#definitions/name"
35
31
  },
36
32
  "password" : {
37
33
  "description" : "Password for accessing your account later. You can use lower and upper case letters, digits and special characters",
@@ -57,12 +53,10 @@
57
53
  "type" : "string"
58
54
  },
59
55
  "title" : {
60
- "description" : "Salutation: 1 - Mr., 2 - Ms., 3 - Mr. Dr., 4 - Ms. Dr.",
56
+ "description" : "Salutation: 1 - Mr., 2 - Mrs.",
61
57
  "enum" : [
62
58
  1,
63
- 2,
64
- 3,
65
- 4
59
+ 2
66
60
  ],
67
61
  "type" : "integer"
68
62
  },
@@ -232,10 +226,12 @@
232
226
  "href" : "customers/{id}/confirmations"
233
227
  },
234
228
  {
235
- "rel" : "create",
236
- "href" : "customers",
237
- "method" : "POST",
238
- "description" : "Creates a customer"
229
+ "rel" : "rewards",
230
+ "href" : "customers/{id}/rewards"
231
+ },
232
+ {
233
+ "rel" : "projected_rewards",
234
+ "href" : "customers/{id}/projected_rewards"
239
235
  },
240
236
  {
241
237
  "rel" : "update",
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "type" : "object",
3
- "title" : "Emergency Loan",
4
- "name" : "emergency_loan",
3
+ "title" : "emergency_loan",
5
4
  "description" : "",
6
5
  "properties" : {
7
6
 
8
7
  },
9
8
  "links" : []
10
- }
9
+ }
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "title": "notification",
5
+ "description": "Notification resource to communicate events",
6
+ "required": [
7
+ "type"
8
+ ],
9
+ "properties": {
10
+ "customer_id": {
11
+ "$ref": "../base_types/base_types.json#definitions/account_id"
12
+ },
13
+ "type": {
14
+ "description": "Notification type",
15
+ "type": "string",
16
+ "enum": [
17
+ "postident"
18
+ ]
19
+ }
20
+ },
21
+ "links": [
22
+ {
23
+ "rel": "push",
24
+ "href": "notification/push",
25
+ "method": "POST"
26
+ }
27
+ ]
28
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/schema#",
3
+ "type" : "object",
4
+ "title" : "password_reset",
5
+ "description" : "Allows users to reset their password",
6
+ "required" : [
7
+ "identifier", "question", "answer", "password"
8
+ ],
9
+ "properties" : {
10
+ "identifier" : {
11
+ "description" : "User identifier e.g. email address or mobile phone number",
12
+ "oneOf" : [
13
+ {
14
+ "$ref" : "./base_types/base_types.json#definitions/email"
15
+ },
16
+ {
17
+ "$ref" : "./base_types/base_types.json#definitions/phone"
18
+ }
19
+ ]
20
+ },
21
+ "question" : {
22
+ "description" : "Security question",
23
+ "type" : "string"
24
+ },
25
+ "answer" : {
26
+ "description" : "Answer to a security question",
27
+ "type" : "string"
28
+ },
29
+ "password" : {
30
+ "description" : "New password",
31
+ "type" : "string"
32
+ }
33
+ },
34
+ "links" : [
35
+ {
36
+ "rel" : "create",
37
+ "href" : "password_resets",
38
+ "method" : "POST"
39
+ }
40
+ ]
41
+ }
@@ -102,6 +102,14 @@
102
102
  "format" : "date-time",
103
103
  "type" : "string"
104
104
  },
105
+ "filter[amount_from]" : {
106
+ "title" : "Amount filter from >= amount in account currency, in minor units, e.g. 1EUR is represented as 100",
107
+ "type" : "integer"
108
+ },
109
+ "filter[amount_to]" : {
110
+ "title" : "Amount filter to <= amount in account currency, in minor units, e.g. 1EUR is represented as 100",
111
+ "type" : "integer"
112
+ },
105
113
  "filter[preauth_types]" : {
106
114
  "$ref" : "./base_types/base_types.json#definitions/preauth_type",
107
115
  "title" : "By preauth types"
@@ -13,6 +13,9 @@
13
13
  "readOnly" : true,
14
14
  "type" : "string"
15
15
  },
16
+ "receiver" : {
17
+ "$ref" : "../internal_transfer.json#properties/receiver"
18
+ },
16
19
  "remote_bic" : {
17
20
  "description" : "BIC of the transfer sender",
18
21
  "readOnly" : true,
@@ -0,0 +1,32 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/schema#",
3
+ "type" : "object",
4
+ "title" : "security_answer",
5
+ "description" : "Set and update your security answer",
6
+ "required" : [
7
+ "question", "answer"
8
+ ],
9
+ "properties" : {
10
+ "question" : {
11
+ "description" : "Your security question",
12
+ "type" : "string"
13
+ },
14
+ "answer" : {
15
+ "description" : "An answer to a security question",
16
+ "type" : "string"
17
+ }
18
+ },
19
+ "links" : [
20
+ {
21
+ "rel" : "current",
22
+ "href" : "security_answers/current"
23
+ },
24
+ {
25
+ "description" : "Set your security answer",
26
+ "href" : "security_answers",
27
+ "method" : "POST",
28
+ "rel" : "create",
29
+ "title" : "create_questions_answer"
30
+ }
31
+ ]
32
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/schema#",
3
+ "type" : "object",
4
+ "title" : "security_question",
5
+ "description" : "See all possible security questions",
6
+ "properties" : {
7
+ "question" : {
8
+ "description" : "Security questions to choose",
9
+ "type" : "string"
10
+ }
11
+ },
12
+ "links" : [
13
+ {
14
+ "rel" : "instances",
15
+ "href" : "security_questions"
16
+ }
17
+ ]
18
+ }
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "$schema" : "http://json-schema.org/draft-04/schema#",
3
3
  "type" : "object",
4
- "title" : "Short-term Loan",
5
- "name" : "short_term_loan",
4
+ "title" : "short_term_loan",
6
5
  "description" : "A short-term loan.",
7
6
  "required" : ["loan_amount", "duration"],
8
7
  "properties" : {
@@ -13,6 +13,9 @@
13
13
  "readOnly" : true,
14
14
  "type" : "string"
15
15
  },
16
+ "receiver" : {
17
+ "$ref" : "../internal_transfer.json#properties/receiver"
18
+ },
16
19
  "remote_bic" : {
17
20
  "description" : "BIC of the transaction's sender",
18
21
  "readOnly" : true,
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.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georg Leciejewski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-21 00:00:00.000000000 Z
11
+ date: 2015-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -162,6 +162,7 @@ files:
162
162
  - lib/validator/json_schema.rb
163
163
  - lib/validator/schema.json
164
164
  - schema/v1.0/account.json
165
+ - schema/v1.0/bank_check.json
165
166
  - schema/v1.0/base_types/base_types.json
166
167
  - schema/v1.0/base_types/lists.json
167
168
  - schema/v1.0/batch_direct_debit.json
@@ -169,13 +170,16 @@ files:
169
170
  - schema/v1.0/blocked_amount.json
170
171
  - schema/v1.0/card.json
171
172
  - schema/v1.0/card/pin.json
173
+ - schema/v1.0/card_limit.json
172
174
  - schema/v1.0/creditor_identity.json
173
175
  - schema/v1.0/customer.json
174
176
  - schema/v1.0/emergency_loan.json
175
177
  - schema/v1.0/error.json
176
178
  - schema/v1.0/internal_transfer.json
177
179
  - schema/v1.0/legal.json
180
+ - schema/v1.0/notification.json
178
181
  - schema/v1.0/overdraft.json
182
+ - schema/v1.0/password_reset.json
179
183
  - schema/v1.0/preauth.json
180
184
  - schema/v1.0/preauth_type_details/capital_bond_details.json
181
185
  - schema/v1.0/preauth_type_details/credit_card_details.json
@@ -184,6 +188,8 @@ files:
184
188
  - schema/v1.0/preauth_type_details/internal_transfer_details.json
185
189
  - schema/v1.0/preauth_type_details/ripple_details.json
186
190
  - schema/v1.0/rate_limit.json
191
+ - schema/v1.0/security_answer.json
192
+ - schema/v1.0/security_question.json
187
193
  - schema/v1.0/sepa_credit_transfer.json
188
194
  - schema/v1.0/sepa_direct_debit.json
189
195
  - schema/v1.0/sepa_mandate.json