Skip to content

Commit d97f812

Browse files
author
Sugumar
committed
changes in Returning the response code to sample code
1 parent fd2f965 commit d97f812

13 files changed

+51
-44
lines changed

lib/cyberSource_client/api/capture_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def initialize(api_client = ApiClient.default)
2727
# @return [InlineResponse2012]
2828
def capture_payment(capture_payment_request, id, opts = {})
2929
data, _status_code, _headers = capture_payment_with_http_info(capture_payment_request, id, opts)
30-
data
30+
return data, _status_code, _headers
3131
end
3232

3333
# Capture a Payment

lib/cyberSource_client/api/credit_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @return [InlineResponse2014]
2727
def create_credit(create_credit_request, opts = {})
2828
data, _status_code, _headers = create_credit_with_http_info(create_credit_request, opts)
29-
data
29+
return data, _status_code, _headers
3030
end
3131

3232
# Process a Credit
@@ -78,7 +78,7 @@ def create_credit_with_http_info(create_credit_request, opts = {})
7878
# @return [InlineResponse2006]
7979
def get_credit(id, opts = {})
8080
data, _status_code, _headers = get_credit_with_http_info(id, opts)
81-
data
81+
return data, _status_code, _headers
8282
end
8383

8484
# Retrieve a Credit

lib/cyberSource_client/api/default_api.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ def initialize(api_client = ApiClient.default)
2525
# @param [Hash] opts the optional parameters
2626
# @return [nil]
2727
def oct_create_payment(oct_create_payment_request, opts = {})
28-
oct_create_payment_with_http_info(oct_create_payment_request, opts)
29-
nil
28+
# anjana
29+
data, _status_code, _headers = oct_create_payment_with_http_info(oct_create_payment_request, opts)
30+
return data, _status_code, _headers
3031
end
3132

3233
# Process a Payout

lib/cyberSource_client/api/instrument_identifier_api.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @return [InlineResponse2007]
2727
def instrumentidentifiers_post(profile_id, opts = {})
2828
data, _status_code, _headers = instrumentidentifiers_post_with_http_info(profile_id, opts)
29-
data
29+
return data, _status_code, _headers
3030
end
3131

3232
# Create an Instrument Identifier
@@ -86,8 +86,8 @@ def instrumentidentifiers_post_with_http_info(profile_id, opts = {})
8686
# @param [Hash] opts the optional parameters
8787
# @return [nil]
8888
def instrumentidentifiers_token_id_delete(profile_id, token_id, opts = {})
89-
instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
90-
nil
89+
data, _status_code, _headers = instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
90+
return data, _status_code, _headers
9191
end
9292

9393
# Delete an Instrument Identifier
@@ -153,7 +153,7 @@ def instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, o
153153
# @return [InlineResponse2007]
154154
def instrumentidentifiers_token_id_get(profile_id, token_id, opts = {})
155155
data, _status_code, _headers = instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts)
156-
data
156+
return data, _status_code, _headers
157157
end
158158

159159
# Retrieve an Instrument Identifier
@@ -227,7 +227,7 @@ def instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts
227227
# @return [InlineResponse2007]
228228
def instrumentidentifiers_token_id_patch(profile_id, token_id, body, opts = {})
229229
data, _status_code, _headers = instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts)
230-
data
230+
return data, _status_code, _headers
231231
end
232232

233233
# Update a Instrument Identifier
@@ -307,7 +307,7 @@ def instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, bo
307307
# @return [InlineResponse2008]
308308
def instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, opts = {})
309309
data, _status_code, _headers = instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts)
310-
data
310+
return data, _status_code, _headers
311311
end
312312

313313
# Retrieve all Payment Instruments associated with an Instrument Identifier

lib/cyberSource_client/api/key_generation_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @return [InlineResponse200]
2727
def generate_public_key(generate_public_key_request, opts = {})
2828
data, _status_code, _headers = generate_public_key_with_http_info(generate_public_key_request, opts)
29-
data
29+
return data, _status_code, _headers
3030
end
3131

3232
# Generate Key

lib/cyberSource_client/api/payment_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @return [InlineResponse201]
2727
def create_payment(create_payment_request, opts = {})
2828
data, _status_code, _headers = create_payment_with_http_info(create_payment_request, opts)
29-
data
29+
return data, _status_code, _headers
3030
end
3131

3232
# Process a Payment
@@ -78,7 +78,7 @@ def create_payment_with_http_info(create_payment_request, opts = {})
7878
# @return [InlineResponse2002]
7979
def get_payment(id, opts = {})
8080
data, _status_code, _headers = get_payment_with_http_info(id, opts)
81-
data
81+
return data, _status_code, _headers
8282
end
8383

8484
# Retrieve a Payment

lib/cyberSource_client/api/payment_instrument_api.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @return [InlineResponse2016]
2727
def paymentinstruments_post(profile_id, body, opts = {})
2828
data, _status_code, _headers = paymentinstruments_post_with_http_info(profile_id, body, opts)
29-
data
29+
return data, _status_code, _headers
3030
end
3131

3232
# Create a Payment Instrument
@@ -90,8 +90,8 @@ def paymentinstruments_post_with_http_info(profile_id, body, opts = {})
9090
# @param [Hash] opts the optional parameters
9191
# @return [nil]
9292
def paymentinstruments_token_id_delete(profile_id, token_id, opts = {})
93-
paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts)
94-
nil
93+
data, _status_code, _headers = paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts)
94+
return data, _status_code, _headers
9595
end
9696

9797
# Delete a Payment Instrument
@@ -163,7 +163,7 @@ def paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts
163163
# @return [InlineResponse2016]
164164
def paymentinstruments_token_id_get(profile_id, token_id, opts = {})
165165
data, _status_code, _headers = paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts)
166-
data
166+
return data, _status_code, _headers
167167
end
168168

169169
# Retrieve a Payment Instrument
@@ -237,7 +237,7 @@ def paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts =
237237
# @return [InlineResponse2016]
238238
def paymentinstruments_token_id_patch(profile_id, token_id, body, opts = {})
239239
data, _status_code, _headers = paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts)
240-
data
240+
return data, _status_code, _headers
241241
end
242242

243243
# Update a Payment Instrument

lib/cyberSource_client/api/refund_api.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @return [InlineResponse2005]
2727
def get_refund(id, opts = {})
2828
data, _status_code, _headers = get_refund_with_http_info(id, opts)
29-
data
29+
return data, _status_code, _headers
3030
end
3131

3232
# Retrieve a Refund
@@ -79,7 +79,7 @@ def get_refund_with_http_info(id, opts = {})
7979
# @return [InlineResponse2013]
8080
def refund_capture(refund_capture_request, id, opts = {})
8181
data, _status_code, _headers = refund_capture_with_http_info(refund_capture_request, id, opts)
82-
data
82+
return data, _status_code, _headers
8383
end
8484

8585
# Refund a Capture
@@ -137,7 +137,7 @@ def refund_capture_with_http_info(refund_capture_request, id, opts = {})
137137
# @return [InlineResponse2013]
138138
def refund_payment(refund_payment_request, id, opts = {})
139139
data, _status_code, _headers = refund_payment_with_http_info(refund_payment_request, id, opts)
140-
data
140+
return data, _status_code, _headers
141141
end
142142

143143
# Refund a Payment

lib/cyberSource_client/api/reversal_api.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def initialize(api_client = ApiClient.default)
2727
# @return [InlineResponse2011]
2828
def auth_reversal(id, auth_reversal_request, opts = {})
2929
data, _status_code, _headers = auth_reversal_with_http_info(id, auth_reversal_request, opts)
30-
data
30+
return data, _status_code, _headers
3131
end
3232

3333
# Process an Authorization Reversal
@@ -84,7 +84,7 @@ def auth_reversal_with_http_info(id, auth_reversal_request, opts = {})
8484
# @return [InlineResponse2003]
8585
def get_auth_reversal(id, opts = {})
8686
data, _status_code, _headers = get_auth_reversal_with_http_info(id, opts)
87-
data
87+
return data, _status_code, _headers
8888
end
8989

9090
# Retrieve an Authorization Reversal

lib/cyberSource_client/api/tokenization_api.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
2626
# @return [InlineResponse2001]
2727
def tokenize(opts = {})
2828
data, _status_code, _headers = tokenize_with_http_info(opts)
29-
data
29+
return data, _status_code, _headers
3030
end
3131

3232
# Tokenize card

0 commit comments

Comments
 (0)