Skip to content

Commit a82853b

Browse files
committed
- Removed unnecessary files
1 parent 4234b13 commit a82853b

17 files changed

+17
-1112
lines changed

docs/CreateAccessTokenRequest1.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

docs/InlineResponse200.md

Lines changed: 0 additions & 14 deletions
This file was deleted.

docs/InlineResponse401.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/InlineResponse404.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/InvalidaAuthCodeError.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/OAuthApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Method | HTTP request | Description
88

99

1010
# **create_access_token**
11-
> InlineResponse200 create_access_token(create_access_token_request, opts)
11+
> AccessTokenResponse create_access_token(create_access_token_request, opts)
1212
1313
Create access token and refresh token
1414

@@ -21,7 +21,7 @@ require 'cybersource_rest_client'
2121

2222
api_instance = CyberSource::OAuthApi.new
2323

24-
create_access_token_request = CyberSource::CreateAccessTokenRequest1.new # CreateAccessTokenRequest1 | Request payload
24+
create_access_token_request = CyberSource::CreateAccessTokenRequest.new # CreateAccessTokenRequest | Request payload
2525

2626
opts = {
2727
v_c_client_correlation_id: "v_c_client_correlation_id_example" # String | We recommended that you submit this header with a unique value in every client request to this endpoint. It is sent back in the response header and logged both in the request log and response log.
@@ -40,20 +40,20 @@ end
4040

4141
Name | Type | Description | Notes
4242
------------- | ------------- | ------------- | -------------
43-
**create_access_token_request** | [**CreateAccessTokenRequest1**](CreateAccessTokenRequest1.md)| Request payload |
43+
**create_access_token_request** | [**CreateAccessTokenRequest**](CreateAccessTokenRequest.md)| Request payload |
4444
**v_c_client_correlation_id** | **String**| We recommended that you submit this header with a unique value in every client request to this endpoint. It is sent back in the response header and logged both in the request log and response log. | [optional]
4545

4646
### Return type
4747

48-
[**InlineResponse200**](InlineResponse200.md)
48+
[**AccessTokenResponse**](AccessTokenResponse.md)
4949

5050
### Authorization
5151

5252
No authorization required
5353

5454
### HTTP request headers
5555

56-
- **Content-Type**: application/json;charset=utf-8
56+
- **Content-Type**: application/x-www-form-urlencoded
5757
- **Accept**: application/json;charset=utf-8
5858

5959

lib/AuthenticationSDK/util/Constants.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -88,21 +88,21 @@ class Constants
8888

8989
MA_PRODUCTION_URL = 'api-ma.cybersource.com' unless const_defined?(:MA_PRODUCTION_URL)
9090

91-
BOA_RUN_ENV_SANDBOX = 'BANKOFAMERICA.ENVIRONMENT.SANDBOX' unless const_defined?(:RUN_ENV_SANDBOX)
91+
BOA_RUN_ENV_SANDBOX = 'BANKOFAMERICA.ENVIRONMENT.SANDBOX' unless const_defined?(:BOA_RUN_ENV_SANDBOX)
9292

93-
BOA_RUN_ENV_PROD = 'BANKOFAMERICA.ENVIRONMENT.PRODUCTION'unless const_defined?(:RUN_ENV_PROD)
93+
BOA_RUN_ENV_PROD = 'BANKOFAMERICA.ENVIRONMENT.PRODUCTION' unless const_defined?(:BOA_RUN_ENV_PROD)
9494

95-
BOA_SANDBOX_URL = 'apitest.merchant-services.bankofamerica.com' unless const_defined?(:SANDBOX_URL)
95+
BOA_SANDBOX_URL = 'apitest.merchant-services.bankofamerica.com' unless const_defined?(:BOA_SANDBOX_URL)
9696

97-
BOA_PRODUCTION_URL = 'api.merchant-services.bankofamerica.com' unless const_defined?(:PRODUCTION_URL)
97+
BOA_PRODUCTION_URL = 'api.merchant-services.bankofamerica.com' unless const_defined?(:BOA_PRODUCTION_URL)
9898

99-
IDC_RUN_ENV_SANDBOX = 'CYBERSOURCE.IN.ENVIRONMENT.SANDBOX' unless const_defined?(:RUN_ENV_SANDBOX)
99+
IDC_RUN_ENV_SANDBOX = 'CYBERSOURCE.IN.ENVIRONMENT.SANDBOX' unless const_defined?(:IDC_RUN_ENV_SANDBOX)
100100

101-
IDC_RUN_ENV_PROD = 'CYEBRSOURCE.IN.ENVIRONMENT.PRODUCTION'unless const_defined?(:RUN_ENV_PROD)
101+
IDC_RUN_ENV_PROD = 'CYEBRSOURCE.IN.ENVIRONMENT.PRODUCTION' unless const_defined?(:IDC_RUN_ENV_PROD)
102102

103-
IDC_SANDBOX_URL = 'apitest.cybersource.com' unless const_defined?(:SANDBOX_URL)
103+
IDC_SANDBOX_URL = 'apitest.cybersource.com' unless const_defined?(:IDC_SANDBOX_URL)
104104

105-
IDC_PRODUCTION_URL = 'api.in.cybersource.com' unless const_defined?(:PRODUCTION_URL)
105+
IDC_PRODUCTION_URL = 'api.in.cybersource.com' unless const_defined?(:IDC_PRODUCTION_URL)
106106

107107
# constants for fall back logic
108108

lib/cybersource_rest_client.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,11 @@
3232
require 'cybersource_rest_client/configuration'
3333

3434
# Models
35-
require 'cybersource_rest_client/models/inline_response_401'
36-
require 'cybersource_rest_client/models/inline_response_404'
37-
require 'cybersource_rest_client/models/invalida_auth_code_error'
3835
require 'cybersource_rest_client/models/resource_not_found_error'
3936
require 'cybersource_rest_client/models/unauthorized_client_error'
4037
require 'cybersource_rest_client/models/access_token_response'
4138
require 'cybersource_rest_client/models/bad_request_error'
4239
require 'cybersource_rest_client/models/create_access_token_request'
43-
require 'cybersource_rest_client/models/inline_response_200'
4440
require 'cybersource_rest_client/models/add_negative_list_request'
4541
require 'cybersource_rest_client/models/auth_reversal_request'
4642
require 'cybersource_rest_client/models/capture_payment_request'

lib/cybersource_rest_client/api/o_auth_api.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize(api_client = ApiClient.default, config)
2525
# @param create_access_token_request Request payload
2626
# @param [Hash] opts the optional parameters
2727
# @option opts [String] :v_c_client_correlation_id We recommended that you submit this header with a unique value in every client request to this endpoint. It is sent back in the response header and logged both in the request log and response log.
28-
# @return [InlineResponse200]
28+
# @return [AccessTokenResponse]
2929
def create_access_token(create_access_token_request, opts = {})
3030
data, status_code, headers = create_access_token_with_http_info(create_access_token_request, opts)
3131
return data, status_code, headers
@@ -36,7 +36,7 @@ def create_access_token(create_access_token_request, opts = {})
3636
# @param create_access_token_request Request payload
3737
# @param [Hash] opts the optional parameters
3838
# @option opts [String] :v_c_client_correlation_id We recommended that you submit this header with a unique value in every client request to this endpoint. It is sent back in the response header and logged both in the request log and response log.
39-
# @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
39+
# @return [Array<(AccessTokenResponse, Fixnum, Hash)>] AccessTokenResponse data, response status code and response headers
4040
def create_access_token_with_http_info(create_access_token_request, opts = {})
4141

4242
if @api_client.config.debugging
@@ -74,7 +74,7 @@ def create_access_token_with_http_info(create_access_token_request, opts = {})
7474
# HTTP header 'Accept' (if needed)
7575
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
7676
# HTTP header 'Content-Type'
77-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
77+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
7878
header_params[:'v-c-client-correlation-id'] = opts[:'v_c_client_correlation_id'] if !opts[:'v_c_client_correlation_id'].nil?
7979

8080
# form parameters
@@ -89,7 +89,7 @@ def create_access_token_with_http_info(create_access_token_request, opts = {})
8989
:form_params => form_params,
9090
:body => post_body,
9191
:auth_names => auth_names,
92-
:return_type => 'InlineResponse200')
92+
:return_type => 'AccessTokenResponse')
9393
if @api_client.config.debugging
9494
begin
9595
raise

0 commit comments

Comments
 (0)