mx-platform-ruby 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/README.md +1 -1
  4. data/docs/AccountResponse.md +15 -1
  5. data/docs/ManagedAccountCreateRequest.md +78 -0
  6. data/docs/ManagedAccountCreateRequestBody.md +18 -0
  7. data/docs/ManagedAccountUpdateRequest.md +78 -0
  8. data/docs/ManagedAccountUpdateRequestBody.md +18 -0
  9. data/docs/ManagedMemberCreateRequest.md +24 -0
  10. data/docs/ManagedMemberCreateRequestBody.md +18 -0
  11. data/docs/ManagedMemberUpdateRequest.md +22 -0
  12. data/docs/ManagedMemberUpdateRequestBody.md +18 -0
  13. data/docs/ManagedTransactionCreateRequest.md +56 -0
  14. data/docs/ManagedTransactionCreateRequestBody.md +18 -0
  15. data/docs/ManagedTransactionUpdateRequest.md +56 -0
  16. data/docs/ManagedTransactionUpdateRequestBody.md +18 -0
  17. data/docs/MemberResponse.md +5 -1
  18. data/docs/MerchantLocationResponse.md +40 -0
  19. data/docs/MerchantLocationResponseBody.md +18 -0
  20. data/docs/MxPlatformApi.md +1397 -119
  21. data/docs/TransactionResponse.md +11 -1
  22. data/lib/mx-platform-ruby/api/mx_platform_api.rb +1379 -125
  23. data/lib/mx-platform-ruby/models/account_response.rb +67 -4
  24. data/lib/mx-platform-ruby/models/managed_account_create_request.rb +503 -0
  25. data/lib/mx-platform-ruby/models/managed_account_create_request_body.rb +218 -0
  26. data/lib/mx-platform-ruby/models/managed_account_update_request.rb +488 -0
  27. data/lib/mx-platform-ruby/models/managed_account_update_request_body.rb +218 -0
  28. data/lib/mx-platform-ruby/models/managed_member_create_request.rb +250 -0
  29. data/lib/mx-platform-ruby/models/managed_member_create_request_body.rb +218 -0
  30. data/lib/mx-platform-ruby/models/managed_member_update_request.rb +236 -0
  31. data/lib/mx-platform-ruby/models/managed_member_update_request_body.rb +218 -0
  32. data/lib/mx-platform-ruby/models/managed_transaction_create_request.rb +414 -0
  33. data/lib/mx-platform-ruby/models/managed_transaction_create_request_body.rb +218 -0
  34. data/lib/mx-platform-ruby/models/managed_transaction_update_request.rb +389 -0
  35. data/lib/mx-platform-ruby/models/managed_transaction_update_request_body.rb +218 -0
  36. data/lib/mx-platform-ruby/models/member_response.rb +22 -4
  37. data/lib/mx-platform-ruby/models/merchant_location_response.rb +317 -0
  38. data/lib/mx-platform-ruby/models/merchant_location_response_body.rb +218 -0
  39. data/lib/mx-platform-ruby/models/transaction_response.rb +49 -4
  40. data/lib/mx-platform-ruby/version.rb +1 -1
  41. data/lib/mx-platform-ruby.rb +14 -0
  42. data/openapi/config.yml +1 -1
  43. data/spec/api/mx_platform_api_spec.rb +237 -0
  44. data/spec/models/account_response_spec.rb +42 -0
  45. data/spec/models/managed_account_create_request_body_spec.rb +34 -0
  46. data/spec/models/managed_account_create_request_spec.rb +214 -0
  47. data/spec/models/managed_account_update_request_body_spec.rb +34 -0
  48. data/spec/models/managed_account_update_request_spec.rb +214 -0
  49. data/spec/models/managed_member_create_request_body_spec.rb +34 -0
  50. data/spec/models/managed_member_create_request_spec.rb +52 -0
  51. data/spec/models/managed_member_update_request_body_spec.rb +34 -0
  52. data/spec/models/managed_member_update_request_spec.rb +46 -0
  53. data/spec/models/managed_transaction_create_request_body_spec.rb +34 -0
  54. data/spec/models/managed_transaction_create_request_spec.rb +148 -0
  55. data/spec/models/managed_transaction_update_request_body_spec.rb +34 -0
  56. data/spec/models/managed_transaction_update_request_spec.rb +148 -0
  57. data/spec/models/member_response_spec.rb +12 -0
  58. data/spec/models/merchant_location_response_body_spec.rb +34 -0
  59. data/spec/models/merchant_location_response_spec.rb +100 -0
  60. data/spec/models/transaction_response_spec.rb +30 -0
  61. metadata +136 -80
@@ -47,6 +47,8 @@ module MxPlatformRuby
47
47
 
48
48
  attr_accessor :id
49
49
 
50
+ attr_accessor :imported_at
51
+
50
52
  attr_accessor :institution_code
51
53
 
52
54
  attr_accessor :insured_name
@@ -67,12 +69,20 @@ module MxPlatformRuby
67
69
 
68
70
  attr_accessor :member_guid
69
71
 
72
+ attr_accessor :member_id
73
+
74
+ attr_accessor :member_is_managed_by_user
75
+
76
+ attr_accessor :metadata
77
+
70
78
  attr_accessor :minimum_balance
71
79
 
72
80
  attr_accessor :minimum_payment
73
81
 
74
82
  attr_accessor :name
75
83
 
84
+ attr_accessor :nickname
85
+
76
86
  attr_accessor :original_balance
77
87
 
78
88
  attr_accessor :pay_out_amount
@@ -83,6 +93,8 @@ module MxPlatformRuby
83
93
 
84
94
  attr_accessor :premium_amount
85
95
 
96
+ attr_accessor :routing_number
97
+
86
98
  attr_accessor :started_on
87
99
 
88
100
  attr_accessor :subtype
@@ -95,6 +107,8 @@ module MxPlatformRuby
95
107
 
96
108
  attr_accessor :user_guid
97
109
 
110
+ attr_accessor :user_id
111
+
98
112
  # Attribute mapping from ruby-style variable name to JSON key.
99
113
  def self.attribute_map
100
114
  {
@@ -114,6 +128,7 @@ module MxPlatformRuby
114
128
  :'guid' => :'guid',
115
129
  :'holdings_value' => :'holdings_value',
116
130
  :'id' => :'id',
131
+ :'imported_at' => :'imported_at',
117
132
  :'institution_code' => :'institution_code',
118
133
  :'insured_name' => :'insured_name',
119
134
  :'interest_rate' => :'interest_rate',
@@ -124,20 +139,26 @@ module MxPlatformRuby
124
139
  :'loan_amount' => :'loan_amount',
125
140
  :'matures_on' => :'matures_on',
126
141
  :'member_guid' => :'member_guid',
142
+ :'member_id' => :'member_id',
143
+ :'member_is_managed_by_user' => :'member_is_managed_by_user',
144
+ :'metadata' => :'metadata',
127
145
  :'minimum_balance' => :'minimum_balance',
128
146
  :'minimum_payment' => :'minimum_payment',
129
147
  :'name' => :'name',
148
+ :'nickname' => :'nickname',
130
149
  :'original_balance' => :'original_balance',
131
150
  :'pay_out_amount' => :'pay_out_amount',
132
151
  :'payment_due_at' => :'payment_due_at',
133
152
  :'payoff_balance' => :'payoff_balance',
134
153
  :'premium_amount' => :'premium_amount',
154
+ :'routing_number' => :'routing_number',
135
155
  :'started_on' => :'started_on',
136
156
  :'subtype' => :'subtype',
137
157
  :'total_account_value' => :'total_account_value',
138
158
  :'type' => :'type',
139
159
  :'updated_at' => :'updated_at',
140
- :'user_guid' => :'user_guid'
160
+ :'user_guid' => :'user_guid',
161
+ :'user_id' => :'user_id'
141
162
  }
142
163
  end
143
164
 
@@ -165,6 +186,7 @@ module MxPlatformRuby
165
186
  :'guid' => :'String',
166
187
  :'holdings_value' => :'Float',
167
188
  :'id' => :'String',
189
+ :'imported_at' => :'String',
168
190
  :'institution_code' => :'String',
169
191
  :'insured_name' => :'String',
170
192
  :'interest_rate' => :'Float',
@@ -175,20 +197,26 @@ module MxPlatformRuby
175
197
  :'loan_amount' => :'Float',
176
198
  :'matures_on' => :'String',
177
199
  :'member_guid' => :'String',
200
+ :'member_id' => :'String',
201
+ :'member_is_managed_by_user' => :'Boolean',
202
+ :'metadata' => :'String',
178
203
  :'minimum_balance' => :'Float',
179
204
  :'minimum_payment' => :'Float',
180
205
  :'name' => :'String',
206
+ :'nickname' => :'String',
181
207
  :'original_balance' => :'Float',
182
208
  :'pay_out_amount' => :'Float',
183
209
  :'payment_due_at' => :'String',
184
210
  :'payoff_balance' => :'Float',
185
211
  :'premium_amount' => :'Float',
212
+ :'routing_number' => :'String',
186
213
  :'started_on' => :'String',
187
214
  :'subtype' => :'String',
188
215
  :'total_account_value' => :'Float',
189
216
  :'type' => :'String',
190
217
  :'updated_at' => :'String',
191
- :'user_guid' => :'String'
218
+ :'user_guid' => :'String',
219
+ :'user_id' => :'String'
192
220
  }
193
221
  end
194
222
 
@@ -277,6 +305,10 @@ module MxPlatformRuby
277
305
  self.id = attributes[:'id']
278
306
  end
279
307
 
308
+ if attributes.key?(:'imported_at')
309
+ self.imported_at = attributes[:'imported_at']
310
+ end
311
+
280
312
  if attributes.key?(:'institution_code')
281
313
  self.institution_code = attributes[:'institution_code']
282
314
  end
@@ -317,6 +349,18 @@ module MxPlatformRuby
317
349
  self.member_guid = attributes[:'member_guid']
318
350
  end
319
351
 
352
+ if attributes.key?(:'member_id')
353
+ self.member_id = attributes[:'member_id']
354
+ end
355
+
356
+ if attributes.key?(:'member_is_managed_by_user')
357
+ self.member_is_managed_by_user = attributes[:'member_is_managed_by_user']
358
+ end
359
+
360
+ if attributes.key?(:'metadata')
361
+ self.metadata = attributes[:'metadata']
362
+ end
363
+
320
364
  if attributes.key?(:'minimum_balance')
321
365
  self.minimum_balance = attributes[:'minimum_balance']
322
366
  end
@@ -329,6 +373,10 @@ module MxPlatformRuby
329
373
  self.name = attributes[:'name']
330
374
  end
331
375
 
376
+ if attributes.key?(:'nickname')
377
+ self.nickname = attributes[:'nickname']
378
+ end
379
+
332
380
  if attributes.key?(:'original_balance')
333
381
  self.original_balance = attributes[:'original_balance']
334
382
  end
@@ -349,6 +397,10 @@ module MxPlatformRuby
349
397
  self.premium_amount = attributes[:'premium_amount']
350
398
  end
351
399
 
400
+ if attributes.key?(:'routing_number')
401
+ self.routing_number = attributes[:'routing_number']
402
+ end
403
+
352
404
  if attributes.key?(:'started_on')
353
405
  self.started_on = attributes[:'started_on']
354
406
  end
@@ -372,6 +424,10 @@ module MxPlatformRuby
372
424
  if attributes.key?(:'user_guid')
373
425
  self.user_guid = attributes[:'user_guid']
374
426
  end
427
+
428
+ if attributes.key?(:'user_id')
429
+ self.user_id = attributes[:'user_id']
430
+ end
375
431
  end
376
432
 
377
433
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -408,6 +464,7 @@ module MxPlatformRuby
408
464
  guid == o.guid &&
409
465
  holdings_value == o.holdings_value &&
410
466
  id == o.id &&
467
+ imported_at == o.imported_at &&
411
468
  institution_code == o.institution_code &&
412
469
  insured_name == o.insured_name &&
413
470
  interest_rate == o.interest_rate &&
@@ -418,20 +475,26 @@ module MxPlatformRuby
418
475
  loan_amount == o.loan_amount &&
419
476
  matures_on == o.matures_on &&
420
477
  member_guid == o.member_guid &&
478
+ member_id == o.member_id &&
479
+ member_is_managed_by_user == o.member_is_managed_by_user &&
480
+ metadata == o.metadata &&
421
481
  minimum_balance == o.minimum_balance &&
422
482
  minimum_payment == o.minimum_payment &&
423
483
  name == o.name &&
484
+ nickname == o.nickname &&
424
485
  original_balance == o.original_balance &&
425
486
  pay_out_amount == o.pay_out_amount &&
426
487
  payment_due_at == o.payment_due_at &&
427
488
  payoff_balance == o.payoff_balance &&
428
489
  premium_amount == o.premium_amount &&
490
+ routing_number == o.routing_number &&
429
491
  started_on == o.started_on &&
430
492
  subtype == o.subtype &&
431
493
  total_account_value == o.total_account_value &&
432
494
  type == o.type &&
433
495
  updated_at == o.updated_at &&
434
- user_guid == o.user_guid
496
+ user_guid == o.user_guid &&
497
+ user_id == o.user_id
435
498
  end
436
499
 
437
500
  # @see the `==` method
@@ -443,7 +506,7 @@ module MxPlatformRuby
443
506
  # Calculates hash code according to all attributes.
444
507
  # @return [Integer] Hash code
445
508
  def hash
446
- [account_number, apr, apy, available_balance, available_credit, balance, cash_balance, cash_surrender_value, created_at, credit_limit, currency_code, day_payment_is_due, death_benefit, guid, holdings_value, id, institution_code, insured_name, interest_rate, is_closed, is_hidden, last_payment, last_payment_at, loan_amount, matures_on, member_guid, minimum_balance, minimum_payment, name, original_balance, pay_out_amount, payment_due_at, payoff_balance, premium_amount, started_on, subtype, total_account_value, type, updated_at, user_guid].hash
509
+ [account_number, apr, apy, available_balance, available_credit, balance, cash_balance, cash_surrender_value, created_at, credit_limit, currency_code, day_payment_is_due, death_benefit, guid, holdings_value, id, imported_at, institution_code, insured_name, interest_rate, is_closed, is_hidden, last_payment, last_payment_at, loan_amount, matures_on, member_guid, member_id, member_is_managed_by_user, metadata, minimum_balance, minimum_payment, name, nickname, original_balance, pay_out_amount, payment_due_at, payoff_balance, premium_amount, routing_number, started_on, subtype, total_account_value, type, updated_at, user_guid, user_id].hash
447
510
  end
448
511
 
449
512
  # Builds the object from hash