fidor_schema 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,145 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/schema#",
3
+ "type" : "object",
4
+ "title" : "Short-term Loan",
5
+ "name" : "short_term_loan",
6
+ "description" : "A short-term loan.",
7
+ "required" : ["loan_amount", "duration"],
8
+ "properties" : {
9
+ "id" : {
10
+ "$ref" : "./base_types/base_types.json#definitions/id"
11
+ },
12
+ "account_id" : {
13
+ "$ref" : "./base_types/base_types.json#definitions/account_id"
14
+ },
15
+ "loan_amount" : {
16
+ "description" : "A loaned amount in account currency, in minor units, e.g. 1EUR is represented as 100.",
17
+ "enum" : [
18
+ 10000,
19
+ 19900
20
+ ],
21
+ "type" : "integer"
22
+ },
23
+ "duration" : {
24
+ "description" : "Duration of the loan in days",
25
+ "enum" : [
26
+ 30,
27
+ 60
28
+ ],
29
+ "type" : "integer"
30
+ },
31
+ "redemption_amount" : {
32
+ "description" : "Total amount of customer payments in account currency, in minor units, e.g. 1GBP is represented as 100.",
33
+ "readOnly" : true,
34
+ "type" : "integer"
35
+ },
36
+ "fee_amount" : {
37
+ "description" : "A loan fee in account currency, in minor units, e.g. 1GBP is represented as 100.",
38
+ "readOnly" : true,
39
+ "type" : "integer"
40
+ },
41
+ "total_amount" : {
42
+ "description" : "Loan Amount plus Fee Amount in account currency, in minor units, e.g. 1GBP is represented as 100.",
43
+ "readOnly" : true,
44
+ "type" : "integer"
45
+ },
46
+ "state" : {
47
+ "description" : "State of the loan.",
48
+ "enum" : [
49
+ "created",
50
+ "order_mobile_tan_sent",
51
+ "active",
52
+ "redemption_mobile_tan_sent",
53
+ "paid",
54
+ "settled",
55
+ "unsettled",
56
+ "revoked"
57
+ ],
58
+ "readOnly" : true,
59
+ "type" : "string"
60
+ },
61
+ "redemption_at" : {
62
+ "description" : "Date of the planned loan payback. ISO 8601 Date-Time",
63
+ "format" : "date-time",
64
+ "type" : "string",
65
+ "readOnly" : true
66
+ },
67
+ "redemption_retry" : {
68
+ "description" : "Number of attempted redemptions",
69
+ "type" : "integer",
70
+ "readOnly" : true
71
+ },
72
+ "currency" : {
73
+ "$ref" : "./base_types/base_types.json#definitions/currency",
74
+ "readOnly" : true
75
+ },
76
+ "created_at" : {
77
+ "$ref" : "./base_types/base_types.json#definitions/created_at"
78
+ },
79
+ "updated_at" : {
80
+ "$ref" : "./base_types/base_types.json#definitions/updated_at"
81
+ }
82
+ },
83
+ "links" : [
84
+ {
85
+ "rel" : "instances",
86
+ "href" : "short_term_loans",
87
+ "desscripton" : "List of all previous short_term_loans (history)",
88
+ "properties" : {
89
+ "filter[account_ids]" : {
90
+ "title" : "Find short term loans belonging to the given account ids. Single id or multiple ids comma-separated.",
91
+ "format" : "date",
92
+ "type" : "string"
93
+ },
94
+ "filter[created_at_from]" : {
95
+ "title" : "Creation date filter from >= date",
96
+ "format" : "date",
97
+ "type" : "string"
98
+ },
99
+ "filter[created_at_to]" : {
100
+ "title" : "Creation date filter to <= date",
101
+ "format" : "date",
102
+ "type" : "string"
103
+ },
104
+ "filter[states]" : {
105
+ "title" : "Filter by single or multiple csv delimited states",
106
+ "enum" : [
107
+ "created",
108
+ "order_mobile_tan_sent",
109
+ "active",
110
+ "redemption_mobile_tan_sent",
111
+ "paid",
112
+ "settled",
113
+ "unsettled",
114
+ "revoked"
115
+ ],
116
+ "type" : "string"
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "rel" : "self",
122
+ "href" : "short_term_loans/{id}",
123
+ "method" : "GET",
124
+ "description" : "Shows a certain short_term_loan"
125
+ },
126
+ {
127
+ "rel" : "current",
128
+ "href" : "short_term_loans/current",
129
+ "method" : "GET",
130
+ "description" : "Shows the current active short_term_loan"
131
+ },
132
+ {
133
+ "rel" : "new",
134
+ "href" : "short_term_loans/new",
135
+ "method" : "GET",
136
+ "description" : "Shows the possible short_term_loan for a certain account"
137
+ },
138
+ {
139
+ "rel" : "create",
140
+ "href" : "short_term_loans",
141
+ "method" : "POST",
142
+ "description" : "Activates a short_term_loan for the certain account"
143
+ }
144
+ ]
145
+ }
@@ -12,7 +12,7 @@
12
12
  "readOnly" : true
13
13
  },
14
14
  "transaction_type" : {
15
- "$ref" : "./base_types/base_types.json#definitions/transaction_type",
15
+ "$ref" : "./base_types/base_types.json#definitions/transaction_type",
16
16
  "readOnly" : true
17
17
  },
18
18
  "transaction_type_details" : {
@@ -136,6 +136,26 @@
136
136
  "format" : "date-time",
137
137
  "type" : "string"
138
138
  },
139
+ "filter[created_at_from]" : {
140
+ "title" : "Date filter from >= date. ISO 8601 Date",
141
+ "format" : "date-time",
142
+ "type" : "string"
143
+ },
144
+ "filter[created_at_to]" : {
145
+ "title" : "Date filter to <= date. ISO 8601 Date",
146
+ "format" : "date-time",
147
+ "type" : "string"
148
+ },
149
+ "filter[updated_at_from]" : {
150
+ "title" : "Date filter from >= date. ISO 8601 Date",
151
+ "format" : "date-time",
152
+ "type" : "string"
153
+ },
154
+ "filter[updated_at_to]" : {
155
+ "title" : "Date filter to <= date. ISO 8601 Date",
156
+ "format" : "date-time",
157
+ "type" : "string"
158
+ },
139
159
  "filter[transaction_types]" : {
140
160
  "$ref" : "./base_types/base_types.json#definitions/transaction_type",
141
161
  "title" : "By transaction types"
@@ -29,10 +29,11 @@
29
29
  "readOnly" : true
30
30
  },
31
31
  "cc_sequence" : {
32
- "description" : "The CC sequence is the same for all related transactions",
32
+ "description" : "CreditCard sequence identifier, identical for all related transactions",
33
33
  "type" : "string",
34
34
  "maxLength" : 255,
35
35
  "readOnly" : true
36
36
  }
37
37
  }
38
38
  }
39
+
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.8.0
4
+ version: 0.10.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-06-22 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -166,15 +166,28 @@ files:
166
166
  - schema/v1.0/base_types/lists.json
167
167
  - schema/v1.0/batch_direct_debit.json
168
168
  - schema/v1.0/batch_transfer.json
169
+ - schema/v1.0/blocked_amount.json
170
+ - schema/v1.0/card.json
171
+ - schema/v1.0/card/pin.json
169
172
  - schema/v1.0/creditor_identity.json
170
173
  - schema/v1.0/customer.json
174
+ - schema/v1.0/emergency_loan.json
171
175
  - schema/v1.0/error.json
172
176
  - schema/v1.0/internal_transfer.json
177
+ - schema/v1.0/legal.json
173
178
  - schema/v1.0/overdraft.json
179
+ - schema/v1.0/preauth.json
180
+ - schema/v1.0/preauth_type_details/capital_bond_details.json
181
+ - schema/v1.0/preauth_type_details/credit_card_details.json
182
+ - schema/v1.0/preauth_type_details/currency_order_details.json
183
+ - schema/v1.0/preauth_type_details/gmt_details.json
184
+ - schema/v1.0/preauth_type_details/internal_transfer_details.json
185
+ - schema/v1.0/preauth_type_details/ripple_details.json
174
186
  - schema/v1.0/rate_limit.json
175
187
  - schema/v1.0/sepa_credit_transfer.json
176
188
  - schema/v1.0/sepa_direct_debit.json
177
189
  - schema/v1.0/sepa_mandate.json
190
+ - schema/v1.0/short_term_loan.json
178
191
  - schema/v1.0/transaction.json
179
192
  - schema/v1.0/transaction_type_details/bonus_details.json
180
193
  - schema/v1.0/transaction_type_details/credit_card_details.json