mx-platform-ruby 0.9.3 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +15 -15
  3. data/docs/MxPlatformApi.md +301 -78
  4. data/docs/PaymentAccountResponse.md +30 -0
  5. data/docs/PaymentAccountResponseBody.md +18 -0
  6. data/docs/PaymentProcessorAuthorizationCodeRequest.md +22 -0
  7. data/docs/PaymentProcessorAuthorizationCodeRequestBody.md +18 -0
  8. data/docs/PaymentProcessorAuthorizationCodeResponse.md +18 -0
  9. data/docs/PaymentProcessorAuthorizationCodeResponseBody.md +18 -0
  10. data/docs/PaymentProcessorTokenResponseBody.md +22 -0
  11. data/lib/mx-platform-ruby/api/mx_platform_api.rb +337 -119
  12. data/lib/mx-platform-ruby/configuration.rb +7 -0
  13. data/lib/mx-platform-ruby/models/payment_account_response.rb +279 -0
  14. data/lib/mx-platform-ruby/models/payment_account_response_body.rb +218 -0
  15. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request.rb +236 -0
  16. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_request_body.rb +218 -0
  17. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response.rb +219 -0
  18. data/lib/mx-platform-ruby/models/payment_processor_authorization_code_response_body.rb +218 -0
  19. data/lib/mx-platform-ruby/models/payment_processor_token_response_body.rb +239 -0
  20. data/lib/mx-platform-ruby/version.rb +1 -1
  21. data/lib/mx-platform-ruby.rb +7 -0
  22. data/openapi/config.yml +1 -1
  23. data/spec/api/mx_platform_api_spec.rb +56 -15
  24. data/spec/models/payment_account_response_body_spec.rb +34 -0
  25. data/spec/models/payment_account_response_spec.rb +70 -0
  26. data/spec/models/payment_processor_authorization_code_request_body_spec.rb +34 -0
  27. data/spec/models/payment_processor_authorization_code_request_spec.rb +46 -0
  28. data/spec/models/payment_processor_authorization_code_response_body_spec.rb +34 -0
  29. data/spec/models/payment_processor_authorization_code_response_spec.rb +34 -0
  30. data/spec/models/payment_processor_token_response_body_spec.rb +46 -0
  31. metadata +30 -2
@@ -0,0 +1,218 @@
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 PaymentProcessorAuthorizationCodeResponseBody
18
+ attr_accessor :payment_processor_authorization_code
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'payment_processor_authorization_code' => :'payment_processor_authorization_code'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'payment_processor_authorization_code' => :'PaymentProcessorAuthorizationCodeResponse'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentProcessorAuthorizationCodeResponseBody` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PaymentProcessorAuthorizationCodeResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'payment_processor_authorization_code')
61
+ self.payment_processor_authorization_code = attributes[:'payment_processor_authorization_code']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ payment_processor_authorization_code == o.payment_processor_authorization_code
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [payment_processor_authorization_code].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.openapi_types.each_pair do |key, type|
111
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
112
+ self.send("#{key}=", nil)
113
+ elsif type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
+ end
119
+ elsif !attributes[self.class.attribute_map[key]].nil?
120
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
+ end
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :Time
134
+ Time.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :Boolean
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ # models (e.g. Pet) or oneOf
165
+ klass = MxPlatformRuby.const_get(type)
166
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
167
+ end
168
+ end
169
+
170
+ # Returns the string representation of the object
171
+ # @return [String] String presentation of the object
172
+ def to_s
173
+ to_hash.to_s
174
+ end
175
+
176
+ # to_body is an alias to to_hash (backward compatibility)
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_body
179
+ to_hash
180
+ end
181
+
182
+ # Returns the object in the form of hash
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_hash
185
+ hash = {}
186
+ self.class.attribute_map.each_pair do |attr, param|
187
+ value = self.send(attr)
188
+ if value.nil?
189
+ is_nullable = self.class.openapi_nullable.include?(attr)
190
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
191
+ end
192
+
193
+ hash[param] = _to_hash(value)
194
+ end
195
+ hash
196
+ end
197
+
198
+ # Outputs non-array value in the form of hash
199
+ # For object, use to_hash. Otherwise, just return the value
200
+ # @param [Object] value Any valid value
201
+ # @return [Hash] Returns the value in the form of hash
202
+ def _to_hash(value)
203
+ if value.is_a?(Array)
204
+ value.compact.map { |v| _to_hash(v) }
205
+ elsif value.is_a?(Hash)
206
+ {}.tap do |hash|
207
+ value.each { |k, v| hash[k] = _to_hash(v) }
208
+ end
209
+ elsif value.respond_to? :to_hash
210
+ value.to_hash
211
+ else
212
+ value
213
+ end
214
+ end
215
+
216
+ end
217
+
218
+ end
@@ -0,0 +1,239 @@
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 PaymentProcessorTokenResponseBody
18
+ attr_accessor :access_token
19
+
20
+ attr_accessor :scope
21
+
22
+ attr_accessor :token_type
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'access_token' => :'access_token',
28
+ :'scope' => :'scope',
29
+ :'token_type' => :'token_type'
30
+ }
31
+ end
32
+
33
+ # Returns all the JSON keys this model knows about
34
+ def self.acceptable_attributes
35
+ attribute_map.values
36
+ end
37
+
38
+ # Attribute type mapping.
39
+ def self.openapi_types
40
+ {
41
+ :'access_token' => :'String',
42
+ :'scope' => :'String',
43
+ :'token_type' => :'String'
44
+ }
45
+ end
46
+
47
+ # List of attributes with nullable: true
48
+ def self.openapi_nullable
49
+ Set.new([
50
+ :'access_token',
51
+ :'scope',
52
+ :'token_type'
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentProcessorTokenResponseBody` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PaymentProcessorTokenResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'access_token')
72
+ self.access_token = attributes[:'access_token']
73
+ end
74
+
75
+ if attributes.key?(:'scope')
76
+ self.scope = attributes[:'scope']
77
+ end
78
+
79
+ if attributes.key?(:'token_type')
80
+ self.token_type = attributes[:'token_type']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ access_token == o.access_token &&
103
+ scope == o.scope &&
104
+ token_type == o.token_type
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [access_token, scope, token_type].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ new.build_from_hash(attributes)
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ self.class.openapi_types.each_pair do |key, type|
132
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
133
+ self.send("#{key}=", nil)
134
+ elsif type =~ /\AArray<(.*)>/i
135
+ # check to ensure the input is an array given that the attribute
136
+ # is documented as an array but the input is not
137
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
138
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
139
+ end
140
+ elsif !attributes[self.class.attribute_map[key]].nil?
141
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
142
+ end
143
+ end
144
+
145
+ self
146
+ end
147
+
148
+ # Deserializes the data based on type
149
+ # @param string type Data type
150
+ # @param string value Value to be deserialized
151
+ # @return [Object] Deserialized data
152
+ def _deserialize(type, value)
153
+ case type.to_sym
154
+ when :Time
155
+ Time.parse(value)
156
+ when :Date
157
+ Date.parse(value)
158
+ when :String
159
+ value.to_s
160
+ when :Integer
161
+ value.to_i
162
+ when :Float
163
+ value.to_f
164
+ when :Boolean
165
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
166
+ true
167
+ else
168
+ false
169
+ end
170
+ when :Object
171
+ # generic object (usually a Hash), return directly
172
+ value
173
+ when /\AArray<(?<inner_type>.+)>\z/
174
+ inner_type = Regexp.last_match[:inner_type]
175
+ value.map { |v| _deserialize(inner_type, v) }
176
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
177
+ k_type = Regexp.last_match[:k_type]
178
+ v_type = Regexp.last_match[:v_type]
179
+ {}.tap do |hash|
180
+ value.each do |k, v|
181
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
182
+ end
183
+ end
184
+ else # model
185
+ # models (e.g. Pet) or oneOf
186
+ klass = MxPlatformRuby.const_get(type)
187
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
188
+ end
189
+ end
190
+
191
+ # Returns the string representation of the object
192
+ # @return [String] String presentation of the object
193
+ def to_s
194
+ to_hash.to_s
195
+ end
196
+
197
+ # to_body is an alias to to_hash (backward compatibility)
198
+ # @return [Hash] Returns the object in the form of hash
199
+ def to_body
200
+ to_hash
201
+ end
202
+
203
+ # Returns the object in the form of hash
204
+ # @return [Hash] Returns the object in the form of hash
205
+ def to_hash
206
+ hash = {}
207
+ self.class.attribute_map.each_pair do |attr, param|
208
+ value = self.send(attr)
209
+ if value.nil?
210
+ is_nullable = self.class.openapi_nullable.include?(attr)
211
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
212
+ end
213
+
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+
237
+ end
238
+
239
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
11
11
  =end
12
12
 
13
13
  module MxPlatformRuby
14
- VERSION = '0.9.3'
14
+ VERSION = '0.11.1'
15
15
  end
@@ -85,6 +85,13 @@ require 'mx-platform-ruby/models/o_auth_window_response'
85
85
  require 'mx-platform-ruby/models/o_auth_window_response_body'
86
86
  require 'mx-platform-ruby/models/option_response'
87
87
  require 'mx-platform-ruby/models/pagination_response'
88
+ require 'mx-platform-ruby/models/payment_account_response'
89
+ require 'mx-platform-ruby/models/payment_account_response_body'
90
+ require 'mx-platform-ruby/models/payment_processor_authorization_code_request'
91
+ require 'mx-platform-ruby/models/payment_processor_authorization_code_request_body'
92
+ require 'mx-platform-ruby/models/payment_processor_authorization_code_response'
93
+ require 'mx-platform-ruby/models/payment_processor_authorization_code_response_body'
94
+ require 'mx-platform-ruby/models/payment_processor_token_response_body'
88
95
  require 'mx-platform-ruby/models/statement_response'
89
96
  require 'mx-platform-ruby/models/statement_response_body'
90
97
  require 'mx-platform-ruby/models/statements_response_body'
data/openapi/config.yml CHANGED
@@ -6,6 +6,6 @@ gemHomepage: https://github.com/mxenabled/mx-platform-ruby
6
6
  gemLicense: MIT
7
7
  gemName: mx-platform-ruby
8
8
  gemRequiredRubyVersion: ">= 2.6"
9
- gemVersion: 0.9.3
9
+ gemVersion: 0.11.1
10
10
  library: faraday
11
11
  moduleName: MxPlatformRuby
@@ -74,8 +74,8 @@ describe 'MxPlatformApi' do
74
74
  # unit tests for create_managed_account
75
75
  # Create managed account
76
76
  # Use this endpoint to create a partner-managed account.
77
- # @param user_guid The unique id for a &#x60;user&#x60;.
78
77
  # @param member_guid The unique id for a &#x60;member&#x60;.
78
+ # @param user_guid The unique id for a &#x60;user&#x60;.
79
79
  # @param managed_account_create_request_body Managed account to be created.
80
80
  # @param [Hash] opts the optional parameters
81
81
  # @return [AccountResponseBody]
@@ -101,8 +101,9 @@ describe 'MxPlatformApi' do
101
101
  # unit tests for create_managed_transaction
102
102
  # Create managed transaction
103
103
  # Use this endpoint to create a new partner-managed &#x60;transaction&#x60;.
104
- # @param user_guid The unique id for a &#x60;user&#x60;.
104
+ # @param account_guid The unique id for an &#x60;account&#x60;.
105
105
  # @param member_guid The unique id for a &#x60;member&#x60;.
106
+ # @param user_guid The unique id for a &#x60;user&#x60;.
106
107
  # @param managed_transaction_create_request_body Managed transaction to be created.
107
108
  # @param [Hash] opts the optional parameters
108
109
  # @return [TransactionResponseBody]
@@ -166,7 +167,7 @@ describe 'MxPlatformApi' do
166
167
 
167
168
  # unit tests for create_user
168
169
  # Create user
169
- # Call this endpoint to create a new user. The MX Platform API will respond with the newly-created user object if successful. This endpoint accepts several parameters - id, metadata, and is_disabled. Disabling a user means that accounts and transactions associated with it will not be updated in the background by MX. It will also restrict access to that users data until they are no longer disabled. Users who are disabled for the entirety of an MX Platform API billing period will not be factored into that months bill.
170
+ # Use this endpoint to create a new user. The API will respond with the newly-created user object if successful. Disabling a user means that accounts and transactions associated with it will not be updated in the background by MX. It will also restrict access to that user’s data until they are no longer disabled.
170
171
  # @param user_create_request_body User object to be created. (None of these parameters are required, but the user object cannot be empty)
171
172
  # @param [Hash] opts the optional parameters
172
173
  # @return [UserResponseBody]
@@ -192,9 +193,9 @@ describe 'MxPlatformApi' do
192
193
  # unit tests for delete_managed_account
193
194
  # Delete managed account
194
195
  # Use this endpoint to delete a partner-managed account according to its unique GUID. If successful, the API will respond with a status of &#x60;204 No Content&#x60;.
196
+ # @param account_guid The unique id for an &#x60;account&#x60;.
195
197
  # @param member_guid The unique id for a &#x60;member&#x60;.
196
198
  # @param user_guid The unique id for a &#x60;user&#x60;.
197
- # @param account_guid The unique id for an &#x60;account&#x60;.
198
199
  # @param [Hash] opts the optional parameters
199
200
  # @return [nil]
200
201
  describe 'delete_managed_account test' do
@@ -219,9 +220,10 @@ describe 'MxPlatformApi' do
219
220
  # unit tests for delete_managed_transaction
220
221
  # Delete managed transaction
221
222
  # Use this endpoint to delete the specified partner-managed &#x60;transaction&#x60;. The endpoint will respond with a status of &#x60;204 No Content&#x60; without a resource.
223
+ # @param account_guid The unique id for an &#x60;account&#x60;.
222
224
  # @param member_guid The unique id for a &#x60;member&#x60;.
223
- # @param user_guid The unique id for a &#x60;user&#x60;.
224
225
  # @param transaction_guid The unique id for a &#x60;transaction&#x60;.
226
+ # @param user_guid The unique id for a &#x60;user&#x60;.
225
227
  # @param [Hash] opts the optional parameters
226
228
  # @return [nil]
227
229
  describe 'delete_managed_transaction test' do
@@ -543,8 +545,8 @@ describe 'MxPlatformApi' do
543
545
  # unit tests for list_managed_accounts
544
546
  # List managed accounts
545
547
  # Use this endpoint to retrieve a list of all the partner-managed accounts associated with the given partner-manage member.
546
- # @param user_guid The unique id for a &#x60;user&#x60;.
547
548
  # @param member_guid The unique id for a &#x60;member&#x60;.
549
+ # @param user_guid The unique id for a &#x60;user&#x60;.
548
550
  # @param [Hash] opts the optional parameters
549
551
  # @option opts [Integer] :page Specify current page.
550
552
  # @option opts [Integer] :records_per_page Specify records per page.
@@ -585,8 +587,9 @@ describe 'MxPlatformApi' do
585
587
  # unit tests for list_managed_transactions
586
588
  # List managed transactions
587
589
  # This endpoint returns a list of all the partner-managed transactions associated with the specified &#x60;account&#x60;, scoped through a &#x60;user&#x60; and a &#x60;member&#x60;.
588
- # @param user_guid The unique id for a &#x60;user&#x60;.
590
+ # @param account_guid The unique id for an &#x60;account&#x60;.
589
591
  # @param member_guid The unique id for a &#x60;member&#x60;.
592
+ # @param user_guid The unique id for a &#x60;user&#x60;.
590
593
  # @param [Hash] opts the optional parameters
591
594
  # @option opts [Integer] :page Specify current page.
592
595
  # @option opts [Integer] :records_per_page Specify records per page.
@@ -871,9 +874,9 @@ describe 'MxPlatformApi' do
871
874
  # unit tests for read_managed_account
872
875
  # Read managed account
873
876
  # Use this endpoint to read the attributes of a partner-managed account according to its unique guid.
877
+ # @param account_guid The unique id for an &#x60;account&#x60;.
874
878
  # @param member_guid The unique id for a &#x60;member&#x60;.
875
879
  # @param user_guid The unique id for a &#x60;user&#x60;.
876
- # @param account_guid The unique id for an &#x60;account&#x60;.
877
880
  # @param [Hash] opts the optional parameters
878
881
  # @return [AccountResponseBody]
879
882
  describe 'read_managed_account test' do
@@ -898,9 +901,10 @@ describe 'MxPlatformApi' do
898
901
  # unit tests for read_managed_transaction
899
902
  # Read managed transaction
900
903
  # Requests to this endpoint will return the attributes of the specified partner-managed &#x60;transaction&#x60;.
904
+ # @param account_guid The unique id for an &#x60;account&#x60;.
901
905
  # @param member_guid The unique id for a &#x60;member&#x60;.
902
- # @param user_guid The unique id for a &#x60;user&#x60;.
903
906
  # @param transaction_guid The unique id for a &#x60;transaction&#x60;.
907
+ # @param user_guid The unique id for a &#x60;user&#x60;.
904
908
  # @param [Hash] opts the optional parameters
905
909
  # @return [TransactionResponseBody]
906
910
  describe 'read_managed_transaction test' do
@@ -1057,8 +1061,8 @@ describe 'MxPlatformApi' do
1057
1061
  # @param user_guid The unique id for a &#x60;user&#x60;.
1058
1062
  # @param [Hash] opts the optional parameters
1059
1063
  # @option opts [String] :referral_source Must be either &#x60;BROWSER&#x60; or &#x60;APP&#x60; depending on the implementation. Defaults to &#x60;BROWSER&#x60;.
1060
- # @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
1061
1064
  # @option opts [Boolean] :skip_aggregation Setting this parameter to &#x60;true&#x60; will prevent the member from automatically aggregating after being redirected from the authorization page.
1065
+ # @option opts [String] :ui_message_webview_url_scheme A scheme for routing the user back to the application state they were previously in.
1062
1066
  # @return [OAuthWindowResponseBody]
1063
1067
  describe 'request_o_auth_window_uri test' do
1064
1068
  it 'should work' do
@@ -1066,6 +1070,42 @@ describe 'MxPlatformApi' do
1066
1070
  end
1067
1071
  end
1068
1072
 
1073
+ # unit tests for request_payment_account
1074
+ # Request payment account
1075
+ # Use this endpoint to request a payment account.
1076
+ # @param [Hash] opts the optional parameters
1077
+ # @return [PaymentAccountResponseBody]
1078
+ describe 'request_payment_account test' do
1079
+ it 'should work' do
1080
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1081
+ end
1082
+ end
1083
+
1084
+ # unit tests for request_payment_processor_authorization_code
1085
+ # Request payment processor authorization code
1086
+ # Use this endpoint to request a payment processor authorization code.
1087
+ # @param payment_processor_authorization_code_request_body Payment processor authorization code object containing account_guid, member_guid, and user_guid.
1088
+ # @param [Hash] opts the optional parameters
1089
+ # @return [PaymentProcessorAuthorizationCodeResponseBody]
1090
+ describe 'request_payment_processor_authorization_code test' do
1091
+ it 'should work' do
1092
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1093
+ end
1094
+ end
1095
+
1096
+ # unit tests for request_payment_processor_token
1097
+ # Request payment processor token
1098
+ # Use this endpoint to request a payment processor token.
1099
+ # @param [Hash] opts the optional parameters
1100
+ # @option opts [String] :code Code to request processor token.
1101
+ # @option opts [String] :grant_type Specify grant type.
1102
+ # @return [PaymentProcessorTokenResponseBody]
1103
+ describe 'request_payment_processor_token test' do
1104
+ it 'should work' do
1105
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
1106
+ end
1107
+ end
1108
+
1069
1109
  # unit tests for request_widget_url
1070
1110
  # Request widget url
1071
1111
  # This endpoint allows partners to get a URL by passing the &#x60;widget_type&#x60; in the request body, as well as configuring it in several different ways. In the case of Connect, that means setting the &#x60;widget_type&#x60; to &#x60;connect_widget&#x60;. Partners may also pass an optional &#x60;Accept-Language&#x60; header as well as a number of configuration options. Note that this is a &#x60;POST&#x60; request.
@@ -1097,9 +1137,9 @@ describe 'MxPlatformApi' do
1097
1137
  # unit tests for update_account_by_member
1098
1138
  # Update account by member
1099
1139
  # This endpoint allows you to update certain attributes of an &#x60;account&#x60; resource.
1100
- # @param user_guid The unique id for a &#x60;user&#x60;.
1101
- # @param member_guid The unique id for a &#x60;member&#x60;.
1102
1140
  # @param account_guid The unique id for an &#x60;account&#x60;.
1141
+ # @param member_guid The unique id for a &#x60;member&#x60;.
1142
+ # @param user_guid The unique id for a &#x60;user&#x60;.
1103
1143
  # @param account_update_request_body Account object to be created with optional parameters (is_hidden)
1104
1144
  # @param [Hash] opts the optional parameters
1105
1145
  # @return [AccountResponseBody]
@@ -1126,9 +1166,9 @@ describe 'MxPlatformApi' do
1126
1166
  # unit tests for update_managed_account
1127
1167
  # Update managed account
1128
1168
  # Use this endpoint to update the attributes of a partner-managed account according to its unique GUID.
1169
+ # @param account_guid The unique id for an &#x60;account&#x60;.
1129
1170
  # @param member_guid The unique id for a &#x60;member&#x60;.
1130
1171
  # @param user_guid The unique id for a &#x60;user&#x60;.
1131
- # @param account_guid The unique id for an &#x60;account&#x60;.
1132
1172
  # @param managed_account_update_request_body Managed account object to be updated (While no single parameter is required, the request body can&#39;t be empty)
1133
1173
  # @param [Hash] opts the optional parameters
1134
1174
  # @return [AccountResponseBody]
@@ -1155,9 +1195,10 @@ describe 'MxPlatformApi' do
1155
1195
  # unit tests for update_managed_transaction
1156
1196
  # Update managed transaction
1157
1197
  # Use this endpoint to update the attributes of the specified partner_managed &#x60;transaction&#x60;.
1198
+ # @param account_guid The unique id for an &#x60;account&#x60;.
1158
1199
  # @param member_guid The unique id for a &#x60;member&#x60;.
1159
- # @param user_guid The unique id for a &#x60;user&#x60;.
1160
1200
  # @param transaction_guid The unique id for a &#x60;transaction&#x60;.
1201
+ # @param user_guid The unique id for a &#x60;user&#x60;.
1161
1202
  # @param managed_transaction_update_request_body Managed transaction object to be updated (While no single parameter is required, the request body can&#39;t be empty)
1162
1203
  # @param [Hash] opts the optional parameters
1163
1204
  # @return [TransactionResponseBody]
@@ -1239,7 +1280,7 @@ describe 'MxPlatformApi' do
1239
1280
 
1240
1281
  # unit tests for update_user
1241
1282
  # Update user
1242
- # Use this endpoint to update the attributes of a specific user. The MX Platform API will respond with the updated user object. Disabling a user means that accounts and transactions associated with it will not be updated in the background by MX. It will also restrict access to that users data until they are no longer disabled. Users who are disabled for the entirety of an MX Platform API billing period will not be factored into that months bill. To disable a user, update it and set the is_disabled parameter to true. Set it to false to re-enable the user.
1283
+ # Use this endpoint to update the attributes of the specified user.
1243
1284
  # @param user_guid The unique id for a &#x60;user&#x60;.
1244
1285
  # @param user_update_request_body User object to be updated (None of these parameters are required, but the user object cannot be empty.)
1245
1286
  # @param [Hash] opts the optional parameters