cybersource_rest_client 0.0.36 → 0.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
# Download a Report
|
|
24
24
|
# Download a report using the unique report name and date.
|
|
@@ -40,14 +40,14 @@ module CyberSource
|
|
|
40
40
|
# @option opts [String] :organization_id Valid Organization Id
|
|
41
41
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
42
42
|
def download_report_with_http_info(report_date, report_name, opts = {})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
begin
|
|
46
|
+
raise
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: ReportDownloadsApi.download_report ...'
|
|
48
|
+
rescue
|
|
49
|
+
puts 'Cannot write to log'
|
|
50
|
+
end
|
|
51
51
|
end
|
|
52
52
|
# verify the required parameter 'report_date' is set
|
|
53
53
|
if @api_client.config.client_side_validation && report_date.nil?
|
|
@@ -98,13 +98,13 @@ module CyberSource
|
|
|
98
98
|
:body => post_body,
|
|
99
99
|
:auth_names => auth_names)
|
|
100
100
|
if @api_client.config.debugging
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
begin
|
|
102
|
+
raise
|
|
103
|
+
@api_client.config.logger.debug "API called: ReportDownloadsApi#download_report\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
104
|
+
rescue
|
|
105
|
+
puts 'Cannot write to log'
|
|
106
|
+
end
|
|
107
|
+
end
|
|
108
108
|
return data, status_code, headers
|
|
109
109
|
end
|
|
110
110
|
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
|
# Create a Standard or Classic Subscription
|
|
24
24
|
# Create or update an already existing classic or standard subscription.
|
|
@@ -38,14 +38,14 @@ module CyberSource
|
|
|
38
38
|
# @option opts [String] :organization_id Valid Organization Id
|
|
39
39
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
40
40
|
def create_standard_or_classic_subscription_with_http_info(predefined_subscription_request_bean, 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: ReportSubscriptionsApi.create_standard_or_classic_subscription ...'
|
|
46
|
+
rescue
|
|
47
|
+
puts 'Cannot write to log'
|
|
48
|
+
end
|
|
49
49
|
end
|
|
50
50
|
# verify the required parameter 'predefined_subscription_request_bean' is set
|
|
51
51
|
if @api_client.config.client_side_validation && predefined_subscription_request_bean.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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
begin
|
|
94
|
+
raise
|
|
95
|
+
@api_client.config.logger.debug "API called: ReportSubscriptionsApi#create_standard_or_classic_subscription\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
|
# Create Report Subscription for a Report Name by Organization
|
|
@@ -117,14 +117,14 @@ module CyberSource
|
|
|
117
117
|
# @option opts [String] :organization_id Valid Organization Id
|
|
118
118
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
119
119
|
def create_subscription_with_http_info(create_report_subscription_request, opts = {})
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
|
|
121
|
+
if @api_client.config.debugging
|
|
122
|
+
begin
|
|
123
|
+
raise
|
|
124
|
+
@api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.create_subscription ...'
|
|
125
|
+
rescue
|
|
126
|
+
puts 'Cannot write to log'
|
|
127
|
+
end
|
|
128
128
|
end
|
|
129
129
|
# verify the required parameter 'create_report_subscription_request' is set
|
|
130
130
|
if @api_client.config.client_side_validation && create_report_subscription_request.nil?
|
|
@@ -169,13 +169,13 @@ module CyberSource
|
|
|
169
169
|
:body => post_body,
|
|
170
170
|
:auth_names => auth_names)
|
|
171
171
|
if @api_client.config.debugging
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
172
|
+
begin
|
|
173
|
+
raise
|
|
174
|
+
@api_client.config.logger.debug "API called: ReportSubscriptionsApi#create_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
175
|
+
rescue
|
|
176
|
+
puts 'Cannot write to log'
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
179
|
return data, status_code, headers
|
|
180
180
|
end
|
|
181
181
|
# Delete Subscription of a Report Name by Organization
|
|
@@ -196,14 +196,14 @@ module CyberSource
|
|
|
196
196
|
# @option opts [String] :organization_id Valid Organization Id
|
|
197
197
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
198
198
|
def delete_subscription_with_http_info(report_name, opts = {})
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
199
|
+
|
|
200
|
+
if @api_client.config.debugging
|
|
201
|
+
begin
|
|
202
|
+
raise
|
|
203
|
+
@api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.delete_subscription ...'
|
|
204
|
+
rescue
|
|
205
|
+
puts 'Cannot write to log'
|
|
206
|
+
end
|
|
207
207
|
end
|
|
208
208
|
# verify the required parameter 'report_name' is set
|
|
209
209
|
if @api_client.config.client_side_validation && report_name.nil?
|
|
@@ -260,13 +260,13 @@ module CyberSource
|
|
|
260
260
|
:body => post_body,
|
|
261
261
|
:auth_names => auth_names)
|
|
262
262
|
if @api_client.config.debugging
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
263
|
+
begin
|
|
264
|
+
raise
|
|
265
|
+
@api_client.config.logger.debug "API called: ReportSubscriptionsApi#delete_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
266
|
+
rescue
|
|
267
|
+
puts 'Cannot write to log'
|
|
268
|
+
end
|
|
269
|
+
end
|
|
270
270
|
return data, status_code, headers
|
|
271
271
|
end
|
|
272
272
|
# Get All Subscriptions
|
|
@@ -285,14 +285,14 @@ module CyberSource
|
|
|
285
285
|
# @option opts [String] :organization_id Valid Organization Id
|
|
286
286
|
# @return [Array<(ReportingV3ReportSubscriptionsGet200Response, Fixnum, Hash)>] ReportingV3ReportSubscriptionsGet200Response data, response status code and response headers
|
|
287
287
|
def get_all_subscriptions_with_http_info(opts = {})
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
288
|
+
|
|
289
|
+
if @api_client.config.debugging
|
|
290
|
+
begin
|
|
291
|
+
raise
|
|
292
|
+
@api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.get_all_subscriptions ...'
|
|
293
|
+
rescue
|
|
294
|
+
puts 'Cannot write to log'
|
|
295
|
+
end
|
|
296
296
|
end
|
|
297
297
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
|
298
298
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportSubscriptionsApi.get_all_subscriptions, the character length must be smaller than or equal to 32.'
|
|
@@ -334,13 +334,13 @@ module CyberSource
|
|
|
334
334
|
:auth_names => auth_names,
|
|
335
335
|
:return_type => 'ReportingV3ReportSubscriptionsGet200Response')
|
|
336
336
|
if @api_client.config.debugging
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
337
|
+
begin
|
|
338
|
+
raise
|
|
339
|
+
@api_client.config.logger.debug "API called: ReportSubscriptionsApi#get_all_subscriptions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
340
|
+
rescue
|
|
341
|
+
puts 'Cannot write to log'
|
|
342
|
+
end
|
|
343
|
+
end
|
|
344
344
|
return data, status_code, headers
|
|
345
345
|
end
|
|
346
346
|
# Get Subscription for Report Name
|
|
@@ -361,14 +361,14 @@ module CyberSource
|
|
|
361
361
|
# @option opts [String] :organization_id Valid Organization Id
|
|
362
362
|
# @return [Array<(ReportingV3ReportSubscriptionsGet200ResponseSubscriptions, Fixnum, Hash)>] ReportingV3ReportSubscriptionsGet200ResponseSubscriptions data, response status code and response headers
|
|
363
363
|
def get_subscription_with_http_info(report_name, opts = {})
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
364
|
+
|
|
365
|
+
if @api_client.config.debugging
|
|
366
|
+
begin
|
|
367
|
+
raise
|
|
368
|
+
@api_client.config.logger.debug 'Calling API: ReportSubscriptionsApi.get_subscription ...'
|
|
369
|
+
rescue
|
|
370
|
+
puts 'Cannot write to log'
|
|
371
|
+
end
|
|
372
372
|
end
|
|
373
373
|
# verify the required parameter 'report_name' is set
|
|
374
374
|
if @api_client.config.client_side_validation && report_name.nil?
|
|
@@ -426,13 +426,13 @@ module CyberSource
|
|
|
426
426
|
:auth_names => auth_names,
|
|
427
427
|
:return_type => 'ReportingV3ReportSubscriptionsGet200ResponseSubscriptions')
|
|
428
428
|
if @api_client.config.debugging
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
429
|
+
begin
|
|
430
|
+
raise
|
|
431
|
+
@api_client.config.logger.debug "API called: ReportSubscriptionsApi#get_subscription\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
432
|
+
rescue
|
|
433
|
+
puts 'Cannot write to log'
|
|
434
|
+
end
|
|
435
|
+
end
|
|
436
436
|
return data, status_code, headers
|
|
437
437
|
end
|
|
438
438
|
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
|
# Create Adhoc Report
|
|
24
24
|
# Create a one-time report. You must specify the type of report in reportDefinitionName. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation)
|
|
@@ -38,14 +38,14 @@ module CyberSource
|
|
|
38
38
|
# @option opts [String] :organization_id Valid Organization Id
|
|
39
39
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
40
40
|
def create_report_with_http_info(create_adhoc_report_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: ReportsApi.create_report ...'
|
|
46
|
+
rescue
|
|
47
|
+
puts 'Cannot write to log'
|
|
48
|
+
end
|
|
49
49
|
end
|
|
50
50
|
# verify the required parameter 'create_adhoc_report_request' is set
|
|
51
51
|
if @api_client.config.client_side_validation && create_adhoc_report_request.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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
93
|
+
begin
|
|
94
|
+
raise
|
|
95
|
+
@api_client.config.logger.debug "API called: ReportsApi#create_report\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 Report Based on Report Id
|
|
@@ -117,14 +117,14 @@ module CyberSource
|
|
|
117
117
|
# @option opts [String] :organization_id Valid Organization Id
|
|
118
118
|
# @return [Array<(ReportingV3ReportsIdGet200Response, Fixnum, Hash)>] ReportingV3ReportsIdGet200Response data, response status code and response headers
|
|
119
119
|
def get_report_by_report_id_with_http_info(report_id, opts = {})
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
120
|
+
|
|
121
|
+
if @api_client.config.debugging
|
|
122
|
+
begin
|
|
123
|
+
raise
|
|
124
|
+
@api_client.config.logger.debug 'Calling API: ReportsApi.get_report_by_report_id ...'
|
|
125
|
+
rescue
|
|
126
|
+
puts 'Cannot write to log'
|
|
127
|
+
end
|
|
128
128
|
end
|
|
129
129
|
# verify the required parameter 'report_id' is set
|
|
130
130
|
if @api_client.config.client_side_validation && report_id.nil?
|
|
@@ -170,13 +170,13 @@ module CyberSource
|
|
|
170
170
|
:auth_names => auth_names,
|
|
171
171
|
:return_type => 'ReportingV3ReportsIdGet200Response')
|
|
172
172
|
if @api_client.config.debugging
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
173
|
+
begin
|
|
174
|
+
raise
|
|
175
|
+
@api_client.config.logger.debug "API called: ReportsApi#get_report_by_report_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
176
|
+
rescue
|
|
177
|
+
puts 'Cannot write to log'
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
180
|
return data, status_code, headers
|
|
181
181
|
end
|
|
182
182
|
# Retrieve Available Reports
|
|
@@ -211,14 +211,14 @@ module CyberSource
|
|
|
211
211
|
# @option opts [String] :report_status Valid Report Status Valid values: - COMPLETED - PENDING - QUEUED - RUNNING - ERROR - NO_DATA
|
|
212
212
|
# @return [Array<(ReportingV3ReportsGet200Response, Fixnum, Hash)>] ReportingV3ReportsGet200Response data, response status code and response headers
|
|
213
213
|
def search_reports_with_http_info(start_time, end_time, time_query_type, opts = {})
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
214
|
+
|
|
215
|
+
if @api_client.config.debugging
|
|
216
|
+
begin
|
|
217
|
+
raise
|
|
218
|
+
@api_client.config.logger.debug 'Calling API: ReportsApi.search_reports ...'
|
|
219
|
+
rescue
|
|
220
|
+
puts 'Cannot write to log'
|
|
221
|
+
end
|
|
222
222
|
end
|
|
223
223
|
# verify the required parameter 'start_time' is set
|
|
224
224
|
if @api_client.config.client_side_validation && start_time.nil?
|
|
@@ -280,13 +280,13 @@ module CyberSource
|
|
|
280
280
|
:auth_names => auth_names,
|
|
281
281
|
:return_type => 'ReportingV3ReportsGet200Response')
|
|
282
282
|
if @api_client.config.debugging
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
283
|
+
begin
|
|
284
|
+
raise
|
|
285
|
+
@api_client.config.logger.debug "API called: ReportsApi#search_reports\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
286
|
+
rescue
|
|
287
|
+
puts 'Cannot write to log'
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
290
|
return data, status_code, headers
|
|
291
291
|
end
|
|
292
292
|
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 Retrieval Details
|
|
24
24
|
# Retrieval Detail Report Description
|
|
@@ -40,14 +40,14 @@ module CyberSource
|
|
|
40
40
|
# @option opts [String] :organization_id Valid Organization Id
|
|
41
41
|
# @return [Array<(ReportingV3RetrievalDetailsGet200Response, Fixnum, Hash)>] ReportingV3RetrievalDetailsGet200Response data, response status code and response headers
|
|
42
42
|
def get_retrieval_details_with_http_info(start_time, end_time, opts = {})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
begin
|
|
46
|
+
raise
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: RetrievalDetailsApi.get_retrieval_details ...'
|
|
48
|
+
rescue
|
|
49
|
+
puts 'Cannot write to log'
|
|
50
|
+
end
|
|
51
51
|
end
|
|
52
52
|
# verify the required parameter 'start_time' is set
|
|
53
53
|
if @api_client.config.client_side_validation && start_time.nil?
|
|
@@ -99,13 +99,13 @@ module CyberSource
|
|
|
99
99
|
:auth_names => auth_names,
|
|
100
100
|
:return_type => 'ReportingV3RetrievalDetailsGet200Response')
|
|
101
101
|
if @api_client.config.debugging
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
begin
|
|
103
|
+
raise
|
|
104
|
+
@api_client.config.logger.debug "API called: RetrievalDetailsApi#get_retrieval_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
105
|
+
rescue
|
|
106
|
+
puts 'Cannot write to log'
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
109
|
return data, status_code, headers
|
|
110
110
|
end
|
|
111
111
|
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 Retrieval Summaries
|
|
24
24
|
# Retrieval Summary Report Description
|
|
@@ -40,14 +40,14 @@ module CyberSource
|
|
|
40
40
|
# @option opts [String] :organization_id Valid Organization Id
|
|
41
41
|
# @return [Array<(ReportingV3RetrievalSummariesGet200Response, Fixnum, Hash)>] ReportingV3RetrievalSummariesGet200Response data, response status code and response headers
|
|
42
42
|
def get_retrieval_summary_with_http_info(start_time, end_time, opts = {})
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
|
|
44
|
+
if @api_client.config.debugging
|
|
45
|
+
begin
|
|
46
|
+
raise
|
|
47
|
+
@api_client.config.logger.debug 'Calling API: RetrievalSummariesApi.get_retrieval_summary ...'
|
|
48
|
+
rescue
|
|
49
|
+
puts 'Cannot write to log'
|
|
50
|
+
end
|
|
51
51
|
end
|
|
52
52
|
# verify the required parameter 'start_time' is set
|
|
53
53
|
if @api_client.config.client_side_validation && start_time.nil?
|
|
@@ -99,13 +99,13 @@ module CyberSource
|
|
|
99
99
|
:auth_names => auth_names,
|
|
100
100
|
:return_type => 'ReportingV3RetrievalSummariesGet200Response')
|
|
101
101
|
if @api_client.config.debugging
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
102
|
+
begin
|
|
103
|
+
raise
|
|
104
|
+
@api_client.config.logger.debug "API called: RetrievalSummariesApi#get_retrieval_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
105
|
+
rescue
|
|
106
|
+
puts 'Cannot write to log'
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
109
|
return data, status_code, headers
|
|
110
110
|
end
|
|
111
111
|
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
|
# Process an Authorization Reversal
|
|
24
24
|
# Include the payment ID in the POST request to reverse the payment amount.
|
|
@@ -38,14 +38,14 @@ module CyberSource
|
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
|
39
39
|
# @return [Array<(PtsV2PaymentsReversalsPost201Response, Fixnum, Hash)>] PtsV2PaymentsReversalsPost201Response data, response status code and response headers
|
|
40
40
|
def auth_reversal_with_http_info(id, auth_reversal_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: ReversalApi.auth_reversal ...'
|
|
46
|
+
rescue
|
|
47
|
+
puts 'Cannot write to log'
|
|
48
|
+
end
|
|
49
49
|
end
|
|
50
50
|
# verify the required parameter 'id' is set
|
|
51
51
|
if @api_client.config.client_side_validation && id.nil?
|
|
@@ -82,13 +82,13 @@ module CyberSource
|
|
|
82
82
|
:auth_names => auth_names,
|
|
83
83
|
:return_type => 'PtsV2PaymentsReversalsPost201Response')
|
|
84
84
|
if @api_client.config.debugging
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
85
|
+
begin
|
|
86
|
+
raise
|
|
87
|
+
@api_client.config.logger.debug "API called: ReversalApi#auth_reversal\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
88
|
+
rescue
|
|
89
|
+
puts 'Cannot write to log'
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
92
|
return data, status_code, headers
|
|
93
93
|
end
|
|
94
94
|
# Timeout Reversal
|
|
@@ -107,14 +107,14 @@ module CyberSource
|
|
|
107
107
|
# @param [Hash] opts the optional parameters
|
|
108
108
|
# @return [Array<(PtsV2PaymentsReversalsPost201Response, Fixnum, Hash)>] PtsV2PaymentsReversalsPost201Response data, response status code and response headers
|
|
109
109
|
def mit_reversal_with_http_info(mit_reversal_request, opts = {})
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
|
|
111
|
+
if @api_client.config.debugging
|
|
112
|
+
begin
|
|
113
|
+
raise
|
|
114
|
+
@api_client.config.logger.debug 'Calling API: ReversalApi.mit_reversal ...'
|
|
115
|
+
rescue
|
|
116
|
+
puts 'Cannot write to log'
|
|
117
|
+
end
|
|
118
118
|
end
|
|
119
119
|
# verify the required parameter 'mit_reversal_request' is set
|
|
120
120
|
if @api_client.config.client_side_validation && mit_reversal_request.nil?
|
|
@@ -147,13 +147,13 @@ module CyberSource
|
|
|
147
147
|
:auth_names => auth_names,
|
|
148
148
|
:return_type => 'PtsV2PaymentsReversalsPost201Response')
|
|
149
149
|
if @api_client.config.debugging
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
150
|
+
begin
|
|
151
|
+
raise
|
|
152
|
+
@api_client.config.logger.debug "API called: ReversalApi#mit_reversal\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
|