mx-platform-ruby 0.37.0 → 0.38.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 +3 -3
- data/docs/CreditCardProduct.md +44 -0
- data/docs/CreditCardProductResponse.md +18 -0
- data/docs/MxPlatformApi.md +292 -0
- data/docs/RewardResponse.md +36 -0
- data/docs/RewardResponseBody.md +18 -0
- data/docs/RewardsResponse.md +36 -0
- data/docs/RewardsResponseBody.md +20 -0
- data/lib/mx-platform-ruby/api/mx_platform_api.rb +276 -0
- data/lib/mx-platform-ruby/models/credit_card_product.rb +335 -0
- data/lib/mx-platform-ruby/models/credit_card_product_response.rb +214 -0
- data/lib/mx-platform-ruby/models/reward_response.rb +295 -0
- data/lib/mx-platform-ruby/models/reward_response_body.rb +214 -0
- data/lib/mx-platform-ruby/models/rewards_response.rb +295 -0
- data/lib/mx-platform-ruby/models/rewards_response_body.rb +225 -0
- data/lib/mx-platform-ruby/version.rb +1 -1
- data/lib/mx-platform-ruby.rb +6 -0
- data/openapi/config.yml +1 -1
- data/spec/api/mx_platform_api_spec.rb +52 -0
- data/spec/models/credit_card_product_response_spec.rb +34 -0
- data/spec/models/credit_card_product_spec.rb +112 -0
- data/spec/models/reward_response_body_spec.rb +34 -0
- data/spec/models/reward_response_spec.rb +88 -0
- data/spec/models/rewards_response_body_spec.rb +40 -0
- data/spec/models/rewards_response_spec.rb +88 -0
- metadata +144 -120
@@ -0,0 +1,225 @@
|
|
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: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MxPlatformRuby
|
17
|
+
class RewardsResponseBody
|
18
|
+
attr_accessor :rewards
|
19
|
+
|
20
|
+
attr_accessor :pagination
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'rewards' => :'rewards',
|
26
|
+
:'pagination' => :'pagination'
|
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
|
+
:'rewards' => :'Array<RewardsResponse>',
|
39
|
+
:'pagination' => :'PaginationResponse'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::RewardsResponseBody` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::RewardsResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'rewards')
|
65
|
+
if (value = attributes[:'rewards']).is_a?(Array)
|
66
|
+
self.rewards = value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'pagination')
|
71
|
+
self.pagination = attributes[:'pagination']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
79
|
+
invalid_properties = Array.new
|
80
|
+
invalid_properties
|
81
|
+
end
|
82
|
+
|
83
|
+
# Check to see if the all the properties in the model are valid
|
84
|
+
# @return true if the model is valid
|
85
|
+
def valid?
|
86
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
87
|
+
true
|
88
|
+
end
|
89
|
+
|
90
|
+
# Checks equality by comparing each attribute.
|
91
|
+
# @param [Object] Object to be compared
|
92
|
+
def ==(o)
|
93
|
+
return true if self.equal?(o)
|
94
|
+
self.class == o.class &&
|
95
|
+
rewards == o.rewards &&
|
96
|
+
pagination == o.pagination
|
97
|
+
end
|
98
|
+
|
99
|
+
# @see the `==` method
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def eql?(o)
|
102
|
+
self == o
|
103
|
+
end
|
104
|
+
|
105
|
+
# Calculates hash code according to all attributes.
|
106
|
+
# @return [Integer] Hash code
|
107
|
+
def hash
|
108
|
+
[rewards, pagination].hash
|
109
|
+
end
|
110
|
+
|
111
|
+
# Builds the object from hash
|
112
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
113
|
+
# @return [Object] Returns the model itself
|
114
|
+
def self.build_from_hash(attributes)
|
115
|
+
return nil unless attributes.is_a?(Hash)
|
116
|
+
attributes = attributes.transform_keys(&:to_sym)
|
117
|
+
transformed_hash = {}
|
118
|
+
openapi_types.each_pair do |key, type|
|
119
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
120
|
+
transformed_hash["#{key}"] = nil
|
121
|
+
elsif type =~ /\AArray<(.*)>/i
|
122
|
+
# check to ensure the input is an array given that the attribute
|
123
|
+
# is documented as an array but the input is not
|
124
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
125
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
126
|
+
end
|
127
|
+
elsif !attributes[attribute_map[key]].nil?
|
128
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
129
|
+
end
|
130
|
+
end
|
131
|
+
new(transformed_hash)
|
132
|
+
end
|
133
|
+
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
138
|
+
def self._deserialize(type, value)
|
139
|
+
case type.to_sym
|
140
|
+
when :Time
|
141
|
+
Time.parse(value)
|
142
|
+
when :Date
|
143
|
+
Date.parse(value)
|
144
|
+
when :String
|
145
|
+
value.to_s
|
146
|
+
when :Integer
|
147
|
+
value.to_i
|
148
|
+
when :Float
|
149
|
+
value.to_f
|
150
|
+
when :Boolean
|
151
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
|
+
true
|
153
|
+
else
|
154
|
+
false
|
155
|
+
end
|
156
|
+
when :Object
|
157
|
+
# generic object (usually a Hash), return directly
|
158
|
+
value
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
162
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
165
|
+
{}.tap do |hash|
|
166
|
+
value.each do |k, v|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
else # model
|
171
|
+
# models (e.g. Pet) or oneOf
|
172
|
+
klass = MxPlatformRuby.const_get(type)
|
173
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
174
|
+
end
|
175
|
+
end
|
176
|
+
|
177
|
+
# Returns the string representation of the object
|
178
|
+
# @return [String] String presentation of the object
|
179
|
+
def to_s
|
180
|
+
to_hash.to_s
|
181
|
+
end
|
182
|
+
|
183
|
+
# to_body is an alias to to_hash (backward compatibility)
|
184
|
+
# @return [Hash] Returns the object in the form of hash
|
185
|
+
def to_body
|
186
|
+
to_hash
|
187
|
+
end
|
188
|
+
|
189
|
+
# Returns the object in the form of hash
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
191
|
+
def to_hash
|
192
|
+
hash = {}
|
193
|
+
self.class.attribute_map.each_pair do |attr, param|
|
194
|
+
value = self.send(attr)
|
195
|
+
if value.nil?
|
196
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
197
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
198
|
+
end
|
199
|
+
|
200
|
+
hash[param] = _to_hash(value)
|
201
|
+
end
|
202
|
+
hash
|
203
|
+
end
|
204
|
+
|
205
|
+
# Outputs non-array value in the form of hash
|
206
|
+
# For object, use to_hash. Otherwise, just return the value
|
207
|
+
# @param [Object] value Any valid value
|
208
|
+
# @return [Hash] Returns the value in the form of hash
|
209
|
+
def _to_hash(value)
|
210
|
+
if value.is_a?(Array)
|
211
|
+
value.compact.map { |v| _to_hash(v) }
|
212
|
+
elsif value.is_a?(Hash)
|
213
|
+
{}.tap do |hash|
|
214
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
215
|
+
end
|
216
|
+
elsif value.respond_to? :to_hash
|
217
|
+
value.to_hash
|
218
|
+
else
|
219
|
+
value
|
220
|
+
end
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
224
|
+
|
225
|
+
end
|
data/lib/mx-platform-ruby.rb
CHANGED
@@ -48,6 +48,8 @@ require 'mx-platform-ruby/models/connect_widget_response_body'
|
|
48
48
|
require 'mx-platform-ruby/models/credential_request'
|
49
49
|
require 'mx-platform-ruby/models/credential_response'
|
50
50
|
require 'mx-platform-ruby/models/credentials_response_body'
|
51
|
+
require 'mx-platform-ruby/models/credit_card_product'
|
52
|
+
require 'mx-platform-ruby/models/credit_card_product_response'
|
51
53
|
require 'mx-platform-ruby/models/enhance_transaction_response'
|
52
54
|
require 'mx-platform-ruby/models/enhance_transactions_request'
|
53
55
|
require 'mx-platform-ruby/models/enhance_transactions_request_body'
|
@@ -99,6 +101,10 @@ require 'mx-platform-ruby/models/payment_processor_authorization_code_request'
|
|
99
101
|
require 'mx-platform-ruby/models/payment_processor_authorization_code_request_body'
|
100
102
|
require 'mx-platform-ruby/models/payment_processor_authorization_code_response'
|
101
103
|
require 'mx-platform-ruby/models/payment_processor_authorization_code_response_body'
|
104
|
+
require 'mx-platform-ruby/models/reward_response'
|
105
|
+
require 'mx-platform-ruby/models/reward_response_body'
|
106
|
+
require 'mx-platform-ruby/models/rewards_response'
|
107
|
+
require 'mx-platform-ruby/models/rewards_response_body'
|
102
108
|
require 'mx-platform-ruby/models/scheduled_payment_response'
|
103
109
|
require 'mx-platform-ruby/models/scheduled_payments_response_body'
|
104
110
|
require 'mx-platform-ruby/models/spending_plan_account_response'
|
data/openapi/config.yml
CHANGED
@@ -190,6 +190,18 @@ describe 'MxPlatformApi' do
|
|
190
190
|
end
|
191
191
|
end
|
192
192
|
|
193
|
+
# unit tests for credit_card
|
194
|
+
# Read a Credit Card Product
|
195
|
+
# This endpoint returns the specified `credit_card_product` according to the unique GUID.
|
196
|
+
# @param credit_card_product_guid The required `credit_card_product_guid` can be found on the `account` object.
|
197
|
+
# @param [Hash] opts the optional parameters
|
198
|
+
# @return [CreditCardProductResponse]
|
199
|
+
describe 'credit_card test' do
|
200
|
+
it 'should work' do
|
201
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
193
205
|
# unit tests for delete_category
|
194
206
|
# Delete category
|
195
207
|
# Use this endpoint to delete a specific custom category according to its unique GUID. The API will respond with an empty object and a status of `204 No Content`.
|
@@ -387,6 +399,19 @@ describe 'MxPlatformApi' do
|
|
387
399
|
end
|
388
400
|
end
|
389
401
|
|
402
|
+
# unit tests for fetch_rewards
|
403
|
+
# Fetch Rewards
|
404
|
+
# Calling this endpoint initiates an aggregation-type event which will gather the member's rewards information, as well as account and transaction information. Rewards data is also gathered with daily background aggregations.
|
405
|
+
# @param user_guid The unique id for a `user`.
|
406
|
+
# @param member_guid The unique identifier for the member. Defined by MX.
|
407
|
+
# @param [Hash] opts the optional parameters
|
408
|
+
# @return [MemberResponseBody]
|
409
|
+
describe 'fetch_rewards test' do
|
410
|
+
it 'should work' do
|
411
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
390
415
|
# unit tests for fetch_statements
|
391
416
|
# Fetch statements
|
392
417
|
# Use this endpoint to fetch the statements associated with a particular member.
|
@@ -738,6 +763,19 @@ describe 'MxPlatformApi' do
|
|
738
763
|
end
|
739
764
|
end
|
740
765
|
|
766
|
+
# unit tests for list_rewards
|
767
|
+
# List Rewards
|
768
|
+
# Use this endpoint to list all the `rewards` associated with a specified `member`.
|
769
|
+
# @param user_guid The unique id for a `user`.
|
770
|
+
# @param member_guid The unique identifier for the member. Defined by MX.
|
771
|
+
# @param [Hash] opts the optional parameters
|
772
|
+
# @return [RewardsResponseBody]
|
773
|
+
describe 'list_rewards test' do
|
774
|
+
it 'should work' do
|
775
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
776
|
+
end
|
777
|
+
end
|
778
|
+
|
741
779
|
# unit tests for list_statements_by_member
|
742
780
|
# List statements by member
|
743
781
|
# Use this endpoint to get an array of available statements.
|
@@ -1078,6 +1116,20 @@ describe 'MxPlatformApi' do
|
|
1078
1116
|
end
|
1079
1117
|
end
|
1080
1118
|
|
1119
|
+
# unit tests for read_rewards
|
1120
|
+
# Read Reward
|
1121
|
+
# Use this endpoint to read a specific `reward` based on its unique GUID..
|
1122
|
+
# @param user_guid The unique id for a `user`.
|
1123
|
+
# @param member_guid The unique identifier for the member. Defined by MX.
|
1124
|
+
# @param reward_guid The unique identifier for the rewards. Defined by MX.
|
1125
|
+
# @param [Hash] opts the optional parameters
|
1126
|
+
# @return [RewardResponseBody]
|
1127
|
+
describe 'read_rewards test' do
|
1128
|
+
it 'should work' do
|
1129
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
1130
|
+
end
|
1131
|
+
end
|
1132
|
+
|
1081
1133
|
# unit tests for read_statement_by_member
|
1082
1134
|
# Read statement by member
|
1083
1135
|
# Use this endpoint to read a JSON representation of the statement.
|
@@ -0,0 +1,34 @@
|
|
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: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MxPlatformRuby::CreditCardProductResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MxPlatformRuby::CreditCardProductResponse do
|
21
|
+
let(:instance) { MxPlatformRuby::CreditCardProductResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditCardProductResponse' do
|
24
|
+
it 'should create an instance of CreditCardProductResponse' do
|
25
|
+
expect(instance).to be_instance_of(MxPlatformRuby::CreditCardProductResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "reward"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,112 @@
|
|
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: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MxPlatformRuby::CreditCardProduct
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MxPlatformRuby::CreditCardProduct do
|
21
|
+
let(:instance) { MxPlatformRuby::CreditCardProduct.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreditCardProduct' do
|
24
|
+
it 'should create an instance of CreditCardProduct' do
|
25
|
+
expect(instance).to be_instance_of(MxPlatformRuby::CreditCardProduct)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "annual_fee"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "duration_of_introductory_rate_on_balance_transfer"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "duration_of_introductory_rate_on_purchases"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "guid"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "has_cashback_rewards"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "has_other_rewards"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "has_travel_rewards"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "has_zero_introductory_annual_fee"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "has_zero_percent_introductory_rate"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "has_zero_percent_introductory_rate_on_balance_transfer"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "financial_institution"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
describe 'test attribute "is_accepting_applications"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
describe 'test attribute "is_small_business_card"' do
|
101
|
+
it 'should work' do
|
102
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
describe 'test attribute "name"' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MxPlatformRuby::RewardResponseBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MxPlatformRuby::RewardResponseBody do
|
21
|
+
let(:instance) { MxPlatformRuby::RewardResponseBody.new }
|
22
|
+
|
23
|
+
describe 'test an instance of RewardResponseBody' do
|
24
|
+
it 'should create an instance of RewardResponseBody' do
|
25
|
+
expect(instance).to be_instance_of(MxPlatformRuby::RewardResponseBody)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "reward"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
end
|
@@ -0,0 +1,88 @@
|
|
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: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MxPlatformRuby::RewardResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MxPlatformRuby::RewardResponse do
|
21
|
+
let(:instance) { MxPlatformRuby::RewardResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of RewardResponse' do
|
24
|
+
it 'should create an instance of RewardResponse' do
|
25
|
+
expect(instance).to be_instance_of(MxPlatformRuby::RewardResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "account_guid"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "balance_type"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "balance"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "created_at"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "description"' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
describe 'test attribute "expires_on"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "guid"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'test attribute "member_guid"' do
|
71
|
+
it 'should work' do
|
72
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
describe 'test attribute "unit_type"' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
describe 'test attribute "user_guid"' do
|
83
|
+
it 'should work' do
|
84
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
end
|
@@ -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: 7.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MxPlatformRuby::RewardsResponseBody
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MxPlatformRuby::RewardsResponseBody do
|
21
|
+
let(:instance) { MxPlatformRuby::RewardsResponseBody.new }
|
22
|
+
|
23
|
+
describe 'test an instance of RewardsResponseBody' do
|
24
|
+
it 'should create an instance of RewardsResponseBody' do
|
25
|
+
expect(instance).to be_instance_of(MxPlatformRuby::RewardsResponseBody)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "rewards"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "pagination"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|