mx-platform-ruby 0.19.1 → 0.20.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 +1 -1
- data/docs/AccountCreateRequest.md +7 -9
- data/docs/AccountResponse.md +2 -4
- data/docs/AccountUpdateRequest.md +41 -1
- data/docs/MxPlatformApi.md +2 -0
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +3 -0
- data/lib/mx-platform-ruby/models/account_create_request.rb +9 -18
- data/lib/mx-platform-ruby/models/account_response.rb +2 -12
- data/lib/mx-platform-ruby/models/account_update_request.rb +184 -4
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/openapi/config.yml +1 -1
- data/spec/api/mx_platform_api_spec.rb +1 -0
- data/spec/models/account_create_request_spec.rb +1 -7
- data/spec/models/account_response_spec.rb +0 -6
- data/spec/models/account_update_request_spec.rb +120 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52c24cb6725040584be108fe21c19a2c9d50cc0853d99ba5fddbb6e54b05e5b6
|
4
|
+
data.tar.gz: 0b5644a13d30b1522fcea283f18056c8c42d5ad722b8a46d05482f887b631e79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab7c6d81c4df96b91f53564d0ba2993a2c1f968aeab16b9a33ae7fcebff46d33f87cfaaf22ca0772a9764ed2de7fca50f4cdc09975240565f17552c270fb5ce6
|
7
|
+
data.tar.gz: dd94bdcc4988054d85c1ac2cbaef828c1f7a47d62d606090d8251d9eb0050eaa411018c80b5d21f8185a5a8e14357a2fe3627d6c3721440dcf7c1521af3aee42
|
data/Gemfile.lock
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
8
|
-
| **account_type** | **
|
7
|
+
| **account_subtype** | **String** | | [optional] |
|
8
|
+
| **account_type** | **String** | | |
|
9
9
|
| **apr** | **Float** | | [optional] |
|
10
10
|
| **apy** | **Float** | | [optional] |
|
11
11
|
| **available_balance** | **Float** | | [optional] |
|
@@ -23,8 +23,7 @@
|
|
23
23
|
| **name** | **String** | | |
|
24
24
|
| **nickname** | **String** | | [optional] |
|
25
25
|
| **original_balance** | **Float** | | [optional] |
|
26
|
-
| **property_type** | **
|
27
|
-
| **property_type_name** | **String** | | [optional] |
|
26
|
+
| **property_type** | **String** | | [optional] |
|
28
27
|
| **skip_webhook** | **Boolean** | | [optional] |
|
29
28
|
|
30
29
|
## Example
|
@@ -33,8 +32,8 @@
|
|
33
32
|
require 'mx-platform-ruby'
|
34
33
|
|
35
34
|
instance = MxPlatformRuby::AccountCreateRequest.new(
|
36
|
-
|
37
|
-
account_type:
|
35
|
+
account_subtype: PERSONAL,
|
36
|
+
account_type: SAVINGS,
|
38
37
|
apr: 1.0,
|
39
38
|
apy: 1.0,
|
40
39
|
available_balance: 1000.0,
|
@@ -52,9 +51,8 @@ instance = MxPlatformRuby::AccountCreateRequest.new(
|
|
52
51
|
name: Test account 2,
|
53
52
|
nickname: Swiss Account,
|
54
53
|
original_balance: 10.0,
|
55
|
-
property_type:
|
56
|
-
|
57
|
-
skip_webhook: false
|
54
|
+
property_type: VEHICLE,
|
55
|
+
skip_webhook: true
|
58
56
|
)
|
59
57
|
```
|
60
58
|
|
data/docs/AccountResponse.md
CHANGED
@@ -49,8 +49,7 @@
|
|
49
49
|
| **payment_due_at** | **String** | | [optional] |
|
50
50
|
| **payoff_balance** | **Float** | | [optional] |
|
51
51
|
| **premium_amount** | **Float** | | [optional] |
|
52
|
-
| **property_type** | **
|
53
|
-
| **property_type_name** | **String** | | [optional] |
|
52
|
+
| **property_type** | **String** | | [optional] |
|
54
53
|
| **routing_number** | **String** | | [optional] |
|
55
54
|
| **started_on** | **String** | | [optional] |
|
56
55
|
| **subtype** | **String** | | [optional] |
|
@@ -113,8 +112,7 @@ instance = MxPlatformRuby::AccountResponse.new(
|
|
113
112
|
payment_due_at: 2015-10-13T17:57:37.000Z,
|
114
113
|
payoff_balance: 10.0,
|
115
114
|
premium_amount: 1.0,
|
116
|
-
property_type:
|
117
|
-
property_type_name: VEHICLE,
|
115
|
+
property_type: VEHICLE,
|
118
116
|
routing_number: 68899990000000,
|
119
117
|
started_on: 2015-10-13T17:57:37.000Z,
|
120
118
|
subtype: NONE,
|
@@ -4,7 +4,27 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_subtype** | **String** | | [optional] |
|
8
|
+
| **account_type** | **String** | | [optional] |
|
9
|
+
| **apr** | **Float** | | [optional] |
|
10
|
+
| **apy** | **Float** | | [optional] |
|
11
|
+
| **available_balance** | **Float** | | [optional] |
|
12
|
+
| **balance** | **Float** | | [optional] |
|
13
|
+
| **cash_surrender_value** | **Float** | | [optional] |
|
14
|
+
| **credit_limit** | **Float** | | [optional] |
|
15
|
+
| **currency_code** | **String** | | [optional] |
|
16
|
+
| **death_benefit** | **Integer** | | [optional] |
|
17
|
+
| **interest_rate** | **Float** | | [optional] |
|
18
|
+
| **is_business** | **Boolean** | | [optional] |
|
19
|
+
| **is_closed** | **Boolean** | | [optional] |
|
7
20
|
| **is_hidden** | **Boolean** | | [optional] |
|
21
|
+
| **loan_amount** | **Float** | | [optional] |
|
22
|
+
| **metadata** | **String** | | [optional] |
|
23
|
+
| **name** | **String** | | [optional] |
|
24
|
+
| **nickname** | **String** | | [optional] |
|
25
|
+
| **original_balance** | **Float** | | [optional] |
|
26
|
+
| **property_type** | **String** | | [optional] |
|
27
|
+
| **skip_webhook** | **Boolean** | | [optional] |
|
8
28
|
|
9
29
|
## Example
|
10
30
|
|
@@ -12,7 +32,27 @@
|
|
12
32
|
require 'mx-platform-ruby'
|
13
33
|
|
14
34
|
instance = MxPlatformRuby::AccountUpdateRequest.new(
|
15
|
-
|
35
|
+
account_subtype: PERSONAL,
|
36
|
+
account_type: SAVINGS,
|
37
|
+
apr: 1.0,
|
38
|
+
apy: 1.0,
|
39
|
+
available_balance: 1000.0,
|
40
|
+
balance: 1000.0,
|
41
|
+
cash_surrender_value: 1000.0,
|
42
|
+
credit_limit: 100.0,
|
43
|
+
currency_code: USD,
|
44
|
+
death_benefit: 1000,
|
45
|
+
interest_rate: 1.0,
|
46
|
+
is_business: false,
|
47
|
+
is_closed: false,
|
48
|
+
is_hidden: false,
|
49
|
+
loan_amount: 1000.0,
|
50
|
+
metadata: some metadata,
|
51
|
+
name: Test account 2,
|
52
|
+
nickname: Swiss Account,
|
53
|
+
original_balance: 10.0,
|
54
|
+
property_type: VEHICLE,
|
55
|
+
skip_webhook: true
|
16
56
|
)
|
17
57
|
```
|
18
58
|
|
data/docs/MxPlatformApi.md
CHANGED
@@ -4630,6 +4630,7 @@ user_guid = 'USR-fa7537f3-48aa-a683-a02a-b18940482f54' # String | The unique id
|
|
4630
4630
|
opts = {
|
4631
4631
|
member_is_managed_by_user: true, # Boolean | List only accounts whose member is managed by the user.
|
4632
4632
|
page: 1, # Integer | Specify current page.
|
4633
|
+
is_manual: true, # Boolean | List only accounts that were manually created.
|
4633
4634
|
records_per_page: 10 # Integer | Specify records per page.
|
4634
4635
|
}
|
4635
4636
|
|
@@ -4667,6 +4668,7 @@ end
|
|
4667
4668
|
| **user_guid** | **String** | The unique id for a `user`. | |
|
4668
4669
|
| **member_is_managed_by_user** | **Boolean** | List only accounts whose member is managed by the user. | [optional] |
|
4669
4670
|
| **page** | **Integer** | Specify current page. | [optional] |
|
4671
|
+
| **is_manual** | **Boolean** | List only accounts that were manually created. | [optional] |
|
4670
4672
|
| **records_per_page** | **Integer** | Specify records per page. | [optional] |
|
4671
4673
|
|
4672
4674
|
### Return type
|
@@ -4355,6 +4355,7 @@ module MxPlatformRuby
|
|
4355
4355
|
# @param [Hash] opts the optional parameters
|
4356
4356
|
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
|
4357
4357
|
# @option opts [Integer] :page Specify current page.
|
4358
|
+
# @option opts [Boolean] :is_manual List only accounts that were manually created.
|
4358
4359
|
# @option opts [Integer] :records_per_page Specify records per page.
|
4359
4360
|
# @return [AccountsResponseBody]
|
4360
4361
|
def list_user_accounts(user_guid, opts = {})
|
@@ -4368,6 +4369,7 @@ module MxPlatformRuby
|
|
4368
4369
|
# @param [Hash] opts the optional parameters
|
4369
4370
|
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
|
4370
4371
|
# @option opts [Integer] :page Specify current page.
|
4372
|
+
# @option opts [Boolean] :is_manual List only accounts that were manually created.
|
4371
4373
|
# @option opts [Integer] :records_per_page Specify records per page.
|
4372
4374
|
# @return [Array<(AccountsResponseBody, Integer, Hash)>] AccountsResponseBody data, response status code and response headers
|
4373
4375
|
def list_user_accounts_with_http_info(user_guid, opts = {})
|
@@ -4385,6 +4387,7 @@ module MxPlatformRuby
|
|
4385
4387
|
query_params = opts[:query_params] || {}
|
4386
4388
|
query_params[:'member_is_managed_by_user'] = opts[:'member_is_managed_by_user'] if !opts[:'member_is_managed_by_user'].nil?
|
4387
4389
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
4390
|
+
query_params[:'is_manual'] = opts[:'is_manual'] if !opts[:'is_manual'].nil?
|
4388
4391
|
query_params[:'records_per_page'] = opts[:'records_per_page'] if !opts[:'records_per_page'].nil?
|
4389
4392
|
|
4390
4393
|
# header parameters
|
@@ -15,7 +15,7 @@ require 'time'
|
|
15
15
|
|
16
16
|
module MxPlatformRuby
|
17
17
|
class AccountCreateRequest
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :account_subtype
|
19
19
|
|
20
20
|
attr_accessor :account_type
|
21
21
|
|
@@ -55,14 +55,12 @@ module MxPlatformRuby
|
|
55
55
|
|
56
56
|
attr_accessor :property_type
|
57
57
|
|
58
|
-
attr_accessor :property_type_name
|
59
|
-
|
60
58
|
attr_accessor :skip_webhook
|
61
59
|
|
62
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
63
61
|
def self.attribute_map
|
64
62
|
{
|
65
|
-
:'
|
63
|
+
:'account_subtype' => :'account_subtype',
|
66
64
|
:'account_type' => :'account_type',
|
67
65
|
:'apr' => :'apr',
|
68
66
|
:'apy' => :'apy',
|
@@ -82,7 +80,6 @@ module MxPlatformRuby
|
|
82
80
|
:'nickname' => :'nickname',
|
83
81
|
:'original_balance' => :'original_balance',
|
84
82
|
:'property_type' => :'property_type',
|
85
|
-
:'property_type_name' => :'property_type_name',
|
86
83
|
:'skip_webhook' => :'skip_webhook'
|
87
84
|
}
|
88
85
|
end
|
@@ -95,8 +92,8 @@ module MxPlatformRuby
|
|
95
92
|
# Attribute type mapping.
|
96
93
|
def self.openapi_types
|
97
94
|
{
|
98
|
-
:'
|
99
|
-
:'account_type' => :'
|
95
|
+
:'account_subtype' => :'String',
|
96
|
+
:'account_type' => :'String',
|
100
97
|
:'apr' => :'Float',
|
101
98
|
:'apy' => :'Float',
|
102
99
|
:'available_balance' => :'Float',
|
@@ -114,8 +111,7 @@ module MxPlatformRuby
|
|
114
111
|
:'name' => :'String',
|
115
112
|
:'nickname' => :'String',
|
116
113
|
:'original_balance' => :'Float',
|
117
|
-
:'property_type' => :'
|
118
|
-
:'property_type_name' => :'String',
|
114
|
+
:'property_type' => :'String',
|
119
115
|
:'skip_webhook' => :'Boolean'
|
120
116
|
}
|
121
117
|
end
|
@@ -141,8 +137,8 @@ module MxPlatformRuby
|
|
141
137
|
h[k.to_sym] = v
|
142
138
|
}
|
143
139
|
|
144
|
-
if attributes.key?(:'
|
145
|
-
self.
|
140
|
+
if attributes.key?(:'account_subtype')
|
141
|
+
self.account_subtype = attributes[:'account_subtype']
|
146
142
|
end
|
147
143
|
|
148
144
|
if attributes.key?(:'account_type')
|
@@ -221,10 +217,6 @@ module MxPlatformRuby
|
|
221
217
|
self.property_type = attributes[:'property_type']
|
222
218
|
end
|
223
219
|
|
224
|
-
if attributes.key?(:'property_type_name')
|
225
|
-
self.property_type_name = attributes[:'property_type_name']
|
226
|
-
end
|
227
|
-
|
228
220
|
if attributes.key?(:'skip_webhook')
|
229
221
|
self.skip_webhook = attributes[:'skip_webhook']
|
230
222
|
end
|
@@ -258,7 +250,7 @@ module MxPlatformRuby
|
|
258
250
|
def ==(o)
|
259
251
|
return true if self.equal?(o)
|
260
252
|
self.class == o.class &&
|
261
|
-
|
253
|
+
account_subtype == o.account_subtype &&
|
262
254
|
account_type == o.account_type &&
|
263
255
|
apr == o.apr &&
|
264
256
|
apy == o.apy &&
|
@@ -278,7 +270,6 @@ module MxPlatformRuby
|
|
278
270
|
nickname == o.nickname &&
|
279
271
|
original_balance == o.original_balance &&
|
280
272
|
property_type == o.property_type &&
|
281
|
-
property_type_name == o.property_type_name &&
|
282
273
|
skip_webhook == o.skip_webhook
|
283
274
|
end
|
284
275
|
|
@@ -291,7 +282,7 @@ module MxPlatformRuby
|
|
291
282
|
# Calculates hash code according to all attributes.
|
292
283
|
# @return [Integer] Hash code
|
293
284
|
def hash
|
294
|
-
[
|
285
|
+
[account_subtype, account_type, apr, apy, available_balance, balance, cash_surrender_value, credit_limit, currency_code, death_benefit, interest_rate, is_business, is_closed, is_hidden, loan_amount, metadata, name, nickname, original_balance, property_type, skip_webhook].hash
|
295
286
|
end
|
296
287
|
|
297
288
|
# Builds the object from hash
|
@@ -107,8 +107,6 @@ module MxPlatformRuby
|
|
107
107
|
|
108
108
|
attr_accessor :property_type
|
109
109
|
|
110
|
-
attr_accessor :property_type_name
|
111
|
-
|
112
110
|
attr_accessor :routing_number
|
113
111
|
|
114
112
|
attr_accessor :started_on
|
@@ -178,7 +176,6 @@ module MxPlatformRuby
|
|
178
176
|
:'payoff_balance' => :'payoff_balance',
|
179
177
|
:'premium_amount' => :'premium_amount',
|
180
178
|
:'property_type' => :'property_type',
|
181
|
-
:'property_type_name' => :'property_type_name',
|
182
179
|
:'routing_number' => :'routing_number',
|
183
180
|
:'started_on' => :'started_on',
|
184
181
|
:'subtype' => :'subtype',
|
@@ -245,8 +242,7 @@ module MxPlatformRuby
|
|
245
242
|
:'payment_due_at' => :'String',
|
246
243
|
:'payoff_balance' => :'Float',
|
247
244
|
:'premium_amount' => :'Float',
|
248
|
-
:'property_type' => :'
|
249
|
-
:'property_type_name' => :'String',
|
245
|
+
:'property_type' => :'String',
|
250
246
|
:'routing_number' => :'String',
|
251
247
|
:'started_on' => :'String',
|
252
248
|
:'subtype' => :'String',
|
@@ -308,7 +304,6 @@ module MxPlatformRuby
|
|
308
304
|
:'payoff_balance',
|
309
305
|
:'premium_amount',
|
310
306
|
:'property_type',
|
311
|
-
:'property_type_name',
|
312
307
|
:'routing_number',
|
313
308
|
:'started_on',
|
314
309
|
:'subtype',
|
@@ -521,10 +516,6 @@ module MxPlatformRuby
|
|
521
516
|
self.property_type = attributes[:'property_type']
|
522
517
|
end
|
523
518
|
|
524
|
-
if attributes.key?(:'property_type_name')
|
525
|
-
self.property_type_name = attributes[:'property_type_name']
|
526
|
-
end
|
527
|
-
|
528
519
|
if attributes.key?(:'routing_number')
|
529
520
|
self.routing_number = attributes[:'routing_number']
|
530
521
|
end
|
@@ -630,7 +621,6 @@ module MxPlatformRuby
|
|
630
621
|
payoff_balance == o.payoff_balance &&
|
631
622
|
premium_amount == o.premium_amount &&
|
632
623
|
property_type == o.property_type &&
|
633
|
-
property_type_name == o.property_type_name &&
|
634
624
|
routing_number == o.routing_number &&
|
635
625
|
started_on == o.started_on &&
|
636
626
|
subtype == o.subtype &&
|
@@ -652,7 +642,7 @@ module MxPlatformRuby
|
|
652
642
|
# Calculates hash code according to all attributes.
|
653
643
|
# @return [Integer] Hash code
|
654
644
|
def hash
|
655
|
-
[account_number, account_ownership, annuity_policy_to_date, annuity_provider, annuity_term_year, 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, interest_rate, institution_code, insured_name, is_closed, is_hidden, is_manual, last_payment, last_payment_at, loan_amount, margin_balance, 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, property_type,
|
645
|
+
[account_number, account_ownership, annuity_policy_to_date, annuity_provider, annuity_term_year, 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, interest_rate, institution_code, insured_name, is_closed, is_hidden, is_manual, last_payment, last_payment_at, loan_amount, margin_balance, 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, property_type, routing_number, started_on, subtype, today_ugl_amount, today_ugl_percentage, total_account_value, type, updated_at, user_guid, user_id].hash
|
656
646
|
end
|
657
647
|
|
658
648
|
# Builds the object from hash
|
@@ -15,12 +15,72 @@ require 'time'
|
|
15
15
|
|
16
16
|
module MxPlatformRuby
|
17
17
|
class AccountUpdateRequest
|
18
|
+
attr_accessor :account_subtype
|
19
|
+
|
20
|
+
attr_accessor :account_type
|
21
|
+
|
22
|
+
attr_accessor :apr
|
23
|
+
|
24
|
+
attr_accessor :apy
|
25
|
+
|
26
|
+
attr_accessor :available_balance
|
27
|
+
|
28
|
+
attr_accessor :balance
|
29
|
+
|
30
|
+
attr_accessor :cash_surrender_value
|
31
|
+
|
32
|
+
attr_accessor :credit_limit
|
33
|
+
|
34
|
+
attr_accessor :currency_code
|
35
|
+
|
36
|
+
attr_accessor :death_benefit
|
37
|
+
|
38
|
+
attr_accessor :interest_rate
|
39
|
+
|
40
|
+
attr_accessor :is_business
|
41
|
+
|
42
|
+
attr_accessor :is_closed
|
43
|
+
|
18
44
|
attr_accessor :is_hidden
|
19
45
|
|
46
|
+
attr_accessor :loan_amount
|
47
|
+
|
48
|
+
attr_accessor :metadata
|
49
|
+
|
50
|
+
attr_accessor :name
|
51
|
+
|
52
|
+
attr_accessor :nickname
|
53
|
+
|
54
|
+
attr_accessor :original_balance
|
55
|
+
|
56
|
+
attr_accessor :property_type
|
57
|
+
|
58
|
+
attr_accessor :skip_webhook
|
59
|
+
|
20
60
|
# Attribute mapping from ruby-style variable name to JSON key.
|
21
61
|
def self.attribute_map
|
22
62
|
{
|
23
|
-
:'
|
63
|
+
:'account_subtype' => :'account_subtype',
|
64
|
+
:'account_type' => :'account_type',
|
65
|
+
:'apr' => :'apr',
|
66
|
+
:'apy' => :'apy',
|
67
|
+
:'available_balance' => :'available_balance',
|
68
|
+
:'balance' => :'balance',
|
69
|
+
:'cash_surrender_value' => :'cash_surrender_value',
|
70
|
+
:'credit_limit' => :'credit_limit',
|
71
|
+
:'currency_code' => :'currency_code',
|
72
|
+
:'death_benefit' => :'death_benefit',
|
73
|
+
:'interest_rate' => :'interest_rate',
|
74
|
+
:'is_business' => :'is_business',
|
75
|
+
:'is_closed' => :'is_closed',
|
76
|
+
:'is_hidden' => :'is_hidden',
|
77
|
+
:'loan_amount' => :'loan_amount',
|
78
|
+
:'metadata' => :'metadata',
|
79
|
+
:'name' => :'name',
|
80
|
+
:'nickname' => :'nickname',
|
81
|
+
:'original_balance' => :'original_balance',
|
82
|
+
:'property_type' => :'property_type',
|
83
|
+
:'skip_webhook' => :'skip_webhook'
|
24
84
|
}
|
25
85
|
end
|
26
86
|
|
@@ -32,7 +92,27 @@ module MxPlatformRuby
|
|
32
92
|
# Attribute type mapping.
|
33
93
|
def self.openapi_types
|
34
94
|
{
|
35
|
-
:'
|
95
|
+
:'account_subtype' => :'String',
|
96
|
+
:'account_type' => :'String',
|
97
|
+
:'apr' => :'Float',
|
98
|
+
:'apy' => :'Float',
|
99
|
+
:'available_balance' => :'Float',
|
100
|
+
:'balance' => :'Float',
|
101
|
+
:'cash_surrender_value' => :'Float',
|
102
|
+
:'credit_limit' => :'Float',
|
103
|
+
:'currency_code' => :'String',
|
104
|
+
:'death_benefit' => :'Integer',
|
105
|
+
:'interest_rate' => :'Float',
|
106
|
+
:'is_business' => :'Boolean',
|
107
|
+
:'is_closed' => :'Boolean',
|
108
|
+
:'is_hidden' => :'Boolean',
|
109
|
+
:'loan_amount' => :'Float',
|
110
|
+
:'metadata' => :'String',
|
111
|
+
:'name' => :'String',
|
112
|
+
:'nickname' => :'String',
|
113
|
+
:'original_balance' => :'Float',
|
114
|
+
:'property_type' => :'String',
|
115
|
+
:'skip_webhook' => :'Boolean'
|
36
116
|
}
|
37
117
|
end
|
38
118
|
|
@@ -57,9 +137,89 @@ module MxPlatformRuby
|
|
57
137
|
h[k.to_sym] = v
|
58
138
|
}
|
59
139
|
|
140
|
+
if attributes.key?(:'account_subtype')
|
141
|
+
self.account_subtype = attributes[:'account_subtype']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'account_type')
|
145
|
+
self.account_type = attributes[:'account_type']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'apr')
|
149
|
+
self.apr = attributes[:'apr']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'apy')
|
153
|
+
self.apy = attributes[:'apy']
|
154
|
+
end
|
155
|
+
|
156
|
+
if attributes.key?(:'available_balance')
|
157
|
+
self.available_balance = attributes[:'available_balance']
|
158
|
+
end
|
159
|
+
|
160
|
+
if attributes.key?(:'balance')
|
161
|
+
self.balance = attributes[:'balance']
|
162
|
+
end
|
163
|
+
|
164
|
+
if attributes.key?(:'cash_surrender_value')
|
165
|
+
self.cash_surrender_value = attributes[:'cash_surrender_value']
|
166
|
+
end
|
167
|
+
|
168
|
+
if attributes.key?(:'credit_limit')
|
169
|
+
self.credit_limit = attributes[:'credit_limit']
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'currency_code')
|
173
|
+
self.currency_code = attributes[:'currency_code']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'death_benefit')
|
177
|
+
self.death_benefit = attributes[:'death_benefit']
|
178
|
+
end
|
179
|
+
|
180
|
+
if attributes.key?(:'interest_rate')
|
181
|
+
self.interest_rate = attributes[:'interest_rate']
|
182
|
+
end
|
183
|
+
|
184
|
+
if attributes.key?(:'is_business')
|
185
|
+
self.is_business = attributes[:'is_business']
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'is_closed')
|
189
|
+
self.is_closed = attributes[:'is_closed']
|
190
|
+
end
|
191
|
+
|
60
192
|
if attributes.key?(:'is_hidden')
|
61
193
|
self.is_hidden = attributes[:'is_hidden']
|
62
194
|
end
|
195
|
+
|
196
|
+
if attributes.key?(:'loan_amount')
|
197
|
+
self.loan_amount = attributes[:'loan_amount']
|
198
|
+
end
|
199
|
+
|
200
|
+
if attributes.key?(:'metadata')
|
201
|
+
self.metadata = attributes[:'metadata']
|
202
|
+
end
|
203
|
+
|
204
|
+
if attributes.key?(:'name')
|
205
|
+
self.name = attributes[:'name']
|
206
|
+
end
|
207
|
+
|
208
|
+
if attributes.key?(:'nickname')
|
209
|
+
self.nickname = attributes[:'nickname']
|
210
|
+
end
|
211
|
+
|
212
|
+
if attributes.key?(:'original_balance')
|
213
|
+
self.original_balance = attributes[:'original_balance']
|
214
|
+
end
|
215
|
+
|
216
|
+
if attributes.key?(:'property_type')
|
217
|
+
self.property_type = attributes[:'property_type']
|
218
|
+
end
|
219
|
+
|
220
|
+
if attributes.key?(:'skip_webhook')
|
221
|
+
self.skip_webhook = attributes[:'skip_webhook']
|
222
|
+
end
|
63
223
|
end
|
64
224
|
|
65
225
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -80,7 +240,27 @@ module MxPlatformRuby
|
|
80
240
|
def ==(o)
|
81
241
|
return true if self.equal?(o)
|
82
242
|
self.class == o.class &&
|
83
|
-
|
243
|
+
account_subtype == o.account_subtype &&
|
244
|
+
account_type == o.account_type &&
|
245
|
+
apr == o.apr &&
|
246
|
+
apy == o.apy &&
|
247
|
+
available_balance == o.available_balance &&
|
248
|
+
balance == o.balance &&
|
249
|
+
cash_surrender_value == o.cash_surrender_value &&
|
250
|
+
credit_limit == o.credit_limit &&
|
251
|
+
currency_code == o.currency_code &&
|
252
|
+
death_benefit == o.death_benefit &&
|
253
|
+
interest_rate == o.interest_rate &&
|
254
|
+
is_business == o.is_business &&
|
255
|
+
is_closed == o.is_closed &&
|
256
|
+
is_hidden == o.is_hidden &&
|
257
|
+
loan_amount == o.loan_amount &&
|
258
|
+
metadata == o.metadata &&
|
259
|
+
name == o.name &&
|
260
|
+
nickname == o.nickname &&
|
261
|
+
original_balance == o.original_balance &&
|
262
|
+
property_type == o.property_type &&
|
263
|
+
skip_webhook == o.skip_webhook
|
84
264
|
end
|
85
265
|
|
86
266
|
# @see the `==` method
|
@@ -92,7 +272,7 @@ module MxPlatformRuby
|
|
92
272
|
# Calculates hash code according to all attributes.
|
93
273
|
# @return [Integer] Hash code
|
94
274
|
def hash
|
95
|
-
[is_hidden].hash
|
275
|
+
[account_subtype, account_type, apr, apy, available_balance, balance, cash_surrender_value, credit_limit, currency_code, death_benefit, interest_rate, is_business, is_closed, is_hidden, loan_amount, metadata, name, nickname, original_balance, property_type, skip_webhook].hash
|
96
276
|
end
|
97
277
|
|
98
278
|
# Builds the object from hash
|
data/openapi/config.yml
CHANGED
@@ -884,6 +884,7 @@ describe 'MxPlatformApi' do
|
|
884
884
|
# @param [Hash] opts the optional parameters
|
885
885
|
# @option opts [Boolean] :member_is_managed_by_user List only accounts whose member is managed by the user.
|
886
886
|
# @option opts [Integer] :page Specify current page.
|
887
|
+
# @option opts [Boolean] :is_manual List only accounts that were manually created.
|
887
888
|
# @option opts [Integer] :records_per_page Specify records per page.
|
888
889
|
# @return [AccountsResponseBody]
|
889
890
|
describe 'list_user_accounts test' do
|
@@ -25,7 +25,7 @@ describe MxPlatformRuby::AccountCreateRequest do
|
|
25
25
|
expect(instance).to be_instance_of(MxPlatformRuby::AccountCreateRequest)
|
26
26
|
end
|
27
27
|
end
|
28
|
-
describe 'test attribute "
|
28
|
+
describe 'test attribute "account_subtype"' do
|
29
29
|
it 'should work' do
|
30
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
31
|
end
|
@@ -145,12 +145,6 @@ describe MxPlatformRuby::AccountCreateRequest do
|
|
145
145
|
end
|
146
146
|
end
|
147
147
|
|
148
|
-
describe 'test attribute "property_type_name"' do
|
149
|
-
it 'should work' do
|
150
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
-
end
|
152
|
-
end
|
153
|
-
|
154
148
|
describe 'test attribute "skip_webhook"' do
|
155
149
|
it 'should work' do
|
156
150
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -301,12 +301,6 @@ describe MxPlatformRuby::AccountResponse do
|
|
301
301
|
end
|
302
302
|
end
|
303
303
|
|
304
|
-
describe 'test attribute "property_type_name"' do
|
305
|
-
it 'should work' do
|
306
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
307
|
-
end
|
308
|
-
end
|
309
|
-
|
310
304
|
describe 'test attribute "routing_number"' do
|
311
305
|
it 'should work' do
|
312
306
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -25,10 +25,130 @@ describe MxPlatformRuby::AccountUpdateRequest do
|
|
25
25
|
expect(instance).to be_instance_of(MxPlatformRuby::AccountUpdateRequest)
|
26
26
|
end
|
27
27
|
end
|
28
|
+
describe 'test attribute "account_subtype"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "account_type"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "apr"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "apy"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "available_balance"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "balance"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "cash_surrender_value"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "credit_limit"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "currency_code"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "death_benefit"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "interest_rate"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
describe 'test attribute "is_business"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
describe 'test attribute "is_closed"' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
28
106
|
describe 'test attribute "is_hidden"' do
|
29
107
|
it 'should work' do
|
30
108
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
109
|
end
|
32
110
|
end
|
33
111
|
|
112
|
+
describe 'test attribute "loan_amount"' do
|
113
|
+
it 'should work' do
|
114
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
115
|
+
end
|
116
|
+
end
|
117
|
+
|
118
|
+
describe 'test attribute "metadata"' do
|
119
|
+
it 'should work' do
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
124
|
+
describe 'test attribute "name"' do
|
125
|
+
it 'should work' do
|
126
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
describe 'test attribute "nickname"' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
describe 'test attribute "original_balance"' do
|
137
|
+
it 'should work' do
|
138
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
describe 'test attribute "property_type"' do
|
143
|
+
it 'should work' do
|
144
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
describe 'test attribute "skip_webhook"' do
|
149
|
+
it 'should work' do
|
150
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
34
154
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mx-platform-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- MX
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|