mx-platform-ruby 0.17.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +8 -6
- data/docs/AccountCreateRequest.md +78 -0
- data/docs/AccountCreateRequestBody.md +20 -0
- data/docs/AccountResponse.md +6 -0
- data/docs/MxPlatformApi.md +145 -0
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +141 -0
- data/lib/mx-platform-ruby/models/account_create_request.rb +503 -0
- data/lib/mx-platform-ruby/models/account_create_request_body.rb +228 -0
- data/lib/mx-platform-ruby/models/account_response.rb +31 -1
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/lib/mx-platform-ruby.rb +2 -0
- data/openapi/config.yml +1 -1
- data/spec/api/mx_platform_api_spec.rb +26 -0
- data/spec/models/account_create_request_body_spec.rb +40 -0
- data/spec/models/account_create_request_spec.rb +214 -0
- data/spec/models/account_response_spec.rb +18 -0
- metadata +112 -104
@@ -0,0 +1,228 @@
|
|
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: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MxPlatformRuby
|
17
|
+
class AccountCreateRequestBody
|
18
|
+
attr_accessor :skip_webhook
|
19
|
+
|
20
|
+
attr_accessor :account
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'skip_webhook' => :'skip_webhook',
|
26
|
+
:'account' => :'account'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'skip_webhook' => :'Boolean',
|
39
|
+
:'account' => :'AccountCreateRequest'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
:'skip_webhook',
|
47
|
+
])
|
48
|
+
end
|
49
|
+
|
50
|
+
# Initializes the object
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
52
|
+
def initialize(attributes = {})
|
53
|
+
if (!attributes.is_a?(Hash))
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::AccountCreateRequestBody` initialize method"
|
55
|
+
end
|
56
|
+
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::AccountCreateRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
61
|
+
end
|
62
|
+
h[k.to_sym] = v
|
63
|
+
}
|
64
|
+
|
65
|
+
if attributes.key?(:'skip_webhook')
|
66
|
+
self.skip_webhook = attributes[:'skip_webhook']
|
67
|
+
end
|
68
|
+
|
69
|
+
if attributes.key?(:'account')
|
70
|
+
self.account = attributes[:'account']
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
75
|
+
# @return Array for valid properties with the reasons
|
76
|
+
def list_invalid_properties
|
77
|
+
invalid_properties = Array.new
|
78
|
+
invalid_properties
|
79
|
+
end
|
80
|
+
|
81
|
+
# Check to see if the all the properties in the model are valid
|
82
|
+
# @return true if the model is valid
|
83
|
+
def valid?
|
84
|
+
true
|
85
|
+
end
|
86
|
+
|
87
|
+
# Checks equality by comparing each attribute.
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def ==(o)
|
90
|
+
return true if self.equal?(o)
|
91
|
+
self.class == o.class &&
|
92
|
+
skip_webhook == o.skip_webhook &&
|
93
|
+
account == o.account
|
94
|
+
end
|
95
|
+
|
96
|
+
# @see the `==` method
|
97
|
+
# @param [Object] Object to be compared
|
98
|
+
def eql?(o)
|
99
|
+
self == o
|
100
|
+
end
|
101
|
+
|
102
|
+
# Calculates hash code according to all attributes.
|
103
|
+
# @return [Integer] Hash code
|
104
|
+
def hash
|
105
|
+
[skip_webhook, account].hash
|
106
|
+
end
|
107
|
+
|
108
|
+
# Builds the object from hash
|
109
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
110
|
+
# @return [Object] Returns the model itself
|
111
|
+
def self.build_from_hash(attributes)
|
112
|
+
new.build_from_hash(attributes)
|
113
|
+
end
|
114
|
+
|
115
|
+
# Builds the object from hash
|
116
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
117
|
+
# @return [Object] Returns the model itself
|
118
|
+
def build_from_hash(attributes)
|
119
|
+
return nil unless attributes.is_a?(Hash)
|
120
|
+
self.class.openapi_types.each_pair do |key, type|
|
121
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
122
|
+
self.send("#{key}=", nil)
|
123
|
+
elsif type =~ /\AArray<(.*)>/i
|
124
|
+
# check to ensure the input is an array given that the attribute
|
125
|
+
# is documented as an array but the input is not
|
126
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
127
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
128
|
+
end
|
129
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
130
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
134
|
+
self
|
135
|
+
end
|
136
|
+
|
137
|
+
# Deserializes the data based on type
|
138
|
+
# @param string type Data type
|
139
|
+
# @param string value Value to be deserialized
|
140
|
+
# @return [Object] Deserialized data
|
141
|
+
def _deserialize(type, value)
|
142
|
+
case type.to_sym
|
143
|
+
when :Time
|
144
|
+
Time.parse(value)
|
145
|
+
when :Date
|
146
|
+
Date.parse(value)
|
147
|
+
when :String
|
148
|
+
value.to_s
|
149
|
+
when :Integer
|
150
|
+
value.to_i
|
151
|
+
when :Float
|
152
|
+
value.to_f
|
153
|
+
when :Boolean
|
154
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
155
|
+
true
|
156
|
+
else
|
157
|
+
false
|
158
|
+
end
|
159
|
+
when :Object
|
160
|
+
# generic object (usually a Hash), return directly
|
161
|
+
value
|
162
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
163
|
+
inner_type = Regexp.last_match[:inner_type]
|
164
|
+
value.map { |v| _deserialize(inner_type, v) }
|
165
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
166
|
+
k_type = Regexp.last_match[:k_type]
|
167
|
+
v_type = Regexp.last_match[:v_type]
|
168
|
+
{}.tap do |hash|
|
169
|
+
value.each do |k, v|
|
170
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
171
|
+
end
|
172
|
+
end
|
173
|
+
else # model
|
174
|
+
# models (e.g. Pet) or oneOf
|
175
|
+
klass = MxPlatformRuby.const_get(type)
|
176
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# Returns the string representation of the object
|
181
|
+
# @return [String] String presentation of the object
|
182
|
+
def to_s
|
183
|
+
to_hash.to_s
|
184
|
+
end
|
185
|
+
|
186
|
+
# to_body is an alias to to_hash (backward compatibility)
|
187
|
+
# @return [Hash] Returns the object in the form of hash
|
188
|
+
def to_body
|
189
|
+
to_hash
|
190
|
+
end
|
191
|
+
|
192
|
+
# Returns the object in the form of hash
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_hash
|
195
|
+
hash = {}
|
196
|
+
self.class.attribute_map.each_pair do |attr, param|
|
197
|
+
value = self.send(attr)
|
198
|
+
if value.nil?
|
199
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
200
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
201
|
+
end
|
202
|
+
|
203
|
+
hash[param] = _to_hash(value)
|
204
|
+
end
|
205
|
+
hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Outputs non-array value in the form of hash
|
209
|
+
# For object, use to_hash. Otherwise, just return the value
|
210
|
+
# @param [Object] value Any valid value
|
211
|
+
# @return [Hash] Returns the value in the form of hash
|
212
|
+
def _to_hash(value)
|
213
|
+
if value.is_a?(Array)
|
214
|
+
value.compact.map { |v| _to_hash(v) }
|
215
|
+
elsif value.is_a?(Hash)
|
216
|
+
{}.tap do |hash|
|
217
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
218
|
+
end
|
219
|
+
elsif value.respond_to? :to_hash
|
220
|
+
value.to_hash
|
221
|
+
else
|
222
|
+
value
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
end
|
227
|
+
|
228
|
+
end
|
@@ -55,10 +55,14 @@ module MxPlatformRuby
|
|
55
55
|
|
56
56
|
attr_accessor :interest_rate
|
57
57
|
|
58
|
+
attr_accessor :is_business
|
59
|
+
|
58
60
|
attr_accessor :is_closed
|
59
61
|
|
60
62
|
attr_accessor :is_hidden
|
61
63
|
|
64
|
+
attr_accessor :is_manual
|
65
|
+
|
62
66
|
attr_accessor :last_payment
|
63
67
|
|
64
68
|
attr_accessor :last_payment_at
|
@@ -93,6 +97,8 @@ module MxPlatformRuby
|
|
93
97
|
|
94
98
|
attr_accessor :premium_amount
|
95
99
|
|
100
|
+
attr_accessor :property_type
|
101
|
+
|
96
102
|
attr_accessor :routing_number
|
97
103
|
|
98
104
|
attr_accessor :started_on
|
@@ -132,8 +138,10 @@ module MxPlatformRuby
|
|
132
138
|
:'institution_code' => :'institution_code',
|
133
139
|
:'insured_name' => :'insured_name',
|
134
140
|
:'interest_rate' => :'interest_rate',
|
141
|
+
:'is_business' => :'is_business',
|
135
142
|
:'is_closed' => :'is_closed',
|
136
143
|
:'is_hidden' => :'is_hidden',
|
144
|
+
:'is_manual' => :'is_manual',
|
137
145
|
:'last_payment' => :'last_payment',
|
138
146
|
:'last_payment_at' => :'last_payment_at',
|
139
147
|
:'loan_amount' => :'loan_amount',
|
@@ -151,6 +159,7 @@ module MxPlatformRuby
|
|
151
159
|
:'payment_due_at' => :'payment_due_at',
|
152
160
|
:'payoff_balance' => :'payoff_balance',
|
153
161
|
:'premium_amount' => :'premium_amount',
|
162
|
+
:'property_type' => :'property_type',
|
154
163
|
:'routing_number' => :'routing_number',
|
155
164
|
:'started_on' => :'started_on',
|
156
165
|
:'subtype' => :'subtype',
|
@@ -190,8 +199,10 @@ module MxPlatformRuby
|
|
190
199
|
:'institution_code' => :'String',
|
191
200
|
:'insured_name' => :'String',
|
192
201
|
:'interest_rate' => :'Float',
|
202
|
+
:'is_business' => :'Boolean',
|
193
203
|
:'is_closed' => :'Boolean',
|
194
204
|
:'is_hidden' => :'Boolean',
|
205
|
+
:'is_manual' => :'Boolean',
|
195
206
|
:'last_payment' => :'Float',
|
196
207
|
:'last_payment_at' => :'String',
|
197
208
|
:'loan_amount' => :'Float',
|
@@ -209,6 +220,7 @@ module MxPlatformRuby
|
|
209
220
|
:'payment_due_at' => :'String',
|
210
221
|
:'payoff_balance' => :'Float',
|
211
222
|
:'premium_amount' => :'Float',
|
223
|
+
:'property_type' => :'String',
|
212
224
|
:'routing_number' => :'String',
|
213
225
|
:'started_on' => :'String',
|
214
226
|
:'subtype' => :'String',
|
@@ -243,8 +255,10 @@ module MxPlatformRuby
|
|
243
255
|
:'institution_code',
|
244
256
|
:'insured_name',
|
245
257
|
:'interest_rate',
|
258
|
+
:'is_business',
|
246
259
|
:'is_closed',
|
247
260
|
:'is_hidden',
|
261
|
+
:'is_manual',
|
248
262
|
:'last_payment',
|
249
263
|
:'last_payment_at',
|
250
264
|
:'loan_amount',
|
@@ -262,6 +276,7 @@ module MxPlatformRuby
|
|
262
276
|
:'payment_due_at',
|
263
277
|
:'payoff_balance',
|
264
278
|
:'premium_amount',
|
279
|
+
:'property_type',
|
265
280
|
:'routing_number',
|
266
281
|
:'started_on',
|
267
282
|
:'subtype',
|
@@ -368,6 +383,10 @@ module MxPlatformRuby
|
|
368
383
|
self.interest_rate = attributes[:'interest_rate']
|
369
384
|
end
|
370
385
|
|
386
|
+
if attributes.key?(:'is_business')
|
387
|
+
self.is_business = attributes[:'is_business']
|
388
|
+
end
|
389
|
+
|
371
390
|
if attributes.key?(:'is_closed')
|
372
391
|
self.is_closed = attributes[:'is_closed']
|
373
392
|
end
|
@@ -376,6 +395,10 @@ module MxPlatformRuby
|
|
376
395
|
self.is_hidden = attributes[:'is_hidden']
|
377
396
|
end
|
378
397
|
|
398
|
+
if attributes.key?(:'is_manual')
|
399
|
+
self.is_manual = attributes[:'is_manual']
|
400
|
+
end
|
401
|
+
|
379
402
|
if attributes.key?(:'last_payment')
|
380
403
|
self.last_payment = attributes[:'last_payment']
|
381
404
|
end
|
@@ -444,6 +467,10 @@ module MxPlatformRuby
|
|
444
467
|
self.premium_amount = attributes[:'premium_amount']
|
445
468
|
end
|
446
469
|
|
470
|
+
if attributes.key?(:'property_type')
|
471
|
+
self.property_type = attributes[:'property_type']
|
472
|
+
end
|
473
|
+
|
447
474
|
if attributes.key?(:'routing_number')
|
448
475
|
self.routing_number = attributes[:'routing_number']
|
449
476
|
end
|
@@ -515,8 +542,10 @@ module MxPlatformRuby
|
|
515
542
|
institution_code == o.institution_code &&
|
516
543
|
insured_name == o.insured_name &&
|
517
544
|
interest_rate == o.interest_rate &&
|
545
|
+
is_business == o.is_business &&
|
518
546
|
is_closed == o.is_closed &&
|
519
547
|
is_hidden == o.is_hidden &&
|
548
|
+
is_manual == o.is_manual &&
|
520
549
|
last_payment == o.last_payment &&
|
521
550
|
last_payment_at == o.last_payment_at &&
|
522
551
|
loan_amount == o.loan_amount &&
|
@@ -534,6 +563,7 @@ module MxPlatformRuby
|
|
534
563
|
payment_due_at == o.payment_due_at &&
|
535
564
|
payoff_balance == o.payoff_balance &&
|
536
565
|
premium_amount == o.premium_amount &&
|
566
|
+
property_type == o.property_type &&
|
537
567
|
routing_number == o.routing_number &&
|
538
568
|
started_on == o.started_on &&
|
539
569
|
subtype == o.subtype &&
|
@@ -553,7 +583,7 @@ module MxPlatformRuby
|
|
553
583
|
# Calculates hash code according to all attributes.
|
554
584
|
# @return [Integer] Hash code
|
555
585
|
def hash
|
556
|
-
[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
|
586
|
+
[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_business, is_closed, is_hidden, is_manual, 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, property_type, routing_number, started_on, subtype, total_account_value, type, updated_at, user_guid, user_id].hash
|
557
587
|
end
|
558
588
|
|
559
589
|
# Builds the object from hash
|
data/lib/mx-platform-ruby.rb
CHANGED
@@ -17,6 +17,8 @@ require 'mx-platform-ruby/version'
|
|
17
17
|
require 'mx-platform-ruby/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
+
require 'mx-platform-ruby/models/account_create_request'
|
21
|
+
require 'mx-platform-ruby/models/account_create_request_body'
|
20
22
|
require 'mx-platform-ruby/models/account_number_response'
|
21
23
|
require 'mx-platform-ruby/models/account_numbers_response_body'
|
22
24
|
require 'mx-platform-ruby/models/account_owner_response'
|
data/openapi/config.yml
CHANGED
@@ -113,6 +113,19 @@ describe 'MxPlatformApi' do
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
# unit tests for create_manual_account
|
117
|
+
# Create manual account
|
118
|
+
# This endpoint can only be used to create manual accounts. Creating a manual account will automatically create it under the Manual Institution member. Since a manual account has no credentials tied to the member, the account will never aggregate or include data from a data feed..
|
119
|
+
# @param user_guid The unique id for a `user`.
|
120
|
+
# @param account_create_request_body Manual account object to be created.
|
121
|
+
# @param [Hash] opts the optional parameters
|
122
|
+
# @return [AccountResponseBody]
|
123
|
+
describe 'create_manual_account test' do
|
124
|
+
it 'should work' do
|
125
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
116
129
|
# unit tests for create_member
|
117
130
|
# Create member
|
118
131
|
# This endpoint allows you to create a new member. Members are created with the required parameters credentials and institution_code, and the optional parameters id and metadata. When creating a member, youll need to include the correct type of credential required by the financial institution and provided by the user. You can find out which credential type is required with the `/institutions/{institution_code}/credentials` endpoint. If successful, the MX Platform API will respond with the newly-created member object. Once you successfully create a member, MX will immediately validate the provided credentials and attempt to aggregate data for accounts and transactions.
|
@@ -232,6 +245,19 @@ describe 'MxPlatformApi' do
|
|
232
245
|
end
|
233
246
|
end
|
234
247
|
|
248
|
+
# unit tests for delete_manual_account
|
249
|
+
# Delete manual account
|
250
|
+
# This endpoint deletes accounts that were manually created. The API will respond with an empty object and a status of `204 No Content`.
|
251
|
+
# @param account_guid The unique id for an `account`.
|
252
|
+
# @param user_guid The unique id for a `user`.
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [nil]
|
255
|
+
describe 'delete_manual_account test' do
|
256
|
+
it 'should work' do
|
257
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
235
261
|
# unit tests for delete_member
|
236
262
|
# Delete member
|
237
263
|
# Accessing this endpoint will permanently delete a member.
|
@@ -0,0 +1,40 @@
|
|
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: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MxPlatformRuby::AccountCreateRequestBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MxPlatformRuby::AccountCreateRequestBody do
|
21
|
+
let(:instance) { MxPlatformRuby::AccountCreateRequestBody.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AccountCreateRequestBody' do
|
24
|
+
it 'should create an instance of AccountCreateRequestBody' do
|
25
|
+
expect(instance).to be_instance_of(MxPlatformRuby::AccountCreateRequestBody)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "skip_webhook"' 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"' 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
|
+
end
|
@@ -0,0 +1,214 @@
|
|
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: 5.4.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MxPlatformRuby::AccountCreateRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MxPlatformRuby::AccountCreateRequest do
|
21
|
+
let(:instance) { MxPlatformRuby::AccountCreateRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AccountCreateRequest' do
|
24
|
+
it 'should create an instance of AccountCreateRequest' do
|
25
|
+
expect(instance).to be_instance_of(MxPlatformRuby::AccountCreateRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "account_number"' 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 "apr"' 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 "apy"' 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 "available_balance"' 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_credit"' 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 "day_payment_is_due"' 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 "death_benefit"' 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 "id"' 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 "interest_rate"' 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
|
+
|
106
|
+
describe 'test attribute "is_closed"' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
describe 'test attribute "is_hidden"' 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 "last_payment"' 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 "last_payment_at"' 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 "loan_amount"' 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 "matures_on"' 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 "metadata"' 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 "minimum_balance"' 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
|
+
describe 'test attribute "minimum_payment"' do
|
155
|
+
it 'should work' do
|
156
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
describe 'test attribute "name"' do
|
161
|
+
it 'should work' do
|
162
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
describe 'test attribute "nickname"' do
|
167
|
+
it 'should work' do
|
168
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
describe 'test attribute "original_balance"' do
|
173
|
+
it 'should work' do
|
174
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
describe 'test attribute "payment_due_at"' do
|
179
|
+
it 'should work' do
|
180
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
describe 'test attribute "payoff_balance"' do
|
185
|
+
it 'should work' do
|
186
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
187
|
+
end
|
188
|
+
end
|
189
|
+
|
190
|
+
describe 'test attribute "routing_number"' do
|
191
|
+
it 'should work' do
|
192
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
describe 'test attribute "started_on"' do
|
197
|
+
it 'should work' do
|
198
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
199
|
+
end
|
200
|
+
end
|
201
|
+
|
202
|
+
describe 'test attribute "subtype"' do
|
203
|
+
it 'should work' do
|
204
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
208
|
+
describe 'test attribute "type"' do
|
209
|
+
it 'should work' do
|
210
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|