mx-platform-ruby 0.11.0 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/docs/CredentialResponse.md +3 -1
  4. data/docs/MxPlatformApi.md +51 -51
  5. data/docs/{PaymentAccountResponse.md → PartnerAccountResponse.md} +2 -2
  6. data/docs/PartnerAccountResponseBody.md +18 -0
  7. data/docs/{PaymentProcessorAuthorizationCodeRequest.md → PartnerAuthorizationCodeRequest.md} +2 -2
  8. data/docs/PartnerAuthorizationCodeRequestBody.md +18 -0
  9. data/docs/{PaymentProcessorAuthorizationCodeResponse.md → PartnerAuthorizationCodeResponse.md} +2 -2
  10. data/docs/PartnerAuthorizationCodeResponseBody.md +18 -0
  11. data/docs/{PaymentProcessorTokenResponseBody.md → PartnerTokenResponseBody.md} +3 -3
  12. data/lib/mx-platform-ruby/api/mx_platform_api.rb +54 -54
  13. data/lib/mx-platform-ruby/models/credential_response.rb +15 -5
  14. data/lib/mx-platform-ruby/models/{payment_account_response.rb → partner_account_response.rb} +3 -3
  15. data/lib/mx-platform-ruby/models/{payment_account_response_body.rb → partner_account_response_body.rb} +10 -10
  16. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_request.rb → partner_authorization_code_request.rb} +3 -3
  17. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_request_body.rb → partner_authorization_code_request_body.rb} +10 -10
  18. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_response.rb → partner_authorization_code_response.rb} +3 -3
  19. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_response_body.rb → partner_authorization_code_response_body.rb} +10 -10
  20. data/lib/mx-platform-ruby/models/{payment_processor_token_response_body.rb → partner_token_response_body.rb} +3 -3
  21. data/lib/mx-platform-ruby/version.rb +1 -1
  22. data/lib/mx-platform-ruby.rb +7 -7
  23. data/openapi/config.yml +1 -1
  24. data/spec/api/mx_platform_api_spec.rb +19 -19
  25. data/spec/models/credential_response_spec.rb +6 -0
  26. data/spec/models/{payment_account_response_body_spec.rb → partner_account_response_body_spec.rb} +7 -7
  27. data/spec/models/{payment_account_response_spec.rb → partner_account_response_spec.rb} +6 -6
  28. data/spec/models/{payment_processor_authorization_code_request_body_spec.rb → partner_authorization_code_request_body_spec.rb} +7 -7
  29. data/spec/models/{payment_processor_authorization_code_request_spec.rb → partner_authorization_code_request_spec.rb} +6 -6
  30. data/spec/models/{payment_processor_authorization_code_response_body_spec.rb → partner_authorization_code_response_body_spec.rb} +7 -7
  31. data/spec/models/{payment_processor_authorization_code_response_spec.rb → partner_authorization_code_response_spec.rb} +6 -6
  32. data/spec/models/{payment_processor_token_response_body_spec.rb → partner_token_response_body_spec.rb} +6 -6
  33. metadata +118 -118
  34. data/docs/PaymentAccountResponseBody.md +0 -18
  35. data/docs/PaymentProcessorAuthorizationCodeRequestBody.md +0 -18
  36. data/docs/PaymentProcessorAuthorizationCodeResponseBody.md +0 -18
@@ -768,7 +768,7 @@ module MxPlatformRuby
768
768
  end
769
769
 
770
770
  # Create user
771
- # 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.
771
+ # 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.
772
772
  # @param user_create_request_body [UserCreateRequestBody] User object to be created. (None of these parameters are required, but the user object cannot be empty)
773
773
  # @param [Hash] opts the optional parameters
774
774
  # @return [UserResponseBody]
@@ -778,7 +778,7 @@ module MxPlatformRuby
778
778
  end
779
779
 
780
780
  # Create user
781
- # 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.
781
+ # 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.
782
782
  # @param user_create_request_body [UserCreateRequestBody] User object to be created. (None of these parameters are required, but the user object cannot be empty)
783
783
  # @param [Hash] opts the optional parameters
784
784
  # @return [Array<(UserResponseBody, Integer, Hash)>] UserResponseBody data, response status code and response headers
@@ -5363,25 +5363,25 @@ module MxPlatformRuby
5363
5363
  return data, status_code, headers
5364
5364
  end
5365
5365
 
5366
- # Request payment account
5367
- # Use this endpoint to request a payment account.
5366
+ # Request partner account
5367
+ # Use this endpoint to request a partner account.
5368
5368
  # @param [Hash] opts the optional parameters
5369
- # @return [PaymentAccountResponseBody]
5370
- def request_payment_account(opts = {})
5371
- data, _status_code, _headers = request_payment_account_with_http_info(opts)
5369
+ # @return [PartnerAccountResponseBody]
5370
+ def request_partner_account(opts = {})
5371
+ data, _status_code, _headers = request_partner_account_with_http_info(opts)
5372
5372
  data
5373
5373
  end
5374
5374
 
5375
- # Request payment account
5376
- # Use this endpoint to request a payment account.
5375
+ # Request partner account
5376
+ # Use this endpoint to request a partner account.
5377
5377
  # @param [Hash] opts the optional parameters
5378
- # @return [Array<(PaymentAccountResponseBody, Integer, Hash)>] PaymentAccountResponseBody data, response status code and response headers
5379
- def request_payment_account_with_http_info(opts = {})
5378
+ # @return [Array<(PartnerAccountResponseBody, Integer, Hash)>] PartnerAccountResponseBody data, response status code and response headers
5379
+ def request_partner_account_with_http_info(opts = {})
5380
5380
  if @api_client.config.debugging
5381
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.request_payment_account ...'
5381
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.request_partner_account ...'
5382
5382
  end
5383
5383
  # resource path
5384
- local_var_path = '/payment_account'
5384
+ local_var_path = '/partner_account'
5385
5385
 
5386
5386
  # query parameters
5387
5387
  query_params = opts[:query_params] || {}
@@ -5398,13 +5398,13 @@ module MxPlatformRuby
5398
5398
  post_body = opts[:debug_body]
5399
5399
 
5400
5400
  # return_type
5401
- return_type = opts[:debug_return_type] || 'PaymentAccountResponseBody'
5401
+ return_type = opts[:debug_return_type] || 'PartnerAccountResponseBody'
5402
5402
 
5403
5403
  # auth_names
5404
5404
  auth_names = opts[:debug_auth_names] || ['bearerAuth']
5405
5405
 
5406
5406
  new_options = opts.merge(
5407
- :operation => :"MxPlatformApi.request_payment_account",
5407
+ :operation => :"MxPlatformApi.request_partner_account",
5408
5408
  :header_params => header_params,
5409
5409
  :query_params => query_params,
5410
5410
  :form_params => form_params,
@@ -5415,36 +5415,36 @@ module MxPlatformRuby
5415
5415
 
5416
5416
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
5417
5417
  if @api_client.config.debugging
5418
- @api_client.config.logger.debug "API called: MxPlatformApi#request_payment_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5418
+ @api_client.config.logger.debug "API called: MxPlatformApi#request_partner_account\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5419
5419
  end
5420
5420
  return data, status_code, headers
5421
5421
  end
5422
5422
 
5423
- # Request payment processor authorization code
5424
- # Use this endpoint to request a payment processor authorization code.
5425
- # @param payment_processor_authorization_code_request_body [PaymentProcessorAuthorizationCodeRequestBody] Payment processor authorization code object containing account_guid, member_guid, and user_guid.
5423
+ # Request partner authorization code
5424
+ # Use this endpoint to request a partner authorization code.
5425
+ # @param partner_authorization_code_request_body [PartnerAuthorizationCodeRequestBody] Partner authorization code object containing account_guid, member_guid, and user_guid.
5426
5426
  # @param [Hash] opts the optional parameters
5427
- # @return [PaymentProcessorAuthorizationCodeResponseBody]
5428
- def request_payment_processor_authorization_code(payment_processor_authorization_code_request_body, opts = {})
5429
- data, _status_code, _headers = request_payment_processor_authorization_code_with_http_info(payment_processor_authorization_code_request_body, opts)
5427
+ # @return [PartnerAuthorizationCodeResponseBody]
5428
+ def request_partner_authorization_code(partner_authorization_code_request_body, opts = {})
5429
+ data, _status_code, _headers = request_partner_authorization_code_with_http_info(partner_authorization_code_request_body, opts)
5430
5430
  data
5431
5431
  end
5432
5432
 
5433
- # Request payment processor authorization code
5434
- # Use this endpoint to request a payment processor authorization code.
5435
- # @param payment_processor_authorization_code_request_body [PaymentProcessorAuthorizationCodeRequestBody] Payment processor authorization code object containing account_guid, member_guid, and user_guid.
5433
+ # Request partner authorization code
5434
+ # Use this endpoint to request a partner authorization code.
5435
+ # @param partner_authorization_code_request_body [PartnerAuthorizationCodeRequestBody] Partner authorization code object containing account_guid, member_guid, and user_guid.
5436
5436
  # @param [Hash] opts the optional parameters
5437
- # @return [Array<(PaymentProcessorAuthorizationCodeResponseBody, Integer, Hash)>] PaymentProcessorAuthorizationCodeResponseBody data, response status code and response headers
5438
- def request_payment_processor_authorization_code_with_http_info(payment_processor_authorization_code_request_body, opts = {})
5437
+ # @return [Array<(PartnerAuthorizationCodeResponseBody, Integer, Hash)>] PartnerAuthorizationCodeResponseBody data, response status code and response headers
5438
+ def request_partner_authorization_code_with_http_info(partner_authorization_code_request_body, opts = {})
5439
5439
  if @api_client.config.debugging
5440
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.request_payment_processor_authorization_code ...'
5440
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.request_partner_authorization_code ...'
5441
5441
  end
5442
- # verify the required parameter 'payment_processor_authorization_code_request_body' is set
5443
- if @api_client.config.client_side_validation && payment_processor_authorization_code_request_body.nil?
5444
- fail ArgumentError, "Missing the required parameter 'payment_processor_authorization_code_request_body' when calling MxPlatformApi.request_payment_processor_authorization_code"
5442
+ # verify the required parameter 'partner_authorization_code_request_body' is set
5443
+ if @api_client.config.client_side_validation && partner_authorization_code_request_body.nil?
5444
+ fail ArgumentError, "Missing the required parameter 'partner_authorization_code_request_body' when calling MxPlatformApi.request_partner_authorization_code"
5445
5445
  end
5446
5446
  # resource path
5447
- local_var_path = '/payment_processor_authorization_code'
5447
+ local_var_path = '/partner_authorization_code'
5448
5448
 
5449
5449
  # query parameters
5450
5450
  query_params = opts[:query_params] || {}
@@ -5463,16 +5463,16 @@ module MxPlatformRuby
5463
5463
  form_params = opts[:form_params] || {}
5464
5464
 
5465
5465
  # http body (model)
5466
- post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_processor_authorization_code_request_body)
5466
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(partner_authorization_code_request_body)
5467
5467
 
5468
5468
  # return_type
5469
- return_type = opts[:debug_return_type] || 'PaymentProcessorAuthorizationCodeResponseBody'
5469
+ return_type = opts[:debug_return_type] || 'PartnerAuthorizationCodeResponseBody'
5470
5470
 
5471
5471
  # auth_names
5472
5472
  auth_names = opts[:debug_auth_names] || ['basicAuth']
5473
5473
 
5474
5474
  new_options = opts.merge(
5475
- :operation => :"MxPlatformApi.request_payment_processor_authorization_code",
5475
+ :operation => :"MxPlatformApi.request_partner_authorization_code",
5476
5476
  :header_params => header_params,
5477
5477
  :query_params => query_params,
5478
5478
  :form_params => form_params,
@@ -5483,34 +5483,34 @@ module MxPlatformRuby
5483
5483
 
5484
5484
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5485
5485
  if @api_client.config.debugging
5486
- @api_client.config.logger.debug "API called: MxPlatformApi#request_payment_processor_authorization_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5486
+ @api_client.config.logger.debug "API called: MxPlatformApi#request_partner_authorization_code\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5487
5487
  end
5488
5488
  return data, status_code, headers
5489
5489
  end
5490
5490
 
5491
- # Request payment processor token
5492
- # Use this endpoint to request a payment processor token.
5491
+ # Request partner token
5492
+ # Use this endpoint to request a partner token.
5493
5493
  # @param [Hash] opts the optional parameters
5494
- # @option opts [String] :code Code to request processor token.
5494
+ # @option opts [String] :code Code to request partner token.
5495
5495
  # @option opts [String] :grant_type Specify grant type.
5496
- # @return [PaymentProcessorTokenResponseBody]
5497
- def request_payment_processor_token(opts = {})
5498
- data, _status_code, _headers = request_payment_processor_token_with_http_info(opts)
5496
+ # @return [PartnerTokenResponseBody]
5497
+ def request_partner_token(opts = {})
5498
+ data, _status_code, _headers = request_partner_token_with_http_info(opts)
5499
5499
  data
5500
5500
  end
5501
5501
 
5502
- # Request payment processor token
5503
- # Use this endpoint to request a payment processor token.
5502
+ # Request partner token
5503
+ # Use this endpoint to request a partner token.
5504
5504
  # @param [Hash] opts the optional parameters
5505
- # @option opts [String] :code Code to request processor token.
5505
+ # @option opts [String] :code Code to request partner token.
5506
5506
  # @option opts [String] :grant_type Specify grant type.
5507
- # @return [Array<(PaymentProcessorTokenResponseBody, Integer, Hash)>] PaymentProcessorTokenResponseBody data, response status code and response headers
5508
- def request_payment_processor_token_with_http_info(opts = {})
5507
+ # @return [Array<(PartnerTokenResponseBody, Integer, Hash)>] PartnerTokenResponseBody data, response status code and response headers
5508
+ def request_partner_token_with_http_info(opts = {})
5509
5509
  if @api_client.config.debugging
5510
- @api_client.config.logger.debug 'Calling API: MxPlatformApi.request_payment_processor_token ...'
5510
+ @api_client.config.logger.debug 'Calling API: MxPlatformApi.request_partner_token ...'
5511
5511
  end
5512
5512
  # resource path
5513
- local_var_path = '/payment_processor_token'
5513
+ local_var_path = '/partner_token'
5514
5514
 
5515
5515
  # query parameters
5516
5516
  query_params = opts[:query_params] || {}
@@ -5529,13 +5529,13 @@ module MxPlatformRuby
5529
5529
  post_body = opts[:debug_body]
5530
5530
 
5531
5531
  # return_type
5532
- return_type = opts[:debug_return_type] || 'PaymentProcessorTokenResponseBody'
5532
+ return_type = opts[:debug_return_type] || 'PartnerTokenResponseBody'
5533
5533
 
5534
5534
  # auth_names
5535
5535
  auth_names = opts[:debug_auth_names] || ['basicAuth']
5536
5536
 
5537
5537
  new_options = opts.merge(
5538
- :operation => :"MxPlatformApi.request_payment_processor_token",
5538
+ :operation => :"MxPlatformApi.request_partner_token",
5539
5539
  :header_params => header_params,
5540
5540
  :query_params => query_params,
5541
5541
  :form_params => form_params,
@@ -5546,7 +5546,7 @@ module MxPlatformRuby
5546
5546
 
5547
5547
  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5548
5548
  if @api_client.config.debugging
5549
- @api_client.config.logger.debug "API called: MxPlatformApi#request_payment_processor_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5549
+ @api_client.config.logger.debug "API called: MxPlatformApi#request_partner_token\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5550
5550
  end
5551
5551
  return data, status_code, headers
5552
5552
  end
@@ -6533,7 +6533,7 @@ module MxPlatformRuby
6533
6533
  end
6534
6534
 
6535
6535
  # Update user
6536
- # 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.
6536
+ # Use this endpoint to update the attributes of the specified user.
6537
6537
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
6538
6538
  # @param user_update_request_body [UserUpdateRequestBody] User object to be updated (None of these parameters are required, but the user object cannot be empty.)
6539
6539
  # @param [Hash] opts the optional parameters
@@ -6544,7 +6544,7 @@ module MxPlatformRuby
6544
6544
  end
6545
6545
 
6546
6546
  # Update user
6547
- # 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.
6547
+ # Use this endpoint to update the attributes of the specified user.
6548
6548
  # @param user_guid [String] The unique id for a &#x60;user&#x60;.
6549
6549
  # @param user_update_request_body [UserUpdateRequestBody] User object to be updated (None of these parameters are required, but the user object cannot be empty.)
6550
6550
  # @param [Hash] opts the optional parameters
@@ -25,6 +25,8 @@ module MxPlatformRuby
25
25
 
26
26
  attr_accessor :label
27
27
 
28
+ attr_accessor :type
29
+
28
30
  # Attribute mapping from ruby-style variable name to JSON key.
29
31
  def self.attribute_map
30
32
  {
@@ -32,7 +34,8 @@ module MxPlatformRuby
32
34
  :'field_name' => :'field_name',
33
35
  :'field_type' => :'field_type',
34
36
  :'guid' => :'guid',
35
- :'label' => :'label'
37
+ :'label' => :'label',
38
+ :'type' => :'type'
36
39
  }
37
40
  end
38
41
 
@@ -48,7 +51,8 @@ module MxPlatformRuby
48
51
  :'field_name' => :'String',
49
52
  :'field_type' => :'String',
50
53
  :'guid' => :'String',
51
- :'label' => :'String'
54
+ :'label' => :'String',
55
+ :'type' => :'String'
52
56
  }
53
57
  end
54
58
 
@@ -59,7 +63,8 @@ module MxPlatformRuby
59
63
  :'field_name',
60
64
  :'field_type',
61
65
  :'guid',
62
- :'label'
66
+ :'label',
67
+ :'type'
63
68
  ])
64
69
  end
65
70
 
@@ -97,6 +102,10 @@ module MxPlatformRuby
97
102
  if attributes.key?(:'label')
98
103
  self.label = attributes[:'label']
99
104
  end
105
+
106
+ if attributes.key?(:'type')
107
+ self.type = attributes[:'type']
108
+ end
100
109
  end
101
110
 
102
111
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,7 +130,8 @@ module MxPlatformRuby
121
130
  field_name == o.field_name &&
122
131
  field_type == o.field_type &&
123
132
  guid == o.guid &&
124
- label == o.label
133
+ label == o.label &&
134
+ type == o.type
125
135
  end
126
136
 
127
137
  # @see the `==` method
@@ -133,7 +143,7 @@ module MxPlatformRuby
133
143
  # Calculates hash code according to all attributes.
134
144
  # @return [Integer] Hash code
135
145
  def hash
136
- [display_order, field_name, field_type, guid, label].hash
146
+ [display_order, field_name, field_type, guid, label, type].hash
137
147
  end
138
148
 
139
149
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
- class PaymentAccountResponse
17
+ class PartnerAccountResponse
18
18
  attr_accessor :account_name
19
19
 
20
20
  attr_accessor :account_number
@@ -77,13 +77,13 @@ module MxPlatformRuby
77
77
  # @param [Hash] attributes Model attributes in the form of hash
78
78
  def initialize(attributes = {})
79
79
  if (!attributes.is_a?(Hash))
80
- fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentAccountResponse` initialize method"
80
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PartnerAccountResponse` initialize method"
81
81
  end
82
82
 
83
83
  # check to see if the attribute exists and convert string to symbol for hash key
84
84
  attributes = attributes.each_with_object({}) { |(k, v), h|
85
85
  if (!self.class.attribute_map.key?(k.to_sym))
86
- fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PaymentAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
86
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PartnerAccountResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
87
  end
88
88
  h[k.to_sym] = v
89
89
  }
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
- class PaymentAccountResponseBody
18
- attr_accessor :payment_account
17
+ class PartnerAccountResponseBody
18
+ attr_accessor :partner_account
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
21
21
  def self.attribute_map
22
22
  {
23
- :'payment_account' => :'payment_account'
23
+ :'partner_account' => :'partner_account'
24
24
  }
25
25
  end
26
26
 
@@ -32,7 +32,7 @@ module MxPlatformRuby
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'payment_account' => :'PaymentAccountResponse'
35
+ :'partner_account' => :'PartnerAccountResponse'
36
36
  }
37
37
  end
38
38
 
@@ -46,19 +46,19 @@ module MxPlatformRuby
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentAccountResponseBody` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PartnerAccountResponseBody` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PaymentAccountResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PartnerAccountResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
59
59
 
60
- if attributes.key?(:'payment_account')
61
- self.payment_account = attributes[:'payment_account']
60
+ if attributes.key?(:'partner_account')
61
+ self.partner_account = attributes[:'partner_account']
62
62
  end
63
63
  end
64
64
 
@@ -80,7 +80,7 @@ module MxPlatformRuby
80
80
  def ==(o)
81
81
  return true if self.equal?(o)
82
82
  self.class == o.class &&
83
- payment_account == o.payment_account
83
+ partner_account == o.partner_account
84
84
  end
85
85
 
86
86
  # @see the `==` method
@@ -92,7 +92,7 @@ module MxPlatformRuby
92
92
  # Calculates hash code according to all attributes.
93
93
  # @return [Integer] Hash code
94
94
  def hash
95
- [payment_account].hash
95
+ [partner_account].hash
96
96
  end
97
97
 
98
98
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
- class PaymentProcessorAuthorizationCodeRequest
17
+ class PartnerAuthorizationCodeRequest
18
18
  attr_accessor :account_guid
19
19
 
20
20
  attr_accessor :member_guid
@@ -54,13 +54,13 @@ module MxPlatformRuby
54
54
  # @param [Hash] attributes Model attributes in the form of hash
55
55
  def initialize(attributes = {})
56
56
  if (!attributes.is_a?(Hash))
57
- fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentProcessorAuthorizationCodeRequest` initialize method"
57
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PartnerAuthorizationCodeRequest` initialize method"
58
58
  end
59
59
 
60
60
  # check to see if the attribute exists and convert string to symbol for hash key
61
61
  attributes = attributes.each_with_object({}) { |(k, v), h|
62
62
  if (!self.class.attribute_map.key?(k.to_sym))
63
- fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PaymentProcessorAuthorizationCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
63
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PartnerAuthorizationCodeRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
64
64
  end
65
65
  h[k.to_sym] = v
66
66
  }
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
- class PaymentProcessorAuthorizationCodeRequestBody
18
- attr_accessor :payment_processor_authorization_code
17
+ class PartnerAuthorizationCodeRequestBody
18
+ attr_accessor :partner_authorization_code
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
21
21
  def self.attribute_map
22
22
  {
23
- :'payment_processor_authorization_code' => :'payment_processor_authorization_code'
23
+ :'partner_authorization_code' => :'partner_authorization_code'
24
24
  }
25
25
  end
26
26
 
@@ -32,7 +32,7 @@ module MxPlatformRuby
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'payment_processor_authorization_code' => :'PaymentProcessorAuthorizationCodeRequest'
35
+ :'partner_authorization_code' => :'PartnerAuthorizationCodeRequest'
36
36
  }
37
37
  end
38
38
 
@@ -46,19 +46,19 @@ module MxPlatformRuby
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentProcessorAuthorizationCodeRequestBody` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PartnerAuthorizationCodeRequestBody` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
54
  if (!self.class.attribute_map.key?(k.to_sym))
55
- fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PaymentProcessorAuthorizationCodeRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PartnerAuthorizationCodeRequestBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
59
59
 
60
- if attributes.key?(:'payment_processor_authorization_code')
61
- self.payment_processor_authorization_code = attributes[:'payment_processor_authorization_code']
60
+ if attributes.key?(:'partner_authorization_code')
61
+ self.partner_authorization_code = attributes[:'partner_authorization_code']
62
62
  end
63
63
  end
64
64
 
@@ -80,7 +80,7 @@ module MxPlatformRuby
80
80
  def ==(o)
81
81
  return true if self.equal?(o)
82
82
  self.class == o.class &&
83
- payment_processor_authorization_code == o.payment_processor_authorization_code
83
+ partner_authorization_code == o.partner_authorization_code
84
84
  end
85
85
 
86
86
  # @see the `==` method
@@ -92,7 +92,7 @@ module MxPlatformRuby
92
92
  # Calculates hash code according to all attributes.
93
93
  # @return [Integer] Hash code
94
94
  def hash
95
- [payment_processor_authorization_code].hash
95
+ [partner_authorization_code].hash
96
96
  end
97
97
 
98
98
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
- class PaymentProcessorAuthorizationCodeResponse
17
+ class PartnerAuthorizationCodeResponse
18
18
  attr_accessor :authorization_code
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -47,13 +47,13 @@ module MxPlatformRuby
47
47
  # @param [Hash] attributes Model attributes in the form of hash
48
48
  def initialize(attributes = {})
49
49
  if (!attributes.is_a?(Hash))
50
- fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentProcessorAuthorizationCodeResponse` initialize method"
50
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PartnerAuthorizationCodeResponse` initialize method"
51
51
  end
52
52
 
53
53
  # check to see if the attribute exists and convert string to symbol for hash key
54
54
  attributes = attributes.each_with_object({}) { |(k, v), h|
55
55
  if (!self.class.attribute_map.key?(k.to_sym))
56
- fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PaymentProcessorAuthorizationCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PartnerAuthorizationCodeResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
57
57
  end
58
58
  h[k.to_sym] = v
59
59
  }
@@ -14,13 +14,13 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
- class PaymentProcessorAuthorizationCodeResponseBody
18
- attr_accessor :payment_processor_authorization_code
17
+ class PartnerAuthorizationCodeResponseBody
18
+ attr_accessor :partner_authorization_code
19
19
 
20
20
  # Attribute mapping from ruby-style variable name to JSON key.
21
21
  def self.attribute_map
22
22
  {
23
- :'payment_processor_authorization_code' => :'payment_processor_authorization_code'
23
+ :'partner_authorization_code' => :'partner_authorization_code'
24
24
  }
25
25
  end
26
26
 
@@ -32,7 +32,7 @@ module MxPlatformRuby
32
32
  # Attribute type mapping.
33
33
  def self.openapi_types
34
34
  {
35
- :'payment_processor_authorization_code' => :'PaymentProcessorAuthorizationCodeResponse'
35
+ :'partner_authorization_code' => :'PartnerAuthorizationCodeResponse'
36
36
  }
37
37
  end
38
38
 
@@ -46,19 +46,19 @@ module MxPlatformRuby
46
46
  # @param [Hash] attributes Model attributes in the form of hash
47
47
  def initialize(attributes = {})
48
48
  if (!attributes.is_a?(Hash))
49
- fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentProcessorAuthorizationCodeResponseBody` initialize method"
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PartnerAuthorizationCodeResponseBody` initialize method"
50
50
  end
51
51
 
52
52
  # check to see if the attribute exists and convert string to symbol for hash key
53
53
  attributes = attributes.each_with_object({}) { |(k, v), h|
54
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
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PartnerAuthorizationCodeResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
56
  end
57
57
  h[k.to_sym] = v
58
58
  }
59
59
 
60
- if attributes.key?(:'payment_processor_authorization_code')
61
- self.payment_processor_authorization_code = attributes[:'payment_processor_authorization_code']
60
+ if attributes.key?(:'partner_authorization_code')
61
+ self.partner_authorization_code = attributes[:'partner_authorization_code']
62
62
  end
63
63
  end
64
64
 
@@ -80,7 +80,7 @@ module MxPlatformRuby
80
80
  def ==(o)
81
81
  return true if self.equal?(o)
82
82
  self.class == o.class &&
83
- payment_processor_authorization_code == o.payment_processor_authorization_code
83
+ partner_authorization_code == o.partner_authorization_code
84
84
  end
85
85
 
86
86
  # @see the `==` method
@@ -92,7 +92,7 @@ module MxPlatformRuby
92
92
  # Calculates hash code according to all attributes.
93
93
  # @return [Integer] Hash code
94
94
  def hash
95
- [payment_processor_authorization_code].hash
95
+ [partner_authorization_code].hash
96
96
  end
97
97
 
98
98
  # Builds the object from hash
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module MxPlatformRuby
17
- class PaymentProcessorTokenResponseBody
17
+ class PartnerTokenResponseBody
18
18
  attr_accessor :access_token
19
19
 
20
20
  attr_accessor :scope
@@ -57,13 +57,13 @@ module MxPlatformRuby
57
57
  # @param [Hash] attributes Model attributes in the form of hash
58
58
  def initialize(attributes = {})
59
59
  if (!attributes.is_a?(Hash))
60
- fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PaymentProcessorTokenResponseBody` initialize method"
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MxPlatformRuby::PartnerTokenResponseBody` initialize method"
61
61
  end
62
62
 
63
63
  # check to see if the attribute exists and convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h|
65
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
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MxPlatformRuby::PartnerTokenResponseBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
67
  end
68
68
  h[k.to_sym] = v
69
69
  }
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.4.0
11
11
  =end
12
12
 
13
13
  module MxPlatformRuby
14
- VERSION = '0.11.0'
14
+ VERSION = '0.12.0'
15
15
  end
@@ -85,13 +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
+ require 'mx-platform-ruby/models/partner_account_response'
89
+ require 'mx-platform-ruby/models/partner_account_response_body'
90
+ require 'mx-platform-ruby/models/partner_authorization_code_request'
91
+ require 'mx-platform-ruby/models/partner_authorization_code_request_body'
92
+ require 'mx-platform-ruby/models/partner_authorization_code_response'
93
+ require 'mx-platform-ruby/models/partner_authorization_code_response_body'
94
+ require 'mx-platform-ruby/models/partner_token_response_body'
95
95
  require 'mx-platform-ruby/models/statement_response'
96
96
  require 'mx-platform-ruby/models/statement_response_body'
97
97
  require 'mx-platform-ruby/models/statements_response_body'