budgea_client 1.4.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +5 -5
- data/README.md +67 -725
- data/budgea_client.gemspec +15 -3
- data/budgea_openapi.json +2011 -524
- data/docs/Account.md +3 -1
- data/docs/AccountLog.md +2 -2
- data/docs/AdministrationApi.md +354 -34
- data/docs/AuthenticationApi.md +264 -18
- data/docs/BankCategory.md +1 -1
- data/docs/BanksApi.md +939 -550
- data/docs/Certificate.md +12 -0
- data/docs/Client.md +5 -2
- data/docs/Connection.md +1 -1
- data/docs/ConnectionLog.md +3 -2
- data/docs/ConnectionsApi.md +162 -103
- data/docs/Connector.md +21 -0
- data/docs/ConnectorCategory.md +9 -0
- data/docs/ConnectorLogo.md +1 -1
- data/docs/Currency.md +4 -0
- data/docs/DocumentsApi.md +350 -350
- data/docs/Field.md +3 -2
- data/docs/InlineResponse20010.md +1 -1
- data/docs/InlineResponse20011.md +1 -1
- data/docs/InlineResponse20012.md +1 -1
- data/docs/InlineResponse20013.md +1 -1
- data/docs/InlineResponse20014.md +1 -1
- data/docs/InlineResponse20015.md +1 -1
- data/docs/InlineResponse20016.md +1 -1
- data/docs/InlineResponse20017.md +1 -1
- data/docs/InlineResponse20018.md +1 -1
- data/docs/InlineResponse20019.md +1 -1
- data/docs/InlineResponse20020.md +1 -1
- data/docs/InlineResponse20021.md +1 -1
- data/docs/InlineResponse20022.md +1 -1
- data/docs/InlineResponse20023.md +1 -1
- data/docs/InlineResponse20024.md +1 -1
- data/docs/InlineResponse20025.md +1 -1
- data/docs/InlineResponse20026.md +1 -1
- data/docs/InlineResponse20027.md +1 -1
- data/docs/InlineResponse20028.md +1 -1
- data/docs/InlineResponse20029.md +1 -1
- data/docs/InlineResponse2003.md +2 -3
- data/docs/InlineResponse20030.md +1 -1
- data/docs/InlineResponse20031.md +1 -1
- data/docs/InlineResponse20032.md +1 -1
- data/docs/InlineResponse20033.md +1 -1
- data/docs/InlineResponse20034.md +8 -0
- data/docs/InlineResponse20035.md +8 -0
- data/docs/InlineResponse20036.md +8 -0
- data/docs/InlineResponse2004.md +0 -2
- data/docs/InlineResponse2005.md +5 -2
- data/docs/InlineResponse2006.md +2 -3
- data/docs/InlineResponse2007.md +3 -1
- data/docs/InlineResponse2008.md +1 -1
- data/docs/InlineResponse2009.md +1 -1
- data/docs/OCRApi.md +5 -5
- data/docs/OIDCApi.md +5 -5
- data/docs/PFMApi.md +122 -122
- data/docs/Pocket.md +1 -1
- data/docs/Profile.md +1 -1
- data/docs/Project.md +1 -1
- data/docs/ProvidersApi.md +602 -604
- data/docs/Recipient.md +3 -0
- data/docs/RecipientLog.md +14 -0
- data/docs/RecipientsApi.md +28 -20
- data/docs/Subscription.md +2 -1
- data/docs/TermsApi.md +13 -15
- data/docs/Transaction.md +8 -3
- data/docs/Transfer.md +1 -0
- data/docs/TransferLog.md +14 -0
- data/docs/TransfersApi.md +165 -141
- data/docs/UserAlert.md +2 -2
- data/docs/UsersManagementApi.md +24 -24
- data/docs/WealthApi.md +54 -54
- data/docs/WebhookLog.md +15 -0
- data/lib/budgea_client.rb +27 -3
- data/lib/budgea_client/api/administration_api.rb +425 -106
- data/lib/budgea_client/api/authentication_api.rb +287 -46
- data/lib/budgea_client/api/banks_api.rb +1271 -974
- data/lib/budgea_client/api/connections_api.rb +207 -156
- data/lib/budgea_client/api/documents_api.rb +627 -693
- data/lib/budgea_client/api/ocr_api.rb +24 -16
- data/lib/budgea_client/api/oidc_api.rb +23 -16
- data/lib/budgea_client/api/pfm_api.rb +219 -248
- data/lib/budgea_client/api/providers_api.rb +998 -1099
- data/lib/budgea_client/api/recipients_api.rb +52 -34
- data/lib/budgea_client/api/terms_api.rb +34 -31
- data/lib/budgea_client/api/transfers_api.rb +245 -239
- data/lib/budgea_client/api/users_management_api.rb +56 -58
- data/lib/budgea_client/api/wealth_api.rb +81 -85
- data/lib/budgea_client/api_client.rb +20 -11
- data/lib/budgea_client/api_error.rb +11 -1
- data/lib/budgea_client/configuration.rb +12 -2
- data/lib/budgea_client/models/access.rb +18 -13
- data/lib/budgea_client/models/account.rb +44 -23
- data/lib/budgea_client/models/account_log.rb +33 -28
- data/lib/budgea_client/models/account_type.rb +22 -17
- data/lib/budgea_client/models/alert.rb +21 -16
- data/lib/budgea_client/models/bank.rb +21 -16
- data/lib/budgea_client/models/bank_category.rb +19 -14
- data/lib/budgea_client/models/category.rb +22 -17
- data/lib/budgea_client/models/certificate.rb +244 -0
- data/lib/budgea_client/models/client.rb +53 -20
- data/lib/budgea_client/models/connection.rb +29 -24
- data/lib/budgea_client/models/connection_log.rb +39 -24
- data/lib/budgea_client/models/connector.rb +345 -0
- data/lib/budgea_client/models/connector_category.rb +206 -0
- data/lib/budgea_client/models/connector_logo.rb +29 -24
- data/lib/budgea_client/models/currency.rb +63 -16
- data/lib/budgea_client/models/device.rb +23 -18
- data/lib/budgea_client/models/document.rb +21 -16
- data/lib/budgea_client/models/document_type.rb +19 -14
- data/lib/budgea_client/models/field.rb +44 -27
- data/lib/budgea_client/models/field_value.rb +18 -13
- data/lib/budgea_client/models/file.rb +20 -15
- data/lib/budgea_client/models/group.rb +17 -12
- data/lib/budgea_client/models/hash_table.rb +20 -15
- data/lib/budgea_client/models/inline_response_200.rb +17 -12
- data/lib/budgea_client/models/inline_response_200_1.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_10.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_11.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_12.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_13.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_14.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_15.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_16.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_17.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_18.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_19.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_2.rb +18 -13
- data/lib/budgea_client/models/inline_response_200_20.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_21.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_22.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_23.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_24.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_25.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_26.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_27.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_28.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_29.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_3.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_30.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_31.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_32.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_33.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_34.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_35.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_36.rb +190 -0
- data/lib/budgea_client/models/inline_response_200_4.rb +20 -40
- data/lib/budgea_client/models/inline_response_200_5.rb +75 -30
- data/lib/budgea_client/models/inline_response_200_6.rb +37 -47
- data/lib/budgea_client/models/inline_response_200_7.rb +55 -21
- data/lib/budgea_client/models/inline_response_200_8.rb +27 -22
- data/lib/budgea_client/models/inline_response_200_9.rb +27 -22
- data/lib/budgea_client/models/investment.rb +20 -15
- data/lib/budgea_client/models/investment_value.rb +20 -15
- data/lib/budgea_client/models/invite.rb +18 -13
- data/lib/budgea_client/models/locked_user.rb +18 -13
- data/lib/budgea_client/models/oidc_whitelist.rb +18 -13
- data/lib/budgea_client/models/pocket.rb +22 -17
- data/lib/budgea_client/models/profile.rb +26 -20
- data/lib/budgea_client/models/project.rb +26 -21
- data/lib/budgea_client/models/project_type.rb +18 -13
- data/lib/budgea_client/models/recipient.rb +52 -17
- data/lib/budgea_client/models/recipient_log.rb +254 -0
- data/lib/budgea_client/models/security.rb +18 -13
- data/lib/budgea_client/models/subscription.rb +31 -21
- data/lib/budgea_client/models/terms_of_service.rb +19 -14
- data/lib/budgea_client/models/transaction.rb +83 -33
- data/lib/budgea_client/models/transaction_information.rb +19 -14
- data/lib/budgea_client/models/transactions_cluster.rb +21 -16
- data/lib/budgea_client/models/transfer.rb +32 -16
- data/lib/budgea_client/models/transfer_log.rb +254 -0
- data/lib/budgea_client/models/user.rb +22 -16
- data/lib/budgea_client/models/user_alert.rb +22 -16
- data/lib/budgea_client/models/webhook.rb +19 -14
- data/lib/budgea_client/models/webhook_log.rb +264 -0
- data/lib/budgea_client/version.rb +12 -2
- data/original_budgea_openapi.json +23188 -0
- data/spec/models/certificate_spec.rb +65 -0
- data/spec/models/connector_category_spec.rb +47 -0
- data/spec/models/connector_spec.rb +119 -0
- data/spec/models/inline_response_200_34_spec.rb +41 -0
- data/spec/models/inline_response_200_35_spec.rb +41 -0
- data/spec/models/inline_response_200_36_spec.rb +41 -0
- data/spec/models/recipient_log_spec.rb +77 -0
- data/spec/models/transfer_log_spec.rb +77 -0
- data/spec/models/webhook_log_spec.rb +83 -0
- metadata +52 -18
- data/pkg/budgea_client-1.3.9.gem +0 -0
- data/pkg/budgea_client-1.4.2.gem +0 -0
- data/pkg/budgea_client-1.4.3.gem +0 -0
@@ -1,9 +1,18 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
|
-
|
7
16
|
class Security
|
8
17
|
# ID of the security
|
9
18
|
attr_accessor :id
|
@@ -20,7 +29,6 @@ module BudgeaClient
|
|
20
29
|
# Last update of the security
|
21
30
|
attr_accessor :last_update
|
22
31
|
|
23
|
-
|
24
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
33
|
def self.attribute_map
|
26
34
|
{
|
@@ -49,7 +57,7 @@ module BudgeaClient
|
|
49
57
|
return unless attributes.is_a?(Hash)
|
50
58
|
|
51
59
|
# convert string to symbol for hash key
|
52
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
53
61
|
|
54
62
|
if attributes.has_key?(:'id')
|
55
63
|
self.id = attributes[:'id']
|
@@ -70,7 +78,6 @@ module BudgeaClient
|
|
70
78
|
if attributes.has_key?(:'last_update')
|
71
79
|
self.last_update = attributes[:'last_update']
|
72
80
|
end
|
73
|
-
|
74
81
|
end
|
75
82
|
|
76
83
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -78,14 +85,14 @@ module BudgeaClient
|
|
78
85
|
def list_invalid_properties
|
79
86
|
invalid_properties = Array.new
|
80
87
|
if @id.nil?
|
81
|
-
invalid_properties.push(
|
88
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
82
89
|
end
|
83
90
|
|
84
91
|
if @name.nil?
|
85
|
-
invalid_properties.push(
|
92
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
86
93
|
end
|
87
94
|
|
88
|
-
|
95
|
+
invalid_properties
|
89
96
|
end
|
90
97
|
|
91
98
|
# Check to see if the all the properties in the model are valid
|
@@ -93,7 +100,7 @@ module BudgeaClient
|
|
93
100
|
def valid?
|
94
101
|
return false if @id.nil?
|
95
102
|
return false if @name.nil?
|
96
|
-
|
103
|
+
true
|
97
104
|
end
|
98
105
|
|
99
106
|
# Checks equality by comparing each attribute.
|
@@ -130,7 +137,7 @@ module BudgeaClient
|
|
130
137
|
# check to ensure the input is an array given that the the attribute
|
131
138
|
# is documented as an array but the input is not
|
132
139
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
134
141
|
end
|
135
142
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
143
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -212,7 +219,7 @@ module BudgeaClient
|
|
212
219
|
# @return [Hash] Returns the value in the form of hash
|
213
220
|
def _to_hash(value)
|
214
221
|
if value.is_a?(Array)
|
215
|
-
value.compact.map{ |v| _to_hash(v) }
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
216
223
|
elsif value.is_a?(Hash)
|
217
224
|
{}.tap do |hash|
|
218
225
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -223,7 +230,5 @@ module BudgeaClient
|
|
223
230
|
value
|
224
231
|
end
|
225
232
|
end
|
226
|
-
|
227
233
|
end
|
228
|
-
|
229
234
|
end
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
|
-
|
7
16
|
class Subscription
|
8
17
|
# ID of subscription
|
9
18
|
attr_accessor :id
|
@@ -38,6 +47,8 @@ module BudgeaClient
|
|
38
47
|
# This subscription has been deleted by user and will not be synchronized anymore
|
39
48
|
attr_accessor :disabled
|
40
49
|
|
50
|
+
# If the last update has failed, the error code
|
51
|
+
attr_accessor :error
|
41
52
|
|
42
53
|
# Attribute mapping from ruby-style variable name to JSON key.
|
43
54
|
def self.attribute_map
|
@@ -52,7 +63,8 @@ module BudgeaClient
|
|
52
63
|
:'renewdate' => :'renewdate',
|
53
64
|
:'last_update' => :'last_update',
|
54
65
|
:'deleted' => :'deleted',
|
55
|
-
:'disabled' => :'disabled'
|
66
|
+
:'disabled' => :'disabled',
|
67
|
+
:'error' => :'error'
|
56
68
|
}
|
57
69
|
end
|
58
70
|
|
@@ -69,7 +81,8 @@ module BudgeaClient
|
|
69
81
|
:'renewdate' => :'Date',
|
70
82
|
:'last_update' => :'DateTime',
|
71
83
|
:'deleted' => :'DateTime',
|
72
|
-
:'disabled' => :'DateTime'
|
84
|
+
:'disabled' => :'DateTime',
|
85
|
+
:'error' => :'String'
|
73
86
|
}
|
74
87
|
end
|
75
88
|
|
@@ -79,7 +92,7 @@ module BudgeaClient
|
|
79
92
|
return unless attributes.is_a?(Hash)
|
80
93
|
|
81
94
|
# convert string to symbol for hash key
|
82
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
95
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
83
96
|
|
84
97
|
if attributes.has_key?(:'id')
|
85
98
|
self.id = attributes[:'id']
|
@@ -125,6 +138,9 @@ module BudgeaClient
|
|
125
138
|
self.disabled = attributes[:'disabled']
|
126
139
|
end
|
127
140
|
|
141
|
+
if attributes.has_key?(:'error')
|
142
|
+
self.error = attributes[:'error']
|
143
|
+
end
|
128
144
|
end
|
129
145
|
|
130
146
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -132,32 +148,27 @@ module BudgeaClient
|
|
132
148
|
def list_invalid_properties
|
133
149
|
invalid_properties = Array.new
|
134
150
|
if @id.nil?
|
135
|
-
invalid_properties.push(
|
136
|
-
end
|
137
|
-
|
138
|
-
if @id_user.nil?
|
139
|
-
invalid_properties.push("invalid value for 'id_user', id_user cannot be nil.")
|
151
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
140
152
|
end
|
141
153
|
|
142
154
|
if @number.nil?
|
143
|
-
invalid_properties.push(
|
155
|
+
invalid_properties.push('invalid value for "number", number cannot be nil.')
|
144
156
|
end
|
145
157
|
|
146
158
|
if @label.nil?
|
147
|
-
invalid_properties.push(
|
159
|
+
invalid_properties.push('invalid value for "label", label cannot be nil.')
|
148
160
|
end
|
149
161
|
|
150
|
-
|
162
|
+
invalid_properties
|
151
163
|
end
|
152
164
|
|
153
165
|
# Check to see if the all the properties in the model are valid
|
154
166
|
# @return true if the model is valid
|
155
167
|
def valid?
|
156
168
|
return false if @id.nil?
|
157
|
-
return false if @id_user.nil?
|
158
169
|
return false if @number.nil?
|
159
170
|
return false if @label.nil?
|
160
|
-
|
171
|
+
true
|
161
172
|
end
|
162
173
|
|
163
174
|
# Checks equality by comparing each attribute.
|
@@ -175,7 +186,8 @@ module BudgeaClient
|
|
175
186
|
renewdate == o.renewdate &&
|
176
187
|
last_update == o.last_update &&
|
177
188
|
deleted == o.deleted &&
|
178
|
-
disabled == o.disabled
|
189
|
+
disabled == o.disabled &&
|
190
|
+
error == o.error
|
179
191
|
end
|
180
192
|
|
181
193
|
# @see the `==` method
|
@@ -187,7 +199,7 @@ module BudgeaClient
|
|
187
199
|
# Calculates hash code according to all attributes.
|
188
200
|
# @return [Fixnum] Hash code
|
189
201
|
def hash
|
190
|
-
[id, id_connection, id_user, number, label, subscriber, validity, renewdate, last_update, deleted, disabled].hash
|
202
|
+
[id, id_connection, id_user, number, label, subscriber, validity, renewdate, last_update, deleted, disabled, error].hash
|
191
203
|
end
|
192
204
|
|
193
205
|
# Builds the object from hash
|
@@ -200,7 +212,7 @@ module BudgeaClient
|
|
200
212
|
# check to ensure the input is an array given that the the attribute
|
201
213
|
# is documented as an array but the input is not
|
202
214
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
203
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
215
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
204
216
|
end
|
205
217
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
206
218
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -282,7 +294,7 @@ module BudgeaClient
|
|
282
294
|
# @return [Hash] Returns the value in the form of hash
|
283
295
|
def _to_hash(value)
|
284
296
|
if value.is_a?(Array)
|
285
|
-
value.compact.map{ |v| _to_hash(v) }
|
297
|
+
value.compact.map { |v| _to_hash(v) }
|
286
298
|
elsif value.is_a?(Hash)
|
287
299
|
{}.tap do |hash|
|
288
300
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -293,7 +305,5 @@ module BudgeaClient
|
|
293
305
|
value
|
294
306
|
end
|
295
307
|
end
|
296
|
-
|
297
308
|
end
|
298
|
-
|
299
309
|
end
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
|
-
|
7
16
|
class TermsOfService
|
8
17
|
attr_accessor :id
|
9
18
|
|
@@ -15,7 +24,6 @@ module BudgeaClient
|
|
15
24
|
|
16
25
|
attr_accessor :deleted
|
17
26
|
|
18
|
-
|
19
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
20
28
|
def self.attribute_map
|
21
29
|
{
|
@@ -44,7 +52,7 @@ module BudgeaClient
|
|
44
52
|
return unless attributes.is_a?(Hash)
|
45
53
|
|
46
54
|
# convert string to symbol for hash key
|
47
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
56
|
|
49
57
|
if attributes.has_key?(:'id')
|
50
58
|
self.id = attributes[:'id']
|
@@ -65,7 +73,6 @@ module BudgeaClient
|
|
65
73
|
if attributes.has_key?(:'deleted')
|
66
74
|
self.deleted = attributes[:'deleted']
|
67
75
|
end
|
68
|
-
|
69
76
|
end
|
70
77
|
|
71
78
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -73,18 +80,18 @@ module BudgeaClient
|
|
73
80
|
def list_invalid_properties
|
74
81
|
invalid_properties = Array.new
|
75
82
|
if @id.nil?
|
76
|
-
invalid_properties.push(
|
83
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
77
84
|
end
|
78
85
|
|
79
86
|
if @version.nil?
|
80
|
-
invalid_properties.push(
|
87
|
+
invalid_properties.push('invalid value for "version", version cannot be nil.')
|
81
88
|
end
|
82
89
|
|
83
90
|
if @created.nil?
|
84
|
-
invalid_properties.push(
|
91
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
85
92
|
end
|
86
93
|
|
87
|
-
|
94
|
+
invalid_properties
|
88
95
|
end
|
89
96
|
|
90
97
|
# Check to see if the all the properties in the model are valid
|
@@ -93,7 +100,7 @@ module BudgeaClient
|
|
93
100
|
return false if @id.nil?
|
94
101
|
return false if @version.nil?
|
95
102
|
return false if @created.nil?
|
96
|
-
|
103
|
+
true
|
97
104
|
end
|
98
105
|
|
99
106
|
# Checks equality by comparing each attribute.
|
@@ -130,7 +137,7 @@ module BudgeaClient
|
|
130
137
|
# check to ensure the input is an array given that the the attribute
|
131
138
|
# is documented as an array but the input is not
|
132
139
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
140
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
134
141
|
end
|
135
142
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
143
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -212,7 +219,7 @@ module BudgeaClient
|
|
212
219
|
# @return [Hash] Returns the value in the form of hash
|
213
220
|
def _to_hash(value)
|
214
221
|
if value.is_a?(Array)
|
215
|
-
value.compact.map{ |v| _to_hash(v) }
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
216
223
|
elsif value.is_a?(Hash)
|
217
224
|
{}.tap do |hash|
|
218
225
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -223,7 +230,5 @@ module BudgeaClient
|
|
223
230
|
value
|
224
231
|
end
|
225
232
|
end
|
226
|
-
|
227
233
|
end
|
228
|
-
|
229
234
|
end
|
@@ -1,9 +1,18 @@
|
|
1
|
-
|
1
|
+
=begin
|
2
|
+
#Budgea API Documentation
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.1
|
10
|
+
|
11
|
+
=end
|
2
12
|
|
3
13
|
require 'date'
|
4
14
|
|
5
15
|
module BudgeaClient
|
6
|
-
|
7
16
|
class Transaction
|
8
17
|
# ID of the transaction
|
9
18
|
attr_accessor :id
|
@@ -23,6 +32,9 @@ module BudgeaClient
|
|
23
32
|
# Value of the transaction
|
24
33
|
attr_accessor :value
|
25
34
|
|
35
|
+
# Gross value of the transaction
|
36
|
+
attr_accessor :gross_value
|
37
|
+
|
26
38
|
# Type of transaction
|
27
39
|
attr_accessor :nature
|
28
40
|
|
@@ -50,6 +62,9 @@ module BudgeaClient
|
|
50
62
|
# Realization of the transaction
|
51
63
|
attr_accessor :rdate
|
52
64
|
|
65
|
+
# Value date of the transaction
|
66
|
+
attr_accessor :vdate
|
67
|
+
|
53
68
|
# If true, this transaction hasn't been yet debited
|
54
69
|
attr_accessor :coming
|
55
70
|
|
@@ -80,9 +95,17 @@ module BudgeaClient
|
|
80
95
|
# Commission taken on the transaction
|
81
96
|
attr_accessor :commission
|
82
97
|
|
98
|
+
# Commission currency
|
99
|
+
attr_accessor :commission_currency
|
100
|
+
|
83
101
|
# Original country
|
84
102
|
attr_accessor :country
|
85
103
|
|
104
|
+
# Counterparty
|
105
|
+
attr_accessor :counterparty
|
106
|
+
|
107
|
+
# Card number associated to the transaction
|
108
|
+
attr_accessor :card
|
86
109
|
|
87
110
|
# Attribute mapping from ruby-style variable name to JSON key.
|
88
111
|
def self.attribute_map
|
@@ -93,6 +116,7 @@ module BudgeaClient
|
|
93
116
|
:'application_date' => :'application_date',
|
94
117
|
:'date' => :'date',
|
95
118
|
:'value' => :'value',
|
119
|
+
:'gross_value' => :'gross_value',
|
96
120
|
:'nature' => :'nature',
|
97
121
|
:'original_wording' => :'original_wording',
|
98
122
|
:'simplified_wording' => :'simplified_wording',
|
@@ -102,6 +126,7 @@ module BudgeaClient
|
|
102
126
|
:'state' => :'state',
|
103
127
|
:'date_scraped' => :'date_scraped',
|
104
128
|
:'rdate' => :'rdate',
|
129
|
+
:'vdate' => :'vdate',
|
105
130
|
:'coming' => :'coming',
|
106
131
|
:'active' => :'active',
|
107
132
|
:'id_cluster' => :'id_cluster',
|
@@ -112,7 +137,10 @@ module BudgeaClient
|
|
112
137
|
:'original_value' => :'original_value',
|
113
138
|
:'original_currency' => :'original_currency',
|
114
139
|
:'commission' => :'commission',
|
115
|
-
:'
|
140
|
+
:'commission_currency' => :'commission_currency',
|
141
|
+
:'country' => :'country',
|
142
|
+
:'counterparty' => :'counterparty',
|
143
|
+
:'card' => :'card'
|
116
144
|
}
|
117
145
|
end
|
118
146
|
|
@@ -125,6 +153,7 @@ module BudgeaClient
|
|
125
153
|
:'application_date' => :'Date',
|
126
154
|
:'date' => :'Date',
|
127
155
|
:'value' => :'Float',
|
156
|
+
:'gross_value' => :'Float',
|
128
157
|
:'nature' => :'String',
|
129
158
|
:'original_wording' => :'String',
|
130
159
|
:'simplified_wording' => :'String',
|
@@ -134,6 +163,7 @@ module BudgeaClient
|
|
134
163
|
:'state' => :'String',
|
135
164
|
:'date_scraped' => :'DateTime',
|
136
165
|
:'rdate' => :'Date',
|
166
|
+
:'vdate' => :'Date',
|
137
167
|
:'coming' => :'BOOLEAN',
|
138
168
|
:'active' => :'BOOLEAN',
|
139
169
|
:'id_cluster' => :'Integer',
|
@@ -144,7 +174,10 @@ module BudgeaClient
|
|
144
174
|
:'original_value' => :'Float',
|
145
175
|
:'original_currency' => :'Object',
|
146
176
|
:'commission' => :'Float',
|
147
|
-
:'
|
177
|
+
:'commission_currency' => :'Object',
|
178
|
+
:'country' => :'String',
|
179
|
+
:'counterparty' => :'String',
|
180
|
+
:'card' => :'String'
|
148
181
|
}
|
149
182
|
end
|
150
183
|
|
@@ -154,7 +187,7 @@ module BudgeaClient
|
|
154
187
|
return unless attributes.is_a?(Hash)
|
155
188
|
|
156
189
|
# convert string to symbol for hash key
|
157
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
190
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
158
191
|
|
159
192
|
if attributes.has_key?(:'id')
|
160
193
|
self.id = attributes[:'id']
|
@@ -180,10 +213,14 @@ module BudgeaClient
|
|
180
213
|
self.value = attributes[:'value']
|
181
214
|
end
|
182
215
|
|
216
|
+
if attributes.has_key?(:'gross_value')
|
217
|
+
self.gross_value = attributes[:'gross_value']
|
218
|
+
end
|
219
|
+
|
183
220
|
if attributes.has_key?(:'nature')
|
184
221
|
self.nature = attributes[:'nature']
|
185
222
|
else
|
186
|
-
self.nature =
|
223
|
+
self.nature = 'inconnu'
|
187
224
|
end
|
188
225
|
|
189
226
|
if attributes.has_key?(:'original_wording')
|
@@ -209,7 +246,7 @@ module BudgeaClient
|
|
209
246
|
if attributes.has_key?(:'state')
|
210
247
|
self.state = attributes[:'state']
|
211
248
|
else
|
212
|
-
self.state =
|
249
|
+
self.state = 'new'
|
213
250
|
end
|
214
251
|
|
215
252
|
if attributes.has_key?(:'date_scraped')
|
@@ -220,6 +257,10 @@ module BudgeaClient
|
|
220
257
|
self.rdate = attributes[:'rdate']
|
221
258
|
end
|
222
259
|
|
260
|
+
if attributes.has_key?(:'vdate')
|
261
|
+
self.vdate = attributes[:'vdate']
|
262
|
+
end
|
263
|
+
|
223
264
|
if attributes.has_key?(:'coming')
|
224
265
|
self.coming = attributes[:'coming']
|
225
266
|
end
|
@@ -264,10 +305,21 @@ module BudgeaClient
|
|
264
305
|
self.commission = attributes[:'commission']
|
265
306
|
end
|
266
307
|
|
308
|
+
if attributes.has_key?(:'commission_currency')
|
309
|
+
self.commission_currency = attributes[:'commission_currency']
|
310
|
+
end
|
311
|
+
|
267
312
|
if attributes.has_key?(:'country')
|
268
313
|
self.country = attributes[:'country']
|
269
314
|
end
|
270
315
|
|
316
|
+
if attributes.has_key?(:'counterparty')
|
317
|
+
self.counterparty = attributes[:'counterparty']
|
318
|
+
end
|
319
|
+
|
320
|
+
if attributes.has_key?(:'card')
|
321
|
+
self.card = attributes[:'card']
|
322
|
+
end
|
271
323
|
end
|
272
324
|
|
273
325
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -275,62 +327,58 @@ module BudgeaClient
|
|
275
327
|
def list_invalid_properties
|
276
328
|
invalid_properties = Array.new
|
277
329
|
if @id.nil?
|
278
|
-
invalid_properties.push(
|
330
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
279
331
|
end
|
280
332
|
|
281
333
|
if @id_account.nil?
|
282
|
-
invalid_properties.push(
|
334
|
+
invalid_properties.push('invalid value for "id_account", id_account cannot be nil.')
|
283
335
|
end
|
284
336
|
|
285
337
|
if @date.nil?
|
286
|
-
invalid_properties.push(
|
287
|
-
end
|
288
|
-
|
289
|
-
if @value.nil?
|
290
|
-
invalid_properties.push("invalid value for 'value', value cannot be nil.")
|
338
|
+
invalid_properties.push('invalid value for "date", date cannot be nil.')
|
291
339
|
end
|
292
340
|
|
293
341
|
if @nature.nil?
|
294
|
-
invalid_properties.push(
|
342
|
+
invalid_properties.push('invalid value for "nature", nature cannot be nil.')
|
295
343
|
end
|
296
344
|
|
297
345
|
if @original_wording.nil?
|
298
|
-
invalid_properties.push(
|
346
|
+
invalid_properties.push('invalid value for "original_wording", original_wording cannot be nil.')
|
299
347
|
end
|
300
348
|
|
301
349
|
if @simplified_wording.nil?
|
302
|
-
invalid_properties.push(
|
350
|
+
invalid_properties.push('invalid value for "simplified_wording", simplified_wording cannot be nil.')
|
303
351
|
end
|
304
352
|
|
305
353
|
if @stemmed_wording.nil?
|
306
|
-
invalid_properties.push(
|
354
|
+
invalid_properties.push('invalid value for "stemmed_wording", stemmed_wording cannot be nil.')
|
307
355
|
end
|
308
356
|
|
309
357
|
if @state.nil?
|
310
|
-
invalid_properties.push(
|
358
|
+
invalid_properties.push('invalid value for "state", state cannot be nil.')
|
311
359
|
end
|
312
360
|
|
313
361
|
if @date_scraped.nil?
|
314
|
-
invalid_properties.push(
|
362
|
+
invalid_properties.push('invalid value for "date_scraped", date_scraped cannot be nil.')
|
315
363
|
end
|
316
364
|
|
317
365
|
if @rdate.nil?
|
318
|
-
invalid_properties.push(
|
366
|
+
invalid_properties.push('invalid value for "rdate", rdate cannot be nil.')
|
319
367
|
end
|
320
368
|
|
321
369
|
if @coming.nil?
|
322
|
-
invalid_properties.push(
|
370
|
+
invalid_properties.push('invalid value for "coming", coming cannot be nil.')
|
323
371
|
end
|
324
372
|
|
325
373
|
if @active.nil?
|
326
|
-
invalid_properties.push(
|
374
|
+
invalid_properties.push('invalid value for "active", active cannot be nil.')
|
327
375
|
end
|
328
376
|
|
329
377
|
if @nopurge.nil?
|
330
|
-
invalid_properties.push(
|
378
|
+
invalid_properties.push('invalid value for "nopurge", nopurge cannot be nil.')
|
331
379
|
end
|
332
380
|
|
333
|
-
|
381
|
+
invalid_properties
|
334
382
|
end
|
335
383
|
|
336
384
|
# Check to see if the all the properties in the model are valid
|
@@ -339,7 +387,6 @@ module BudgeaClient
|
|
339
387
|
return false if @id.nil?
|
340
388
|
return false if @id_account.nil?
|
341
389
|
return false if @date.nil?
|
342
|
-
return false if @value.nil?
|
343
390
|
return false if @nature.nil?
|
344
391
|
return false if @original_wording.nil?
|
345
392
|
return false if @simplified_wording.nil?
|
@@ -350,7 +397,7 @@ module BudgeaClient
|
|
350
397
|
return false if @coming.nil?
|
351
398
|
return false if @active.nil?
|
352
399
|
return false if @nopurge.nil?
|
353
|
-
|
400
|
+
true
|
354
401
|
end
|
355
402
|
|
356
403
|
# Checks equality by comparing each attribute.
|
@@ -364,6 +411,7 @@ module BudgeaClient
|
|
364
411
|
application_date == o.application_date &&
|
365
412
|
date == o.date &&
|
366
413
|
value == o.value &&
|
414
|
+
gross_value == o.gross_value &&
|
367
415
|
nature == o.nature &&
|
368
416
|
original_wording == o.original_wording &&
|
369
417
|
simplified_wording == o.simplified_wording &&
|
@@ -373,6 +421,7 @@ module BudgeaClient
|
|
373
421
|
state == o.state &&
|
374
422
|
date_scraped == o.date_scraped &&
|
375
423
|
rdate == o.rdate &&
|
424
|
+
vdate == o.vdate &&
|
376
425
|
coming == o.coming &&
|
377
426
|
active == o.active &&
|
378
427
|
id_cluster == o.id_cluster &&
|
@@ -383,7 +432,10 @@ module BudgeaClient
|
|
383
432
|
original_value == o.original_value &&
|
384
433
|
original_currency == o.original_currency &&
|
385
434
|
commission == o.commission &&
|
386
|
-
|
435
|
+
commission_currency == o.commission_currency &&
|
436
|
+
country == o.country &&
|
437
|
+
counterparty == o.counterparty &&
|
438
|
+
card == o.card
|
387
439
|
end
|
388
440
|
|
389
441
|
# @see the `==` method
|
@@ -395,7 +447,7 @@ module BudgeaClient
|
|
395
447
|
# Calculates hash code according to all attributes.
|
396
448
|
# @return [Fixnum] Hash code
|
397
449
|
def hash
|
398
|
-
[id, id_account, webid, application_date, date, value, nature, original_wording, simplified_wording, stemmed_wording, wording, id_category, state, date_scraped, rdate, coming, active, id_cluster, comment, last_update, deleted, nopurge, original_value, original_currency, commission, country].hash
|
450
|
+
[id, id_account, webid, application_date, date, value, gross_value, nature, original_wording, simplified_wording, stemmed_wording, wording, id_category, state, date_scraped, rdate, vdate, coming, active, id_cluster, comment, last_update, deleted, nopurge, original_value, original_currency, commission, commission_currency, country, counterparty, card].hash
|
399
451
|
end
|
400
452
|
|
401
453
|
# Builds the object from hash
|
@@ -408,7 +460,7 @@ module BudgeaClient
|
|
408
460
|
# check to ensure the input is an array given that the the attribute
|
409
461
|
# is documented as an array but the input is not
|
410
462
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
411
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
463
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
412
464
|
end
|
413
465
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
414
466
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
@@ -490,7 +542,7 @@ module BudgeaClient
|
|
490
542
|
# @return [Hash] Returns the value in the form of hash
|
491
543
|
def _to_hash(value)
|
492
544
|
if value.is_a?(Array)
|
493
|
-
value.compact.map{ |v| _to_hash(v) }
|
545
|
+
value.compact.map { |v| _to_hash(v) }
|
494
546
|
elsif value.is_a?(Hash)
|
495
547
|
{}.tap do |hash|
|
496
548
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
@@ -501,7 +553,5 @@ module BudgeaClient
|
|
501
553
|
value
|
502
554
|
end
|
503
555
|
end
|
504
|
-
|
505
556
|
end
|
506
|
-
|
507
557
|
end
|