fidor_schema 0.6.0 → 0.7.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: e1217869917c2c480782fe5be4b130eeb390b964
4
- data.tar.gz: 74cf5f1880959b32af62a69037baa2e4f75801d1
3
+ metadata.gz: a7bb17909b66fdb0dd6d0c78c63db843a7fea592
4
+ data.tar.gz: c71536d24b0d0db3025fae8fcdcba77261ed0303
5
5
  SHA512:
6
- metadata.gz: 462793875cc0c364bf31614e5064da0ef3ac7f475d96b580ba795196e82a673af19c568c1a827660f22c0567c0fcf989585263643d102f2fbeefbd8ccc45d448
7
- data.tar.gz: 965d875c3d985d42dd6bcf746bb84aa523c3a44daccbc91b1c65a48d0535e6373a02cf8b9661996476ea64134007f6e7b63552bd3243b0abb4e9932a04b5c206
6
+ metadata.gz: 35ac0325b0491a3014828c397952a2e48b6db26d38364af801d6728f541a2851e494af1edf3df1660203b4607c0332a4135221a4a60efea4e5f946b1199992aa
7
+ data.tar.gz: a4d0a4ebd4ba7a861403261a03df2a7ed20dc358434acbc9892b7363110bc28d21ec2842fc0125687b53cee6142fa2aff1651783811887697d44486e37c541a9
data/CHANGELOG.md CHANGED
@@ -2,12 +2,18 @@
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
+ ##2015-04
6
+ * Transaction update transaction types
7
+
5
8
  ##2015-03
6
9
 
7
10
  * remove name attribute in favour of title
8
11
  * remove nested $refs pointing to properties in favour of direct link to the related schema
9
12
  * validate the schema files against three different ruby validators
10
13
  * add $schema version to each file
14
+ * SepaCreditTransfer requires remote_iban
15
+ * add CreditorIdentity object
16
+ * RateLimit endpoint changed to /rate_limits returning an array, to align with other resources
11
17
 
12
18
  ##2015-02
13
19
 
@@ -1,5 +1,5 @@
1
1
  module Fidor
2
2
  class Schema
3
- VERSION='0.6.0'
3
+ VERSION='0.7.0'
4
4
  end
5
5
  end
@@ -69,11 +69,6 @@
69
69
  "items" : {
70
70
  "type" : "object",
71
71
  "$ref" : "./customer.json#"
72
- // "items" : {
73
- // "type" : "object",
74
- // "properties" : {
75
- // "$ref" : "./customer.json#properties"
76
- // }
77
72
  },
78
73
  "readOnly" : true
79
74
  },
@@ -96,23 +96,19 @@
96
96
  "transaction_type" : {
97
97
  "description" : "Type of the transaction",
98
98
  "enum" : [
99
- "payin_giropay",
100
- "payin_paymentnetwork",
101
- "payin_credit_note",
102
- "payin_debit_note_eze",
103
- "payin_debit_note_aba",
104
- "payin_credit_note_sepa",
105
- "payin_debit_note_sepa_core",
106
- "payin_debit_note_sepa_b2b",
107
- "payin_fidorpay",
108
- "payout_ogone",
109
- "payout_paymentnetwork",
110
- "payout_credit_note",
111
- "payout_debit_note_eze",
112
- "payout_credit_note_sepa",
113
- "payout_fidorpay",
114
- "payout_creditcard",
115
- "payout_fee"
99
+ "payout",
100
+ "creditcard_payout",
101
+ "creditcard_authorization",
102
+ "creditcard_cancellation",
103
+ "fee",
104
+ "sepa_payin",
105
+ "sepa_core_direct_debit",
106
+ "sepa_b2b_direct_debit",
107
+ "fidor_payin",
108
+ "fidor_payout",
109
+ "sepa_authorization",
110
+ "emoney_payin",
111
+ "gmt_payout"
116
112
  ],
117
113
  "type" : "string"
118
114
  }
@@ -0,0 +1,49 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/schema#",
3
+ "type" : "object",
4
+ "title" : "creditor_identity",
5
+ "description" : "Information about creditor identity. You have to provide the credidor identity you want to create a sepa mandate with",
6
+ "properties" : {
7
+ "id" : {
8
+ "$ref" : "./base_types/base_types.json#definitions/id"
9
+ },
10
+ "account_id" : {
11
+ "description" : "An account creditor identities belong to",
12
+ "$ref" : "./base_types/base_types.json#definitions/account_id",
13
+ "readonly" : true
14
+ },
15
+ "created_at" : {
16
+ "$ref" : "./base_types/base_types.json#definitions/created_at"
17
+ },
18
+ "updated_at" : {
19
+ "$ref" : "./base_types/base_types.json#definitions/updated_at"
20
+ }
21
+ },
22
+ "links" : [
23
+ {
24
+ "rel" : "self",
25
+ "href" : "creditor_identities/{id}"
26
+ },
27
+ {
28
+ "rel" : "instances",
29
+ "href" : "transactions",
30
+ "properties" : {
31
+ "filter[account_ids]" : {
32
+ "title" : "Find creditor identities belonging to the given account ids. Single id or multiple ids comma-separated.",
33
+ "format" : "date",
34
+ "type" : "string"
35
+ },
36
+ "page" : {
37
+ "title" : "Page",
38
+ "description" : "In paginated results set the page to look for",
39
+ "type" : "integer"
40
+ },
41
+ "per_page" : {
42
+ "title" : "Per page",
43
+ "description" : "Results per page. Default is 10, max is 100",
44
+ "type" : "integer"
45
+ }
46
+ }
47
+ }
48
+ ]
49
+ }
@@ -2,7 +2,7 @@
2
2
  "$schema" : "http://json-schema.org/draft-04/schema#",
3
3
  "type" : "object",
4
4
  "title" : "rate_limit",
5
- "description" : "Overall, remaining rate limits and the time frame until the reset.",
5
+ "description" : "Overall, remaining rate limits and the time frame until the reset. Atm. there is only one rate limit returned in the response array of the index request",
6
6
  "properties" : {
7
7
  "limit" : {
8
8
  "description" : "The rate limit ceiling for the given request in a [time window]",
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "links" : [
24
24
  {
25
- "rel" : "self",
26
- "href" : "rate_limit"
25
+ "rel" : "instances",
26
+ "href" : "rate_limits"
27
27
  }
28
28
  ]
29
29
  }
@@ -3,7 +3,7 @@
3
3
  "type" : "object",
4
4
  "title" : "sepa_credit_transfer",
5
5
  "description" : "A transfer initiates a transaction e.g get / send money. If the transfer fails no transaction is created!",
6
- "required" : ["account_id", "amount", "external_uid"],
6
+ "required" : ["account_id", "amount", "external_uid", "remote_iban"],
7
7
  "properties" : {
8
8
  "id" : {
9
9
  "$ref" : "./base_types/base_types.json#definitions/id"
@@ -5,7 +5,7 @@
5
5
  "description" : "A mandate object authorizing debits from an account.",
6
6
  "required" : ["external_uid", "customer_id", "mandate_reference", "remote_title", "remote_name", "remote_email",
7
7
  "remote_address_line1", "remote_address_line2", "remote_country", "remote_iban", "remote_bic",
8
- "signature_date" ],
8
+ "signature_date", "creditor_identity_id"],
9
9
  "properties" : {
10
10
  "id" : {
11
11
  "$ref" : "./base_types/base_types.json#definitions/id"
@@ -17,8 +17,9 @@
17
17
  "description" : "Customer for which this mandate is valid.",
18
18
  "type" : "string"
19
19
  },
20
- "user_id" : {
21
- "$ref" : "./base_types/base_types.json#definitions/user_id"
20
+ "creditor_identity_id" : {
21
+ "description" : "The identifier of the creditor, who created the sepa mandate",
22
+ "type" : "string"
22
23
  },
23
24
  "mandate_reference" : {
24
25
  "description" : "Unique reference of the mandate.",
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.6.0
4
+ version: 0.7.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: 2015-03-12 00:00:00.000000000 Z
11
+ date: 2015-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -163,6 +163,7 @@ files:
163
163
  - schema/v1.0/base_types/base_types.json
164
164
  - schema/v1.0/batch_direct_debit.json
165
165
  - schema/v1.0/batch_transfer.json
166
+ - schema/v1.0/creditor_identity.json
166
167
  - schema/v1.0/customer.json
167
168
  - schema/v1.0/error.json
168
169
  - schema/v1.0/internal_transfer.json