mx-platform-ruby 0.11.2 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +5 -5
  3. data/docs/MxPlatformApi.md +49 -49
  4. data/docs/{PaymentAccountResponse.md → PartnerAccountResponse.md} +2 -2
  5. data/docs/PartnerAccountResponseBody.md +18 -0
  6. data/docs/{PaymentProcessorAuthorizationCodeRequest.md → PartnerAuthorizationCodeRequest.md} +2 -2
  7. data/docs/PartnerAuthorizationCodeRequestBody.md +18 -0
  8. data/docs/{PaymentProcessorAuthorizationCodeResponse.md → PartnerAuthorizationCodeResponse.md} +2 -2
  9. data/docs/PartnerAuthorizationCodeResponseBody.md +18 -0
  10. data/docs/{PaymentProcessorTokenResponseBody.md → PartnerTokenResponseBody.md} +3 -3
  11. data/lib/mx-platform-ruby/api/mx_platform_api.rb +50 -50
  12. data/lib/mx-platform-ruby/models/{payment_account_response.rb → partner_account_response.rb} +3 -3
  13. data/lib/mx-platform-ruby/models/{payment_account_response_body.rb → partner_account_response_body.rb} +10 -10
  14. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_request.rb → partner_authorization_code_request.rb} +3 -3
  15. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_request_body.rb → partner_authorization_code_request_body.rb} +10 -10
  16. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_response.rb → partner_authorization_code_response.rb} +3 -3
  17. data/lib/mx-platform-ruby/models/{payment_processor_authorization_code_response_body.rb → partner_authorization_code_response_body.rb} +10 -10
  18. data/lib/mx-platform-ruby/models/{payment_processor_token_response_body.rb → partner_token_response_body.rb} +3 -3
  19. data/lib/mx-platform-ruby/version.rb +1 -1
  20. data/lib/mx-platform-ruby.rb +7 -7
  21. data/openapi/config.yml +1 -1
  22. data/spec/api/mx_platform_api_spec.rb +17 -17
  23. data/spec/models/{payment_account_response_body_spec.rb → partner_account_response_body_spec.rb} +7 -7
  24. data/spec/models/{payment_account_response_spec.rb → partner_account_response_spec.rb} +6 -6
  25. data/spec/models/{payment_processor_authorization_code_request_body_spec.rb → partner_authorization_code_request_body_spec.rb} +7 -7
  26. data/spec/models/{payment_processor_authorization_code_request_spec.rb → partner_authorization_code_request_spec.rb} +6 -6
  27. data/spec/models/{payment_processor_authorization_code_response_body_spec.rb → partner_authorization_code_response_body_spec.rb} +7 -7
  28. data/spec/models/{payment_processor_authorization_code_response_spec.rb → partner_authorization_code_response_spec.rb} +6 -6
  29. data/spec/models/{payment_processor_token_response_body_spec.rb → partner_token_response_body_spec.rb} +6 -6
  30. metadata +123 -123
  31. data/docs/PaymentAccountResponseBody.md +0 -18
  32. data/docs/PaymentProcessorAuthorizationCodeRequestBody.md +0 -18
  33. data/docs/PaymentProcessorAuthorizationCodeResponseBody.md +0 -18
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9d4a26b3ac19690196d2bb65b2832e60224b7edd9551edaf683bad2943262e5
4
- data.tar.gz: 18ebac6201fbf962887a2f79eb62b2ffc675ec17a90bf895a3576e2e633825b9
3
+ metadata.gz: ab1410816217c5640a8be2c03f446b82f6d6a7c16b763dea4ccc6fd799159a4d
4
+ data.tar.gz: 46f442533a80fb1dd5b493165ca8c19b7aa14098f6c0b6e0fb3502f202fbf86e
5
5
  SHA512:
6
- metadata.gz: 3c88a6dca6e12e87592bd6f837e768d961f882f249e5a2a7d225732596d2323f5c3bfbaebaaff65a4f25e199b14d1913ce1c30f8f41de62e39133e043d26ee8e
7
- data.tar.gz: d48da8b5bd045f345d30f935bc9a42b74001b834ee392e88e28d87cf0dcfc8c5c7a76f3060ebc7c3d2a69fdc30a447ce751c14d13a972c49595955b70279585b
6
+ metadata.gz: 9aa1bdc51335fc40aec94e32b1e3c4997d97ad8d8a0959d70a0ae03d167dd822dad08befc47f79e91effa63e8982fb98e0d68d64c11af3f4b4aeada263717c06
7
+ data.tar.gz: ced2787f5809d0dada6503a97c4147517c7a086c47c217d50a4cdd7846d1c1c5466c2e0c53c4a52fd5a675166688c610a9e318031e5a77be435473f459fec448
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mx-platform-ruby (0.11.2)
4
+ mx-platform-ruby (0.12.0)
5
5
  faraday (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -37,8 +37,8 @@ GEM
37
37
  jaro_winkler (1.5.4)
38
38
  method_source (1.0.0)
39
39
  multipart-post (2.1.1)
40
- parallel (1.21.0)
41
- parser (3.1.1.0)
40
+ parallel (1.22.1)
41
+ parser (3.1.2.0)
42
42
  ast (~> 2.4.1)
43
43
  pry (0.13.1)
44
44
  coderay (~> 1.1)
@@ -59,7 +59,7 @@ GEM
59
59
  rspec-expectations (3.11.0)
60
60
  diff-lcs (>= 1.2.0, < 2.0)
61
61
  rspec-support (~> 3.11.0)
62
- rspec-mocks (3.11.0)
62
+ rspec-mocks (3.11.1)
63
63
  diff-lcs (>= 1.2.0, < 2.0)
64
64
  rspec-support (~> 3.11.0)
65
65
  rspec-support (3.11.0)
@@ -87,4 +87,4 @@ DEPENDENCIES
87
87
  rubocop (~> 0.66.0)
88
88
 
89
89
  BUNDLED WITH
90
- 2.3.9
90
+ 2.3.11
@@ -79,9 +79,9 @@ All URIs are relative to *https://api.mx.com*
79
79
  | [**read_user**](MxPlatformApi.md#read_user) | **GET** /users/{user_guid} | Read user |
80
80
  | [**request_connect_widget_url**](MxPlatformApi.md#request_connect_widget_url) | **POST** /users/{user_guid}/connect_widget_url | Request connect widget url |
81
81
  | [**request_o_auth_window_uri**](MxPlatformApi.md#request_o_auth_window_uri) | **GET** /users/{user_guid}/members/{member_guid}/oauth_window_uri | Request oauth window uri |
82
- | [**request_payment_account**](MxPlatformApi.md#request_payment_account) | **GET** /payment_account | Request payment account |
83
- | [**request_payment_processor_authorization_code**](MxPlatformApi.md#request_payment_processor_authorization_code) | **POST** /payment_processor_authorization_code | Request payment processor authorization code |
84
- | [**request_payment_processor_token**](MxPlatformApi.md#request_payment_processor_token) | **POST** /payment_processor_token | Request payment processor token |
82
+ | [**request_partner_account**](MxPlatformApi.md#request_partner_account) | **GET** /partner_account | Request partner account |
83
+ | [**request_partner_authorization_code**](MxPlatformApi.md#request_partner_authorization_code) | **POST** /partner_authorization_code | Request partner authorization code |
84
+ | [**request_partner_token**](MxPlatformApi.md#request_partner_token) | **POST** /partner_token | Request partner token |
85
85
  | [**request_widget_url**](MxPlatformApi.md#request_widget_url) | **POST** /users/{user_guid}/widget_urls | Request widget url |
86
86
  | [**resume_aggregation**](MxPlatformApi.md#resume_aggregation) | **PUT** /users/{user_guid}/members/{member_guid}/resume | Resume aggregation |
87
87
  | [**update_account_by_member**](MxPlatformApi.md#update_account_by_member) | **PUT** /users/{user_guid}/members/{member_guid}/accounts/{account_guid} | Update account by member |
@@ -5677,13 +5677,13 @@ end
5677
5677
  - **Accept**: application/vnd.mx.api.v1+json
5678
5678
 
5679
5679
 
5680
- ## request_payment_account
5680
+ ## request_partner_account
5681
5681
 
5682
- > <PaymentAccountResponseBody> request_payment_account
5682
+ > <PartnerAccountResponseBody> request_partner_account
5683
5683
 
5684
- Request payment account
5684
+ Request partner account
5685
5685
 
5686
- Use this endpoint to request a payment account.
5686
+ Use this endpoint to request a partner account.
5687
5687
 
5688
5688
  ### Examples
5689
5689
 
@@ -5699,29 +5699,29 @@ end
5699
5699
  api_instance = MxPlatformRuby::MxPlatformApi.new
5700
5700
 
5701
5701
  begin
5702
- # Request payment account
5703
- result = api_instance.request_payment_account
5702
+ # Request partner account
5703
+ result = api_instance.request_partner_account
5704
5704
  p result
5705
5705
  rescue MxPlatformRuby::ApiError => e
5706
- puts "Error when calling MxPlatformApi->request_payment_account: #{e}"
5706
+ puts "Error when calling MxPlatformApi->request_partner_account: #{e}"
5707
5707
  end
5708
5708
  ```
5709
5709
 
5710
- #### Using the request_payment_account_with_http_info variant
5710
+ #### Using the request_partner_account_with_http_info variant
5711
5711
 
5712
5712
  This returns an Array which contains the response data, status code and headers.
5713
5713
 
5714
- > <Array(<PaymentAccountResponseBody>, Integer, Hash)> request_payment_account_with_http_info
5714
+ > <Array(<PartnerAccountResponseBody>, Integer, Hash)> request_partner_account_with_http_info
5715
5715
 
5716
5716
  ```ruby
5717
5717
  begin
5718
- # Request payment account
5719
- data, status_code, headers = api_instance.request_payment_account_with_http_info
5718
+ # Request partner account
5719
+ data, status_code, headers = api_instance.request_partner_account_with_http_info
5720
5720
  p status_code # => 2xx
5721
5721
  p headers # => { ... }
5722
- p data # => <PaymentAccountResponseBody>
5722
+ p data # => <PartnerAccountResponseBody>
5723
5723
  rescue MxPlatformRuby::ApiError => e
5724
- puts "Error when calling MxPlatformApi->request_payment_account_with_http_info: #{e}"
5724
+ puts "Error when calling MxPlatformApi->request_partner_account_with_http_info: #{e}"
5725
5725
  end
5726
5726
  ```
5727
5727
 
@@ -5731,7 +5731,7 @@ This endpoint does not need any parameter.
5731
5731
 
5732
5732
  ### Return type
5733
5733
 
5734
- [**PaymentAccountResponseBody**](PaymentAccountResponseBody.md)
5734
+ [**PartnerAccountResponseBody**](PartnerAccountResponseBody.md)
5735
5735
 
5736
5736
  ### Authorization
5737
5737
 
@@ -5743,13 +5743,13 @@ This endpoint does not need any parameter.
5743
5743
  - **Accept**: application/vnd.mx.api.v1+json
5744
5744
 
5745
5745
 
5746
- ## request_payment_processor_authorization_code
5746
+ ## request_partner_authorization_code
5747
5747
 
5748
- > <PaymentProcessorAuthorizationCodeResponseBody> request_payment_processor_authorization_code(payment_processor_authorization_code_request_body)
5748
+ > <PartnerAuthorizationCodeResponseBody> request_partner_authorization_code(partner_authorization_code_request_body)
5749
5749
 
5750
- Request payment processor authorization code
5750
+ Request partner authorization code
5751
5751
 
5752
- Use this endpoint to request a payment processor authorization code.
5752
+ Use this endpoint to request a partner authorization code.
5753
5753
 
5754
5754
  ### Examples
5755
5755
 
@@ -5764,32 +5764,32 @@ MxPlatformRuby.configure do |config|
5764
5764
  end
5765
5765
 
5766
5766
  api_instance = MxPlatformRuby::MxPlatformApi.new
5767
- payment_processor_authorization_code_request_body = MxPlatformRuby::PaymentProcessorAuthorizationCodeRequestBody.new # PaymentProcessorAuthorizationCodeRequestBody | Payment processor authorization code object containing account_guid, member_guid, and user_guid.
5767
+ partner_authorization_code_request_body = MxPlatformRuby::PartnerAuthorizationCodeRequestBody.new # PartnerAuthorizationCodeRequestBody | Partner authorization code object containing account_guid, member_guid, and user_guid.
5768
5768
 
5769
5769
  begin
5770
- # Request payment processor authorization code
5771
- result = api_instance.request_payment_processor_authorization_code(payment_processor_authorization_code_request_body)
5770
+ # Request partner authorization code
5771
+ result = api_instance.request_partner_authorization_code(partner_authorization_code_request_body)
5772
5772
  p result
5773
5773
  rescue MxPlatformRuby::ApiError => e
5774
- puts "Error when calling MxPlatformApi->request_payment_processor_authorization_code: #{e}"
5774
+ puts "Error when calling MxPlatformApi->request_partner_authorization_code: #{e}"
5775
5775
  end
5776
5776
  ```
5777
5777
 
5778
- #### Using the request_payment_processor_authorization_code_with_http_info variant
5778
+ #### Using the request_partner_authorization_code_with_http_info variant
5779
5779
 
5780
5780
  This returns an Array which contains the response data, status code and headers.
5781
5781
 
5782
- > <Array(<PaymentProcessorAuthorizationCodeResponseBody>, Integer, Hash)> request_payment_processor_authorization_code_with_http_info(payment_processor_authorization_code_request_body)
5782
+ > <Array(<PartnerAuthorizationCodeResponseBody>, Integer, Hash)> request_partner_authorization_code_with_http_info(partner_authorization_code_request_body)
5783
5783
 
5784
5784
  ```ruby
5785
5785
  begin
5786
- # Request payment processor authorization code
5787
- data, status_code, headers = api_instance.request_payment_processor_authorization_code_with_http_info(payment_processor_authorization_code_request_body)
5786
+ # Request partner authorization code
5787
+ data, status_code, headers = api_instance.request_partner_authorization_code_with_http_info(partner_authorization_code_request_body)
5788
5788
  p status_code # => 2xx
5789
5789
  p headers # => { ... }
5790
- p data # => <PaymentProcessorAuthorizationCodeResponseBody>
5790
+ p data # => <PartnerAuthorizationCodeResponseBody>
5791
5791
  rescue MxPlatformRuby::ApiError => e
5792
- puts "Error when calling MxPlatformApi->request_payment_processor_authorization_code_with_http_info: #{e}"
5792
+ puts "Error when calling MxPlatformApi->request_partner_authorization_code_with_http_info: #{e}"
5793
5793
  end
5794
5794
  ```
5795
5795
 
@@ -5797,11 +5797,11 @@ end
5797
5797
 
5798
5798
  | Name | Type | Description | Notes |
5799
5799
  | ---- | ---- | ----------- | ----- |
5800
- | **payment_processor_authorization_code_request_body** | [**PaymentProcessorAuthorizationCodeRequestBody**](PaymentProcessorAuthorizationCodeRequestBody.md) | Payment processor authorization code object containing account_guid, member_guid, and user_guid. | |
5800
+ | **partner_authorization_code_request_body** | [**PartnerAuthorizationCodeRequestBody**](PartnerAuthorizationCodeRequestBody.md) | Partner authorization code object containing account_guid, member_guid, and user_guid. | |
5801
5801
 
5802
5802
  ### Return type
5803
5803
 
5804
- [**PaymentProcessorAuthorizationCodeResponseBody**](PaymentProcessorAuthorizationCodeResponseBody.md)
5804
+ [**PartnerAuthorizationCodeResponseBody**](PartnerAuthorizationCodeResponseBody.md)
5805
5805
 
5806
5806
  ### Authorization
5807
5807
 
@@ -5813,13 +5813,13 @@ end
5813
5813
  - **Accept**: application/vnd.mx.api.v1+json
5814
5814
 
5815
5815
 
5816
- ## request_payment_processor_token
5816
+ ## request_partner_token
5817
5817
 
5818
- > <PaymentProcessorTokenResponseBody> request_payment_processor_token(opts)
5818
+ > <PartnerTokenResponseBody> request_partner_token(opts)
5819
5819
 
5820
- Request payment processor token
5820
+ Request partner token
5821
5821
 
5822
- Use this endpoint to request a payment processor token.
5822
+ Use this endpoint to request a partner token.
5823
5823
 
5824
5824
  ### Examples
5825
5825
 
@@ -5835,34 +5835,34 @@ end
5835
5835
 
5836
5836
  api_instance = MxPlatformRuby::MxPlatformApi.new
5837
5837
  opts = {
5838
- code: 'sN3Ffd1nJg_iwEMuxcEo2Z5taC0RvMilfvYKsnM2XGM', # String | Code to request processor token.
5838
+ code: 'sN3Ffd1nJg_iwEMuxcEo2Z5taC0RvMilfvYKsnM2XGM', # String | Code to request partner token.
5839
5839
  grant_type: 'authorization_code' # String | Specify grant type.
5840
5840
  }
5841
5841
 
5842
5842
  begin
5843
- # Request payment processor token
5844
- result = api_instance.request_payment_processor_token(opts)
5843
+ # Request partner token
5844
+ result = api_instance.request_partner_token(opts)
5845
5845
  p result
5846
5846
  rescue MxPlatformRuby::ApiError => e
5847
- puts "Error when calling MxPlatformApi->request_payment_processor_token: #{e}"
5847
+ puts "Error when calling MxPlatformApi->request_partner_token: #{e}"
5848
5848
  end
5849
5849
  ```
5850
5850
 
5851
- #### Using the request_payment_processor_token_with_http_info variant
5851
+ #### Using the request_partner_token_with_http_info variant
5852
5852
 
5853
5853
  This returns an Array which contains the response data, status code and headers.
5854
5854
 
5855
- > <Array(<PaymentProcessorTokenResponseBody>, Integer, Hash)> request_payment_processor_token_with_http_info(opts)
5855
+ > <Array(<PartnerTokenResponseBody>, Integer, Hash)> request_partner_token_with_http_info(opts)
5856
5856
 
5857
5857
  ```ruby
5858
5858
  begin
5859
- # Request payment processor token
5860
- data, status_code, headers = api_instance.request_payment_processor_token_with_http_info(opts)
5859
+ # Request partner token
5860
+ data, status_code, headers = api_instance.request_partner_token_with_http_info(opts)
5861
5861
  p status_code # => 2xx
5862
5862
  p headers # => { ... }
5863
- p data # => <PaymentProcessorTokenResponseBody>
5863
+ p data # => <PartnerTokenResponseBody>
5864
5864
  rescue MxPlatformRuby::ApiError => e
5865
- puts "Error when calling MxPlatformApi->request_payment_processor_token_with_http_info: #{e}"
5865
+ puts "Error when calling MxPlatformApi->request_partner_token_with_http_info: #{e}"
5866
5866
  end
5867
5867
  ```
5868
5868
 
@@ -5870,12 +5870,12 @@ end
5870
5870
 
5871
5871
  | Name | Type | Description | Notes |
5872
5872
  | ---- | ---- | ----------- | ----- |
5873
- | **code** | **String** | Code to request processor token. | [optional] |
5873
+ | **code** | **String** | Code to request partner token. | [optional] |
5874
5874
  | **grant_type** | **String** | Specify grant type. | [optional] |
5875
5875
 
5876
5876
  ### Return type
5877
5877
 
5878
- [**PaymentProcessorTokenResponseBody**](PaymentProcessorTokenResponseBody.md)
5878
+ [**PartnerTokenResponseBody**](PartnerTokenResponseBody.md)
5879
5879
 
5880
5880
  ### Authorization
5881
5881
 
@@ -1,4 +1,4 @@
1
- # MxPlatformRuby::PaymentAccountResponse
1
+ # MxPlatformRuby::PartnerAccountResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -17,7 +17,7 @@
17
17
  ```ruby
18
18
  require 'mx-platform-ruby'
19
19
 
20
- instance = MxPlatformRuby::PaymentAccountResponse.new(
20
+ instance = MxPlatformRuby::PartnerAccountResponse.new(
21
21
  account_name: My Savings,
22
22
  account_number: 1858091489,
23
23
  account_type: SAVINGS,
@@ -0,0 +1,18 @@
1
+ # MxPlatformRuby::PartnerAccountResponseBody
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **partner_account** | [**PartnerAccountResponse**](PartnerAccountResponse.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'mx-platform-ruby'
13
+
14
+ instance = MxPlatformRuby::PartnerAccountResponseBody.new(
15
+ partner_account: null
16
+ )
17
+ ```
18
+
@@ -1,4 +1,4 @@
1
- # MxPlatformRuby::PaymentProcessorAuthorizationCodeRequest
1
+ # MxPlatformRuby::PartnerAuthorizationCodeRequest
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,7 +13,7 @@
13
13
  ```ruby
14
14
  require 'mx-platform-ruby'
15
15
 
16
- instance = MxPlatformRuby::PaymentProcessorAuthorizationCodeRequest.new(
16
+ instance = MxPlatformRuby::PartnerAuthorizationCodeRequest.new(
17
17
  account_guid: ACT-06d7f44b-caae-0f6e-1384-01f52e75dcb1,
18
18
  member_guid: MBR-7c6f361b-e582-15b6-60c0-358f12466b4b,
19
19
  user_guid: USR-fa7537f3-48aa-a683-a02a-b18940482f54
@@ -0,0 +1,18 @@
1
+ # MxPlatformRuby::PartnerAuthorizationCodeRequestBody
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **partner_authorization_code** | [**PartnerAuthorizationCodeRequest**](PartnerAuthorizationCodeRequest.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'mx-platform-ruby'
13
+
14
+ instance = MxPlatformRuby::PartnerAuthorizationCodeRequestBody.new(
15
+ partner_authorization_code: null
16
+ )
17
+ ```
18
+
@@ -1,4 +1,4 @@
1
- # MxPlatformRuby::PaymentProcessorAuthorizationCodeResponse
1
+ # MxPlatformRuby::PartnerAuthorizationCodeResponse
2
2
 
3
3
  ## Properties
4
4
 
@@ -11,7 +11,7 @@
11
11
  ```ruby
12
12
  require 'mx-platform-ruby'
13
13
 
14
- instance = MxPlatformRuby::PaymentProcessorAuthorizationCodeResponse.new(
14
+ instance = MxPlatformRuby::PartnerAuthorizationCodeResponse.new(
15
15
  authorization_code: sN3Ffd1nJg_iwEMuxcEo2Z5taC0RvMilfvYKsnM2XGM
16
16
  )
17
17
  ```
@@ -0,0 +1,18 @@
1
+ # MxPlatformRuby::PartnerAuthorizationCodeResponseBody
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **partner_authorization_code** | [**PartnerAuthorizationCodeResponse**](PartnerAuthorizationCodeResponse.md) | | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'mx-platform-ruby'
13
+
14
+ instance = MxPlatformRuby::PartnerAuthorizationCodeResponseBody.new(
15
+ partner_authorization_code: null
16
+ )
17
+ ```
18
+
@@ -1,4 +1,4 @@
1
- # MxPlatformRuby::PaymentProcessorTokenResponseBody
1
+ # MxPlatformRuby::PartnerTokenResponseBody
2
2
 
3
3
  ## Properties
4
4
 
@@ -13,9 +13,9 @@
13
13
  ```ruby
14
14
  require 'mx-platform-ruby'
15
15
 
16
- instance = MxPlatformRuby::PaymentProcessorTokenResponseBody.new(
16
+ instance = MxPlatformRuby::PartnerTokenResponseBody.new(
17
17
  access_token: jUmJS4AZVdvywAMO_JWKwZ8fvY9ZZQINSBHTKkHMw-c,
18
- scope: payment_accounts,
18
+ scope: Platform#partner_accounts,
19
19
  token_type: bearer
20
20
  )
21
21
  ```
@@ -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
@@ -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
  }