mx-platform-ruby 0.42.0 → 0.43.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/docs/MicrodepositRequest.md +30 -0
  4. data/docs/MicrodepositRequestBody.md +18 -0
  5. data/docs/MicrodepositResponse.md +44 -0
  6. data/docs/MicrodepositResponseBody.md +18 -0
  7. data/docs/MicrodepositVerifyRequest.md +20 -0
  8. data/docs/MicrodepositVerifyRequestBody.md +18 -0
  9. data/docs/MicrodepositsApi.md +371 -0
  10. data/docs/MicrodepositsResponseBody.md +20 -0
  11. data/docs/TransactionCreateRequest.md +40 -0
  12. data/docs/TransactionCreateRequestBody.md +18 -0
  13. data/docs/TransactionCreateResponseBody.md +104 -0
  14. data/docs/TransactionsApi.md +82 -0
  15. data/lib/mx-platform-ruby/api/microdeposits_api.rb +365 -0
  16. data/lib/mx-platform-ruby/api/transactions_api.rb +102 -0
  17. data/lib/mx-platform-ruby/models/microdeposit_request.rb +289 -0
  18. data/lib/mx-platform-ruby/models/microdeposit_request_body.rb +214 -0
  19. data/lib/mx-platform-ruby/models/microdeposit_response.rb +331 -0
  20. data/lib/mx-platform-ruby/models/microdeposit_response_body.rb +214 -0
  21. data/lib/mx-platform-ruby/models/microdeposit_verify_request.rb +223 -0
  22. data/lib/mx-platform-ruby/models/microdeposit_verify_request_body.rb +214 -0
  23. data/lib/mx-platform-ruby/models/microdeposits_response_body.rb +225 -0
  24. data/lib/mx-platform-ruby/models/transaction_create_request.rb +344 -0
  25. data/lib/mx-platform-ruby/models/transaction_create_request_body.rb +214 -0
  26. data/lib/mx-platform-ruby/models/transaction_create_response_body.rb +642 -0
  27. data/lib/mx-platform-ruby/version.rb +1 -1
  28. data/lib/mx-platform-ruby.rb +12 -0
  29. data/openapi/config.yml +1 -1
  30. data/spec/api/microdeposits_api_spec.rb +99 -0
  31. data/spec/api/transactions_api_spec.rb +49 -0
  32. data/spec/models/microdeposit_request_body_spec.rb +34 -0
  33. data/spec/models/microdeposit_request_spec.rb +70 -0
  34. data/spec/models/microdeposit_response_body_spec.rb +34 -0
  35. data/spec/models/microdeposit_response_spec.rb +112 -0
  36. data/spec/models/microdeposit_verify_request_body_spec.rb +34 -0
  37. data/spec/models/microdeposit_verify_request_spec.rb +40 -0
  38. data/spec/models/microdeposits_response_body_spec.rb +40 -0
  39. data/spec/models/transaction_create_request_body_spec.rb +34 -0
  40. data/spec/models/transaction_create_request_spec.rb +100 -0
  41. data/spec/models/transaction_create_response_body_spec.rb +292 -0
  42. metadata +195 -147
@@ -0,0 +1,642 @@
1
+ =begin
2
+ #MX Platform API
3
+
4
+ #The MX 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.
5
+
6
+ The version of the OpenAPI document: 0.1.0
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 7.0.1
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module MxPlatformRuby
17
+ class TransactionCreateResponseBody
18
+ attr_accessor :account_guid
19
+
20
+ attr_accessor :account_id
21
+
22
+ attr_accessor :amount
23
+
24
+ attr_accessor :category
25
+
26
+ attr_accessor :category_guid
27
+
28
+ attr_accessor :check_number_string
29
+
30
+ attr_accessor :created_at
31
+
32
+ attr_accessor :currency_code
33
+
34
+ attr_accessor :date
35
+
36
+ attr_accessor :description
37
+
38
+ attr_accessor :extended_transaction_type
39
+
40
+ attr_accessor :guid
41
+
42
+ attr_accessor :id
43
+
44
+ attr_accessor :is_bill_pay
45
+
46
+ attr_accessor :is_direct_deposit
47
+
48
+ attr_accessor :is_expense
49
+
50
+ attr_accessor :is_fee
51
+
52
+ attr_accessor :is_income
53
+
54
+ attr_accessor :is_international
55
+
56
+ attr_accessor :is_manual
57
+
58
+ attr_accessor :is_overdraft_fee
59
+
60
+ attr_accessor :is_payroll_advance
61
+
62
+ attr_accessor :is_recurring
63
+
64
+ attr_accessor :is_subscription
65
+
66
+ attr_accessor :latitude
67
+
68
+ attr_accessor :localized_description
69
+
70
+ attr_accessor :localized_memo
71
+
72
+ attr_accessor :longitude
73
+
74
+ attr_accessor :member_guid
75
+
76
+ attr_accessor :member_is_managed_by_user
77
+
78
+ attr_accessor :memo
79
+
80
+ attr_accessor :merchant_category_code
81
+
82
+ attr_accessor :merchant_guid
83
+
84
+ attr_accessor :merchant_location_guid
85
+
86
+ attr_accessor :metadata
87
+
88
+ attr_accessor :original_description
89
+
90
+ attr_accessor :posted_at
91
+
92
+ attr_accessor :status
93
+
94
+ attr_accessor :top_level_category
95
+
96
+ attr_accessor :transacted_at
97
+
98
+ attr_accessor :type
99
+
100
+ attr_accessor :updated_at
101
+
102
+ attr_accessor :user_guid
103
+
104
+ attr_accessor :user_id
105
+
106
+ # Attribute mapping from ruby-style variable name to JSON key.
107
+ def self.attribute_map
108
+ {
109
+ :'account_guid' => :'account_guid',
110
+ :'account_id' => :'account_id',
111
+ :'amount' => :'amount',
112
+ :'category' => :'category',
113
+ :'category_guid' => :'category_guid',
114
+ :'check_number_string' => :'check_number_string',
115
+ :'created_at' => :'created_at',
116
+ :'currency_code' => :'currency_code',
117
+ :'date' => :'date',
118
+ :'description' => :'description',
119
+ :'extended_transaction_type' => :'extended_transaction_type',
120
+ :'guid' => :'guid',
121
+ :'id' => :'id',
122
+ :'is_bill_pay' => :'is_bill_pay',
123
+ :'is_direct_deposit' => :'is_direct_deposit',
124
+ :'is_expense' => :'is_expense',
125
+ :'is_fee' => :'is_fee',
126
+ :'is_income' => :'is_income',
127
+ :'is_international' => :'is_international',
128
+ :'is_manual' => :'is_manual',
129
+ :'is_overdraft_fee' => :'is_overdraft_fee',
130
+ :'is_payroll_advance' => :'is_payroll_advance',
131
+ :'is_recurring' => :'is_recurring',
132
+ :'is_subscription' => :'is_subscription',
133
+ :'latitude' => :'latitude',
134
+ :'localized_description' => :'localized_description',
135
+ :'localized_memo' => :'localized_memo',
136
+ :'longitude' => :'longitude',
137
+ :'member_guid' => :'member_guid',
138
+ :'member_is_managed_by_user' => :'member_is_managed_by_user',
139
+ :'memo' => :'memo',
140
+ :'merchant_category_code' => :'merchant_category_code',
141
+ :'merchant_guid' => :'merchant_guid',
142
+ :'merchant_location_guid' => :'merchant_location_guid',
143
+ :'metadata' => :'metadata',
144
+ :'original_description' => :'original_description',
145
+ :'posted_at' => :'posted_at',
146
+ :'status' => :'status',
147
+ :'top_level_category' => :'top_level_category',
148
+ :'transacted_at' => :'transacted_at',
149
+ :'type' => :'type',
150
+ :'updated_at' => :'updated_at',
151
+ :'user_guid' => :'user_guid',
152
+ :'user_id' => :'user_id'
153
+ }
154
+ end
155
+
156
+ # Returns all the JSON keys this model knows about
157
+ def self.acceptable_attributes
158
+ attribute_map.values
159
+ end
160
+
161
+ # Attribute type mapping.
162
+ def self.openapi_types
163
+ {
164
+ :'account_guid' => :'String',
165
+ :'account_id' => :'String',
166
+ :'amount' => :'Float',
167
+ :'category' => :'String',
168
+ :'category_guid' => :'String',
169
+ :'check_number_string' => :'String',
170
+ :'created_at' => :'String',
171
+ :'currency_code' => :'String',
172
+ :'date' => :'String',
173
+ :'description' => :'String',
174
+ :'extended_transaction_type' => :'String',
175
+ :'guid' => :'String',
176
+ :'id' => :'String',
177
+ :'is_bill_pay' => :'Boolean',
178
+ :'is_direct_deposit' => :'Boolean',
179
+ :'is_expense' => :'Boolean',
180
+ :'is_fee' => :'Boolean',
181
+ :'is_income' => :'Boolean',
182
+ :'is_international' => :'Boolean',
183
+ :'is_manual' => :'Boolean',
184
+ :'is_overdraft_fee' => :'Boolean',
185
+ :'is_payroll_advance' => :'Boolean',
186
+ :'is_recurring' => :'Boolean',
187
+ :'is_subscription' => :'Boolean',
188
+ :'latitude' => :'Float',
189
+ :'localized_description' => :'String',
190
+ :'localized_memo' => :'String',
191
+ :'longitude' => :'Float',
192
+ :'member_guid' => :'String',
193
+ :'member_is_managed_by_user' => :'Boolean',
194
+ :'memo' => :'String',
195
+ :'merchant_category_code' => :'Integer',
196
+ :'merchant_guid' => :'String',
197
+ :'merchant_location_guid' => :'String',
198
+ :'metadata' => :'String',
199
+ :'original_description' => :'String',
200
+ :'posted_at' => :'String',
201
+ :'status' => :'String',
202
+ :'top_level_category' => :'String',
203
+ :'transacted_at' => :'String',
204
+ :'type' => :'String',
205
+ :'updated_at' => :'String',
206
+ :'user_guid' => :'String',
207
+ :'user_id' => :'String'
208
+ }
209
+ end
210
+
211
+ # List of attributes with nullable: true
212
+ def self.openapi_nullable
213
+ Set.new([
214
+ :'account_guid',
215
+ :'account_id',
216
+ :'category',
217
+ :'category_guid',
218
+ :'check_number_string',
219
+ :'created_at',
220
+ :'currency_code',
221
+ :'date',
222
+ :'description',
223
+ :'extended_transaction_type',
224
+ :'guid',
225
+ :'id',
226
+ :'is_bill_pay',
227
+ :'is_direct_deposit',
228
+ :'is_expense',
229
+ :'is_fee',
230
+ :'is_income',
231
+ :'is_international',
232
+ :'is_manual',
233
+ :'is_overdraft_fee',
234
+ :'is_payroll_advance',
235
+ :'is_recurring',
236
+ :'is_subscription',
237
+ :'latitude',
238
+ :'localized_description',
239
+ :'localized_memo',
240
+ :'longitude',
241
+ :'member_guid',
242
+ :'member_is_managed_by_user',
243
+ :'memo',
244
+ :'merchant_category_code',
245
+ :'merchant_guid',
246
+ :'merchant_location_guid',
247
+ :'metadata',
248
+ :'original_description',
249
+ :'posted_at',
250
+ :'status',
251
+ :'top_level_category',
252
+ :'transacted_at',
253
+ :'user_guid',
254
+ :'user_id'
255
+ ])
256
+ end
257
+
258
+ # Initializes the object
259
+ # @param [Hash] attributes Model attributes in the form of hash
260
+ def initialize(attributes = {})
261
+ if (!attributes.is_a?(Hash))
262
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::TransactionCreateResponseBody` initialize method"
263
+ end
264
+
265
+ # check to see if the attribute exists and convert string to symbol for hash key
266
+ attributes = attributes.each_with_object({}) { |(k, v), h|
267
+ if (!self.class.attribute_map.key?(k.to_sym))
268
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::TransactionCreateResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
269
+ end
270
+ h[k.to_sym] = v
271
+ }
272
+
273
+ if attributes.key?(:'account_guid')
274
+ self.account_guid = attributes[:'account_guid']
275
+ end
276
+
277
+ if attributes.key?(:'account_id')
278
+ self.account_id = attributes[:'account_id']
279
+ end
280
+
281
+ if attributes.key?(:'amount')
282
+ self.amount = attributes[:'amount']
283
+ end
284
+
285
+ if attributes.key?(:'category')
286
+ self.category = attributes[:'category']
287
+ end
288
+
289
+ if attributes.key?(:'category_guid')
290
+ self.category_guid = attributes[:'category_guid']
291
+ end
292
+
293
+ if attributes.key?(:'check_number_string')
294
+ self.check_number_string = attributes[:'check_number_string']
295
+ end
296
+
297
+ if attributes.key?(:'created_at')
298
+ self.created_at = attributes[:'created_at']
299
+ end
300
+
301
+ if attributes.key?(:'currency_code')
302
+ self.currency_code = attributes[:'currency_code']
303
+ end
304
+
305
+ if attributes.key?(:'date')
306
+ self.date = attributes[:'date']
307
+ end
308
+
309
+ if attributes.key?(:'description')
310
+ self.description = attributes[:'description']
311
+ end
312
+
313
+ if attributes.key?(:'extended_transaction_type')
314
+ self.extended_transaction_type = attributes[:'extended_transaction_type']
315
+ end
316
+
317
+ if attributes.key?(:'guid')
318
+ self.guid = attributes[:'guid']
319
+ end
320
+
321
+ if attributes.key?(:'id')
322
+ self.id = attributes[:'id']
323
+ end
324
+
325
+ if attributes.key?(:'is_bill_pay')
326
+ self.is_bill_pay = attributes[:'is_bill_pay']
327
+ end
328
+
329
+ if attributes.key?(:'is_direct_deposit')
330
+ self.is_direct_deposit = attributes[:'is_direct_deposit']
331
+ end
332
+
333
+ if attributes.key?(:'is_expense')
334
+ self.is_expense = attributes[:'is_expense']
335
+ end
336
+
337
+ if attributes.key?(:'is_fee')
338
+ self.is_fee = attributes[:'is_fee']
339
+ end
340
+
341
+ if attributes.key?(:'is_income')
342
+ self.is_income = attributes[:'is_income']
343
+ end
344
+
345
+ if attributes.key?(:'is_international')
346
+ self.is_international = attributes[:'is_international']
347
+ end
348
+
349
+ if attributes.key?(:'is_manual')
350
+ self.is_manual = attributes[:'is_manual']
351
+ end
352
+
353
+ if attributes.key?(:'is_overdraft_fee')
354
+ self.is_overdraft_fee = attributes[:'is_overdraft_fee']
355
+ end
356
+
357
+ if attributes.key?(:'is_payroll_advance')
358
+ self.is_payroll_advance = attributes[:'is_payroll_advance']
359
+ end
360
+
361
+ if attributes.key?(:'is_recurring')
362
+ self.is_recurring = attributes[:'is_recurring']
363
+ end
364
+
365
+ if attributes.key?(:'is_subscription')
366
+ self.is_subscription = attributes[:'is_subscription']
367
+ end
368
+
369
+ if attributes.key?(:'latitude')
370
+ self.latitude = attributes[:'latitude']
371
+ end
372
+
373
+ if attributes.key?(:'localized_description')
374
+ self.localized_description = attributes[:'localized_description']
375
+ end
376
+
377
+ if attributes.key?(:'localized_memo')
378
+ self.localized_memo = attributes[:'localized_memo']
379
+ end
380
+
381
+ if attributes.key?(:'longitude')
382
+ self.longitude = attributes[:'longitude']
383
+ end
384
+
385
+ if attributes.key?(:'member_guid')
386
+ self.member_guid = attributes[:'member_guid']
387
+ end
388
+
389
+ if attributes.key?(:'member_is_managed_by_user')
390
+ self.member_is_managed_by_user = attributes[:'member_is_managed_by_user']
391
+ end
392
+
393
+ if attributes.key?(:'memo')
394
+ self.memo = attributes[:'memo']
395
+ end
396
+
397
+ if attributes.key?(:'merchant_category_code')
398
+ self.merchant_category_code = attributes[:'merchant_category_code']
399
+ end
400
+
401
+ if attributes.key?(:'merchant_guid')
402
+ self.merchant_guid = attributes[:'merchant_guid']
403
+ end
404
+
405
+ if attributes.key?(:'merchant_location_guid')
406
+ self.merchant_location_guid = attributes[:'merchant_location_guid']
407
+ end
408
+
409
+ if attributes.key?(:'metadata')
410
+ self.metadata = attributes[:'metadata']
411
+ end
412
+
413
+ if attributes.key?(:'original_description')
414
+ self.original_description = attributes[:'original_description']
415
+ end
416
+
417
+ if attributes.key?(:'posted_at')
418
+ self.posted_at = attributes[:'posted_at']
419
+ end
420
+
421
+ if attributes.key?(:'status')
422
+ self.status = attributes[:'status']
423
+ end
424
+
425
+ if attributes.key?(:'top_level_category')
426
+ self.top_level_category = attributes[:'top_level_category']
427
+ end
428
+
429
+ if attributes.key?(:'transacted_at')
430
+ self.transacted_at = attributes[:'transacted_at']
431
+ end
432
+
433
+ if attributes.key?(:'type')
434
+ self.type = attributes[:'type']
435
+ end
436
+
437
+ if attributes.key?(:'updated_at')
438
+ self.updated_at = attributes[:'updated_at']
439
+ end
440
+
441
+ if attributes.key?(:'user_guid')
442
+ self.user_guid = attributes[:'user_guid']
443
+ end
444
+
445
+ if attributes.key?(:'user_id')
446
+ self.user_id = attributes[:'user_id']
447
+ end
448
+ end
449
+
450
+ # Show invalid properties with the reasons. Usually used together with valid?
451
+ # @return Array for valid properties with the reasons
452
+ def list_invalid_properties
453
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
454
+ invalid_properties = Array.new
455
+ invalid_properties
456
+ end
457
+
458
+ # Check to see if the all the properties in the model are valid
459
+ # @return true if the model is valid
460
+ def valid?
461
+ warn '[DEPRECATED] the `valid?` method is obsolete'
462
+ true
463
+ end
464
+
465
+ # Checks equality by comparing each attribute.
466
+ # @param [Object] Object to be compared
467
+ def ==(o)
468
+ return true if self.equal?(o)
469
+ self.class == o.class &&
470
+ account_guid == o.account_guid &&
471
+ account_id == o.account_id &&
472
+ amount == o.amount &&
473
+ category == o.category &&
474
+ category_guid == o.category_guid &&
475
+ check_number_string == o.check_number_string &&
476
+ created_at == o.created_at &&
477
+ currency_code == o.currency_code &&
478
+ date == o.date &&
479
+ description == o.description &&
480
+ extended_transaction_type == o.extended_transaction_type &&
481
+ guid == o.guid &&
482
+ id == o.id &&
483
+ is_bill_pay == o.is_bill_pay &&
484
+ is_direct_deposit == o.is_direct_deposit &&
485
+ is_expense == o.is_expense &&
486
+ is_fee == o.is_fee &&
487
+ is_income == o.is_income &&
488
+ is_international == o.is_international &&
489
+ is_manual == o.is_manual &&
490
+ is_overdraft_fee == o.is_overdraft_fee &&
491
+ is_payroll_advance == o.is_payroll_advance &&
492
+ is_recurring == o.is_recurring &&
493
+ is_subscription == o.is_subscription &&
494
+ latitude == o.latitude &&
495
+ localized_description == o.localized_description &&
496
+ localized_memo == o.localized_memo &&
497
+ longitude == o.longitude &&
498
+ member_guid == o.member_guid &&
499
+ member_is_managed_by_user == o.member_is_managed_by_user &&
500
+ memo == o.memo &&
501
+ merchant_category_code == o.merchant_category_code &&
502
+ merchant_guid == o.merchant_guid &&
503
+ merchant_location_guid == o.merchant_location_guid &&
504
+ metadata == o.metadata &&
505
+ original_description == o.original_description &&
506
+ posted_at == o.posted_at &&
507
+ status == o.status &&
508
+ top_level_category == o.top_level_category &&
509
+ transacted_at == o.transacted_at &&
510
+ type == o.type &&
511
+ updated_at == o.updated_at &&
512
+ user_guid == o.user_guid &&
513
+ user_id == o.user_id
514
+ end
515
+
516
+ # @see the `==` method
517
+ # @param [Object] Object to be compared
518
+ def eql?(o)
519
+ self == o
520
+ end
521
+
522
+ # Calculates hash code according to all attributes.
523
+ # @return [Integer] Hash code
524
+ def hash
525
+ [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_manual, 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
526
+ end
527
+
528
+ # Builds the object from hash
529
+ # @param [Hash] attributes Model attributes in the form of hash
530
+ # @return [Object] Returns the model itself
531
+ def self.build_from_hash(attributes)
532
+ return nil unless attributes.is_a?(Hash)
533
+ attributes = attributes.transform_keys(&:to_sym)
534
+ transformed_hash = {}
535
+ openapi_types.each_pair do |key, type|
536
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
537
+ transformed_hash["#{key}"] = nil
538
+ elsif type =~ /\AArray<(.*)>/i
539
+ # check to ensure the input is an array given that the attribute
540
+ # is documented as an array but the input is not
541
+ if attributes[attribute_map[key]].is_a?(Array)
542
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
543
+ end
544
+ elsif !attributes[attribute_map[key]].nil?
545
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
546
+ end
547
+ end
548
+ new(transformed_hash)
549
+ end
550
+
551
+ # Deserializes the data based on type
552
+ # @param string type Data type
553
+ # @param string value Value to be deserialized
554
+ # @return [Object] Deserialized data
555
+ def self._deserialize(type, value)
556
+ case type.to_sym
557
+ when :Time
558
+ Time.parse(value)
559
+ when :Date
560
+ Date.parse(value)
561
+ when :String
562
+ value.to_s
563
+ when :Integer
564
+ value.to_i
565
+ when :Float
566
+ value.to_f
567
+ when :Boolean
568
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
569
+ true
570
+ else
571
+ false
572
+ end
573
+ when :Object
574
+ # generic object (usually a Hash), return directly
575
+ value
576
+ when /\AArray<(?<inner_type>.+)>\z/
577
+ inner_type = Regexp.last_match[:inner_type]
578
+ value.map { |v| _deserialize(inner_type, v) }
579
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
580
+ k_type = Regexp.last_match[:k_type]
581
+ v_type = Regexp.last_match[:v_type]
582
+ {}.tap do |hash|
583
+ value.each do |k, v|
584
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
585
+ end
586
+ end
587
+ else # model
588
+ # models (e.g. Pet) or oneOf
589
+ klass = MxPlatformRuby.const_get(type)
590
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
591
+ end
592
+ end
593
+
594
+ # Returns the string representation of the object
595
+ # @return [String] String presentation of the object
596
+ def to_s
597
+ to_hash.to_s
598
+ end
599
+
600
+ # to_body is an alias to to_hash (backward compatibility)
601
+ # @return [Hash] Returns the object in the form of hash
602
+ def to_body
603
+ to_hash
604
+ end
605
+
606
+ # Returns the object in the form of hash
607
+ # @return [Hash] Returns the object in the form of hash
608
+ def to_hash
609
+ hash = {}
610
+ self.class.attribute_map.each_pair do |attr, param|
611
+ value = self.send(attr)
612
+ if value.nil?
613
+ is_nullable = self.class.openapi_nullable.include?(attr)
614
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
615
+ end
616
+
617
+ hash[param] = _to_hash(value)
618
+ end
619
+ hash
620
+ end
621
+
622
+ # Outputs non-array value in the form of hash
623
+ # For object, use to_hash. Otherwise, just return the value
624
+ # @param [Object] value Any valid value
625
+ # @return [Hash] Returns the value in the form of hash
626
+ def _to_hash(value)
627
+ if value.is_a?(Array)
628
+ value.compact.map { |v| _to_hash(v) }
629
+ elsif value.is_a?(Hash)
630
+ {}.tap do |hash|
631
+ value.each { |k, v| hash[k] = _to_hash(v) }
632
+ end
633
+ elsif value.respond_to? :to_hash
634
+ value.to_hash
635
+ else
636
+ value
637
+ end
638
+ end
639
+
640
+ end
641
+
642
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 7.0.1
11
11
  =end
12
12
 
13
13
  module MxPlatformRuby
14
- VERSION = '0.42.0'
14
+ VERSION = '0.43.0'
15
15
  end
@@ -105,6 +105,13 @@ require 'mx-platform-ruby/models/merchant_location_response_body'
105
105
  require 'mx-platform-ruby/models/merchant_response'
106
106
  require 'mx-platform-ruby/models/merchant_response_body'
107
107
  require 'mx-platform-ruby/models/merchants_response_body'
108
+ require 'mx-platform-ruby/models/microdeposit_request'
109
+ require 'mx-platform-ruby/models/microdeposit_request_body'
110
+ require 'mx-platform-ruby/models/microdeposit_response'
111
+ require 'mx-platform-ruby/models/microdeposit_response_body'
112
+ require 'mx-platform-ruby/models/microdeposit_verify_request'
113
+ require 'mx-platform-ruby/models/microdeposit_verify_request_body'
114
+ require 'mx-platform-ruby/models/microdeposits_response_body'
108
115
  require 'mx-platform-ruby/models/monthly_cash_flow_profile_request'
109
116
  require 'mx-platform-ruby/models/monthly_cash_flow_profile_request_body'
110
117
  require 'mx-platform-ruby/models/monthly_cash_flow_response'
@@ -158,6 +165,9 @@ require 'mx-platform-ruby/models/tags_response_body'
158
165
  require 'mx-platform-ruby/models/tax_document_response'
159
166
  require 'mx-platform-ruby/models/tax_document_response_body'
160
167
  require 'mx-platform-ruby/models/tax_documents_response_body'
168
+ require 'mx-platform-ruby/models/transaction_create_request'
169
+ require 'mx-platform-ruby/models/transaction_create_request_body'
170
+ require 'mx-platform-ruby/models/transaction_create_response_body'
161
171
  require 'mx-platform-ruby/models/transaction_response'
162
172
  require 'mx-platform-ruby/models/transaction_response_body'
163
173
  require 'mx-platform-ruby/models/transaction_rule_create_request'
@@ -188,8 +198,10 @@ require 'mx-platform-ruby/models/widget_response_body'
188
198
  require 'mx-platform-ruby/api/budgets_api'
189
199
  require 'mx-platform-ruby/api/goals_api'
190
200
  require 'mx-platform-ruby/api/insights_api'
201
+ require 'mx-platform-ruby/api/microdeposits_api'
191
202
  require 'mx-platform-ruby/api/mx_platform_api'
192
203
  require 'mx-platform-ruby/api/spending_plan_api'
204
+ require 'mx-platform-ruby/api/transactions_api'
193
205
 
194
206
  module MxPlatformRuby
195
207
  class << self
data/openapi/config.yml CHANGED
@@ -6,6 +6,6 @@ gemHomepage: https://github.com/mxenabled/mx-platform-ruby
6
6
  gemLicense: MIT
7
7
  gemName: mx-platform-ruby
8
8
  gemRequiredRubyVersion: ">= 2.6"
9
- gemVersion: 0.42.0
9
+ gemVersion: 0.43.0
10
10
  library: faraday
11
11
  moduleName: MxPlatformRuby