fidor_schema 0.10.2 → 0.10.4

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: 4e9bbd08f06d5c5077058cf05eac63c88a84f5c2
4
- data.tar.gz: 07810be4472908ec64ab3ec89ef5287f6be9b5e5
3
+ metadata.gz: b0b2a0e4fb1a92c0e159a9dfedd26bd70fa3bb44
4
+ data.tar.gz: 3b613a82cd2db26b189b59e5130cdce8d57e319b
5
5
  SHA512:
6
- metadata.gz: 1a92e4f0104a5ebac77bb51ce84ba5760a5036d845e140c6094dc43ce6369d0dc662acfb709264cf4eb179e298fa80fe3b54a840962589c81b68560e0ea70119
7
- data.tar.gz: c05934babde9d3671c1d3a2a49b17837c24d06a2fed4edb605e9f7449d0cd7e0ca9b9395b8a2d6b81e73d86b66fc7534c21170918b6dbc835d3ec9cddb454549
6
+ metadata.gz: 562bc6121071f7e84dd04dda99cacfda3c0934357414390ecd5f86b22799d0d91ed49bf95f4401644b0158145bfe35968140d58bf23c8990f933e91e9c8014ba
7
+ data.tar.gz: 00e0428112e70f7ceffae85de1244d001ccc808f47f2b1475b2a772e18908b7d1a5f9ad6ccb4230d292ce75776cb1e4bfdd86c2cb34dc9a40d0346c25613dd1f
@@ -1,5 +1,5 @@
1
1
  module Fidor
2
2
  class Schema
3
- VERSION = '0.10.2'
3
+ VERSION = '0.10.4'
4
4
  end
5
5
  end
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "links": [
16
16
  {
17
- "rel": "iban",
17
+ "rel": "instances",
18
18
  "href": "bank_check",
19
19
  "schema": {
20
20
  "type": "object",
@@ -54,7 +54,7 @@
54
54
  "type" : "string",
55
55
  "pattern" : "^[0-9]{14,16}$"
56
56
  },
57
- "cvc_code" : {
57
+ "cvc" : {
58
58
  "description" : "Card's cvc code",
59
59
  "type" : "string",
60
60
  "pattern" : "^[0-9]{3}$"
@@ -176,6 +176,13 @@
176
176
  "rel" : "pan",
177
177
  "title" : "Primary Account Number"
178
178
  },
179
+ {
180
+ "description" : "Card Verification Code",
181
+ "href" : "cards/{id}/cvc",
182
+ "method" : "GET",
183
+ "rel" : "cvc",
184
+ "title" : "Card Verification Value Code"
185
+ },
179
186
  {
180
187
  "description" : "Lock a card",
181
188
  "href" : "cards/{id}/lock",
@@ -29,6 +29,5 @@
29
29
  "rel" : "update",
30
30
  "title" : "update_card_limits"
31
31
  }
32
-
33
32
  ]
34
33
  }
@@ -0,0 +1,118 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-04/schema#",
3
+ "type": "object",
4
+ "title": "message",
5
+ "description": "Message",
6
+ "properties": {
7
+ "id": {
8
+ "$ref": "../base_types/base_types.json#definitions/id",
9
+ "readOnly": true
10
+ },
11
+ "subject": {
12
+ "description": "Subject of the message",
13
+ "readOnly": true,
14
+ "type": "string"
15
+ },
16
+ "body": {
17
+ "description": "Body of the message",
18
+ "readOnly": true,
19
+ "type": "string"
20
+ },
21
+ "type": {
22
+ "description": "Type of the message",
23
+ "type": "string",
24
+ "enum": [
25
+ "information",
26
+ "offer",
27
+ "document"
28
+ ]
29
+ },
30
+ "created_at": {
31
+ "$ref": "./base_types/base_types.json#definitions/created_at"
32
+ },
33
+ "updated_at": {
34
+ "$ref": "./base_types/base_types.json#definitions/updated_at"
35
+ }
36
+ },
37
+ "links": [
38
+ {
39
+ "description": "Get one particular message",
40
+ "rel": "self",
41
+ "href": "messages/{id}",
42
+ "method": "GET"
43
+ },
44
+ {
45
+ "description": "Download an attachment",
46
+ "rel": "download",
47
+ "href": "messages/{id}/attachment",
48
+ "method": "GET"
49
+ },
50
+ {
51
+ "description": "Archive a message",
52
+ "rel": "archive",
53
+ "href": "messages/{id}/archive",
54
+ "method": "PUT"
55
+ },
56
+ {
57
+ "description": "Unpack an archived a message",
58
+ "rel": "unarchive",
59
+ "href": "messages/{id}/unarchive",
60
+ "method": "PUT"
61
+ },
62
+ {
63
+ "rel": "instances",
64
+ "href": "messages",
65
+ "title": "index",
66
+ "properties": {
67
+ "filter[created_at_from]": {
68
+ "title": "Date filter from >= date. ISO 8601 Date",
69
+ "format": "date-time",
70
+ "type": "string"
71
+ },
72
+ "filter[created_at_to]": {
73
+ "title": "Date filter to <= date. ISO 8601 Date",
74
+ "format": "date-time",
75
+ "type": "string"
76
+ },
77
+ "filter[updated_at_from]": {
78
+ "title": "Date filter from >= date. ISO 8601 Date",
79
+ "format": "date-time",
80
+ "type": "string"
81
+ },
82
+ "filter[updated_at_to]": {
83
+ "title": "Date filter to <= date. ISO 8601 Date",
84
+ "format": "date-time",
85
+ "type": "string"
86
+ },
87
+ "filter[types]": {
88
+ "title": "By message types",
89
+ "type": "string",
90
+ "enum": [
91
+ "information",
92
+ "offer",
93
+ "document"
94
+ ]
95
+ },
96
+ "page": {
97
+ "title": "Page",
98
+ "description": "In paginated results set the page to look for",
99
+ "type": "integer"
100
+ },
101
+ "per_page": {
102
+ "title": "Per page",
103
+ "description": "Results per page. Default is 10, max is 100",
104
+ "type": "integer"
105
+ },
106
+ "sort": {
107
+ "title": "Sort",
108
+ "enum": [
109
+ "ASC",
110
+ "DESC"
111
+ ],
112
+ "description": "Sort the results in ASC or DESC",
113
+ "type": "string"
114
+ }
115
+ }
116
+ }
117
+ ]
118
+ }
@@ -40,6 +40,11 @@
40
40
  "description" : "Subject of the transaction",
41
41
  "readOnly" : true,
42
42
  "type" : "string"
43
+ },
44
+ "recipient_name": {
45
+ "description" : "Full name of the recipient",
46
+ "readOnly" : true,
47
+ "type" : "string"
43
48
  }
44
49
  }
45
50
  }
@@ -40,6 +40,11 @@
40
40
  "description" : "Subject of the transaction",
41
41
  "readOnly" : true,
42
42
  "type" : "string"
43
+ },
44
+ "recipient_name": {
45
+ "description" : "Full name of the recipient",
46
+ "readOnly" : true,
47
+ "type" : "string"
43
48
  }
44
49
  }
45
50
  }
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.2
4
+ version: 0.10.4
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-12-01 00:00:00.000000000 Z
11
+ date: 2015-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -177,6 +177,7 @@ files:
177
177
  - schema/v1.0/error.json
178
178
  - schema/v1.0/internal_transfer.json
179
179
  - schema/v1.0/legal.json
180
+ - schema/v1.0/message.json
180
181
  - schema/v1.0/notification.json
181
182
  - schema/v1.0/overdraft.json
182
183
  - schema/v1.0/password_reset.json