Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cyberSource_client/api/capture_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2012]
def capture_payment(capture_payment_request, id, opts = {})
data, _status_code, _headers = capture_payment_with_http_info(capture_payment_request, id, opts)
data
return data, _status_code, _headers
end

# Capture a Payment
Expand Down
4 changes: 2 additions & 2 deletions lib/cyberSource_client/api/credit_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2014]
def create_credit(create_credit_request, opts = {})
data, _status_code, _headers = create_credit_with_http_info(create_credit_request, opts)
data
return data, _status_code, _headers
end

# Process a Credit
Expand Down Expand Up @@ -78,7 +78,7 @@ def create_credit_with_http_info(create_credit_request, opts = {})
# @return [InlineResponse2006]
def get_credit(id, opts = {})
data, _status_code, _headers = get_credit_with_http_info(id, opts)
data
return data, _status_code, _headers
end

# Retrieve a Credit
Expand Down
5 changes: 3 additions & 2 deletions lib/cyberSource_client/api/default_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ def initialize(api_client = ApiClient.default)
# @param [Hash] opts the optional parameters
# @return [nil]
def oct_create_payment(oct_create_payment_request, opts = {})
oct_create_payment_with_http_info(oct_create_payment_request, opts)
nil
# anjana
data, _status_code, _headers = oct_create_payment_with_http_info(oct_create_payment_request, opts)
return data, _status_code, _headers
end

# Process a Payout
Expand Down
12 changes: 6 additions & 6 deletions lib/cyberSource_client/api/instrument_identifier_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2007]
def instrumentidentifiers_post(profile_id, opts = {})
data, _status_code, _headers = instrumentidentifiers_post_with_http_info(profile_id, opts)
data
return data, _status_code, _headers
end

# Create an Instrument Identifier
Expand Down Expand Up @@ -86,8 +86,8 @@ def instrumentidentifiers_post_with_http_info(profile_id, opts = {})
# @param [Hash] opts the optional parameters
# @return [nil]
def instrumentidentifiers_token_id_delete(profile_id, token_id, opts = {})
instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
nil
data, _status_code, _headers = instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, opts)
return data, _status_code, _headers
end

# Delete an Instrument Identifier
Expand Down Expand Up @@ -153,7 +153,7 @@ def instrumentidentifiers_token_id_delete_with_http_info(profile_id, token_id, o
# @return [InlineResponse2007]
def instrumentidentifiers_token_id_get(profile_id, token_id, opts = {})
data, _status_code, _headers = instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts)
data
return data, _status_code, _headers
end

# Retrieve an Instrument Identifier
Expand Down Expand Up @@ -227,7 +227,7 @@ def instrumentidentifiers_token_id_get_with_http_info(profile_id, token_id, opts
# @return [InlineResponse2007]
def instrumentidentifiers_token_id_patch(profile_id, token_id, body, opts = {})
data, _status_code, _headers = instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, body, opts)
data
return data, _status_code, _headers
end

# Update a Instrument Identifier
Expand Down Expand Up @@ -307,7 +307,7 @@ def instrumentidentifiers_token_id_patch_with_http_info(profile_id, token_id, bo
# @return [InlineResponse2008]
def instrumentidentifiers_token_id_paymentinstruments_get(profile_id, token_id, opts = {})
data, _status_code, _headers = instrumentidentifiers_token_id_paymentinstruments_get_with_http_info(profile_id, token_id, opts)
data
return data, _status_code, _headers
end

# Retrieve all Payment Instruments associated with an Instrument Identifier
Expand Down
2 changes: 1 addition & 1 deletion lib/cyberSource_client/api/key_generation_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse200]
def generate_public_key(generate_public_key_request, opts = {})
data, _status_code, _headers = generate_public_key_with_http_info(generate_public_key_request, opts)
data
return data, _status_code, _headers
end

# Generate Key
Expand Down
4 changes: 2 additions & 2 deletions lib/cyberSource_client/api/payment_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse201]
def create_payment(create_payment_request, opts = {})
data, _status_code, _headers = create_payment_with_http_info(create_payment_request, opts)
data
return data, _status_code, _headers
end

# Process a Payment
Expand Down Expand Up @@ -78,7 +78,7 @@ def create_payment_with_http_info(create_payment_request, opts = {})
# @return [InlineResponse2002]
def get_payment(id, opts = {})
data, _status_code, _headers = get_payment_with_http_info(id, opts)
data
return data, _status_code, _headers
end

# Retrieve a Payment
Expand Down
10 changes: 5 additions & 5 deletions lib/cyberSource_client/api/payment_instrument_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2016]
def paymentinstruments_post(profile_id, body, opts = {})
data, _status_code, _headers = paymentinstruments_post_with_http_info(profile_id, body, opts)
data
return data, _status_code, _headers
end

# Create a Payment Instrument
Expand Down Expand Up @@ -90,8 +90,8 @@ def paymentinstruments_post_with_http_info(profile_id, body, opts = {})
# @param [Hash] opts the optional parameters
# @return [nil]
def paymentinstruments_token_id_delete(profile_id, token_id, opts = {})
paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts)
nil
data, _status_code, _headers = paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts)
return data, _status_code, _headers
end

# Delete a Payment Instrument
Expand Down Expand Up @@ -163,7 +163,7 @@ def paymentinstruments_token_id_delete_with_http_info(profile_id, token_id, opts
# @return [InlineResponse2016]
def paymentinstruments_token_id_get(profile_id, token_id, opts = {})
data, _status_code, _headers = paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts)
data
return data, _status_code, _headers
end

# Retrieve a Payment Instrument
Expand Down Expand Up @@ -237,7 +237,7 @@ def paymentinstruments_token_id_get_with_http_info(profile_id, token_id, opts =
# @return [InlineResponse2016]
def paymentinstruments_token_id_patch(profile_id, token_id, body, opts = {})
data, _status_code, _headers = paymentinstruments_token_id_patch_with_http_info(profile_id, token_id, body, opts)
data
return data, _status_code, _headers
end

# Update a Payment Instrument
Expand Down
6 changes: 3 additions & 3 deletions lib/cyberSource_client/api/refund_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2005]
def get_refund(id, opts = {})
data, _status_code, _headers = get_refund_with_http_info(id, opts)
data
return data, _status_code, _headers
end

# Retrieve a Refund
Expand Down Expand Up @@ -79,7 +79,7 @@ def get_refund_with_http_info(id, opts = {})
# @return [InlineResponse2013]
def refund_capture(refund_capture_request, id, opts = {})
data, _status_code, _headers = refund_capture_with_http_info(refund_capture_request, id, opts)
data
return data, _status_code, _headers
end

# Refund a Capture
Expand Down Expand Up @@ -137,7 +137,7 @@ def refund_capture_with_http_info(refund_capture_request, id, opts = {})
# @return [InlineResponse2013]
def refund_payment(refund_payment_request, id, opts = {})
data, _status_code, _headers = refund_payment_with_http_info(refund_payment_request, id, opts)
data
return data, _status_code, _headers
end

# Refund a Payment
Expand Down
4 changes: 2 additions & 2 deletions lib/cyberSource_client/api/reversal_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2011]
def auth_reversal(id, auth_reversal_request, opts = {})
data, _status_code, _headers = auth_reversal_with_http_info(id, auth_reversal_request, opts)
data
return data, _status_code, _headers
end

# Process an Authorization Reversal
Expand Down Expand Up @@ -84,7 +84,7 @@ def auth_reversal_with_http_info(id, auth_reversal_request, opts = {})
# @return [InlineResponse2003]
def get_auth_reversal(id, opts = {})
data, _status_code, _headers = get_auth_reversal_with_http_info(id, opts)
data
return data, _status_code, _headers
end

# Retrieve an Authorization Reversal
Expand Down
2 changes: 1 addition & 1 deletion lib/cyberSource_client/api/tokenization_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2001]
def tokenize(opts = {})
data, _status_code, _headers = tokenize_with_http_info(opts)
data
return data, _status_code, _headers
end

# Tokenize card
Expand Down
10 changes: 5 additions & 5 deletions lib/cyberSource_client/api/void_api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(api_client = ApiClient.default)
# @return [InlineResponse2015]
def get_void(id, opts = {})
data, _status_code, _headers = get_void_with_http_info(id, opts)
data
return data, _status_code, _headers
end

# Retrieve A Void
Expand Down Expand Up @@ -79,7 +79,7 @@ def get_void_with_http_info(id, opts = {})
# @return [InlineResponse2015]
def void_capture(void_capture_request, id, opts = {})
data, _status_code, _headers = void_capture_with_http_info(void_capture_request, id, opts)
data
return data, _status_code, _headers
end

# Void a Capture
Expand Down Expand Up @@ -137,7 +137,7 @@ def void_capture_with_http_info(void_capture_request, id, opts = {})
# @return [InlineResponse2015]
def void_credit(void_credit_request, id, opts = {})
data, _status_code, _headers = void_credit_with_http_info(void_credit_request, id, opts)
data
return data, _status_code, _headers
end

# Void a Credit
Expand Down Expand Up @@ -195,7 +195,7 @@ def void_credit_with_http_info(void_credit_request, id, opts = {})
# @return [InlineResponse2015]
def void_payment(void_payment_request, id, opts = {})
data, _status_code, _headers = void_payment_with_http_info(void_payment_request, id, opts)
data
return data, _status_code, _headers
end

# Void a Payment
Expand Down Expand Up @@ -253,7 +253,7 @@ def void_payment_with_http_info(void_payment_request, id, opts = {})
# @return [InlineResponse2015]
def void_refund(void_refund_request, id, opts = {})
data, _status_code, _headers = void_refund_with_http_info(void_refund_request, id, opts)
data
return data, _status_code, _headers
end

# Void a Refund
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,26 +48,29 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
if !@customer_id.nil? && @customer_id.to_s.length > 26
invalid_properties.push('invalid value for "customer_id", the character length must be smaller than or equal to 26.')
end
#anjana
# if !@customer_id.nil? && @customer_id.to_s.length > 26
# invalid_properties.push('invalid value for "customer_id", the character length must be smaller than or equal to 26.')
# end

invalid_properties
end

# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if !@customer_id.nil? && @customer_id.to_s.length > 26
# anjana
# return false if !@customer_id.nil? && @customer_id.to_s.length > 26
true
end

# Custom attribute writer method with validation
# @param [Object] customer_id Value to be assigned
def customer_id=(customer_id)
if !customer_id.nil? && customer_id.to_s.length > 26
fail ArgumentError, 'invalid value for "customer_id", the character length must be smaller than or equal to 26.'
end
# anjana
# if !customer_id.nil? && customer_id.to_s.length > 26
# fail ArgumentError, 'invalid value for "customer_id", the character length must be smaller than or equal to 26.'
# end

@customer_id = customer_id
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,26 +56,29 @@ def initialize(attributes = {})
# @return Array for valid properties with the reasons
def list_invalid_properties
invalid_properties = Array.new
if !@reason.nil? && @reason.to_s.length > 3
invalid_properties.push('invalid value for "reason", the character length must be smaller than or equal to 3.')
end
#anjana
# if !@reason.nil? && @reason.to_s.length > 3
# invalid_properties.push('invalid value for "reason", the character length must be smaller than or equal to 3.')
# end

invalid_properties
end

# Check to see if the all the properties in the model are valid
# @return true if the model is valid
def valid?
return false if !@reason.nil? && @reason.to_s.length > 3
# anjana
# return false if !@reason.nil? && @reason.to_s.length > 3
true
end

# Custom attribute writer method with validation
# @param [Object] reason Value to be assigned
def reason=(reason)
if !reason.nil? && reason.to_s.length > 3
fail ArgumentError, 'invalid value for "reason", the character length must be smaller than or equal to 3.'
end
# anjana
# if !reason.nil? && reason.to_s.length > 3
# fail ArgumentError, 'invalid value for "reason", the character length must be smaller than or equal to 3.'
# end

@reason = reason
end
Expand Down