cybersource_rest_client 0.0.37 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +13 -6
  3. data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +13 -5
  4. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +26 -11
  5. data/lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb +11 -5
  6. data/lib/AuthenticationSDK/authentication/payloadDigest/digest.rb +2 -2
  7. data/lib/AuthenticationSDK/core/Authorization.rb +28 -20
  8. data/lib/AuthenticationSDK/core/MerchantConfig.rb +72 -78
  9. data/lib/AuthenticationSDK/logging/log_configuration.rb +71 -0
  10. data/lib/AuthenticationSDK/logging/log_factory.rb +65 -0
  11. data/lib/AuthenticationSDK/logging/sensitive_logging.rb +101 -0
  12. data/lib/AuthenticationSDK/util/Cache.rb +1 -1
  13. data/lib/AuthenticationSDK/util/Constants.rb +25 -17
  14. data/lib/AuthenticationSDK/util/ExceptionHandler.rb +26 -0
  15. data/lib/AuthenticationSDK/util/PropertiesUtil.rb +2 -2
  16. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +46 -46
  17. data/lib/cybersource_rest_client/api/capture_api.rb +16 -16
  18. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +16 -16
  19. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +16 -16
  20. data/lib/cybersource_rest_client/api/conversion_details_api.rb +16 -16
  21. data/lib/cybersource_rest_client/api/credit_api.rb +16 -16
  22. data/lib/cybersource_rest_client/api/customer_api.rb +61 -61
  23. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +76 -76
  24. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +76 -76
  25. data/lib/cybersource_rest_client/api/decision_manager_api.rb +46 -46
  26. data/lib/cybersource_rest_client/api/download_dtd_api.rb +16 -16
  27. data/lib/cybersource_rest_client/api/download_xsd_api.rb +16 -16
  28. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +91 -91
  29. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +16 -16
  30. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +31 -31
  31. data/lib/cybersource_rest_client/api/invoices_api.rb +91 -91
  32. data/lib/cybersource_rest_client/api/key_generation_api.rb +16 -16
  33. data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
  34. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +16 -16
  35. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +46 -46
  36. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +16 -16
  37. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +61 -61
  38. data/lib/cybersource_rest_client/api/payments_api.rb +31 -31
  39. data/lib/cybersource_rest_client/api/payouts_api.rb +16 -16
  40. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +16 -16
  41. data/lib/cybersource_rest_client/api/refund_api.rb +31 -31
  42. data/lib/cybersource_rest_client/api/report_definitions_api.rb +31 -31
  43. data/lib/cybersource_rest_client/api/report_downloads_api.rb +16 -16
  44. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +76 -76
  45. data/lib/cybersource_rest_client/api/reports_api.rb +46 -46
  46. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +16 -16
  47. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +16 -16
  48. data/lib/cybersource_rest_client/api/reversal_api.rb +31 -31
  49. data/lib/cybersource_rest_client/api/search_transactions_api.rb +31 -31
  50. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +31 -31
  51. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +46 -46
  52. data/lib/cybersource_rest_client/api/taxes_api.rb +31 -31
  53. data/lib/cybersource_rest_client/api/tokenization_api.rb +16 -16
  54. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +46 -46
  55. data/lib/cybersource_rest_client/api/transaction_details_api.rb +16 -16
  56. data/lib/cybersource_rest_client/api/user_management_api.rb +16 -16
  57. data/lib/cybersource_rest_client/api/user_management_search_api.rb +16 -16
  58. data/lib/cybersource_rest_client/api/verification_api.rb +31 -31
  59. data/lib/cybersource_rest_client/api/void_api.rb +76 -76
  60. data/lib/cybersource_rest_client/api_client.rb +7 -8
  61. data/lib/cybersource_rest_client/models/create_adhoc_report_request.rb +2 -5
  62. data/lib/cybersource_rest_client/models/create_payment_request.rb +19 -1
  63. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +20 -4
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +36 -4
  65. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +33 -1
  66. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -1
  67. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +17 -1
  68. data/lib/cybersource_rest_client/models/ptsv2payments_invoice_details.rb +191 -0
  69. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +49 -1
  70. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +17 -1
  71. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  72. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +33 -1
  73. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
  74. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +14 -4
  75. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet.rb +190 -0
  76. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +191 -0
  77. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +14 -5
  78. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +215 -0
  79. data/lib/cybersource_rest_client/models/reportingv3reports_report_filters.rb +218 -0
  80. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +17 -1
  81. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +17 -1
  82. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +17 -1
  83. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +14 -4
  84. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +13 -4
  85. data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +4 -4
  86. data/lib/cybersource_rest_client.rb +9 -2
  87. metadata +11 -4
  88. data/lib/AuthenticationSDK/core/Logger.rb +0 -26
  89. data/lib/AuthenticationSDK/util/ApiException.rb +0 -19
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Create a Search Request
24
24
  # Create a search request.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(TssV2TransactionsPost201Response, Fixnum, Hash)>] TssV2TransactionsPost201Response data, response status code and response headers
38
38
  def create_search_with_http_info(create_search_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: SearchTransactionsApi.create_search ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: SearchTransactionsApi.create_search ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'create_search_request' is set
49
49
  if @api_client.config.client_side_validation && create_search_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'TssV2TransactionsPost201Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: SearchTransactionsApi#create_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: SearchTransactionsApi#create_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
86
  return data, status_code, headers
87
87
  end
88
88
  # Get Search Results
@@ -101,14 +101,14 @@ module CyberSource
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [Array<(TssV2TransactionsPost201Response, Fixnum, Hash)>] TssV2TransactionsPost201Response data, response status code and response headers
103
103
  def get_search_with_http_info(search_id, opts = {})
104
-
105
- if @api_client.config.debugging
106
- begin
107
- raise
108
- @api_client.config.logger.debug 'Calling API: SearchTransactionsApi.get_search ...'
109
- rescue
110
- puts 'Cannot write to log'
111
- end
104
+
105
+ if @api_client.config.debugging
106
+ begin
107
+ raise
108
+ @api_client.config.logger.debug 'Calling API: SearchTransactionsApi.get_search ...'
109
+ rescue
110
+ puts 'Cannot write to log'
111
+ end
112
112
  end
113
113
  # verify the required parameter 'search_id' is set
114
114
  if @api_client.config.client_side_validation && search_id.nil?
@@ -141,13 +141,13 @@ module CyberSource
141
141
  :auth_names => auth_names,
142
142
  :return_type => 'TssV2TransactionsPost201Response')
143
143
  if @api_client.config.debugging
144
- begin
145
- raise
146
- @api_client.config.logger.debug "API called: SearchTransactionsApi#get_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
- rescue
148
- puts 'Cannot write to log'
149
- end
150
- end
144
+ begin
145
+ raise
146
+ @api_client.config.logger.debug "API called: SearchTransactionsApi#get_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
+ rescue
148
+ puts 'Cannot write to log'
149
+ end
150
+ end
151
151
  return data, status_code, headers
152
152
  end
153
153
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Download a File with File Identifier
24
24
  # Download a file for the given file identifier
@@ -38,14 +38,14 @@ module CyberSource
38
38
  # @option opts [String] :organization_id Valid Cybersource Organization Id
39
39
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
40
  def get_file_with_http_info(file_id, opts = {})
41
-
42
- if @api_client.config.debugging
43
- begin
44
- raise
45
- @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file ...'
46
- rescue
47
- puts 'Cannot write to log'
48
- end
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
49
49
  end
50
50
  # verify the required parameter 'file_id' is set
51
51
  if @api_client.config.client_side_validation && file_id.nil?
@@ -90,13 +90,13 @@ module CyberSource
90
90
  :body => post_body,
91
91
  :auth_names => auth_names)
92
92
  if @api_client.config.debugging
93
- begin
94
- raise
95
- @api_client.config.logger.debug "API called: SecureFileShareApi#get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
- rescue
97
- puts 'Cannot write to log'
98
- end
99
- end
93
+ begin
94
+ raise
95
+ @api_client.config.logger.debug "API called: SecureFileShareApi#get_file\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
96
+ rescue
97
+ puts 'Cannot write to log'
98
+ end
99
+ end
100
100
  return data, status_code, headers
101
101
  end
102
102
  # Get List of Files
@@ -121,14 +121,14 @@ module CyberSource
121
121
  # @option opts [String] :name **Tailored to searches for specific files with in given Date range** example : MyTransactionDetailreport.xml
122
122
  # @return [Array<(V1FileDetailsGet200Response, Fixnum, Hash)>] V1FileDetailsGet200Response data, response status code and response headers
123
123
  def get_file_detail_with_http_info(start_date, end_date, opts = {})
124
-
125
- if @api_client.config.debugging
126
- begin
127
- raise
128
- @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file_detail ...'
129
- rescue
130
- puts 'Cannot write to log'
131
- end
124
+
125
+ if @api_client.config.debugging
126
+ begin
127
+ raise
128
+ @api_client.config.logger.debug 'Calling API: SecureFileShareApi.get_file_detail ...'
129
+ rescue
130
+ puts 'Cannot write to log'
131
+ end
132
132
  end
133
133
  # verify the required parameter 'start_date' is set
134
134
  if @api_client.config.client_side_validation && start_date.nil?
@@ -185,13 +185,13 @@ module CyberSource
185
185
  :auth_names => auth_names,
186
186
  :return_type => 'V1FileDetailsGet200Response')
187
187
  if @api_client.config.debugging
188
- begin
189
- raise
190
- @api_client.config.logger.debug "API called: SecureFileShareApi#get_file_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
191
- rescue
192
- puts 'Cannot write to log'
193
- end
194
- end
188
+ begin
189
+ raise
190
+ @api_client.config.logger.debug "API called: SecureFileShareApi#get_file_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
191
+ rescue
192
+ puts 'Cannot write to log'
193
+ end
194
+ end
195
195
  return data, status_code, headers
196
196
  end
197
197
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Create Shared-Secret Keys
24
24
  # Create one or more Shared-Secret Keys
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(KmsV2KeysSymPost201Response, Fixnum, Hash)>] KmsV2KeysSymPost201Response data, response status code and response headers
38
38
  def create_v2_shared_secret_keys_with_http_info(create_shared_secret_keys_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.create_v2_shared_secret_keys ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.create_v2_shared_secret_keys ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'create_shared_secret_keys_request' is set
49
49
  if @api_client.config.client_side_validation && create_shared_secret_keys_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'KmsV2KeysSymPost201Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#create_v2_shared_secret_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#create_v2_shared_secret_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
86
  return data, status_code, headers
87
87
  end
88
88
  # Delete one or more Symmetric keys
@@ -101,14 +101,14 @@ module CyberSource
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [Array<(KmsV2KeysSymDeletesPost200Response, Fixnum, Hash)>] KmsV2KeysSymDeletesPost200Response data, response status code and response headers
103
103
  def delete_bulk_symmetric_keys_with_http_info(delete_bulk_symmetric_keys_request, opts = {})
104
-
105
- if @api_client.config.debugging
106
- begin
107
- raise
108
- @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.delete_bulk_symmetric_keys ...'
109
- rescue
110
- puts 'Cannot write to log'
111
- end
104
+
105
+ if @api_client.config.debugging
106
+ begin
107
+ raise
108
+ @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.delete_bulk_symmetric_keys ...'
109
+ rescue
110
+ puts 'Cannot write to log'
111
+ end
112
112
  end
113
113
  # verify the required parameter 'delete_bulk_symmetric_keys_request' is set
114
114
  if @api_client.config.client_side_validation && delete_bulk_symmetric_keys_request.nil?
@@ -141,13 +141,13 @@ module CyberSource
141
141
  :auth_names => auth_names,
142
142
  :return_type => 'KmsV2KeysSymDeletesPost200Response')
143
143
  if @api_client.config.debugging
144
- begin
145
- raise
146
- @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#delete_bulk_symmetric_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
- rescue
148
- puts 'Cannot write to log'
149
- end
150
- end
144
+ begin
145
+ raise
146
+ @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#delete_bulk_symmetric_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
+ rescue
148
+ puts 'Cannot write to log'
149
+ end
150
+ end
151
151
  return data, status_code, headers
152
152
  end
153
153
  # Retrieves shared secret key details
@@ -166,14 +166,14 @@ module CyberSource
166
166
  # @param [Hash] opts the optional parameters
167
167
  # @return [Array<(KmsV2KeysSymGet200Response, Fixnum, Hash)>] KmsV2KeysSymGet200Response data, response status code and response headers
168
168
  def get_key_details_with_http_info(key_id, opts = {})
169
-
170
- if @api_client.config.debugging
171
- begin
172
- raise
173
- @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.get_key_details ...'
174
- rescue
175
- puts 'Cannot write to log'
176
- end
169
+
170
+ if @api_client.config.debugging
171
+ begin
172
+ raise
173
+ @api_client.config.logger.debug 'Calling API: SymmetricKeyManagementApi.get_key_details ...'
174
+ rescue
175
+ puts 'Cannot write to log'
176
+ end
177
177
  end
178
178
  # verify the required parameter 'key_id' is set
179
179
  if @api_client.config.client_side_validation && key_id.nil?
@@ -206,13 +206,13 @@ module CyberSource
206
206
  :auth_names => auth_names,
207
207
  :return_type => 'KmsV2KeysSymGet200Response')
208
208
  if @api_client.config.debugging
209
- begin
210
- raise
211
- @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#get_key_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
- rescue
213
- puts 'Cannot write to log'
214
- end
215
- end
209
+ begin
210
+ raise
211
+ @api_client.config.logger.debug "API called: SymmetricKeyManagementApi#get_key_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
212
+ rescue
213
+ puts 'Cannot write to log'
214
+ end
215
+ end
216
216
  return data, status_code, headers
217
217
  end
218
218
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Calculate Taxes
24
24
  # Get tax details for a transaction.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(VasV2PaymentsPost201Response, Fixnum, Hash)>] VasV2PaymentsPost201Response data, response status code and response headers
38
38
  def calculate_tax_with_http_info(tax_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: TaxesApi.calculate_tax ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: TaxesApi.calculate_tax ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'tax_request' is set
49
49
  if @api_client.config.client_side_validation && tax_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'VasV2PaymentsPost201Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: TaxesApi#calculate_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: TaxesApi#calculate_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
86
  return data, status_code, headers
87
87
  end
88
88
  # Void Taxes
@@ -103,14 +103,14 @@ module CyberSource
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [Array<(VasV2TaxVoid200Response, Fixnum, Hash)>] VasV2TaxVoid200Response data, response status code and response headers
105
105
  def void_tax_with_http_info(void_tax_request, id, opts = {})
106
-
107
- if @api_client.config.debugging
108
- begin
109
- raise
110
- @api_client.config.logger.debug 'Calling API: TaxesApi.void_tax ...'
111
- rescue
112
- puts 'Cannot write to log'
113
- end
106
+
107
+ if @api_client.config.debugging
108
+ begin
109
+ raise
110
+ @api_client.config.logger.debug 'Calling API: TaxesApi.void_tax ...'
111
+ rescue
112
+ puts 'Cannot write to log'
113
+ end
114
114
  end
115
115
  # verify the required parameter 'void_tax_request' is set
116
116
  if @api_client.config.client_side_validation && void_tax_request.nil?
@@ -147,13 +147,13 @@ module CyberSource
147
147
  :auth_names => auth_names,
148
148
  :return_type => 'VasV2TaxVoid200Response')
149
149
  if @api_client.config.debugging
150
- begin
151
- raise
152
- @api_client.config.logger.debug "API called: TaxesApi#void_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
- rescue
154
- puts 'Cannot write to log'
155
- end
156
- end
150
+ begin
151
+ raise
152
+ @api_client.config.logger.debug "API called: TaxesApi#void_tax\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
+ rescue
154
+ puts 'Cannot write to log'
155
+ end
156
+ end
157
157
  return data, status_code, headers
158
158
  end
159
159
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Tokenize Card
24
24
  # Returns a token representing the supplied card details. The token replaces card data and can be used as the Subscription ID in the CyberSource Simple Order API or SCMP API. This is an unauthenticated call that you should initiate from your customer’s device or browser.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(FlexV1TokensPost200Response, Fixnum, Hash)>] FlexV1TokensPost200Response data, response status code and response headers
38
38
  def tokenize_with_http_info(tokenize_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: TokenizationApi.tokenize ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: TokenizationApi.tokenize ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'tokenize_request' is set
49
49
  if @api_client.config.client_side_validation && tokenize_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'FlexV1TokensPost200Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: TokenizationApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: TokenizationApi#tokenize\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
86
  return data, status_code, headers
87
87
  end
88
88
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Get Transaction Details for a given Batch Id
24
24
  # Provides real-time detailed status information about the transactions that you previously uploaded in the Business Center or processed with the Offline Transaction File Submission service.
@@ -40,14 +40,14 @@ module CyberSource
40
40
  # @option opts [String] :status Allows you to filter by rejected response. Valid values: - Rejected
41
41
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
42
  def get_transaction_batch_details_with_http_info(id, opts = {})
43
-
44
- if @api_client.config.debugging
45
- begin
46
- raise
47
- @api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batch_details ...'
48
- rescue
49
- puts 'Cannot write to log'
50
- end
43
+
44
+ if @api_client.config.debugging
45
+ begin
46
+ raise
47
+ @api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batch_details ...'
48
+ rescue
49
+ puts 'Cannot write to log'
50
+ end
51
51
  end
52
52
  # verify the required parameter 'id' is set
53
53
  if @api_client.config.client_side_validation && id.nil?
@@ -81,13 +81,13 @@ module CyberSource
81
81
  :body => post_body,
82
82
  :auth_names => auth_names)
83
83
  if @api_client.config.debugging
84
- begin
85
- raise
86
- @api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batch_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
- rescue
88
- puts 'Cannot write to log'
89
- end
90
- end
84
+ begin
85
+ raise
86
+ @api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batch_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ rescue
88
+ puts 'Cannot write to log'
89
+ end
90
+ end
91
91
  return data, status_code, headers
92
92
  end
93
93
  # Get Individual Batch File
@@ -106,14 +106,14 @@ module CyberSource
106
106
  # @param [Hash] opts the optional parameters
107
107
  # @return [Array<(PtsV1TransactionBatchesIdGet200Response, Fixnum, Hash)>] PtsV1TransactionBatchesIdGet200Response data, response status code and response headers
108
108
  def get_transaction_batch_id_with_http_info(id, opts = {})
109
-
110
- if @api_client.config.debugging
111
- begin
112
- raise
113
- @api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batch_id ...'
114
- rescue
115
- puts 'Cannot write to log'
116
- end
109
+
110
+ if @api_client.config.debugging
111
+ begin
112
+ raise
113
+ @api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batch_id ...'
114
+ rescue
115
+ puts 'Cannot write to log'
116
+ end
117
117
  end
118
118
  # verify the required parameter 'id' is set
119
119
  if @api_client.config.client_side_validation && id.nil?
@@ -146,13 +146,13 @@ module CyberSource
146
146
  :auth_names => auth_names,
147
147
  :return_type => 'PtsV1TransactionBatchesIdGet200Response')
148
148
  if @api_client.config.debugging
149
- begin
150
- raise
151
- @api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batch_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
- rescue
153
- puts 'Cannot write to log'
154
- end
155
- end
149
+ begin
150
+ raise
151
+ @api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batch_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
152
+ rescue
153
+ puts 'Cannot write to log'
154
+ end
155
+ end
156
156
  return data, status_code, headers
157
157
  end
158
158
  # Get a List of Batch Files
@@ -173,14 +173,14 @@ module CyberSource
173
173
  # @param [Hash] opts the optional parameters
174
174
  # @return [Array<(PtsV1TransactionBatchesGet200Response, Fixnum, Hash)>] PtsV1TransactionBatchesGet200Response data, response status code and response headers
175
175
  def get_transaction_batches_with_http_info(start_time, end_time, opts = {})
176
-
177
- if @api_client.config.debugging
178
- begin
179
- raise
180
- @api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batches ...'
181
- rescue
182
- puts 'Cannot write to log'
183
- end
176
+
177
+ if @api_client.config.debugging
178
+ begin
179
+ raise
180
+ @api_client.config.logger.debug 'Calling API: TransactionBatchesApi.get_transaction_batches ...'
181
+ rescue
182
+ puts 'Cannot write to log'
183
+ end
184
184
  end
185
185
  # verify the required parameter 'start_time' is set
186
186
  if @api_client.config.client_side_validation && start_time.nil?
@@ -219,13 +219,13 @@ module CyberSource
219
219
  :auth_names => auth_names,
220
220
  :return_type => 'PtsV1TransactionBatchesGet200Response')
221
221
  if @api_client.config.debugging
222
- begin
223
- raise
224
- @api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
- rescue
226
- puts 'Cannot write to log'
227
- end
228
- end
222
+ begin
223
+ raise
224
+ @api_client.config.logger.debug "API called: TransactionBatchesApi#get_transaction_batches\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
225
+ rescue
226
+ puts 'Cannot write to log'
227
+ end
228
+ end
229
229
  return data, status_code, headers
230
230
  end
231
231
  end