diff --git a/lib/cyberSource_client/api/capture_api.rb b/lib/cyberSource_client/api/capture_api.rb index 7dfc56b7..29bb2eab 100644 --- a/lib/cyberSource_client/api/capture_api.rb +++ b/lib/cyberSource_client/api/capture_api.rb @@ -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 diff --git a/lib/cyberSource_client/api/credit_api.rb b/lib/cyberSource_client/api/credit_api.rb index 86edbb6e..dee45280 100644 --- a/lib/cyberSource_client/api/credit_api.rb +++ b/lib/cyberSource_client/api/credit_api.rb @@ -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 @@ -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 diff --git a/lib/cyberSource_client/api/default_api.rb b/lib/cyberSource_client/api/default_api.rb index a5a5259a..21a1b319 100644 --- a/lib/cyberSource_client/api/default_api.rb +++ b/lib/cyberSource_client/api/default_api.rb @@ -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 diff --git a/lib/cyberSource_client/api/instrument_identifier_api.rb b/lib/cyberSource_client/api/instrument_identifier_api.rb index 703e6467..ef2a4bca 100644 --- a/lib/cyberSource_client/api/instrument_identifier_api.rb +++ b/lib/cyberSource_client/api/instrument_identifier_api.rb @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/lib/cyberSource_client/api/key_generation_api.rb b/lib/cyberSource_client/api/key_generation_api.rb index 616b6e66..8ad7a42f 100644 --- a/lib/cyberSource_client/api/key_generation_api.rb +++ b/lib/cyberSource_client/api/key_generation_api.rb @@ -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 diff --git a/lib/cyberSource_client/api/payment_api.rb b/lib/cyberSource_client/api/payment_api.rb index 8e16b007..38812eba 100644 --- a/lib/cyberSource_client/api/payment_api.rb +++ b/lib/cyberSource_client/api/payment_api.rb @@ -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 @@ -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 diff --git a/lib/cyberSource_client/api/payment_instrument_api.rb b/lib/cyberSource_client/api/payment_instrument_api.rb index fad02c25..37342646 100644 --- a/lib/cyberSource_client/api/payment_instrument_api.rb +++ b/lib/cyberSource_client/api/payment_instrument_api.rb @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/lib/cyberSource_client/api/refund_api.rb b/lib/cyberSource_client/api/refund_api.rb index 51e8e6fd..2048a5e7 100644 --- a/lib/cyberSource_client/api/refund_api.rb +++ b/lib/cyberSource_client/api/refund_api.rb @@ -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 @@ -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 @@ -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 diff --git a/lib/cyberSource_client/api/reversal_api.rb b/lib/cyberSource_client/api/reversal_api.rb index 748bb120..1130b002 100644 --- a/lib/cyberSource_client/api/reversal_api.rb +++ b/lib/cyberSource_client/api/reversal_api.rb @@ -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 @@ -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 diff --git a/lib/cyberSource_client/api/tokenization_api.rb b/lib/cyberSource_client/api/tokenization_api.rb index 367009f1..4d716c87 100644 --- a/lib/cyberSource_client/api/tokenization_api.rb +++ b/lib/cyberSource_client/api/tokenization_api.rb @@ -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 diff --git a/lib/cyberSource_client/api/void_api.rb b/lib/cyberSource_client/api/void_api.rb index 9f29dcb7..f7048fda 100644 --- a/lib/cyberSource_client/api/void_api.rb +++ b/lib/cyberSource_client/api/void_api.rb @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/lib/cyberSource_client/models/v2payments_payment_information_customer.rb b/lib/cyberSource_client/models/v2payments_payment_information_customer.rb index e4dc1289..c542af67 100644 --- a/lib/cyberSource_client/models/v2payments_payment_information_customer.rb +++ b/lib/cyberSource_client/models/v2payments_payment_information_customer.rb @@ -48,9 +48,10 @@ 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 @@ -58,16 +59,18 @@ def list_invalid_properties # 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 diff --git a/lib/cyberSource_client/models/v2paymentsidreversals_reversal_information.rb b/lib/cyberSource_client/models/v2paymentsidreversals_reversal_information.rb index ca0363ec..dedafa0e 100644 --- a/lib/cyberSource_client/models/v2paymentsidreversals_reversal_information.rb +++ b/lib/cyberSource_client/models/v2paymentsidreversals_reversal_information.rb @@ -56,9 +56,10 @@ 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 @@ -66,16 +67,18 @@ def list_invalid_properties # 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