fidor_schema 0.2.2 → 0.3.0

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: 71dfca1938d4b37e6e17a10ca142fce97ee263ff
4
- data.tar.gz: dd35b82adf06e16fa7749d57f344032690ca1691
3
+ metadata.gz: 8010f4556647ee305be57409bf1fa3e1657a5b0f
4
+ data.tar.gz: f29ca5ee5f9f667055bd07978b301f94d769d14b
5
5
  SHA512:
6
- metadata.gz: 6ebd9c336e63f991076e1e9a6f419b9d788e0760630f52a18f5b731c30dcd922503ca24ed36f69e260d1dd3c27ea4b3bfdf63f62b701262ac30da74ac5376160
7
- data.tar.gz: b353321d8c8e37d342d0da586c7f1676979ab9ca4279d29d65dceabc78a45a70b3c71f041cafc4c2452421e389af85eb294b23947017e1414d21f5ca716868c4
6
+ metadata.gz: 4b4389926418b3648ff0456785adc6565719f8d3c5f3ea8b1d81bdaec8010e5a33ab38205467f3ce6c539459c92110d8a371138738aaaf41ddf7e9a5d987de0c
7
+ data.tar.gz: 83a77722ad9bbd9bff3f3aa8f8c702984e63dacb667a872827ba3a798c7dfa76330a6062fdf302a6c5d10535b743ceb646f68586d918dba458ed35423434ab0f
@@ -1,5 +1,5 @@
1
1
  module Fidor
2
2
  class Schema
3
- VERSION='0.2.2'
3
+ VERSION='0.3.0'
4
4
  end
5
5
  end
@@ -78,10 +78,9 @@
78
78
  "maxLength" : 2
79
79
  },
80
80
  "currency" : {
81
- "description" : "Account currency. ISO 4217 alpha-3 - 3 letter upcase e.g EUR",
81
+ "description" : "Currency of Account or Amount. ISO 4217 alpha-3 - 3 letter upcase e.g EUR",
82
82
  "type" : "string",
83
- "maxLength" : 3,
84
- "minLength" : 3,
83
+ "enum" : ["EUR"],
85
84
  "default" : "EUR"
86
85
  },
87
86
  "subject" : {
@@ -90,10 +89,9 @@
90
89
  "pattern" : "^[A-Za-z0-9_\\.\\, &\\-\\/\\+\\*\\$\\%@üöäÜÖÄ߀]*$"
91
90
  },
92
91
  "amount" : {
93
- "description" : "The transferred amount in account currency, two decimal places. Must be greater than 0 e.g. > 0",
94
- "type" : "number",
95
- "exclusiveMinimum" : true,
96
- "minimum" : 0
92
+ "description" : "The transferred amount in account currency, in minor units, e.g. 1EUR is represented as 100. Must be greater than 0 e.g. at least one cent in EUR",
93
+ "type" : "integer",
94
+ "minimum" : 1
97
95
  },
98
96
  "transaction_type" : {
99
97
  "description" : "Type of the transaction",
@@ -4,7 +4,7 @@
4
4
  "type" : "object",
5
5
  "title" : "Batch Direct Debit",
6
6
  "name" : "batch_direct_debit",
7
- "description" : "A direct debit batch contains multiple direct debits which are processed asynchronously.",
7
+ "description" : "PREVIEW: A direct debit batch contains multiple direct debits which are processed asynchronously.",
8
8
  "properties" : {
9
9
  "id" : {
10
10
  "$ref" : "./base_types/base_types.json#definitions/id"
@@ -55,8 +55,8 @@
55
55
  }
56
56
  }
57
57
  },
58
- "debits_count" : {
59
- "description" : "count of debits transactions received in this batch",
58
+ "debit_count" : {
59
+ "description" : "count of debit transactions received in this batch",
60
60
  "readonly" : true,
61
61
  "type" : "integer"
62
62
  },
@@ -4,7 +4,7 @@
4
4
  "type" : "object",
5
5
  "title" : "Batch Transfer",
6
6
  "name" : "batch_transfer",
7
- "description" : "A transfer batch contains multiple transfers which are processed asynchronously.",
7
+ "description" : "PREVIEW: A transfer batch contains multiple transfers which are processed asynchronously.",
8
8
  "properties" : {
9
9
  "id" : {
10
10
  "$ref" : "./base_types/base_types.json#definitions/id"
@@ -89,7 +89,7 @@
89
89
  }
90
90
  }
91
91
  },
92
- "transfers_count" : {
92
+ "transfer_count" : {
93
93
  "description" : "count of transfers (internal and sepa) transactions received in this batch",
94
94
  "readonly" : true,
95
95
  "type" : "integer"
@@ -37,7 +37,7 @@
37
37
  "readonly" : true
38
38
  },
39
39
  "title" : {
40
- "description" : "Title or salutation e.g Dr. Prof.",
40
+ "description" : "Salutation e.g Mr. or Ms./Mrs.",
41
41
  "type" : "string",
42
42
  "required" : true,
43
43
  "maxLength" : 30,
@@ -43,6 +43,10 @@
43
43
  "$ref" : "./base_types/base_types.json#definitions/amount",
44
44
  "required" : true
45
45
  },
46
+ "currency" : {
47
+ "$ref" : "./base_types/base_types.json#definitions/currency",
48
+ "readonly" : true
49
+ },
46
50
  "subject" : {
47
51
  "$ref" : "./base_types/base_types.json#definitions/subject",
48
52
  "maxLength" : 300
@@ -28,6 +28,10 @@
28
28
  "$ref" : "./base_types/base_types.json#definitions/amount",
29
29
  "required" : true
30
30
  },
31
+ "currency" : {
32
+ "$ref" : "./base_types/base_types.json#definitions/currency",
33
+ "readonly" : true
34
+ },
31
35
  "remote_name" : {
32
36
  "description" : "Receiving account holder name",
33
37
  "type" : "string",
@@ -26,6 +26,10 @@
26
26
  "$ref" : "./base_types/base_types.json#definitions/amount",
27
27
  "required" : true
28
28
  },
29
+ "currency" : {
30
+ "$ref" : "./base_types/base_types.json#definitions/currency",
31
+ "readonly" : true
32
+ },
29
33
  "eref" : {
30
34
  "$ref" : "./base_types/base_types.json#definitions/eref"
31
35
  },
@@ -42,6 +42,10 @@
42
42
  "$ref" : "./base_types/base_types.json#definitions/amount",
43
43
  "readonly" : true
44
44
  },
45
+ "currency" : {
46
+ "$ref" : "./base_types/base_types.json#definitions/currency",
47
+ "readonly" : true
48
+ },
45
49
  "booking_date" : {
46
50
  "description" : "Date the transaction was booked.",
47
51
  "format" : "date-time",
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.2.2
4
+ version: 0.3.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-14 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler