mx-platform-ruby 1.4.0 → 1.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1d1c0ba96315b71568adedc3e2c8792cd14e6708c39b79702eb8e3ff356ab2c
4
- data.tar.gz: cd1fc779370770e9203b7ae962fcb171ef06ad11fcbbd133613cba6f4a6a88c3
3
+ metadata.gz: 85664400840d2c897fb49f8b81aeb986c85b29fc15607de4694c42754247189f
4
+ data.tar.gz: b415ccc5a8049f379db22a7a7c82a95ca84216a597fd3bc559a7b25c411784a5
5
5
  SHA512:
6
- metadata.gz: 022ea04e46532897902abda4e827ebebc7ee5748251a8865cf84f14101e07691e1e7d2b7d535a1fbbe3192b2d2dda4af87931c1b76d0f0a9d9d74771cfd16fcb
7
- data.tar.gz: 78fb046f6eb457abedba54dae28b81e0b9eaa51319bfd5b8bd2e24afa148f8c3a0ff6e7a18a531345970815d1b17135cb988b0211ce23f8db7e187d7bf7c89ba
6
+ metadata.gz: f20ad72b1c7a576f199356f6d8033df00bb31af9c9b9b7f094a5df2905a04ad8a77a688774a8e2d84de01848f8491d9412a1e54fa2e210b8af20a751896128e8
7
+ data.tar.gz: c7bf65d460c4c1ade893eeb053b187ee159fb1f4e888d3932f79d2d6ed1d354ae5b87a466961f853c358ab5b4b411a2a98b120afd3fc80698a7f199dbbfcdd15
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mx-platform-ruby (1.4.0)
4
+ mx-platform-ruby (1.6.0)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart
7
7
  marcel
@@ -19,7 +19,7 @@ GEM
19
19
  base64
20
20
  faraday-net_http (>= 2.0, < 3.1)
21
21
  ruby2_keywords (>= 0.0.4)
22
- faraday-multipart (1.1.0)
22
+ faraday-multipart (1.1.1)
23
23
  multipart-post (~> 2.0)
24
24
  faraday-net_http (3.0.2)
25
25
  jaro_winkler (1.5.6)
@@ -46,7 +46,7 @@ GEM
46
46
  rspec-core (~> 3.13.0)
47
47
  rspec-expectations (~> 3.13.0)
48
48
  rspec-mocks (~> 3.13.0)
49
- rspec-core (3.13.4)
49
+ rspec-core (3.13.5)
50
50
  rspec-support (~> 3.13.0)
51
51
  rspec-expectations (3.13.5)
52
52
  diff-lcs (>= 1.2.0, < 2.0)
@@ -5,61 +5,125 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **account_number** | **String** | | [optional] |
8
+ | **account_number_set_by** | **Integer** | | [optional] |
8
9
  | **account_ownership** | **String** | | [optional] |
9
10
  | **annuity_policy_to_date** | **String** | | [optional] |
10
11
  | **annuity_provider** | **String** | | [optional] |
11
- | **annuity_term_year** | **Float** | | [optional] |
12
+ | **annuity_term_year** | **Integer** | | [optional] |
12
13
  | **apr** | **Float** | | [optional] |
14
+ | **apr_set_by** | **Integer** | | [optional] |
13
15
  | **apy** | **Float** | | [optional] |
16
+ | **apy_set_by** | **Integer** | | [optional] |
14
17
  | **available_balance** | **Float** | | [optional] |
18
+ | **available_balance_set_by** | **Integer** | | [optional] |
15
19
  | **available_credit** | **Float** | | [optional] |
20
+ | **available_credit_set_by** | **Integer** | | [optional] |
16
21
  | **balance** | **Float** | | [optional] |
22
+ | **balance_set_by** | **Integer** | | [optional] |
23
+ | **calculated_apr** | **Float** | | [optional] |
17
24
  | **cash_balance** | **Float** | | [optional] |
25
+ | **cash_balance_set_by** | **Integer** | | [optional] |
18
26
  | **cash_surrender_value** | **Float** | | [optional] |
27
+ | **cash_surrender_value_set_by** | **Integer** | | [optional] |
19
28
  | **created_at** | **String** | | [optional] |
20
29
  | **credit_limit** | **Float** | | [optional] |
30
+ | **credit_limit_set_by** | **Integer** | | [optional] |
21
31
  | **currency_code** | **String** | | [optional] |
32
+ | **currency_code_set_by** | **Integer** | | [optional] |
22
33
  | **day_payment_is_due** | **Integer** | | [optional] |
34
+ | **day_payment_is_due_set_by** | **Integer** | | [optional] |
23
35
  | **death_benefit** | **Integer** | | [optional] |
36
+ | **death_benefit_set_by** | **Integer** | | [optional] |
24
37
  | **federal_insurance_status** | **String** | | [optional] |
38
+ | **feed_account_number** | **String** | | [optional] |
39
+ | **feed_account_subtype** | **Integer** | | [optional] |
40
+ | **feed_account_type** | **Integer** | | [optional] |
41
+ | **feed_apr** | **Float** | | [optional] |
42
+ | **feed_apy** | **Float** | | [optional] |
43
+ | **feed_available_balance** | **Float** | | [optional] |
44
+ | **feed_balance** | **Float** | | [optional] |
45
+ | **feed_cash_balance** | **Float** | | [optional] |
46
+ | **feed_cash_surrender_value** | **Float** | | [optional] |
47
+ | **feed_credit_limit** | **Float** | | [optional] |
48
+ | **feed_currency_code** | **String** | | [optional] |
49
+ | **feed_day_payment_is_due** | **Integer** | | [optional] |
50
+ | **feed_death_benefit** | **Integer** | | [optional] |
51
+ | **feed_holdings_value** | **Float** | | [optional] |
52
+ | **feed_interest_rate** | **Float** | | [optional] |
53
+ | **feed_is_closed** | **Boolean** | | [optional] |
54
+ | **feed_last_payment** | **Float** | | [optional] |
55
+ | **feed_last_payment_at** | **String** | | [optional] |
56
+ | **feed_loan_amount** | **Float** | | [optional] |
57
+ | **feed_matures_on** | **String** | | [optional] |
58
+ | **feed_minimum_balance** | **Float** | | [optional] |
59
+ | **feed_minimum_payment** | **Float** | | [optional] |
60
+ | **feed_name** | **String** | | [optional] |
61
+ | **feed_nickname** | **String** | | [optional] |
62
+ | **feed_original_balance** | **Float** | | [optional] |
63
+ | **feed_payment_due_at** | **String** | | [optional] |
64
+ | **feed_payoff_balance** | **Float** | | [optional] |
65
+ | **feed_routing_number** | **String** | | [optional] |
66
+ | **feed_started_on** | **String** | | [optional] |
67
+ | **feed_statement_balance** | **Float** | | [optional] |
68
+ | **feed_total_account_value** | **Float** | | [optional] |
25
69
  | **guid** | **String** | | [optional] |
26
70
  | **holdings_value** | **Float** | | [optional] |
71
+ | **holdings_value_set_by** | **Integer** | | [optional] |
27
72
  | **id** | **String** | | [optional] |
28
73
  | **imported_at** | **String** | | [optional] |
29
74
  | **institution_code** | **String** | | [optional] |
75
+ | **institution_guid** | **String** | | [optional] |
30
76
  | **insured_name** | **String** | | [optional] |
31
77
  | **interest_rate** | **Float** | | [optional] |
78
+ | **interest_rate_set_by** | **Integer** | | [optional] |
32
79
  | **is_closed** | **Boolean** | | [optional] |
80
+ | **is_closed_set_by** | **Integer** | | [optional] |
33
81
  | **is_hidden** | **Boolean** | | [optional] |
34
82
  | **is_manual** | **Boolean** | | [optional] |
35
83
  | **last_payment** | **Float** | | [optional] |
84
+ | **last_payment_set_by** | **Integer** | | [optional] |
36
85
  | **last_payment_at** | **String** | | [optional] |
86
+ | **last_payment_at_set_by** | **Integer** | | [optional] |
37
87
  | **loan_amount** | **Float** | | [optional] |
88
+ | **loan_amount_set_by** | **Integer** | | [optional] |
38
89
  | **margin_balance** | **Float** | | [optional] |
39
90
  | **matures_on** | **String** | | [optional] |
91
+ | **matures_on_set_by** | **Integer** | | [optional] |
40
92
  | **member_guid** | **String** | | [optional] |
41
93
  | **member_id** | **String** | | [optional] |
42
94
  | **member_is_managed_by_user** | **Boolean** | | [optional] |
43
95
  | **metadata** | **String** | | [optional] |
44
96
  | **minimum_balance** | **Float** | | [optional] |
97
+ | **minimum_balance_set_by** | **Integer** | | [optional] |
45
98
  | **minimum_payment** | **Float** | | [optional] |
99
+ | **minimum_payment_set_by** | **Integer** | | [optional] |
46
100
  | **name** | **String** | | [optional] |
101
+ | **name_set_by** | **Integer** | | [optional] |
47
102
  | **nickname** | **String** | | [optional] |
103
+ | **nickname_set_by** | **Integer** | | [optional] |
48
104
  | **original_balance** | **Float** | | [optional] |
105
+ | **original_balance_set_by** | **Integer** | | [optional] |
49
106
  | **pay_out_amount** | **Float** | | [optional] |
50
107
  | **payment_due_at** | **String** | | [optional] |
108
+ | **payment_due_at_set_by** | **Integer** | | [optional] |
51
109
  | **payoff_balance** | **Float** | | [optional] |
110
+ | **payoff_balance_set_by** | **Integer** | | [optional] |
52
111
  | **premium_amount** | **Float** | | [optional] |
53
112
  | **property_type** | **String** | | [optional] |
54
113
  | **routing_number** | **String** | | [optional] |
55
114
  | **started_on** | **String** | | [optional] |
115
+ | **started_on_set_by** | **Integer** | | [optional] |
56
116
  | **statement_balance** | **Float** | | [optional] |
117
+ | **statement_balance_set_by** | **Integer** | | [optional] |
57
118
  | **subtype** | **String** | | [optional] |
119
+ | **subtype_set_by** | **Integer** | | [optional] |
58
120
  | **today_ugl_amount** | **Float** | | [optional] |
59
121
  | **today_ugl_percentage** | **Float** | | [optional] |
60
122
  | **total_account_value** | **Float** | | [optional] |
123
+ | **total_account_value_set_by** | **Integer** | | [optional] |
61
124
  | **total_account_value_ugl** | **Float** | | [optional] |
62
125
  | **type** | **String** | | [optional] |
126
+ | **type_set_by** | **Integer** | | [optional] |
63
127
  | **updated_at** | **String** | | [optional] |
64
128
  | **user_guid** | **String** | | [optional] |
65
129
  | **user_id** | **String** | | [optional] |
@@ -71,61 +135,125 @@ require 'mx-platform-ruby'
71
135
 
72
136
  instance = MxPlatformRuby::AccountResponse.new(
73
137
  account_number: 5366,
138
+ account_number_set_by: 1,
74
139
  account_ownership: INDIVIDUAL,
75
140
  annuity_policy_to_date: 2016-10-13T17:57:37.000Z,
76
141
  annuity_provider: Metlife,
77
142
  annuity_term_year: 2048,
78
143
  apr: 1.0,
144
+ apr_set_by: 1,
79
145
  apy: 1.0,
146
+ apy_set_by: 1,
80
147
  available_balance: 1000.0,
148
+ available_balance_set_by: 1,
81
149
  available_credit: 1000.0,
150
+ available_credit_set_by: 1,
82
151
  balance: 10000.0,
152
+ balance_set_by: 1,
153
+ calculated_apr: 21.66409,
83
154
  cash_balance: 1000.0,
155
+ cash_balance_set_by: 1,
84
156
  cash_surrender_value: 1000.0,
157
+ cash_surrender_value_set_by: 1,
85
158
  created_at: 2023-07-25T17:14:46Z,
86
159
  credit_limit: 100.0,
160
+ credit_limit_set_by: 1,
87
161
  currency_code: USD,
162
+ currency_code_set_by: 1,
88
163
  day_payment_is_due: 20,
164
+ day_payment_is_due_set_by: 1,
89
165
  death_benefit: 1000,
166
+ death_benefit_set_by: 1,
90
167
  federal_insurance_status: INSURED,
168
+ feed_account_number: 5366,
169
+ feed_account_subtype: 1,
170
+ feed_account_type: 1,
171
+ feed_apr: 1.0,
172
+ feed_apy: 1.0,
173
+ feed_available_balance: 1000.0,
174
+ feed_balance: 1000.0,
175
+ feed_cash_balance: 1000.0,
176
+ feed_cash_surrender_value: 1000.0,
177
+ feed_credit_limit: 100.0,
178
+ feed_currency_code: USD,
179
+ feed_day_payment_is_due: 20,
180
+ feed_death_benefit: 1000,
181
+ feed_holdings_value: 1000.0,
182
+ feed_interest_rate: 1.0,
183
+ feed_is_closed: false,
184
+ feed_last_payment: 100.0,
185
+ feed_last_payment_at: 2023-07-25T17:14:46Z,
186
+ feed_loan_amount: 1000.0,
187
+ feed_matures_on: 2015-10-13T17:57:37.000Z,
188
+ feed_minimum_balance: 100.0,
189
+ feed_minimum_payment: 10.0,
190
+ feed_name: Test account 2,
191
+ feed_nickname: My Checking,
192
+ feed_original_balance: 10.0,
193
+ feed_payment_due_at: 2025-02-13T17:57:37.000Z,
194
+ feed_payoff_balance: 10.0,
195
+ feed_routing_number: 68899990000000,
196
+ feed_started_on: 2020-10-13T17:57:37.000Z,
197
+ feed_statement_balance: 100.0,
198
+ feed_total_account_value: 100.0,
91
199
  guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1,
92
200
  holdings_value: 1000.0,
201
+ holdings_value_set_by: 1,
93
202
  id: 1040434698,
94
203
  imported_at: 2015-10-13T17:57:37.000Z,
95
204
  institution_code: 3af3685e-05d9-7060-359f-008d0755e993,
205
+ institution_guid: INS-12a3b-4c5dd6-1349-008d0755e993,
96
206
  insured_name: Tommy Shelby,
97
207
  interest_rate: 1.0,
208
+ interest_rate_set_by: 1,
98
209
  is_closed: false,
210
+ is_closed_set_by: 1,
99
211
  is_hidden: false,
100
212
  is_manual: false,
101
213
  last_payment: 100.0,
214
+ last_payment_set_by: 1,
102
215
  last_payment_at: 2023-07-25T17:14:46Z,
216
+ last_payment_at_set_by: 1,
103
217
  loan_amount: 1000.0,
218
+ loan_amount_set_by: 1,
104
219
  margin_balance: 1000.0,
105
220
  matures_on: 2015-10-13T17:57:37.000Z,
221
+ matures_on_set_by: 1,
106
222
  member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b,
107
223
  member_id: member123,
108
224
  member_is_managed_by_user: false,
109
225
  metadata: some metadata,
110
226
  minimum_balance: 100.0,
227
+ minimum_balance_set_by: 1,
111
228
  minimum_payment: 10.0,
229
+ minimum_payment_set_by: 1,
112
230
  name: Test account 2,
231
+ name_set_by: 1,
113
232
  nickname: My Checking,
233
+ nickname_set_by: 1,
114
234
  original_balance: 10.0,
235
+ original_balance_set_by: 1,
115
236
  pay_out_amount: 10.0,
116
237
  payment_due_at: 2015-10-13T17:57:37.000Z,
238
+ payment_due_at_set_by: 1,
117
239
  payoff_balance: 10.0,
118
- premium_amount: 1.0,
240
+ payoff_balance_set_by: 1,
241
+ premium_amount: 3900,
119
242
  property_type: VEHICLE,
120
243
  routing_number: 68899990000000,
121
244
  started_on: 2015-10-13T17:57:37.000Z,
122
- statement_balance: 100.1,
245
+ started_on_set_by: 1,
246
+ statement_balance: 1000.5,
247
+ statement_balance_set_by: 1,
123
248
  subtype: NONE,
249
+ subtype_set_by: 1,
124
250
  today_ugl_amount: 1000.5,
125
251
  today_ugl_percentage: 6.9,
126
252
  total_account_value: 1.0,
127
- total_account_value_ugl: 1.1,
253
+ total_account_value_set_by: 1,
254
+ total_account_value_ugl: 1.0,
128
255
  type: SAVINGS,
256
+ type_set_by: 1,
129
257
  updated_at: 2016-10-13T18:08:00.000Z,
130
258
  user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54,
131
259
  user_id: user123
@@ -115,7 +115,7 @@ All URIs are relative to *https://api.mx.com*
115
115
 
116
116
  ## aggregate_member
117
117
 
118
- > <MemberResponseBody> aggregate_member(member_guid, user_guid)
118
+ > <MemberResponseBody> aggregate_member(member_guid, user_guid, opts)
119
119
 
120
120
  Aggregate member
121
121
 
@@ -136,10 +136,14 @@ end
136
136
  api_instance = MxPlatformRuby::MxPlatformApi.new
137
137
  member_guid = 'MBR-7c6f361b-e582-15b6-60c0-358f12466b4b' # String | The unique id for a `member`.
138
138
  user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id for a `user`.
139
+ opts = {
140
+ include_holdings: false, # Boolean | When set to `false`, the aggregation will not gather holdings data. Defaults to `true`.
141
+ include_transactions: false # Boolean | When set to `false`, the aggregation will not gather transactions data. Defaults to `true`.
142
+ }
139
143
 
140
144
  begin
141
145
  # Aggregate member
142
- result = api_instance.aggregate_member(member_guid, user_guid)
146
+ result = api_instance.aggregate_member(member_guid, user_guid, opts)
143
147
  p result
144
148
  rescue MxPlatformRuby::ApiError => e
145
149
  puts "Error when calling MxPlatformApi->aggregate_member: #{e}"
@@ -150,12 +154,12 @@ end
150
154
 
151
155
  This returns an Array which contains the response data, status code and headers.
152
156
 
153
- > <Array(<MemberResponseBody>, Integer, Hash)> aggregate_member_with_http_info(member_guid, user_guid)
157
+ > <Array(<MemberResponseBody>, Integer, Hash)> aggregate_member_with_http_info(member_guid, user_guid, opts)
154
158
 
155
159
  ```ruby
156
160
  begin
157
161
  # Aggregate member
158
- data, status_code, headers = api_instance.aggregate_member_with_http_info(member_guid, user_guid)
162
+ data, status_code, headers = api_instance.aggregate_member_with_http_info(member_guid, user_guid, opts)
159
163
  p status_code # => 2xx
160
164
  p headers # => { ... }
161
165
  p data # => <MemberResponseBody>
@@ -170,6 +174,8 @@ end
170
174
  | ---- | ---- | ----------- | ----- |
171
175
  | **member_guid** | **String** | The unique id for a &#x60;member&#x60;. | |
172
176
  | **user_guid** | **String** | The unique id for a &#x60;user&#x60;. | |
177
+ | **include_holdings** | **Boolean** | When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;. | [optional] |
178
+ | **include_transactions** | **Boolean** | When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;. | [optional] |
173
179
 
174
180
  ### Return type
175
181
 
@@ -24,6 +24,8 @@ module MxPlatformRuby
24
24
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.
25
25
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
26
26
  # @param [Hash] opts the optional parameters
27
+ # @option opts [Boolean] :include_holdings When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;.
28
+ # @option opts [Boolean] :include_transactions When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;.
27
29
  # @return [MemberResponseBody]
28
30
  def aggregate_member(member_guid, user_guid, opts = {})
29
31
  data, _status_code, _headers = aggregate_member_with_http_info(member_guid, user_guid, opts)
@@ -35,6 +37,8 @@ module MxPlatformRuby
35
37
  # @param member_guid [String] The unique id for a &#x60;member&#x60;.
36
38
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
37
39
  # @param [Hash] opts the optional parameters
40
+ # @option opts [Boolean] :include_holdings When set to &#x60;false&#x60;, the aggregation will not gather holdings data. Defaults to &#x60;true&#x60;.
41
+ # @option opts [Boolean] :include_transactions When set to &#x60;false&#x60;, the aggregation will not gather transactions data. Defaults to &#x60;true&#x60;.
38
42
  # @return [Array<(MemberResponseBody, Integer, Hash)>] MemberResponseBody data, response status code and response headers
39
43
  def aggregate_member_with_http_info(member_guid, user_guid, opts = {})
40
44
  if @api_client.config.debugging
@@ -53,6 +57,8 @@ module MxPlatformRuby
53
57
 
54
58
  # query parameters
55
59
  query_params = opts[:query_params] || {}
60
+ query_params[:'include_holdings'] = opts[:'include_holdings'] if !opts[:'include_holdings'].nil?
61
+ query_params[:'include_transactions'] = opts[:'include_transactions'] if !opts[:'include_transactions'].nil?
56
62
 
57
63
  # header parameters
58
64
  header_params = opts[:header_params] || {}