mx-platform-ruby 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 +4 -4
- data/Gemfile.lock +8 -6
- data/LICENSE +1 -1
- data/README.md +30 -19
- data/docs/EnhanceTransactionResponse.md +19 -5
- data/docs/EnhanceTransactionsRequest.md +6 -2
- data/docs/MxPlatformApi.md +159 -11
- data/docs/TransactionResponse.md +4 -0
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +241 -37
- data/lib/mx-platform-ruby/api_client.rb +7 -9
- data/lib/mx-platform-ruby/api_error.rb +1 -1
- data/lib/mx-platform-ruby/configuration.rb +35 -2
- data/lib/mx-platform-ruby/models/account_number_response.rb +5 -1
- data/lib/mx-platform-ruby/models/account_numbers_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_owner_response.rb +9 -1
- data/lib/mx-platform-ruby/models/account_owners_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_response.rb +45 -1
- data/lib/mx-platform-ruby/models/account_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/accounts_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/categories_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_response.rb +7 -1
- data/lib/mx-platform-ruby/models/category_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/category_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/challenge_response.rb +5 -1
- data/lib/mx-platform-ruby/models/challenges_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/connect_widget_response.rb +2 -1
- data/lib/mx-platform-ruby/models/connect_widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/credential_request.rb +2 -1
- data/lib/mx-platform-ruby/models/credential_response.rb +4 -1
- data/lib/mx-platform-ruby/models/credentials_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transaction_response.rb +87 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request.rb +20 -2
- data/lib/mx-platform-ruby/models/enhance_transactions_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/enhance_transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holding_response.rb +15 -1
- data/lib/mx-platform-ruby/models/holding_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/holdings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/image_option_response.rb +4 -1
- data/lib/mx-platform-ruby/models/institution_response.rb +11 -1
- data/lib/mx-platform-ruby/models/institution_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/institutions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_response.rb +13 -1
- data/lib/mx-platform-ruby/models/member_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_resume_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_status_response.rb +8 -1
- data/lib/mx-platform-ruby/models/member_status_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/member_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/members_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchant_location_response.rb +11 -1
- data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchant_response.rb +6 -1
- data/lib/mx-platform-ruby/models/merchant_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/merchants_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response.rb +2 -1
- data/lib/mx-platform-ruby/models/o_auth_window_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/option_response.rb +3 -1
- data/lib/mx-platform-ruby/models/pagination_response.rb +1 -1
- data/lib/mx-platform-ruby/models/statement_response.rb +5 -1
- data/lib/mx-platform-ruby/models/statement_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/statements_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tag_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tag_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_response.rb +2 -1
- data/lib/mx-platform-ruby/models/tagging_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/tagging_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/taggings_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/tags_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_response.rb +57 -2
- data/lib/mx-platform-ruby/models/transaction_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response.rb +5 -1
- data/lib/mx-platform-ruby/models/transaction_rule_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request.rb +3 -1
- data/lib/mx-platform-ruby/models/transaction_rule_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_rules_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/transaction_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/transactions_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_create_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_response.rb +5 -1
- data/lib/mx-platform-ruby/models/user_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request.rb +1 -1
- data/lib/mx-platform-ruby/models/user_update_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/users_response_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_request_body.rb +1 -1
- data/lib/mx-platform-ruby/models/widget_response.rb +4 -1
- data/lib/mx-platform-ruby/models/widget_response_body.rb +1 -1
- data/lib/mx-platform-ruby/version.rb +2 -2
- data/lib/mx-platform-ruby.rb +1 -1
- data/mx-platform-ruby.gemspec +1 -1
- data/openapi/config.yml +1 -1
- data/openapi/templates/README.mustache +30 -21
- data/spec/api/mx_platform_api_spec.rb +30 -4
- data/spec/api_client_spec.rb +3 -3
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/account_number_response_spec.rb +1 -1
- data/spec/models/account_numbers_response_body_spec.rb +1 -1
- data/spec/models/account_owner_response_spec.rb +1 -1
- data/spec/models/account_owners_response_body_spec.rb +1 -1
- data/spec/models/account_response_body_spec.rb +1 -1
- data/spec/models/account_response_spec.rb +1 -1
- data/spec/models/account_update_request_body_spec.rb +1 -1
- data/spec/models/account_update_request_spec.rb +1 -1
- data/spec/models/accounts_response_body_spec.rb +1 -1
- data/spec/models/categories_response_body_spec.rb +1 -1
- data/spec/models/category_create_request_body_spec.rb +1 -1
- data/spec/models/category_create_request_spec.rb +1 -1
- data/spec/models/category_response_body_spec.rb +1 -1
- data/spec/models/category_response_spec.rb +1 -1
- data/spec/models/category_update_request_body_spec.rb +1 -1
- data/spec/models/category_update_request_spec.rb +1 -1
- data/spec/models/challenge_response_spec.rb +1 -1
- data/spec/models/challenges_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_body_spec.rb +1 -1
- data/spec/models/connect_widget_request_spec.rb +1 -1
- data/spec/models/connect_widget_response_body_spec.rb +1 -1
- data/spec/models/connect_widget_response_spec.rb +1 -1
- data/spec/models/credential_request_spec.rb +1 -1
- data/spec/models/credential_response_spec.rb +1 -1
- data/spec/models/credentials_response_body_spec.rb +1 -1
- data/spec/models/enhance_transaction_response_spec.rb +43 -1
- data/spec/models/enhance_transactions_request_body_spec.rb +1 -1
- data/spec/models/enhance_transactions_request_spec.rb +13 -1
- data/spec/models/enhance_transactions_response_body_spec.rb +1 -1
- data/spec/models/holding_response_body_spec.rb +1 -1
- data/spec/models/holding_response_spec.rb +1 -1
- data/spec/models/holdings_response_body_spec.rb +1 -1
- data/spec/models/image_option_response_spec.rb +1 -1
- data/spec/models/institution_response_body_spec.rb +1 -1
- data/spec/models/institution_response_spec.rb +1 -1
- data/spec/models/institutions_response_body_spec.rb +1 -1
- data/spec/models/managed_account_create_request_body_spec.rb +1 -1
- data/spec/models/managed_account_create_request_spec.rb +1 -1
- data/spec/models/managed_account_update_request_body_spec.rb +1 -1
- data/spec/models/managed_account_update_request_spec.rb +1 -1
- data/spec/models/managed_member_create_request_body_spec.rb +1 -1
- data/spec/models/managed_member_create_request_spec.rb +1 -1
- data/spec/models/managed_member_update_request_body_spec.rb +1 -1
- data/spec/models/managed_member_update_request_spec.rb +1 -1
- data/spec/models/managed_transaction_create_request_body_spec.rb +1 -1
- data/spec/models/managed_transaction_create_request_spec.rb +1 -1
- data/spec/models/managed_transaction_update_request_body_spec.rb +1 -1
- data/spec/models/managed_transaction_update_request_spec.rb +1 -1
- data/spec/models/member_create_request_body_spec.rb +1 -1
- data/spec/models/member_create_request_spec.rb +1 -1
- data/spec/models/member_response_body_spec.rb +1 -1
- data/spec/models/member_response_spec.rb +1 -1
- data/spec/models/member_resume_request_body_spec.rb +1 -1
- data/spec/models/member_resume_request_spec.rb +1 -1
- data/spec/models/member_status_response_body_spec.rb +1 -1
- data/spec/models/member_status_response_spec.rb +1 -1
- data/spec/models/member_update_request_body_spec.rb +1 -1
- data/spec/models/member_update_request_spec.rb +1 -1
- data/spec/models/members_response_body_spec.rb +1 -1
- data/spec/models/merchant_location_response_body_spec.rb +1 -1
- data/spec/models/merchant_location_response_spec.rb +1 -1
- data/spec/models/merchant_response_body_spec.rb +1 -1
- data/spec/models/merchant_response_spec.rb +1 -1
- data/spec/models/merchants_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_body_spec.rb +1 -1
- data/spec/models/o_auth_window_response_spec.rb +1 -1
- data/spec/models/option_response_spec.rb +1 -1
- data/spec/models/pagination_response_spec.rb +1 -1
- data/spec/models/statement_response_body_spec.rb +1 -1
- data/spec/models/statement_response_spec.rb +1 -1
- data/spec/models/statements_response_body_spec.rb +1 -1
- data/spec/models/tag_create_request_body_spec.rb +1 -1
- data/spec/models/tag_create_request_spec.rb +1 -1
- data/spec/models/tag_response_body_spec.rb +1 -1
- data/spec/models/tag_response_spec.rb +1 -1
- data/spec/models/tag_update_request_body_spec.rb +1 -1
- data/spec/models/tag_update_request_spec.rb +1 -1
- data/spec/models/tagging_create_request_body_spec.rb +1 -1
- data/spec/models/tagging_create_request_spec.rb +1 -1
- data/spec/models/tagging_response_body_spec.rb +1 -1
- data/spec/models/tagging_response_spec.rb +1 -1
- data/spec/models/tagging_update_request_body_spec.rb +1 -1
- data/spec/models/tagging_update_request_spec.rb +1 -1
- data/spec/models/taggings_response_body_spec.rb +1 -1
- data/spec/models/tags_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_body_spec.rb +1 -1
- data/spec/models/transaction_response_spec.rb +13 -1
- data/spec/models/transaction_rule_create_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_create_request_spec.rb +1 -1
- data/spec/models/transaction_rule_response_body_spec.rb +1 -1
- data/spec/models/transaction_rule_response_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_rule_update_request_spec.rb +1 -1
- data/spec/models/transaction_rules_response_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_body_spec.rb +1 -1
- data/spec/models/transaction_update_request_spec.rb +1 -1
- data/spec/models/transactions_response_body_spec.rb +1 -1
- data/spec/models/user_create_request_body_spec.rb +1 -1
- data/spec/models/user_create_request_spec.rb +1 -1
- data/spec/models/user_response_body_spec.rb +1 -1
- data/spec/models/user_response_spec.rb +1 -1
- data/spec/models/user_update_request_body_spec.rb +1 -1
- data/spec/models/user_update_request_spec.rb +1 -1
- data/spec/models/users_response_body_spec.rb +1 -1
- data/spec/models/widget_request_body_spec.rb +1 -1
- data/spec/models/widget_request_spec.rb +1 -1
- data/spec/models/widget_response_body_spec.rb +1 -1
- data/spec/models/widget_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +94 -94
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -55,6 +55,7 @@ module MxPlatformRuby
|
|
55
55
|
# List of attributes with nullable: true
|
56
56
|
def self.openapi_nullable
|
57
57
|
Set.new([
|
58
|
+
:'member_is_managed_by_user',
|
58
59
|
])
|
59
60
|
end
|
60
61
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -23,6 +23,8 @@ module MxPlatformRuby
|
|
23
23
|
|
24
24
|
attr_accessor :category
|
25
25
|
|
26
|
+
attr_accessor :category_guid
|
27
|
+
|
26
28
|
attr_accessor :check_number_string
|
27
29
|
|
28
30
|
attr_accessor :created_at
|
@@ -33,6 +35,8 @@ module MxPlatformRuby
|
|
33
35
|
|
34
36
|
attr_accessor :description
|
35
37
|
|
38
|
+
attr_accessor :extended_transaction_type
|
39
|
+
|
36
40
|
attr_accessor :guid
|
37
41
|
|
38
42
|
attr_accessor :id
|
@@ -104,11 +108,13 @@ module MxPlatformRuby
|
|
104
108
|
:'account_id' => :'account_id',
|
105
109
|
:'amount' => :'amount',
|
106
110
|
:'category' => :'category',
|
111
|
+
:'category_guid' => :'category_guid',
|
107
112
|
:'check_number_string' => :'check_number_string',
|
108
113
|
:'created_at' => :'created_at',
|
109
114
|
:'currency_code' => :'currency_code',
|
110
115
|
:'date' => :'date',
|
111
116
|
:'description' => :'description',
|
117
|
+
:'extended_transaction_type' => :'extended_transaction_type',
|
112
118
|
:'guid' => :'guid',
|
113
119
|
:'id' => :'id',
|
114
120
|
:'is_bill_pay' => :'is_bill_pay',
|
@@ -156,11 +162,13 @@ module MxPlatformRuby
|
|
156
162
|
:'account_id' => :'String',
|
157
163
|
:'amount' => :'Float',
|
158
164
|
:'category' => :'String',
|
165
|
+
:'category_guid' => :'String',
|
159
166
|
:'check_number_string' => :'String',
|
160
167
|
:'created_at' => :'String',
|
161
168
|
:'currency_code' => :'String',
|
162
169
|
:'date' => :'String',
|
163
170
|
:'description' => :'String',
|
171
|
+
:'extended_transaction_type' => :'String',
|
164
172
|
:'guid' => :'String',
|
165
173
|
:'id' => :'String',
|
166
174
|
:'is_bill_pay' => :'Boolean',
|
@@ -199,6 +207,43 @@ module MxPlatformRuby
|
|
199
207
|
# List of attributes with nullable: true
|
200
208
|
def self.openapi_nullable
|
201
209
|
Set.new([
|
210
|
+
:'account_id',
|
211
|
+
:'amount',
|
212
|
+
:'category',
|
213
|
+
:'category_guid',
|
214
|
+
:'check_number_string',
|
215
|
+
:'created_at',
|
216
|
+
:'currency_code',
|
217
|
+
:'date',
|
218
|
+
:'description',
|
219
|
+
:'extended_transaction_type',
|
220
|
+
:'id',
|
221
|
+
:'is_bill_pay',
|
222
|
+
:'is_direct_deposit',
|
223
|
+
:'is_expense',
|
224
|
+
:'is_fee',
|
225
|
+
:'is_income',
|
226
|
+
:'is_international',
|
227
|
+
:'is_overdraft_fee',
|
228
|
+
:'is_payroll_advance',
|
229
|
+
:'is_recurring',
|
230
|
+
:'is_subscription',
|
231
|
+
:'latitude',
|
232
|
+
:'localized_description',
|
233
|
+
:'localized_memo',
|
234
|
+
:'longitude',
|
235
|
+
:'member_is_managed_by_user',
|
236
|
+
:'memo',
|
237
|
+
:'merchant_category_code',
|
238
|
+
:'metadata',
|
239
|
+
:'original_description',
|
240
|
+
:'posted_at',
|
241
|
+
:'status',
|
242
|
+
:'top_level_category',
|
243
|
+
:'transacted_at',
|
244
|
+
:'type',
|
245
|
+
:'updated_at',
|
246
|
+
:'user_id'
|
202
247
|
])
|
203
248
|
end
|
204
249
|
|
@@ -233,6 +278,10 @@ module MxPlatformRuby
|
|
233
278
|
self.category = attributes[:'category']
|
234
279
|
end
|
235
280
|
|
281
|
+
if attributes.key?(:'category_guid')
|
282
|
+
self.category_guid = attributes[:'category_guid']
|
283
|
+
end
|
284
|
+
|
236
285
|
if attributes.key?(:'check_number_string')
|
237
286
|
self.check_number_string = attributes[:'check_number_string']
|
238
287
|
end
|
@@ -253,6 +302,10 @@ module MxPlatformRuby
|
|
253
302
|
self.description = attributes[:'description']
|
254
303
|
end
|
255
304
|
|
305
|
+
if attributes.key?(:'extended_transaction_type')
|
306
|
+
self.extended_transaction_type = attributes[:'extended_transaction_type']
|
307
|
+
end
|
308
|
+
|
256
309
|
if attributes.key?(:'guid')
|
257
310
|
self.guid = attributes[:'guid']
|
258
311
|
end
|
@@ -404,11 +457,13 @@ module MxPlatformRuby
|
|
404
457
|
account_id == o.account_id &&
|
405
458
|
amount == o.amount &&
|
406
459
|
category == o.category &&
|
460
|
+
category_guid == o.category_guid &&
|
407
461
|
check_number_string == o.check_number_string &&
|
408
462
|
created_at == o.created_at &&
|
409
463
|
currency_code == o.currency_code &&
|
410
464
|
date == o.date &&
|
411
465
|
description == o.description &&
|
466
|
+
extended_transaction_type == o.extended_transaction_type &&
|
412
467
|
guid == o.guid &&
|
413
468
|
id == o.id &&
|
414
469
|
is_bill_pay == o.is_bill_pay &&
|
@@ -452,7 +507,7 @@ module MxPlatformRuby
|
|
452
507
|
# Calculates hash code according to all attributes.
|
453
508
|
# @return [Integer] Hash code
|
454
509
|
def hash
|
455
|
-
[account_guid, account_id, amount, category, check_number_string, created_at, currency_code, date, description, guid, id, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, is_recurring, is_subscription, latitude, localized_description, localized_memo, longitude, member_guid, member_is_managed_by_user, memo, merchant_category_code, merchant_guid, merchant_location_guid, metadata, original_description, posted_at, status, top_level_category, transacted_at, type, updated_at, user_guid, user_id].hash
|
510
|
+
[account_guid, account_id, amount, category, category_guid, check_number_string, created_at, currency_code, date, description, extended_transaction_type, guid, id, is_bill_pay, is_direct_deposit, is_expense, is_fee, is_income, is_international, is_overdraft_fee, is_payroll_advance, is_recurring, is_subscription, latitude, localized_description, localized_memo, longitude, member_guid, member_is_managed_by_user, memo, merchant_category_code, merchant_guid, merchant_location_guid, metadata, original_description, posted_at, status, top_level_category, transacted_at, type, updated_at, user_guid, user_id].hash
|
456
511
|
end
|
457
512
|
|
458
513
|
# Builds the object from hash
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -63,6 +63,10 @@ module MxPlatformRuby
|
|
63
63
|
# List of attributes with nullable: true
|
64
64
|
def self.openapi_nullable
|
65
65
|
Set.new([
|
66
|
+
:'created_at',
|
67
|
+
:'description',
|
68
|
+
:'match_description',
|
69
|
+
:'updated_at',
|
66
70
|
])
|
67
71
|
end
|
68
72
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -47,6 +47,8 @@ module MxPlatformRuby
|
|
47
47
|
# List of attributes with nullable: true
|
48
48
|
def self.openapi_nullable
|
49
49
|
Set.new([
|
50
|
+
:'description',
|
51
|
+
:'match_description'
|
50
52
|
])
|
51
53
|
end
|
52
54
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -55,6 +55,10 @@ module MxPlatformRuby
|
|
55
55
|
# List of attributes with nullable: true
|
56
56
|
def self.openapi_nullable
|
57
57
|
Set.new([
|
58
|
+
:'email',
|
59
|
+
:'id',
|
60
|
+
:'is_disabled',
|
61
|
+
:'metadata'
|
58
62
|
])
|
59
63
|
end
|
60
64
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: 0.1.0
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
OpenAPI Generator version: 5.
|
9
|
+
OpenAPI Generator version: 5.3.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -47,6 +47,9 @@ module MxPlatformRuby
|
|
47
47
|
# List of attributes with nullable: true
|
48
48
|
def self.openapi_nullable
|
49
49
|
Set.new([
|
50
|
+
:'type',
|
51
|
+
:'url',
|
52
|
+
:'user_id'
|
50
53
|
])
|
51
54
|
end
|
52
55
|
|
data/lib/mx-platform-ruby.rb
CHANGED
data/mx-platform-ruby.gemspec
CHANGED
data/openapi/config.yml
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
*This project is currently in **Beta**. Please open up an issue [here](https://github.com/mxenabled/mx-platform-ruby/issues) to report issues using the MX Platform
|
1
|
+
*This project is currently in **Beta**. Please open up an issue [here](https://github.com/mxenabled/mx-platform-ruby/issues) to report issues using the MX Platform Ruby library.*
|
2
2
|
|
3
|
-
#
|
3
|
+
# MX Platform Ruby
|
4
4
|
|
5
|
-
|
5
|
+
The [MX Platform API](https://www.mx.com/products/platform-api) is a powerful, fully-featured API designed to make aggregating and enhancing financial data easy and reliable. It can seamlessly connect your app or website to tens of thousands of financial institutions.
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
## Documentation
|
8
|
+
|
9
|
+
Examples for the API endpoints can be found [here.](https://docs.mx.com/api)
|
10
10
|
|
11
|
-
|
11
|
+
## Requirements
|
12
12
|
|
13
|
-
-
|
13
|
+
- Ruby >= 2.6
|
14
14
|
|
15
15
|
## Installation
|
16
16
|
|
@@ -22,31 +22,28 @@ gem 'mx-platform-ruby'
|
|
22
22
|
|
23
23
|
And then execute:
|
24
24
|
```shell
|
25
|
-
|
25
|
+
bundle
|
26
26
|
```
|
27
27
|
|
28
28
|
Or install it yourself with:
|
29
29
|
```shell
|
30
|
-
|
30
|
+
gem install mx-platform-ruby
|
31
31
|
```
|
32
32
|
|
33
33
|
## Getting Started
|
34
34
|
|
35
35
|
In order to make requests, you will need to [sign up](https://dashboard.mx.com/sign_up) for the MX Platform API and get a `Client ID` and `API Key`.
|
36
36
|
|
37
|
-
Please follow the [installation](#installation) procedure and then run the following code:
|
38
|
-
|
37
|
+
Please follow the [installation](#installation) procedure and then run the following code to create your first User:
|
39
38
|
```ruby
|
40
|
-
# Load the gem
|
41
39
|
require 'mx-platform-ruby'
|
42
40
|
|
43
|
-
# setup authorization
|
44
41
|
MxPlatformRuby.configure do |config|
|
45
|
-
# Configure
|
46
|
-
config.username = 'Your Client ID
|
47
|
-
config.password = 'Your API Key
|
42
|
+
# Configure with your Client ID/API Key from https://dashboard.mx.com
|
43
|
+
config.username = 'Your Client ID'
|
44
|
+
config.password = 'Your API Key'
|
48
45
|
|
49
|
-
# Configure
|
46
|
+
# Configure environment. 0 for production, 1 for development
|
50
47
|
config.server_index = 1
|
51
48
|
end
|
52
49
|
|
@@ -58,7 +55,6 @@ user_create_request_body = MxPlatformRuby::UserCreateRequestBody.new(
|
|
58
55
|
)
|
59
56
|
|
60
57
|
begin
|
61
|
-
# Create user
|
62
58
|
result = api_instance.create_user(user_create_request_body)
|
63
59
|
p result
|
64
60
|
rescue MxPlatformRuby::ApiError => e
|
@@ -66,6 +62,19 @@ rescue MxPlatformRuby::ApiError => e
|
|
66
62
|
end
|
67
63
|
```
|
68
64
|
|
69
|
-
##
|
65
|
+
## Development
|
66
|
+
|
67
|
+
This project was generated by the [OpenAPI Generator](https://openapi-generator.tech). To generate this library, verify you have the latest version of the `openapi-generator-cli` found [here.](https://github.com/OpenAPITools/openapi-generator#17---npm)
|
68
|
+
|
69
|
+
Running the following command in this repo's directory will generate this library using the [MX Platform API OpenAPI spec](https://github.com/mxenabled/openapi/blob/master/openapi/mx_platform_api_beta.yml) with our [configuration and templates.](https://github.com/mxenabled/mx-platform-ruby/tree/master/openapi)
|
70
|
+
```shell
|
71
|
+
openapi-generator-cli generate \
|
72
|
+
-i https://raw.githubusercontent.com/mxenabled/openapi/master/openapi/mx_platform_api_beta.yml \
|
73
|
+
-g ruby \
|
74
|
+
-c ./openapi/config.yml \
|
75
|
+
-t ./openapi/templates
|
76
|
+
```
|
77
|
+
|
78
|
+
## Contributing
|
70
79
|
|
71
|
-
|
80
|
+
Please [open an issue](https://github.com/mxenabled/mx-platform-ruby/issues) or [submit a pull request.](https://github.com/mxenabled/mx-platform-ruby/pulls)
|