cybersource_rest_client 0.0.36 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +13 -6
- data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +13 -5
- data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +26 -11
- data/lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb +11 -5
- data/lib/AuthenticationSDK/authentication/payloadDigest/digest.rb +2 -2
- data/lib/AuthenticationSDK/core/Authorization.rb +28 -20
- data/lib/AuthenticationSDK/core/MerchantConfig.rb +72 -78
- data/lib/AuthenticationSDK/logging/log_configuration.rb +71 -0
- data/lib/AuthenticationSDK/logging/log_factory.rb +65 -0
- data/lib/AuthenticationSDK/logging/sensitive_logging.rb +101 -0
- data/lib/AuthenticationSDK/util/Cache.rb +1 -1
- data/lib/AuthenticationSDK/util/Constants.rb +25 -17
- data/lib/AuthenticationSDK/util/ExceptionHandler.rb +26 -0
- data/lib/AuthenticationSDK/util/PropertiesUtil.rb +2 -2
- data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +46 -46
- data/lib/cybersource_rest_client/api/capture_api.rb +16 -16
- data/lib/cybersource_rest_client/api/chargeback_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/conversion_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/credit_api.rb +16 -16
- data/lib/cybersource_rest_client/api/customer_api.rb +61 -61
- data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +76 -76
- data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +76 -76
- data/lib/cybersource_rest_client/api/decision_manager_api.rb +46 -46
- data/lib/cybersource_rest_client/api/download_dtd_api.rb +16 -16
- data/lib/cybersource_rest_client/api/download_xsd_api.rb +16 -16
- data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +91 -91
- data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/invoice_settings_api.rb +31 -31
- data/lib/cybersource_rest_client/api/invoices_api.rb +97 -97
- data/lib/cybersource_rest_client/api/key_generation_api.rb +16 -16
- data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
- data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +16 -16
- data/lib/cybersource_rest_client/api/payer_authentication_api.rb +46 -46
- data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/payment_instrument_api.rb +61 -61
- data/lib/cybersource_rest_client/api/payments_api.rb +33 -33
- data/lib/cybersource_rest_client/api/payouts_api.rb +16 -16
- data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/refund_api.rb +31 -31
- data/lib/cybersource_rest_client/api/report_definitions_api.rb +31 -31
- data/lib/cybersource_rest_client/api/report_downloads_api.rb +16 -16
- data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +76 -76
- data/lib/cybersource_rest_client/api/reports_api.rb +46 -46
- data/lib/cybersource_rest_client/api/retrieval_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +16 -16
- data/lib/cybersource_rest_client/api/reversal_api.rb +31 -31
- data/lib/cybersource_rest_client/api/search_transactions_api.rb +31 -31
- data/lib/cybersource_rest_client/api/secure_file_share_api.rb +31 -31
- data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +46 -46
- data/lib/cybersource_rest_client/api/taxes_api.rb +31 -31
- data/lib/cybersource_rest_client/api/tokenization_api.rb +16 -16
- data/lib/cybersource_rest_client/api/transaction_batches_api.rb +46 -46
- data/lib/cybersource_rest_client/api/transaction_details_api.rb +16 -16
- data/lib/cybersource_rest_client/api/user_management_api.rb +16 -16
- data/lib/cybersource_rest_client/api/user_management_search_api.rb +16 -16
- data/lib/cybersource_rest_client/api/verification_api.rb +31 -31
- data/lib/cybersource_rest_client/api/void_api.rb +76 -76
- data/lib/cybersource_rest_client/api_client.rb +7 -8
- data/lib/cybersource_rest_client/models/create_adhoc_report_request.rb +2 -5
- data/lib/cybersource_rest_client/models/create_payment_request.rb +19 -1
- data/lib/cybersource_rest_client/models/create_search_request.rb +1 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +20 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information.rb +243 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +10 -1
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb +206 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +183 -0
- data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +52 -4
- data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +33 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +15 -5
- data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +24 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_invoice_details.rb +191 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +65 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +1 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +33 -1
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +14 -4
- data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet.rb +190 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +191 -0
- data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +14 -5
- data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +215 -0
- data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +36 -4
- data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +17 -1
- data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +17 -1
- data/lib/cybersource_rest_client/models/reportingv3reports_report_filters.rb +218 -0
- data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +17 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -11
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +10 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information_partner.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +14 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +13 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +32 -5
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +206 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_instrument_identifier.rb +190 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +36 -4
- data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information.rb +210 -0
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
- data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +13 -4
- data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +4 -4
- data/lib/cybersource_rest_client.rb +17 -3
- metadata +18 -4
- data/lib/AuthenticationSDK/core/Logger.rb +0 -26
- 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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Create a New Invoice
|
24
24
|
# Create a new invoice.
|
@@ -36,14 +36,14 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(InvoicingV2InvoicesPost201Response, Fixnum, Hash)>] InvoicingV2InvoicesPost201Response data, response status code and response headers
|
38
38
|
def create_invoice_with_http_info(create_invoice_request, opts = {})
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.create_invoice ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
47
|
end
|
48
48
|
# verify the required parameter 'create_invoice_request' is set
|
49
49
|
if @api_client.config.client_side_validation && create_invoice_request.nil?
|
@@ -58,7 +58,7 @@ module CyberSource
|
|
58
58
|
# header parameters
|
59
59
|
header_params = {}
|
60
60
|
# HTTP header 'Accept' (if needed)
|
61
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
61
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
62
62
|
# HTTP header 'Content-Type'
|
63
63
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
64
64
|
|
@@ -76,13 +76,13 @@ module CyberSource
|
|
76
76
|
:auth_names => auth_names,
|
77
77
|
:return_type => 'InvoicingV2InvoicesPost201Response')
|
78
78
|
if @api_client.config.debugging
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: InvoicesApi#create_invoice\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 a List of Invoices
|
@@ -105,14 +105,14 @@ module CyberSource
|
|
105
105
|
# @option opts [String] :status The status of the invoice. Possible values: - DRAFT - CREATED - SENT - PARTIAL - PAID - CANCELED
|
106
106
|
# @return [Array<(InvoicingV2InvoicesAllGet200Response, Fixnum, Hash)>] InvoicingV2InvoicesAllGet200Response data, response status code and response headers
|
107
107
|
def get_all_invoices_with_http_info(offset, limit, opts = {})
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
108
|
+
|
109
|
+
if @api_client.config.debugging
|
110
|
+
begin
|
111
|
+
raise
|
112
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.get_all_invoices ...'
|
113
|
+
rescue
|
114
|
+
puts 'Cannot write to log'
|
115
|
+
end
|
116
116
|
end
|
117
117
|
# verify the required parameter 'offset' is set
|
118
118
|
if @api_client.config.client_side_validation && offset.nil?
|
@@ -134,7 +134,7 @@ module CyberSource
|
|
134
134
|
# header parameters
|
135
135
|
header_params = {}
|
136
136
|
# HTTP header 'Accept' (if needed)
|
137
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
137
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
138
138
|
# HTTP header 'Content-Type'
|
139
139
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
140
140
|
|
@@ -152,13 +152,13 @@ module CyberSource
|
|
152
152
|
:auth_names => auth_names,
|
153
153
|
:return_type => 'InvoicingV2InvoicesAllGet200Response')
|
154
154
|
if @api_client.config.debugging
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
155
|
+
begin
|
156
|
+
raise
|
157
|
+
@api_client.config.logger.debug "API called: InvoicesApi#get_all_invoices\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
158
|
+
rescue
|
159
|
+
puts 'Cannot write to log'
|
160
|
+
end
|
161
|
+
end
|
162
162
|
return data, status_code, headers
|
163
163
|
end
|
164
164
|
# Get Invoice Details
|
@@ -177,14 +177,14 @@ module CyberSource
|
|
177
177
|
# @param [Hash] opts the optional parameters
|
178
178
|
# @return [Array<(InvoicingV2InvoicesGet200Response, Fixnum, Hash)>] InvoicingV2InvoicesGet200Response data, response status code and response headers
|
179
179
|
def get_invoice_with_http_info(id, opts = {})
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
180
|
+
|
181
|
+
if @api_client.config.debugging
|
182
|
+
begin
|
183
|
+
raise
|
184
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.get_invoice ...'
|
185
|
+
rescue
|
186
|
+
puts 'Cannot write to log'
|
187
|
+
end
|
188
188
|
end
|
189
189
|
# verify the required parameter 'id' is set
|
190
190
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -199,7 +199,7 @@ module CyberSource
|
|
199
199
|
# header parameters
|
200
200
|
header_params = {}
|
201
201
|
# HTTP header 'Accept' (if needed)
|
202
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
202
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
203
203
|
# HTTP header 'Content-Type'
|
204
204
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
205
205
|
|
@@ -217,13 +217,13 @@ module CyberSource
|
|
217
217
|
:auth_names => auth_names,
|
218
218
|
:return_type => 'InvoicingV2InvoicesGet200Response')
|
219
219
|
if @api_client.config.debugging
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
220
|
+
begin
|
221
|
+
raise
|
222
|
+
@api_client.config.logger.debug "API called: InvoicesApi#get_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
223
|
+
rescue
|
224
|
+
puts 'Cannot write to log'
|
225
|
+
end
|
226
|
+
end
|
227
227
|
return data, status_code, headers
|
228
228
|
end
|
229
229
|
# Cancel an Invoice
|
@@ -242,14 +242,14 @@ module CyberSource
|
|
242
242
|
# @param [Hash] opts the optional parameters
|
243
243
|
# @return [Array<(InvoicingV2InvoicesPost201Response, Fixnum, Hash)>] InvoicingV2InvoicesPost201Response data, response status code and response headers
|
244
244
|
def perform_cancel_action_with_http_info(id, opts = {})
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
245
|
+
|
246
|
+
if @api_client.config.debugging
|
247
|
+
begin
|
248
|
+
raise
|
249
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.perform_cancel_action ...'
|
250
|
+
rescue
|
251
|
+
puts 'Cannot write to log'
|
252
|
+
end
|
253
253
|
end
|
254
254
|
# verify the required parameter 'id' is set
|
255
255
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -264,7 +264,7 @@ module CyberSource
|
|
264
264
|
# header parameters
|
265
265
|
header_params = {}
|
266
266
|
# HTTP header 'Accept' (if needed)
|
267
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
267
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
268
268
|
# HTTP header 'Content-Type'
|
269
269
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
270
270
|
|
@@ -282,13 +282,13 @@ module CyberSource
|
|
282
282
|
:auth_names => auth_names,
|
283
283
|
:return_type => 'InvoicingV2InvoicesPost201Response')
|
284
284
|
if @api_client.config.debugging
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
285
|
+
begin
|
286
|
+
raise
|
287
|
+
@api_client.config.logger.debug "API called: InvoicesApi#perform_cancel_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
288
|
+
rescue
|
289
|
+
puts 'Cannot write to log'
|
290
|
+
end
|
291
|
+
end
|
292
292
|
return data, status_code, headers
|
293
293
|
end
|
294
294
|
# Send an Invoice
|
@@ -307,14 +307,14 @@ module CyberSource
|
|
307
307
|
# @param [Hash] opts the optional parameters
|
308
308
|
# @return [Array<(InvoicingV2InvoicesPost201Response, Fixnum, Hash)>] InvoicingV2InvoicesPost201Response data, response status code and response headers
|
309
309
|
def perform_send_action_with_http_info(id, opts = {})
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
310
|
+
|
311
|
+
if @api_client.config.debugging
|
312
|
+
begin
|
313
|
+
raise
|
314
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.perform_send_action ...'
|
315
|
+
rescue
|
316
|
+
puts 'Cannot write to log'
|
317
|
+
end
|
318
318
|
end
|
319
319
|
# verify the required parameter 'id' is set
|
320
320
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -329,7 +329,7 @@ module CyberSource
|
|
329
329
|
# header parameters
|
330
330
|
header_params = {}
|
331
331
|
# HTTP header 'Accept' (if needed)
|
332
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
332
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
333
333
|
# HTTP header 'Content-Type'
|
334
334
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
335
335
|
|
@@ -347,13 +347,13 @@ module CyberSource
|
|
347
347
|
:auth_names => auth_names,
|
348
348
|
:return_type => 'InvoicingV2InvoicesPost201Response')
|
349
349
|
if @api_client.config.debugging
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
350
|
+
begin
|
351
|
+
raise
|
352
|
+
@api_client.config.logger.debug "API called: InvoicesApi#perform_send_action\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
353
|
+
rescue
|
354
|
+
puts 'Cannot write to log'
|
355
|
+
end
|
356
|
+
end
|
357
357
|
return data, status_code, headers
|
358
358
|
end
|
359
359
|
# Update an Invoice
|
@@ -374,14 +374,14 @@ module CyberSource
|
|
374
374
|
# @param [Hash] opts the optional parameters
|
375
375
|
# @return [Array<(InvoicingV2InvoicesPost201Response, Fixnum, Hash)>] InvoicingV2InvoicesPost201Response data, response status code and response headers
|
376
376
|
def update_invoice_with_http_info(id, update_invoice_request, opts = {})
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
377
|
+
|
378
|
+
if @api_client.config.debugging
|
379
|
+
begin
|
380
|
+
raise
|
381
|
+
@api_client.config.logger.debug 'Calling API: InvoicesApi.update_invoice ...'
|
382
|
+
rescue
|
383
|
+
puts 'Cannot write to log'
|
384
|
+
end
|
385
385
|
end
|
386
386
|
# verify the required parameter 'id' is set
|
387
387
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -400,7 +400,7 @@ module CyberSource
|
|
400
400
|
# header parameters
|
401
401
|
header_params = {}
|
402
402
|
# HTTP header 'Accept' (if needed)
|
403
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/
|
403
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
|
404
404
|
# HTTP header 'Content-Type'
|
405
405
|
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
|
406
406
|
|
@@ -418,13 +418,13 @@ module CyberSource
|
|
418
418
|
:auth_names => auth_names,
|
419
419
|
:return_type => 'InvoicingV2InvoicesPost201Response')
|
420
420
|
if @api_client.config.debugging
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
421
|
+
begin
|
422
|
+
raise
|
423
|
+
@api_client.config.logger.debug "API called: InvoicesApi#update_invoice\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
424
|
+
rescue
|
425
|
+
puts 'Cannot write to log'
|
426
|
+
end
|
427
|
+
end
|
428
428
|
return data, status_code, headers
|
429
429
|
end
|
430
430
|
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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Generate Key
|
24
24
|
# Generate a one-time use public key and key ID to encrypt the card number in the follow-on Tokenize Card request. The key used to encrypt the card number on the cardholder’s device or browser is valid for 15 minutes and must be used to verify the signature in the response message. CyberSource recommends creating a new key for each order. Generating a key is an authenticated request initiated from your servers, prior to requesting to tokenize the card data from your customer’s device or browser.
|
@@ -38,14 +38,14 @@ module CyberSource
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(FlexV1KeysPost200Response, Fixnum, Hash)>] FlexV1KeysPost200Response data, response status code and response headers
|
40
40
|
def generate_public_key_with_http_info(format, generate_public_key_request, opts = {})
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: KeyGenerationApi.generate_public_key ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
49
49
|
end
|
50
50
|
# verify the required parameter 'format' is set
|
51
51
|
if @api_client.config.client_side_validation && format.nil?
|
@@ -83,13 +83,13 @@ module CyberSource
|
|
83
83
|
:auth_names => auth_names,
|
84
84
|
:return_type => 'FlexV1KeysPost200Response')
|
85
85
|
if @api_client.config.debugging
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
86
|
+
begin
|
87
|
+
raise
|
88
|
+
@api_client.config.logger.debug "API called: KeyGenerationApi#generate_public_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
89
|
+
rescue
|
90
|
+
puts 'Cannot write to log'
|
91
|
+
end
|
92
|
+
end
|
93
93
|
return data, status_code, headers
|
94
94
|
end
|
95
95
|
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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Get Netfunding Information for an Account or a Merchant
|
24
24
|
# Get Netfunding information for an account or a merchant.
|
@@ -42,14 +42,14 @@ module CyberSource
|
|
42
42
|
# @option opts [String] :group_name Valid CyberSource Group Name.
|
43
43
|
# @return [Array<(ReportingV3NetFundingsGet200Response, Fixnum, Hash)>] ReportingV3NetFundingsGet200Response data, response status code and response headers
|
44
44
|
def get_net_funding_details_with_http_info(start_time, end_time, opts = {})
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
45
|
+
|
46
|
+
if @api_client.config.debugging
|
47
|
+
begin
|
48
|
+
raise
|
49
|
+
@api_client.config.logger.debug 'Calling API: NetFundingsApi.get_net_funding_details ...'
|
50
|
+
rescue
|
51
|
+
puts 'Cannot write to log'
|
52
|
+
end
|
53
53
|
end
|
54
54
|
# verify the required parameter 'start_time' is set
|
55
55
|
if @api_client.config.client_side_validation && start_time.nil?
|
@@ -102,13 +102,13 @@ module CyberSource
|
|
102
102
|
:auth_names => auth_names,
|
103
103
|
:return_type => 'ReportingV3NetFundingsGet200Response')
|
104
104
|
if @api_client.config.debugging
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
105
|
+
begin
|
106
|
+
raise
|
107
|
+
@api_client.config.logger.debug "API called: NetFundingsApi#get_net_funding_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
108
|
+
rescue
|
109
|
+
puts 'Cannot write to log'
|
110
|
+
end
|
111
|
+
end
|
112
112
|
return data, status_code, headers
|
113
113
|
end
|
114
114
|
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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Get Notification of Changes
|
24
24
|
# Download the Notification of Change report. This report shows eCheck-related fields updated as a result of a response to an eCheck settlement transaction.
|
@@ -38,14 +38,14 @@ module CyberSource
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(ReportingV3NotificationofChangesGet200Response, Fixnum, Hash)>] ReportingV3NotificationofChangesGet200Response data, response status code and response headers
|
40
40
|
def get_notification_of_change_report_with_http_info(start_time, end_time, opts = {})
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
41
|
+
|
42
|
+
if @api_client.config.debugging
|
43
|
+
begin
|
44
|
+
raise
|
45
|
+
@api_client.config.logger.debug 'Calling API: NotificationOfChangesApi.get_notification_of_change_report ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
49
49
|
end
|
50
50
|
# verify the required parameter 'start_time' is set
|
51
51
|
if @api_client.config.client_side_validation && start_time.nil?
|
@@ -84,13 +84,13 @@ module CyberSource
|
|
84
84
|
:auth_names => auth_names,
|
85
85
|
:return_type => 'ReportingV3NotificationofChangesGet200Response')
|
86
86
|
if @api_client.config.debugging
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
87
|
+
begin
|
88
|
+
raise
|
89
|
+
@api_client.config.logger.debug "API called: NotificationOfChangesApi#get_notification_of_change_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
rescue
|
91
|
+
puts 'Cannot write to log'
|
92
|
+
end
|
93
|
+
end
|
94
94
|
return data, status_code, headers
|
95
95
|
end
|
96
96
|
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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Check Payer Auth Enrollment
|
24
24
|
# This call verifies that the card is enrolled in a card authentication program.
|
@@ -36,14 +36,14 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(RiskV1AuthenticationsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationsPost201Response data, response status code and response headers
|
38
38
|
def check_payer_auth_enrollment_with_http_info(check_payer_auth_enrollment_request, opts = {})
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
|
40
|
+
if @api_client.config.debugging
|
41
|
+
begin
|
42
|
+
raise
|
43
|
+
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.check_payer_auth_enrollment ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
47
|
end
|
48
48
|
# verify the required parameter 'check_payer_auth_enrollment_request' is set
|
49
49
|
if @api_client.config.client_side_validation && check_payer_auth_enrollment_request.nil?
|
@@ -76,13 +76,13 @@ module CyberSource
|
|
76
76
|
:auth_names => auth_names,
|
77
77
|
:return_type => 'RiskV1AuthenticationsPost201Response')
|
78
78
|
if @api_client.config.debugging
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
79
|
+
begin
|
80
|
+
raise
|
81
|
+
@api_client.config.logger.debug "API called: PayerAuthenticationApi#check_payer_auth_enrollment\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
|
# Setup Payer Auth
|
@@ -101,14 +101,14 @@ module CyberSource
|
|
101
101
|
# @param [Hash] opts the optional parameters
|
102
102
|
# @return [Array<(RiskV1AuthenticationSetupsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationSetupsPost201Response data, response status code and response headers
|
103
103
|
def payer_auth_setup_with_http_info(payer_auth_setup_request, opts = {})
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
104
|
+
|
105
|
+
if @api_client.config.debugging
|
106
|
+
begin
|
107
|
+
raise
|
108
|
+
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.payer_auth_setup ...'
|
109
|
+
rescue
|
110
|
+
puts 'Cannot write to log'
|
111
|
+
end
|
112
112
|
end
|
113
113
|
# verify the required parameter 'payer_auth_setup_request' is set
|
114
114
|
if @api_client.config.client_side_validation && payer_auth_setup_request.nil?
|
@@ -141,13 +141,13 @@ module CyberSource
|
|
141
141
|
:auth_names => auth_names,
|
142
142
|
:return_type => 'RiskV1AuthenticationSetupsPost201Response')
|
143
143
|
if @api_client.config.debugging
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
144
|
+
begin
|
145
|
+
raise
|
146
|
+
@api_client.config.logger.debug "API called: PayerAuthenticationApi#payer_auth_setup\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
|
# Validate Authentication Results
|
@@ -166,14 +166,14 @@ module CyberSource
|
|
166
166
|
# @param [Hash] opts the optional parameters
|
167
167
|
# @return [Array<(RiskV1AuthenticationResultsPost201Response, Fixnum, Hash)>] RiskV1AuthenticationResultsPost201Response data, response status code and response headers
|
168
168
|
def validate_authentication_results_with_http_info(validate_request, opts = {})
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
169
|
+
|
170
|
+
if @api_client.config.debugging
|
171
|
+
begin
|
172
|
+
raise
|
173
|
+
@api_client.config.logger.debug 'Calling API: PayerAuthenticationApi.validate_authentication_results ...'
|
174
|
+
rescue
|
175
|
+
puts 'Cannot write to log'
|
176
|
+
end
|
177
177
|
end
|
178
178
|
# verify the required parameter 'validate_request' is set
|
179
179
|
if @api_client.config.client_side_validation && validate_request.nil?
|
@@ -206,13 +206,13 @@ module CyberSource
|
|
206
206
|
:auth_names => auth_names,
|
207
207
|
:return_type => 'RiskV1AuthenticationResultsPost201Response')
|
208
208
|
if @api_client.config.debugging
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
209
|
+
begin
|
210
|
+
raise
|
211
|
+
@api_client.config.logger.debug "API called: PayerAuthenticationApi#validate_authentication_results\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
|