budgea_client 1.4.4 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -0,0 +1,244 @@
|
|
|
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
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
|
|
15
|
+
module BudgeaClient
|
|
16
|
+
class Certificate
|
|
17
|
+
attr_accessor :id
|
|
18
|
+
|
|
19
|
+
attr_accessor :id_public_key_file
|
|
20
|
+
|
|
21
|
+
attr_accessor :id_private_key_file
|
|
22
|
+
|
|
23
|
+
attr_accessor :type
|
|
24
|
+
|
|
25
|
+
attr_accessor :created
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'id' => :'id',
|
|
31
|
+
:'id_public_key_file' => :'id_public_key_file',
|
|
32
|
+
:'id_private_key_file' => :'id_private_key_file',
|
|
33
|
+
:'type' => :'type',
|
|
34
|
+
:'created' => :'created'
|
|
35
|
+
}
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Attribute type mapping.
|
|
39
|
+
def self.swagger_types
|
|
40
|
+
{
|
|
41
|
+
:'id' => :'Integer',
|
|
42
|
+
:'id_public_key_file' => :'Integer',
|
|
43
|
+
:'id_private_key_file' => :'Integer',
|
|
44
|
+
:'type' => :'String',
|
|
45
|
+
:'created' => :'DateTime'
|
|
46
|
+
}
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Initializes the object
|
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
51
|
+
def initialize(attributes = {})
|
|
52
|
+
return unless attributes.is_a?(Hash)
|
|
53
|
+
|
|
54
|
+
# convert string to symbol for hash key
|
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
56
|
+
|
|
57
|
+
if attributes.has_key?(:'id')
|
|
58
|
+
self.id = attributes[:'id']
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
if attributes.has_key?(:'id_public_key_file')
|
|
62
|
+
self.id_public_key_file = attributes[:'id_public_key_file']
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
if attributes.has_key?(:'id_private_key_file')
|
|
66
|
+
self.id_private_key_file = attributes[:'id_private_key_file']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.has_key?(:'type')
|
|
70
|
+
self.type = attributes[:'type']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.has_key?(:'created')
|
|
74
|
+
self.created = attributes[:'created']
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
79
|
+
# @return Array for valid properties with the reasons
|
|
80
|
+
def list_invalid_properties
|
|
81
|
+
invalid_properties = Array.new
|
|
82
|
+
if @id.nil?
|
|
83
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
if @id_public_key_file.nil?
|
|
87
|
+
invalid_properties.push('invalid value for "id_public_key_file", id_public_key_file cannot be nil.')
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
if @id_private_key_file.nil?
|
|
91
|
+
invalid_properties.push('invalid value for "id_private_key_file", id_private_key_file cannot be nil.')
|
|
92
|
+
end
|
|
93
|
+
|
|
94
|
+
if @type.nil?
|
|
95
|
+
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if @created.nil?
|
|
99
|
+
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
invalid_properties
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# Check to see if the all the properties in the model are valid
|
|
106
|
+
# @return true if the model is valid
|
|
107
|
+
def valid?
|
|
108
|
+
return false if @id.nil?
|
|
109
|
+
return false if @id_public_key_file.nil?
|
|
110
|
+
return false if @id_private_key_file.nil?
|
|
111
|
+
return false if @type.nil?
|
|
112
|
+
return false if @created.nil?
|
|
113
|
+
true
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Checks equality by comparing each attribute.
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
id == o.id &&
|
|
122
|
+
id_public_key_file == o.id_public_key_file &&
|
|
123
|
+
id_private_key_file == o.id_private_key_file &&
|
|
124
|
+
type == o.type &&
|
|
125
|
+
created == o.created
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# @see the `==` method
|
|
129
|
+
# @param [Object] Object to be compared
|
|
130
|
+
def eql?(o)
|
|
131
|
+
self == o
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Calculates hash code according to all attributes.
|
|
135
|
+
# @return [Fixnum] Hash code
|
|
136
|
+
def hash
|
|
137
|
+
[id, id_public_key_file, id_private_key_file, type, created].hash
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Builds the object from hash
|
|
141
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
142
|
+
# @return [Object] Returns the model itself
|
|
143
|
+
def build_from_hash(attributes)
|
|
144
|
+
return nil unless attributes.is_a?(Hash)
|
|
145
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
146
|
+
if type =~ /\AArray<(.*)>/i
|
|
147
|
+
# check to ensure the input is an array given that the the attribute
|
|
148
|
+
# is documented as an array but the input is not
|
|
149
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
150
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
151
|
+
end
|
|
152
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
153
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
154
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
self
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Deserializes the data based on type
|
|
161
|
+
# @param string type Data type
|
|
162
|
+
# @param string value Value to be deserialized
|
|
163
|
+
# @return [Object] Deserialized data
|
|
164
|
+
def _deserialize(type, value)
|
|
165
|
+
case type.to_sym
|
|
166
|
+
when :DateTime
|
|
167
|
+
DateTime.parse(value)
|
|
168
|
+
when :Date
|
|
169
|
+
Date.parse(value)
|
|
170
|
+
when :String
|
|
171
|
+
value.to_s
|
|
172
|
+
when :Integer
|
|
173
|
+
value.to_i
|
|
174
|
+
when :Float
|
|
175
|
+
value.to_f
|
|
176
|
+
when :BOOLEAN
|
|
177
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
178
|
+
true
|
|
179
|
+
else
|
|
180
|
+
false
|
|
181
|
+
end
|
|
182
|
+
when :Object
|
|
183
|
+
# generic object (usually a Hash), return directly
|
|
184
|
+
value
|
|
185
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
186
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
187
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
188
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
189
|
+
k_type = Regexp.last_match[:k_type]
|
|
190
|
+
v_type = Regexp.last_match[:v_type]
|
|
191
|
+
{}.tap do |hash|
|
|
192
|
+
value.each do |k, v|
|
|
193
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
194
|
+
end
|
|
195
|
+
end
|
|
196
|
+
else # model
|
|
197
|
+
temp_model = BudgeaClient.const_get(type).new
|
|
198
|
+
temp_model.build_from_hash(value)
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the string representation of the object
|
|
203
|
+
# @return [String] String presentation of the object
|
|
204
|
+
def to_s
|
|
205
|
+
to_hash.to_s
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_body
|
|
211
|
+
to_hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
next if value.nil?
|
|
221
|
+
hash[param] = _to_hash(value)
|
|
222
|
+
end
|
|
223
|
+
hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Outputs non-array value in the form of hash
|
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
+
# @param [Object] value Any valid value
|
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
|
230
|
+
def _to_hash(value)
|
|
231
|
+
if value.is_a?(Array)
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
233
|
+
elsif value.is_a?(Hash)
|
|
234
|
+
{}.tap do |hash|
|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
+
end
|
|
237
|
+
elsif value.respond_to? :to_hash
|
|
238
|
+
value.to_hash
|
|
239
|
+
else
|
|
240
|
+
value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
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 Client
|
|
8
17
|
attr_accessor :id
|
|
9
18
|
|
|
@@ -11,6 +20,10 @@ module BudgeaClient
|
|
|
11
20
|
|
|
12
21
|
attr_accessor :secret
|
|
13
22
|
|
|
23
|
+
attr_accessor :public_key
|
|
24
|
+
|
|
25
|
+
attr_accessor :private_key
|
|
26
|
+
|
|
14
27
|
attr_accessor :redirect_uri
|
|
15
28
|
|
|
16
29
|
# Primary color of client
|
|
@@ -33,6 +46,8 @@ module BudgeaClient
|
|
|
33
46
|
|
|
34
47
|
attr_accessor :id_logo
|
|
35
48
|
|
|
49
|
+
# customizable information
|
|
50
|
+
attr_accessor :information
|
|
36
51
|
|
|
37
52
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
53
|
def self.attribute_map
|
|
@@ -40,6 +55,8 @@ module BudgeaClient
|
|
|
40
55
|
:'id' => :'id',
|
|
41
56
|
:'name' => :'name',
|
|
42
57
|
:'secret' => :'secret',
|
|
58
|
+
:'public_key' => :'public_key',
|
|
59
|
+
:'private_key' => :'private_key',
|
|
43
60
|
:'redirect_uri' => :'redirect_uri',
|
|
44
61
|
:'primary_color' => :'primary_color',
|
|
45
62
|
:'secondary_color' => :'secondary_color',
|
|
@@ -47,7 +64,8 @@ module BudgeaClient
|
|
|
47
64
|
:'description' => :'description',
|
|
48
65
|
:'description_banks' => :'description_banks',
|
|
49
66
|
:'description_providers' => :'description_providers',
|
|
50
|
-
:'id_logo' => :'id_logo'
|
|
67
|
+
:'id_logo' => :'id_logo',
|
|
68
|
+
:'information' => :'information'
|
|
51
69
|
}
|
|
52
70
|
end
|
|
53
71
|
|
|
@@ -57,6 +75,8 @@ module BudgeaClient
|
|
|
57
75
|
:'id' => :'Integer',
|
|
58
76
|
:'name' => :'String',
|
|
59
77
|
:'secret' => :'String',
|
|
78
|
+
:'public_key' => :'String',
|
|
79
|
+
:'private_key' => :'String',
|
|
60
80
|
:'redirect_uri' => :'String',
|
|
61
81
|
:'primary_color' => :'String',
|
|
62
82
|
:'secondary_color' => :'String',
|
|
@@ -64,7 +84,8 @@ module BudgeaClient
|
|
|
64
84
|
:'description' => :'String',
|
|
65
85
|
:'description_banks' => :'String',
|
|
66
86
|
:'description_providers' => :'String',
|
|
67
|
-
:'id_logo' => :'Integer'
|
|
87
|
+
:'id_logo' => :'Integer',
|
|
88
|
+
:'information' => :'String'
|
|
68
89
|
}
|
|
69
90
|
end
|
|
70
91
|
|
|
@@ -74,7 +95,7 @@ module BudgeaClient
|
|
|
74
95
|
return unless attributes.is_a?(Hash)
|
|
75
96
|
|
|
76
97
|
# convert string to symbol for hash key
|
|
77
|
-
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
|
98
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
78
99
|
|
|
79
100
|
if attributes.has_key?(:'id')
|
|
80
101
|
self.id = attributes[:'id']
|
|
@@ -83,17 +104,25 @@ module BudgeaClient
|
|
|
83
104
|
if attributes.has_key?(:'name')
|
|
84
105
|
self.name = attributes[:'name']
|
|
85
106
|
else
|
|
86
|
-
self.name =
|
|
107
|
+
self.name = ''
|
|
87
108
|
end
|
|
88
109
|
|
|
89
110
|
if attributes.has_key?(:'secret')
|
|
90
111
|
self.secret = attributes[:'secret']
|
|
91
112
|
end
|
|
92
113
|
|
|
114
|
+
if attributes.has_key?(:'public_key')
|
|
115
|
+
self.public_key = attributes[:'public_key']
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
if attributes.has_key?(:'private_key')
|
|
119
|
+
self.private_key = attributes[:'private_key']
|
|
120
|
+
end
|
|
121
|
+
|
|
93
122
|
if attributes.has_key?(:'redirect_uri')
|
|
94
123
|
self.redirect_uri = attributes[:'redirect_uri']
|
|
95
124
|
else
|
|
96
|
-
self.redirect_uri =
|
|
125
|
+
self.redirect_uri = ''
|
|
97
126
|
end
|
|
98
127
|
|
|
99
128
|
if attributes.has_key?(:'primary_color')
|
|
@@ -126,6 +155,9 @@ module BudgeaClient
|
|
|
126
155
|
self.id_logo = attributes[:'id_logo']
|
|
127
156
|
end
|
|
128
157
|
|
|
158
|
+
if attributes.has_key?(:'information')
|
|
159
|
+
self.information = attributes[:'information']
|
|
160
|
+
end
|
|
129
161
|
end
|
|
130
162
|
|
|
131
163
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -133,26 +165,26 @@ module BudgeaClient
|
|
|
133
165
|
def list_invalid_properties
|
|
134
166
|
invalid_properties = Array.new
|
|
135
167
|
if @id.nil?
|
|
136
|
-
invalid_properties.push(
|
|
168
|
+
invalid_properties.push('invalid value for "id", id cannot be nil.')
|
|
137
169
|
end
|
|
138
170
|
|
|
139
171
|
if @name.nil?
|
|
140
|
-
invalid_properties.push(
|
|
172
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
141
173
|
end
|
|
142
174
|
|
|
143
175
|
if @secret.nil?
|
|
144
|
-
invalid_properties.push(
|
|
176
|
+
invalid_properties.push('invalid value for "secret", secret cannot be nil.')
|
|
145
177
|
end
|
|
146
178
|
|
|
147
179
|
if @redirect_uri.nil?
|
|
148
|
-
invalid_properties.push(
|
|
180
|
+
invalid_properties.push('invalid value for "redirect_uri", redirect_uri cannot be nil.')
|
|
149
181
|
end
|
|
150
182
|
|
|
151
183
|
if @pro.nil?
|
|
152
|
-
invalid_properties.push(
|
|
184
|
+
invalid_properties.push('invalid value for "pro", pro cannot be nil.')
|
|
153
185
|
end
|
|
154
186
|
|
|
155
|
-
|
|
187
|
+
invalid_properties
|
|
156
188
|
end
|
|
157
189
|
|
|
158
190
|
# Check to see if the all the properties in the model are valid
|
|
@@ -163,7 +195,7 @@ module BudgeaClient
|
|
|
163
195
|
return false if @secret.nil?
|
|
164
196
|
return false if @redirect_uri.nil?
|
|
165
197
|
return false if @pro.nil?
|
|
166
|
-
|
|
198
|
+
true
|
|
167
199
|
end
|
|
168
200
|
|
|
169
201
|
# Checks equality by comparing each attribute.
|
|
@@ -174,6 +206,8 @@ module BudgeaClient
|
|
|
174
206
|
id == o.id &&
|
|
175
207
|
name == o.name &&
|
|
176
208
|
secret == o.secret &&
|
|
209
|
+
public_key == o.public_key &&
|
|
210
|
+
private_key == o.private_key &&
|
|
177
211
|
redirect_uri == o.redirect_uri &&
|
|
178
212
|
primary_color == o.primary_color &&
|
|
179
213
|
secondary_color == o.secondary_color &&
|
|
@@ -181,7 +215,8 @@ module BudgeaClient
|
|
|
181
215
|
description == o.description &&
|
|
182
216
|
description_banks == o.description_banks &&
|
|
183
217
|
description_providers == o.description_providers &&
|
|
184
|
-
id_logo == o.id_logo
|
|
218
|
+
id_logo == o.id_logo &&
|
|
219
|
+
information == o.information
|
|
185
220
|
end
|
|
186
221
|
|
|
187
222
|
# @see the `==` method
|
|
@@ -193,7 +228,7 @@ module BudgeaClient
|
|
|
193
228
|
# Calculates hash code according to all attributes.
|
|
194
229
|
# @return [Fixnum] Hash code
|
|
195
230
|
def hash
|
|
196
|
-
[id, name, secret, redirect_uri, primary_color, secondary_color, pro, description, description_banks, description_providers, id_logo].hash
|
|
231
|
+
[id, name, secret, public_key, private_key, redirect_uri, primary_color, secondary_color, pro, description, description_banks, description_providers, id_logo, information].hash
|
|
197
232
|
end
|
|
198
233
|
|
|
199
234
|
# Builds the object from hash
|
|
@@ -206,7 +241,7 @@ module BudgeaClient
|
|
|
206
241
|
# check to ensure the input is an array given that the the attribute
|
|
207
242
|
# is documented as an array but the input is not
|
|
208
243
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
209
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) }
|
|
244
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
210
245
|
end
|
|
211
246
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
212
247
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
@@ -288,7 +323,7 @@ module BudgeaClient
|
|
|
288
323
|
# @return [Hash] Returns the value in the form of hash
|
|
289
324
|
def _to_hash(value)
|
|
290
325
|
if value.is_a?(Array)
|
|
291
|
-
value.compact.map{ |v| _to_hash(v) }
|
|
326
|
+
value.compact.map { |v| _to_hash(v) }
|
|
292
327
|
elsif value.is_a?(Hash)
|
|
293
328
|
{}.tap do |hash|
|
|
294
329
|
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
@@ -299,7 +334,5 @@ module BudgeaClient
|
|
|
299
334
|
value
|
|
300
335
|
end
|
|
301
336
|
end
|
|
302
|
-
|
|
303
337
|
end
|
|
304
|
-
|
|
305
338
|
end
|