mx-platform-ruby 0.18.0 → 0.19.1
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 +2 -2
- data/docs/AccountCreateRequest.md +13 -31
- data/docs/AccountCreateRequestBody.md +0 -2
- data/docs/AccountResponse.md +23 -9
- data/lib/mx-platform-ruby/models/account_create_request.rb +46 -132
- data/lib/mx-platform-ruby/models/account_create_request_body.rb +1 -11
- data/lib/mx-platform-ruby/models/account_response.rb +92 -23
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/openapi/config.yml +1 -1
- data/spec/models/account_create_request_body_spec.rb +0 -6
- data/spec/models/account_create_request_spec.rb +10 -64
- data/spec/models/account_response_spec.rb +51 -9
- metadata +105 -105
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cbaf44a244621dfb6d5e7e160e2ab0427e098c00573c79baad6010fb149238f7
|
4
|
+
data.tar.gz: dd938404d36cec5edf387445725b8a89f172bcc986e2a93341d82190145f5972
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5032d817c4aedd3ffed2bc4027dee818102f05697b7ca5473c4b071b5d577dd283cf75bc1a048ccfff81d5cfd5dc4c4781e465220a25b1c353875fc188a874ba
|
7
|
+
data.tar.gz: 25e0aba21d9627b6f06259c1d454909cce49d8cb3168de1572c31ad3cf80a04413c8d7bd6f1a0f82d817c3962d1cf0d36e5979bbd900f94551952349fa6c2e6b
|
data/Gemfile.lock
CHANGED
@@ -4,37 +4,28 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **account_subtype_name** | **String** | | [optional] |
|
8
|
+
| **account_type** | **Integer** | | |
|
8
9
|
| **apr** | **Float** | | [optional] |
|
9
10
|
| **apy** | **Float** | | [optional] |
|
10
11
|
| **available_balance** | **Float** | | [optional] |
|
11
|
-
| **
|
12
|
-
| **balance** | **Float** | | |
|
12
|
+
| **balance** | **Float** | | [optional] |
|
13
13
|
| **cash_surrender_value** | **Float** | | [optional] |
|
14
14
|
| **credit_limit** | **Float** | | [optional] |
|
15
15
|
| **currency_code** | **String** | | [optional] |
|
16
|
-
| **day_payment_is_due** | **Integer** | | [optional] |
|
17
16
|
| **death_benefit** | **Integer** | | [optional] |
|
18
|
-
| **id** | **String** | | [optional] |
|
19
17
|
| **interest_rate** | **Float** | | [optional] |
|
18
|
+
| **is_business** | **Boolean** | | [optional] |
|
20
19
|
| **is_closed** | **Boolean** | | [optional] |
|
21
20
|
| **is_hidden** | **Boolean** | | [optional] |
|
22
|
-
| **last_payment** | **Float** | | [optional] |
|
23
|
-
| **last_payment_at** | **String** | | [optional] |
|
24
21
|
| **loan_amount** | **Float** | | [optional] |
|
25
|
-
| **matures_on** | **String** | | [optional] |
|
26
22
|
| **metadata** | **String** | | [optional] |
|
27
|
-
| **minimum_balance** | **Float** | | [optional] |
|
28
|
-
| **minimum_payment** | **Float** | | [optional] |
|
29
23
|
| **name** | **String** | | |
|
30
24
|
| **nickname** | **String** | | [optional] |
|
31
25
|
| **original_balance** | **Float** | | [optional] |
|
32
|
-
| **
|
33
|
-
| **
|
34
|
-
| **
|
35
|
-
| **started_on** | **String** | | [optional] |
|
36
|
-
| **subtype** | **String** | | [optional] |
|
37
|
-
| **type** | **String** | | |
|
26
|
+
| **property_type** | **Integer** | | [optional] |
|
27
|
+
| **property_type_name** | **String** | | [optional] |
|
28
|
+
| **skip_webhook** | **Boolean** | | [optional] |
|
38
29
|
|
39
30
|
## Example
|
40
31
|
|
@@ -42,37 +33,28 @@
|
|
42
33
|
require 'mx-platform-ruby'
|
43
34
|
|
44
35
|
instance = MxPlatformRuby::AccountCreateRequest.new(
|
45
|
-
|
36
|
+
account_subtype_name: PERSONAL,
|
37
|
+
account_type: 2,
|
46
38
|
apr: 1.0,
|
47
39
|
apy: 1.0,
|
48
40
|
available_balance: 1000.0,
|
49
|
-
available_credit: 1000.0,
|
50
41
|
balance: 1000.0,
|
51
42
|
cash_surrender_value: 1000.0,
|
52
43
|
credit_limit: 100.0,
|
53
44
|
currency_code: USD,
|
54
|
-
day_payment_is_due: 20,
|
55
45
|
death_benefit: 1000,
|
56
|
-
id: 1040434698,
|
57
46
|
interest_rate: 1.0,
|
47
|
+
is_business: false,
|
58
48
|
is_closed: false,
|
59
49
|
is_hidden: false,
|
60
|
-
last_payment: 100.0,
|
61
|
-
last_payment_at: 2015-10-13T17:57:37.000Z,
|
62
50
|
loan_amount: 1000.0,
|
63
|
-
matures_on: 2015-10-13T17:57:37.000Z,
|
64
51
|
metadata: some metadata,
|
65
|
-
minimum_balance: 100.0,
|
66
|
-
minimum_payment: 10.0,
|
67
52
|
name: Test account 2,
|
68
53
|
nickname: Swiss Account,
|
69
54
|
original_balance: 10.0,
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
started_on: 2015-10-13T17:57:37.000Z,
|
74
|
-
subtype: NONE,
|
75
|
-
type: SAVINGS
|
55
|
+
property_type: 1,
|
56
|
+
property_type_name: VEHICLE,
|
57
|
+
skip_webhook: false
|
76
58
|
)
|
77
59
|
```
|
78
60
|
|
@@ -4,7 +4,6 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **skip_webhook** | **Boolean** | | [optional] |
|
8
7
|
| **account** | [**AccountCreateRequest**](AccountCreateRequest.md) | | [optional] |
|
9
8
|
|
10
9
|
## Example
|
@@ -13,7 +12,6 @@
|
|
13
12
|
require 'mx-platform-ruby'
|
14
13
|
|
15
14
|
instance = MxPlatformRuby::AccountCreateRequestBody.new(
|
16
|
-
skip_webhook: true,
|
17
15
|
account: null
|
18
16
|
)
|
19
17
|
```
|
data/docs/AccountResponse.md
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **account_number** | **String** | | [optional] |
|
8
|
+
| **account_ownership** | **String** | | [optional] |
|
9
|
+
| **annuity_policy_to_date** | **String** | | [optional] |
|
10
|
+
| **annuity_provider** | **String** | | [optional] |
|
11
|
+
| **annuity_term_year** | **Float** | | [optional] |
|
8
12
|
| **apr** | **Float** | | [optional] |
|
9
13
|
| **apy** | **Float** | | [optional] |
|
10
14
|
| **available_balance** | **Float** | | [optional] |
|
@@ -21,16 +25,16 @@
|
|
21
25
|
| **holdings_value** | **Float** | | [optional] |
|
22
26
|
| **id** | **String** | | [optional] |
|
23
27
|
| **imported_at** | **String** | | [optional] |
|
28
|
+
| **interest_rate** | **Float** | | [optional] |
|
24
29
|
| **institution_code** | **String** | | [optional] |
|
25
30
|
| **insured_name** | **String** | | [optional] |
|
26
|
-
| **interest_rate** | **Float** | | [optional] |
|
27
|
-
| **is_business** | **Boolean** | | [optional] |
|
28
31
|
| **is_closed** | **Boolean** | | [optional] |
|
29
32
|
| **is_hidden** | **Boolean** | | [optional] |
|
30
33
|
| **is_manual** | **Boolean** | | [optional] |
|
31
34
|
| **last_payment** | **Float** | | [optional] |
|
32
35
|
| **last_payment_at** | **String** | | [optional] |
|
33
36
|
| **loan_amount** | **Float** | | [optional] |
|
37
|
+
| **margin_balance** | **Float** | | [optional] |
|
34
38
|
| **matures_on** | **String** | | [optional] |
|
35
39
|
| **member_guid** | **String** | | [optional] |
|
36
40
|
| **member_id** | **String** | | [optional] |
|
@@ -45,10 +49,13 @@
|
|
45
49
|
| **payment_due_at** | **String** | | [optional] |
|
46
50
|
| **payoff_balance** | **Float** | | [optional] |
|
47
51
|
| **premium_amount** | **Float** | | [optional] |
|
48
|
-
| **property_type** | **
|
52
|
+
| **property_type** | **Integer** | | [optional] |
|
53
|
+
| **property_type_name** | **String** | | [optional] |
|
49
54
|
| **routing_number** | **String** | | [optional] |
|
50
55
|
| **started_on** | **String** | | [optional] |
|
51
56
|
| **subtype** | **String** | | [optional] |
|
57
|
+
| **today_ugl_amount** | **Float** | | [optional] |
|
58
|
+
| **today_ugl_percentage** | **Float** | | [optional] |
|
52
59
|
| **total_account_value** | **Float** | | [optional] |
|
53
60
|
| **type** | **String** | | [optional] |
|
54
61
|
| **updated_at** | **String** | | [optional] |
|
@@ -62,14 +69,18 @@ require 'mx-platform-ruby'
|
|
62
69
|
|
63
70
|
instance = MxPlatformRuby::AccountResponse.new(
|
64
71
|
account_number: 5366,
|
72
|
+
account_ownership: INDIVIDUAL,
|
73
|
+
annuity_policy_to_date: 2016-10-13T17:57:37.000Z,
|
74
|
+
annuity_provider: Metlife,
|
75
|
+
annuity_term_year: 2048,
|
65
76
|
apr: 1.0,
|
66
77
|
apy: 1.0,
|
67
78
|
available_balance: 1000.0,
|
68
79
|
available_credit: 1000.0,
|
69
|
-
balance:
|
80
|
+
balance: 10000.0,
|
70
81
|
cash_balance: 1000.0,
|
71
82
|
cash_surrender_value: 1000.0,
|
72
|
-
created_at:
|
83
|
+
created_at: 2023-07-25T17:14:46Z,
|
73
84
|
credit_limit: 100.0,
|
74
85
|
currency_code: USD,
|
75
86
|
day_payment_is_due: 20,
|
@@ -78,16 +89,16 @@ instance = MxPlatformRuby::AccountResponse.new(
|
|
78
89
|
holdings_value: 1000.0,
|
79
90
|
id: 1040434698,
|
80
91
|
imported_at: 2015-10-13T17:57:37.000Z,
|
81
|
-
institution_code: chase,
|
82
|
-
insured_name: Frodo Baggins,
|
83
92
|
interest_rate: 1.0,
|
84
|
-
|
93
|
+
institution_code: 3af3685e-05d9-7060-359f-008d0755e993,
|
94
|
+
insured_name: Tommy Shelby,
|
85
95
|
is_closed: false,
|
86
96
|
is_hidden: false,
|
87
97
|
is_manual: false,
|
88
98
|
last_payment: 100.0,
|
89
|
-
last_payment_at:
|
99
|
+
last_payment_at: 2023-07-25T17:14:46Z,
|
90
100
|
loan_amount: 1000.0,
|
101
|
+
margin_balance: 1000.0,
|
91
102
|
matures_on: 2015-10-13T17:57:37.000Z,
|
92
103
|
member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b,
|
93
104
|
member_id: member123,
|
@@ -103,9 +114,12 @@ instance = MxPlatformRuby::AccountResponse.new(
|
|
103
114
|
payoff_balance: 10.0,
|
104
115
|
premium_amount: 1.0,
|
105
116
|
property_type: 1,
|
117
|
+
property_type_name: VEHICLE,
|
106
118
|
routing_number: 68899990000000,
|
107
119
|
started_on: 2015-10-13T17:57:37.000Z,
|
108
120
|
subtype: NONE,
|
121
|
+
today_ugl_amount: 1000.5,
|
122
|
+
today_ugl_percentage: 6.9,
|
109
123
|
total_account_value: 1.0,
|
110
124
|
type: SAVINGS,
|
111
125
|
updated_at: 2016-10-13T18:08:00.000Z,
|
@@ -15,7 +15,9 @@ require 'time'
|
|
15
15
|
|
16
16
|
module MxPlatformRuby
|
17
17
|
class AccountCreateRequest
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :account_subtype_name
|
19
|
+
|
20
|
+
attr_accessor :account_type
|
19
21
|
|
20
22
|
attr_accessor :apr
|
21
23
|
|
@@ -23,8 +25,6 @@ module MxPlatformRuby
|
|
23
25
|
|
24
26
|
attr_accessor :available_balance
|
25
27
|
|
26
|
-
attr_accessor :available_credit
|
27
|
-
|
28
28
|
attr_accessor :balance
|
29
29
|
|
30
30
|
attr_accessor :cash_surrender_value
|
@@ -33,84 +33,57 @@ module MxPlatformRuby
|
|
33
33
|
|
34
34
|
attr_accessor :currency_code
|
35
35
|
|
36
|
-
attr_accessor :day_payment_is_due
|
37
|
-
|
38
36
|
attr_accessor :death_benefit
|
39
37
|
|
40
|
-
attr_accessor :id
|
41
|
-
|
42
38
|
attr_accessor :interest_rate
|
43
39
|
|
40
|
+
attr_accessor :is_business
|
41
|
+
|
44
42
|
attr_accessor :is_closed
|
45
43
|
|
46
44
|
attr_accessor :is_hidden
|
47
45
|
|
48
|
-
attr_accessor :last_payment
|
49
|
-
|
50
|
-
attr_accessor :last_payment_at
|
51
|
-
|
52
46
|
attr_accessor :loan_amount
|
53
47
|
|
54
|
-
attr_accessor :matures_on
|
55
|
-
|
56
48
|
attr_accessor :metadata
|
57
49
|
|
58
|
-
attr_accessor :minimum_balance
|
59
|
-
|
60
|
-
attr_accessor :minimum_payment
|
61
|
-
|
62
50
|
attr_accessor :name
|
63
51
|
|
64
52
|
attr_accessor :nickname
|
65
53
|
|
66
54
|
attr_accessor :original_balance
|
67
55
|
|
68
|
-
attr_accessor :
|
69
|
-
|
70
|
-
attr_accessor :payoff_balance
|
56
|
+
attr_accessor :property_type
|
71
57
|
|
72
|
-
attr_accessor :
|
58
|
+
attr_accessor :property_type_name
|
73
59
|
|
74
|
-
attr_accessor :
|
75
|
-
|
76
|
-
attr_accessor :subtype
|
77
|
-
|
78
|
-
attr_accessor :type
|
60
|
+
attr_accessor :skip_webhook
|
79
61
|
|
80
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
81
63
|
def self.attribute_map
|
82
64
|
{
|
83
|
-
:'
|
65
|
+
:'account_subtype_name' => :'account_subtype_name',
|
66
|
+
:'account_type' => :'account_type',
|
84
67
|
:'apr' => :'apr',
|
85
68
|
:'apy' => :'apy',
|
86
69
|
:'available_balance' => :'available_balance',
|
87
|
-
:'available_credit' => :'available_credit',
|
88
70
|
:'balance' => :'balance',
|
89
71
|
:'cash_surrender_value' => :'cash_surrender_value',
|
90
72
|
:'credit_limit' => :'credit_limit',
|
91
73
|
:'currency_code' => :'currency_code',
|
92
|
-
:'day_payment_is_due' => :'day_payment_is_due',
|
93
74
|
:'death_benefit' => :'death_benefit',
|
94
|
-
:'id' => :'id',
|
95
75
|
:'interest_rate' => :'interest_rate',
|
76
|
+
:'is_business' => :'is_business',
|
96
77
|
:'is_closed' => :'is_closed',
|
97
78
|
:'is_hidden' => :'is_hidden',
|
98
|
-
:'last_payment' => :'last_payment',
|
99
|
-
:'last_payment_at' => :'last_payment_at',
|
100
79
|
:'loan_amount' => :'loan_amount',
|
101
|
-
:'matures_on' => :'matures_on',
|
102
80
|
:'metadata' => :'metadata',
|
103
|
-
:'minimum_balance' => :'minimum_balance',
|
104
|
-
:'minimum_payment' => :'minimum_payment',
|
105
81
|
:'name' => :'name',
|
106
82
|
:'nickname' => :'nickname',
|
107
83
|
:'original_balance' => :'original_balance',
|
108
|
-
:'
|
109
|
-
:'
|
110
|
-
:'
|
111
|
-
:'started_on' => :'started_on',
|
112
|
-
:'subtype' => :'subtype',
|
113
|
-
:'type' => :'type'
|
84
|
+
:'property_type' => :'property_type',
|
85
|
+
:'property_type_name' => :'property_type_name',
|
86
|
+
:'skip_webhook' => :'skip_webhook'
|
114
87
|
}
|
115
88
|
end
|
116
89
|
|
@@ -122,37 +95,28 @@ module MxPlatformRuby
|
|
122
95
|
# Attribute type mapping.
|
123
96
|
def self.openapi_types
|
124
97
|
{
|
125
|
-
:'
|
98
|
+
:'account_subtype_name' => :'String',
|
99
|
+
:'account_type' => :'Integer',
|
126
100
|
:'apr' => :'Float',
|
127
101
|
:'apy' => :'Float',
|
128
102
|
:'available_balance' => :'Float',
|
129
|
-
:'available_credit' => :'Float',
|
130
103
|
:'balance' => :'Float',
|
131
104
|
:'cash_surrender_value' => :'Float',
|
132
105
|
:'credit_limit' => :'Float',
|
133
106
|
:'currency_code' => :'String',
|
134
|
-
:'day_payment_is_due' => :'Integer',
|
135
107
|
:'death_benefit' => :'Integer',
|
136
|
-
:'id' => :'String',
|
137
108
|
:'interest_rate' => :'Float',
|
109
|
+
:'is_business' => :'Boolean',
|
138
110
|
:'is_closed' => :'Boolean',
|
139
111
|
:'is_hidden' => :'Boolean',
|
140
|
-
:'last_payment' => :'Float',
|
141
|
-
:'last_payment_at' => :'String',
|
142
112
|
:'loan_amount' => :'Float',
|
143
|
-
:'matures_on' => :'String',
|
144
113
|
:'metadata' => :'String',
|
145
|
-
:'minimum_balance' => :'Float',
|
146
|
-
:'minimum_payment' => :'Float',
|
147
114
|
:'name' => :'String',
|
148
115
|
:'nickname' => :'String',
|
149
116
|
:'original_balance' => :'Float',
|
150
|
-
:'
|
151
|
-
:'
|
152
|
-
:'
|
153
|
-
:'started_on' => :'String',
|
154
|
-
:'subtype' => :'String',
|
155
|
-
:'type' => :'String'
|
117
|
+
:'property_type' => :'Integer',
|
118
|
+
:'property_type_name' => :'String',
|
119
|
+
:'skip_webhook' => :'Boolean'
|
156
120
|
}
|
157
121
|
end
|
158
122
|
|
@@ -177,8 +141,12 @@ module MxPlatformRuby
|
|
177
141
|
h[k.to_sym] = v
|
178
142
|
}
|
179
143
|
|
180
|
-
if attributes.key?(:'
|
181
|
-
self.
|
144
|
+
if attributes.key?(:'account_subtype_name')
|
145
|
+
self.account_subtype_name = attributes[:'account_subtype_name']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'account_type')
|
149
|
+
self.account_type = attributes[:'account_type']
|
182
150
|
end
|
183
151
|
|
184
152
|
if attributes.key?(:'apr')
|
@@ -193,10 +161,6 @@ module MxPlatformRuby
|
|
193
161
|
self.available_balance = attributes[:'available_balance']
|
194
162
|
end
|
195
163
|
|
196
|
-
if attributes.key?(:'available_credit')
|
197
|
-
self.available_credit = attributes[:'available_credit']
|
198
|
-
end
|
199
|
-
|
200
164
|
if attributes.key?(:'balance')
|
201
165
|
self.balance = attributes[:'balance']
|
202
166
|
end
|
@@ -213,22 +177,18 @@ module MxPlatformRuby
|
|
213
177
|
self.currency_code = attributes[:'currency_code']
|
214
178
|
end
|
215
179
|
|
216
|
-
if attributes.key?(:'day_payment_is_due')
|
217
|
-
self.day_payment_is_due = attributes[:'day_payment_is_due']
|
218
|
-
end
|
219
|
-
|
220
180
|
if attributes.key?(:'death_benefit')
|
221
181
|
self.death_benefit = attributes[:'death_benefit']
|
222
182
|
end
|
223
183
|
|
224
|
-
if attributes.key?(:'id')
|
225
|
-
self.id = attributes[:'id']
|
226
|
-
end
|
227
|
-
|
228
184
|
if attributes.key?(:'interest_rate')
|
229
185
|
self.interest_rate = attributes[:'interest_rate']
|
230
186
|
end
|
231
187
|
|
188
|
+
if attributes.key?(:'is_business')
|
189
|
+
self.is_business = attributes[:'is_business']
|
190
|
+
end
|
191
|
+
|
232
192
|
if attributes.key?(:'is_closed')
|
233
193
|
self.is_closed = attributes[:'is_closed']
|
234
194
|
end
|
@@ -237,34 +197,14 @@ module MxPlatformRuby
|
|
237
197
|
self.is_hidden = attributes[:'is_hidden']
|
238
198
|
end
|
239
199
|
|
240
|
-
if attributes.key?(:'last_payment')
|
241
|
-
self.last_payment = attributes[:'last_payment']
|
242
|
-
end
|
243
|
-
|
244
|
-
if attributes.key?(:'last_payment_at')
|
245
|
-
self.last_payment_at = attributes[:'last_payment_at']
|
246
|
-
end
|
247
|
-
|
248
200
|
if attributes.key?(:'loan_amount')
|
249
201
|
self.loan_amount = attributes[:'loan_amount']
|
250
202
|
end
|
251
203
|
|
252
|
-
if attributes.key?(:'matures_on')
|
253
|
-
self.matures_on = attributes[:'matures_on']
|
254
|
-
end
|
255
|
-
|
256
204
|
if attributes.key?(:'metadata')
|
257
205
|
self.metadata = attributes[:'metadata']
|
258
206
|
end
|
259
207
|
|
260
|
-
if attributes.key?(:'minimum_balance')
|
261
|
-
self.minimum_balance = attributes[:'minimum_balance']
|
262
|
-
end
|
263
|
-
|
264
|
-
if attributes.key?(:'minimum_payment')
|
265
|
-
self.minimum_payment = attributes[:'minimum_payment']
|
266
|
-
end
|
267
|
-
|
268
208
|
if attributes.key?(:'name')
|
269
209
|
self.name = attributes[:'name']
|
270
210
|
end
|
@@ -277,28 +217,16 @@ module MxPlatformRuby
|
|
277
217
|
self.original_balance = attributes[:'original_balance']
|
278
218
|
end
|
279
219
|
|
280
|
-
if attributes.key?(:'
|
281
|
-
self.
|
282
|
-
end
|
283
|
-
|
284
|
-
if attributes.key?(:'payoff_balance')
|
285
|
-
self.payoff_balance = attributes[:'payoff_balance']
|
286
|
-
end
|
287
|
-
|
288
|
-
if attributes.key?(:'routing_number')
|
289
|
-
self.routing_number = attributes[:'routing_number']
|
290
|
-
end
|
291
|
-
|
292
|
-
if attributes.key?(:'started_on')
|
293
|
-
self.started_on = attributes[:'started_on']
|
220
|
+
if attributes.key?(:'property_type')
|
221
|
+
self.property_type = attributes[:'property_type']
|
294
222
|
end
|
295
223
|
|
296
|
-
if attributes.key?(:'
|
297
|
-
self.
|
224
|
+
if attributes.key?(:'property_type_name')
|
225
|
+
self.property_type_name = attributes[:'property_type_name']
|
298
226
|
end
|
299
227
|
|
300
|
-
if attributes.key?(:'
|
301
|
-
self.
|
228
|
+
if attributes.key?(:'skip_webhook')
|
229
|
+
self.skip_webhook = attributes[:'skip_webhook']
|
302
230
|
end
|
303
231
|
end
|
304
232
|
|
@@ -306,27 +234,22 @@ module MxPlatformRuby
|
|
306
234
|
# @return Array for valid properties with the reasons
|
307
235
|
def list_invalid_properties
|
308
236
|
invalid_properties = Array.new
|
309
|
-
if @
|
310
|
-
invalid_properties.push('invalid value for "
|
237
|
+
if @account_type.nil?
|
238
|
+
invalid_properties.push('invalid value for "account_type", account_type cannot be nil.')
|
311
239
|
end
|
312
240
|
|
313
241
|
if @name.nil?
|
314
242
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
315
243
|
end
|
316
244
|
|
317
|
-
if @type.nil?
|
318
|
-
invalid_properties.push('invalid value for "type", type cannot be nil.')
|
319
|
-
end
|
320
|
-
|
321
245
|
invalid_properties
|
322
246
|
end
|
323
247
|
|
324
248
|
# Check to see if the all the properties in the model are valid
|
325
249
|
# @return true if the model is valid
|
326
250
|
def valid?
|
327
|
-
return false if @
|
251
|
+
return false if @account_type.nil?
|
328
252
|
return false if @name.nil?
|
329
|
-
return false if @type.nil?
|
330
253
|
true
|
331
254
|
end
|
332
255
|
|
@@ -335,37 +258,28 @@ module MxPlatformRuby
|
|
335
258
|
def ==(o)
|
336
259
|
return true if self.equal?(o)
|
337
260
|
self.class == o.class &&
|
338
|
-
|
261
|
+
account_subtype_name == o.account_subtype_name &&
|
262
|
+
account_type == o.account_type &&
|
339
263
|
apr == o.apr &&
|
340
264
|
apy == o.apy &&
|
341
265
|
available_balance == o.available_balance &&
|
342
|
-
available_credit == o.available_credit &&
|
343
266
|
balance == o.balance &&
|
344
267
|
cash_surrender_value == o.cash_surrender_value &&
|
345
268
|
credit_limit == o.credit_limit &&
|
346
269
|
currency_code == o.currency_code &&
|
347
|
-
day_payment_is_due == o.day_payment_is_due &&
|
348
270
|
death_benefit == o.death_benefit &&
|
349
|
-
id == o.id &&
|
350
271
|
interest_rate == o.interest_rate &&
|
272
|
+
is_business == o.is_business &&
|
351
273
|
is_closed == o.is_closed &&
|
352
274
|
is_hidden == o.is_hidden &&
|
353
|
-
last_payment == o.last_payment &&
|
354
|
-
last_payment_at == o.last_payment_at &&
|
355
275
|
loan_amount == o.loan_amount &&
|
356
|
-
matures_on == o.matures_on &&
|
357
276
|
metadata == o.metadata &&
|
358
|
-
minimum_balance == o.minimum_balance &&
|
359
|
-
minimum_payment == o.minimum_payment &&
|
360
277
|
name == o.name &&
|
361
278
|
nickname == o.nickname &&
|
362
279
|
original_balance == o.original_balance &&
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
started_on == o.started_on &&
|
367
|
-
subtype == o.subtype &&
|
368
|
-
type == o.type
|
280
|
+
property_type == o.property_type &&
|
281
|
+
property_type_name == o.property_type_name &&
|
282
|
+
skip_webhook == o.skip_webhook
|
369
283
|
end
|
370
284
|
|
371
285
|
# @see the `==` method
|
@@ -377,7 +291,7 @@ module MxPlatformRuby
|
|
377
291
|
# Calculates hash code according to all attributes.
|
378
292
|
# @return [Integer] Hash code
|
379
293
|
def hash
|
380
|
-
[
|
294
|
+
[account_subtype_name, 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, property_type_name, skip_webhook].hash
|
381
295
|
end
|
382
296
|
|
383
297
|
# Builds the object from hash
|
@@ -15,14 +15,11 @@ require 'time'
|
|
15
15
|
|
16
16
|
module MxPlatformRuby
|
17
17
|
class AccountCreateRequestBody
|
18
|
-
attr_accessor :skip_webhook
|
19
|
-
|
20
18
|
attr_accessor :account
|
21
19
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
21
|
def self.attribute_map
|
24
22
|
{
|
25
|
-
:'skip_webhook' => :'skip_webhook',
|
26
23
|
:'account' => :'account'
|
27
24
|
}
|
28
25
|
end
|
@@ -35,7 +32,6 @@ module MxPlatformRuby
|
|
35
32
|
# Attribute type mapping.
|
36
33
|
def self.openapi_types
|
37
34
|
{
|
38
|
-
:'skip_webhook' => :'Boolean',
|
39
35
|
:'account' => :'AccountCreateRequest'
|
40
36
|
}
|
41
37
|
end
|
@@ -43,7 +39,6 @@ module MxPlatformRuby
|
|
43
39
|
# List of attributes with nullable: true
|
44
40
|
def self.openapi_nullable
|
45
41
|
Set.new([
|
46
|
-
:'skip_webhook',
|
47
42
|
])
|
48
43
|
end
|
49
44
|
|
@@ -62,10 +57,6 @@ module MxPlatformRuby
|
|
62
57
|
h[k.to_sym] = v
|
63
58
|
}
|
64
59
|
|
65
|
-
if attributes.key?(:'skip_webhook')
|
66
|
-
self.skip_webhook = attributes[:'skip_webhook']
|
67
|
-
end
|
68
|
-
|
69
60
|
if attributes.key?(:'account')
|
70
61
|
self.account = attributes[:'account']
|
71
62
|
end
|
@@ -89,7 +80,6 @@ module MxPlatformRuby
|
|
89
80
|
def ==(o)
|
90
81
|
return true if self.equal?(o)
|
91
82
|
self.class == o.class &&
|
92
|
-
skip_webhook == o.skip_webhook &&
|
93
83
|
account == o.account
|
94
84
|
end
|
95
85
|
|
@@ -102,7 +92,7 @@ module MxPlatformRuby
|
|
102
92
|
# Calculates hash code according to all attributes.
|
103
93
|
# @return [Integer] Hash code
|
104
94
|
def hash
|
105
|
-
[
|
95
|
+
[account].hash
|
106
96
|
end
|
107
97
|
|
108
98
|
# Builds the object from hash
|