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
|
# Get Payment Batch Summary Data
|
24
24
|
# Scope can be either account/merchant or reseller.
|
@@ -46,14 +46,14 @@ module CyberSource
|
|
46
46
|
# @option opts [Integer] :start_day_of_week Optional - Start day of week to breakdown data for weeks in a month
|
47
47
|
# @return [Array<(ReportingV3PaymentBatchSummariesGet200Response, Fixnum, Hash)>] ReportingV3PaymentBatchSummariesGet200Response data, response status code and response headers
|
48
48
|
def get_payment_batch_summary_with_http_info(start_time, end_time, opts = {})
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
49
|
+
|
50
|
+
if @api_client.config.debugging
|
51
|
+
begin
|
52
|
+
raise
|
53
|
+
@api_client.config.logger.debug 'Calling API: PaymentBatchSummariesApi.get_payment_batch_summary ...'
|
54
|
+
rescue
|
55
|
+
puts 'Cannot write to log'
|
56
|
+
end
|
57
57
|
end
|
58
58
|
# verify the required parameter 'start_time' is set
|
59
59
|
if @api_client.config.client_side_validation && start_time.nil?
|
@@ -116,13 +116,13 @@ module CyberSource
|
|
116
116
|
:auth_names => auth_names,
|
117
117
|
:return_type => 'ReportingV3PaymentBatchSummariesGet200Response')
|
118
118
|
if @api_client.config.debugging
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
119
|
+
begin
|
120
|
+
raise
|
121
|
+
@api_client.config.logger.debug "API called: PaymentBatchSummariesApi#get_payment_batch_summary\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
122
|
+
rescue
|
123
|
+
puts 'Cannot write to log'
|
124
|
+
end
|
125
|
+
end
|
126
126
|
return data, status_code, headers
|
127
127
|
end
|
128
128
|
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
|
# Delete a Payment Instrument
|
24
24
|
# @param payment_instrument_token_id The TokenId of a payment instrument.
|
@@ -36,14 +36,14 @@ module CyberSource
|
|
36
36
|
# @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
|
37
37
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
38
38
|
def delete_payment_instrument_with_http_info(payment_instrument_token_id, 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: PaymentInstrumentApi.delete_payment_instrument ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
47
|
end
|
48
48
|
# verify the required parameter 'payment_instrument_token_id' is set
|
49
49
|
if @api_client.config.client_side_validation && payment_instrument_token_id.nil?
|
@@ -92,13 +92,13 @@ module CyberSource
|
|
92
92
|
:body => post_body,
|
93
93
|
:auth_names => auth_names)
|
94
94
|
if @api_client.config.debugging
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
95
|
+
begin
|
96
|
+
raise
|
97
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentApi#delete_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
98
|
+
rescue
|
99
|
+
puts 'Cannot write to log'
|
100
|
+
end
|
101
|
+
end
|
102
102
|
return data, status_code, headers
|
103
103
|
end
|
104
104
|
# Retrieve a Payment Instrument
|
@@ -117,14 +117,14 @@ module CyberSource
|
|
117
117
|
# @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
|
118
118
|
# @return [Array<(Tmsv2customersEmbeddedDefaultPaymentInstrument, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultPaymentInstrument data, response status code and response headers
|
119
119
|
def get_payment_instrument_with_http_info(payment_instrument_token_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: PaymentInstrumentApi.get_payment_instrument ...'
|
125
|
+
rescue
|
126
|
+
puts 'Cannot write to log'
|
127
|
+
end
|
128
128
|
end
|
129
129
|
# verify the required parameter 'payment_instrument_token_id' is set
|
130
130
|
if @api_client.config.client_side_validation && payment_instrument_token_id.nil?
|
@@ -174,13 +174,13 @@ module CyberSource
|
|
174
174
|
:auth_names => auth_names,
|
175
175
|
:return_type => 'Tmsv2customersEmbeddedDefaultPaymentInstrument')
|
176
176
|
if @api_client.config.debugging
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
177
|
+
begin
|
178
|
+
raise
|
179
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentApi#get_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
180
|
+
rescue
|
181
|
+
puts 'Cannot write to log'
|
182
|
+
end
|
183
|
+
end
|
184
184
|
return data, status_code, headers
|
185
185
|
end
|
186
186
|
# Update a Payment Instrument
|
@@ -203,14 +203,14 @@ module CyberSource
|
|
203
203
|
# @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
|
204
204
|
# @return [Array<(Tmsv2customersEmbeddedDefaultPaymentInstrument, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultPaymentInstrument data, response status code and response headers
|
205
205
|
def patch_payment_instrument_with_http_info(payment_instrument_token_id, patch_payment_instrument_request, opts = {})
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
206
|
+
|
207
|
+
if @api_client.config.debugging
|
208
|
+
begin
|
209
|
+
raise
|
210
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentApi.patch_payment_instrument ...'
|
211
|
+
rescue
|
212
|
+
puts 'Cannot write to log'
|
213
|
+
end
|
214
214
|
end
|
215
215
|
# verify the required parameter 'payment_instrument_token_id' is set
|
216
216
|
if @api_client.config.client_side_validation && payment_instrument_token_id.nil?
|
@@ -273,13 +273,13 @@ module CyberSource
|
|
273
273
|
:auth_names => auth_names,
|
274
274
|
:return_type => 'Tmsv2customersEmbeddedDefaultPaymentInstrument')
|
275
275
|
if @api_client.config.debugging
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
276
|
+
begin
|
277
|
+
raise
|
278
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentApi#patch_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
279
|
+
rescue
|
280
|
+
puts 'Cannot write to log'
|
281
|
+
end
|
282
|
+
end
|
283
283
|
return data, status_code, headers
|
284
284
|
end
|
285
285
|
# Create a Payment Instrument
|
@@ -300,14 +300,14 @@ module CyberSource
|
|
300
300
|
# @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
|
301
301
|
# @return [Array<(Tmsv2customersEmbeddedDefaultPaymentInstrument, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultPaymentInstrument data, response status code and response headers
|
302
302
|
def post_payment_instrument_with_http_info(post_payment_instrument_request, opts = {})
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
303
|
+
|
304
|
+
if @api_client.config.debugging
|
305
|
+
begin
|
306
|
+
raise
|
307
|
+
@api_client.config.logger.debug 'Calling API: PaymentInstrumentApi.post_payment_instrument ...'
|
308
|
+
rescue
|
309
|
+
puts 'Cannot write to log'
|
310
|
+
end
|
311
311
|
end
|
312
312
|
# verify the required parameter 'post_payment_instrument_request' is set
|
313
313
|
if @api_client.config.client_side_validation && post_payment_instrument_request.nil?
|
@@ -349,13 +349,13 @@ module CyberSource
|
|
349
349
|
:auth_names => auth_names,
|
350
350
|
:return_type => 'Tmsv2customersEmbeddedDefaultPaymentInstrument')
|
351
351
|
if @api_client.config.debugging
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
352
|
+
begin
|
353
|
+
raise
|
354
|
+
@api_client.config.logger.debug "API called: PaymentInstrumentApi#post_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
355
|
+
rescue
|
356
|
+
puts 'Cannot write to log'
|
357
|
+
end
|
358
|
+
end
|
359
359
|
return data, status_code, headers
|
360
360
|
end
|
361
361
|
end
|
@@ -18,10 +18,10 @@ 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 a Payment
|
24
|
-
# A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
|
24
|
+
# A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
|
25
25
|
# @param create_payment_request
|
26
26
|
# @param [Hash] opts the optional parameters
|
27
27
|
# @return [PtsV2PaymentsPost201Response]
|
@@ -31,19 +31,19 @@ module CyberSource
|
|
31
31
|
end
|
32
32
|
|
33
33
|
# Process a Payment
|
34
|
-
# A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
|
34
|
+
# A payment authorizes the amount for the transaction. There are a number of supported payment feature, such as E-commerce and Card Present - Credit Card/Debit Card, Echeck, e-Wallets, Level II/III Data, etc.. A payment response includes the status of the request. It also includes processor-specific information when the request is successful and errors if unsuccessful. See the [Payments Developer Guides Page](https://developer.cybersource.com/api/developer-guides/dita-payments/GettingStarted.html). Authorization can be requested with Capture, Decision Manager, Payer Authentication(3ds), and Token Creation.
|
35
35
|
# @param create_payment_request
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(PtsV2PaymentsPost201Response, Fixnum, Hash)>] PtsV2PaymentsPost201Response data, response status code and response headers
|
38
38
|
def create_payment_with_http_info(create_payment_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: PaymentsApi.create_payment ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
47
|
end
|
48
48
|
# verify the required parameter 'create_payment_request' is set
|
49
49
|
if @api_client.config.client_side_validation && create_payment_request.nil?
|
@@ -76,13 +76,13 @@ module CyberSource
|
|
76
76
|
:auth_names => auth_names,
|
77
77
|
:return_type => 'PtsV2PaymentsPost201Response')
|
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: PaymentsApi#create_payment\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
|
# Increment an Authorization
|
@@ -103,14 +103,14 @@ module CyberSource
|
|
103
103
|
# @param [Hash] opts the optional parameters
|
104
104
|
# @return [Array<(PtsV2IncrementalAuthorizationPatch201Response, Fixnum, Hash)>] PtsV2IncrementalAuthorizationPatch201Response data, response status code and response headers
|
105
105
|
def increment_auth_with_http_info(id, increment_auth_request, opts = {})
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
106
|
+
|
107
|
+
if @api_client.config.debugging
|
108
|
+
begin
|
109
|
+
raise
|
110
|
+
@api_client.config.logger.debug 'Calling API: PaymentsApi.increment_auth ...'
|
111
|
+
rescue
|
112
|
+
puts 'Cannot write to log'
|
113
|
+
end
|
114
114
|
end
|
115
115
|
# verify the required parameter 'id' is set
|
116
116
|
if @api_client.config.client_side_validation && id.nil?
|
@@ -147,13 +147,13 @@ module CyberSource
|
|
147
147
|
:auth_names => auth_names,
|
148
148
|
:return_type => 'PtsV2IncrementalAuthorizationPatch201Response')
|
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: PaymentsApi#increment_auth\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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Process a Payout
|
24
24
|
# Send funds from a selected funding source to a designated credit/debit card account or a prepaid card using an Original Credit Transaction (OCT).
|
@@ -36,14 +36,14 @@ module CyberSource
|
|
36
36
|
# @param [Hash] opts the optional parameters
|
37
37
|
# @return [Array<(PtsV2PayoutsPost201Response, Fixnum, Hash)>] PtsV2PayoutsPost201Response data, response status code and response headers
|
38
38
|
def oct_create_payment_with_http_info(oct_create_payment_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: PayoutsApi.oct_create_payment ...'
|
44
|
+
rescue
|
45
|
+
puts 'Cannot write to log'
|
46
|
+
end
|
47
47
|
end
|
48
48
|
# verify the required parameter 'oct_create_payment_request' is set
|
49
49
|
if @api_client.config.client_side_validation && oct_create_payment_request.nil?
|
@@ -76,13 +76,13 @@ module CyberSource
|
|
76
76
|
:auth_names => auth_names,
|
77
77
|
:return_type => 'PtsV2PayoutsPost201Response')
|
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: PayoutsApi#oct_create_payment\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
|
-
|
21
|
+
@api_client.set_configuration(config)
|
22
22
|
end
|
23
23
|
# Get Purchase and Refund Details
|
24
24
|
# Download the Purchase and Refund Details report. This report report includes all purchases and refund transactions, as well as all activities related to transactions resulting in an adjustment to the net proceeds.
|
@@ -50,14 +50,14 @@ module CyberSource
|
|
50
50
|
# @option opts [Integer] :limit Results count per page. Range(1-2000)
|
51
51
|
# @return [Array<(ReportingV3PurchaseRefundDetailsGet200Response, Fixnum, Hash)>] ReportingV3PurchaseRefundDetailsGet200Response data, response status code and response headers
|
52
52
|
def get_purchase_and_refund_details_with_http_info(start_time, end_time, opts = {})
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
53
|
+
|
54
|
+
if @api_client.config.debugging
|
55
|
+
begin
|
56
|
+
raise
|
57
|
+
@api_client.config.logger.debug 'Calling API: PurchaseAndRefundDetailsApi.get_purchase_and_refund_details ...'
|
58
|
+
rescue
|
59
|
+
puts 'Cannot write to log'
|
60
|
+
end
|
61
61
|
end
|
62
62
|
# verify the required parameter 'start_time' is set
|
63
63
|
if @api_client.config.client_side_validation && start_time.nil?
|
@@ -122,13 +122,13 @@ module CyberSource
|
|
122
122
|
:auth_names => auth_names,
|
123
123
|
:return_type => 'ReportingV3PurchaseRefundDetailsGet200Response')
|
124
124
|
if @api_client.config.debugging
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
125
|
+
begin
|
126
|
+
raise
|
127
|
+
@api_client.config.logger.debug "API called: PurchaseAndRefundDetailsApi#get_purchase_and_refund_details\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
128
|
+
rescue
|
129
|
+
puts 'Cannot write to log'
|
130
|
+
end
|
131
|
+
end
|
132
132
|
return data, status_code, headers
|
133
133
|
end
|
134
134
|
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
|
# Refund a Capture
|
24
24
|
# Refund a capture API is only used, if you have requested Capture independenlty using [/pts/v2/payments/{id}/captures](https://developer.cybersource.com/api-reference-assets/index.html#payments_capture) API call. Include the capture ID in the POST request to refund the captured amount.
|
@@ -38,14 +38,14 @@ module CyberSource
|
|
38
38
|
# @param [Hash] opts the optional parameters
|
39
39
|
# @return [Array<(PtsV2PaymentsRefundPost201Response, Fixnum, Hash)>] PtsV2PaymentsRefundPost201Response data, response status code and response headers
|
40
40
|
def refund_capture_with_http_info(refund_capture_request, id, 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: RefundApi.refund_capture ...'
|
46
|
+
rescue
|
47
|
+
puts 'Cannot write to log'
|
48
|
+
end
|
49
49
|
end
|
50
50
|
# verify the required parameter 'refund_capture_request' is set
|
51
51
|
if @api_client.config.client_side_validation && refund_capture_request.nil?
|
@@ -82,13 +82,13 @@ module CyberSource
|
|
82
82
|
:auth_names => auth_names,
|
83
83
|
:return_type => 'PtsV2PaymentsRefundPost201Response')
|
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: RefundApi#refund_capture\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
|
# Refund a Payment
|
@@ -109,14 +109,14 @@ module CyberSource
|
|
109
109
|
# @param [Hash] opts the optional parameters
|
110
110
|
# @return [Array<(PtsV2PaymentsRefundPost201Response, Fixnum, Hash)>] PtsV2PaymentsRefundPost201Response data, response status code and response headers
|
111
111
|
def refund_payment_with_http_info(refund_payment_request, id, opts = {})
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
112
|
+
|
113
|
+
if @api_client.config.debugging
|
114
|
+
begin
|
115
|
+
raise
|
116
|
+
@api_client.config.logger.debug 'Calling API: RefundApi.refund_payment ...'
|
117
|
+
rescue
|
118
|
+
puts 'Cannot write to log'
|
119
|
+
end
|
120
120
|
end
|
121
121
|
# verify the required parameter 'refund_payment_request' is set
|
122
122
|
if @api_client.config.client_side_validation && refund_payment_request.nil?
|
@@ -153,13 +153,13 @@ module CyberSource
|
|
153
153
|
:auth_names => auth_names,
|
154
154
|
:return_type => 'PtsV2PaymentsRefundPost201Response')
|
155
155
|
if @api_client.config.debugging
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
156
|
+
begin
|
157
|
+
raise
|
158
|
+
@api_client.config.logger.debug "API called: RefundApi#refund_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
|
+
rescue
|
160
|
+
puts 'Cannot write to log'
|
161
|
+
end
|
162
|
+
end
|
163
163
|
return data, status_code, headers
|
164
164
|
end
|
165
165
|
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 Report Definition
|
24
24
|
# View the attributes of an individual report type. For a list of values for reportDefinitionName, see the [Reporting Developer Guide](https://www.cybersource.com/developers/documentation/reporting_and_reconciliation/)
|
@@ -42,14 +42,14 @@ module CyberSource
|
|
42
42
|
# @option opts [String] :organization_id Valid Organization Id
|
43
43
|
# @return [Array<(ReportingV3ReportDefinitionsNameGet200Response, Fixnum, Hash)>] ReportingV3ReportDefinitionsNameGet200Response data, response status code and response headers
|
44
44
|
def get_resource_info_by_report_definition_with_http_info(report_definition_name, 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: ReportDefinitionsApi.get_resource_info_by_report_definition ...'
|
50
|
+
rescue
|
51
|
+
puts 'Cannot write to log'
|
52
|
+
end
|
53
53
|
end
|
54
54
|
# verify the required parameter 'report_definition_name' is set
|
55
55
|
if @api_client.config.client_side_validation && report_definition_name.nil?
|
@@ -97,13 +97,13 @@ module CyberSource
|
|
97
97
|
:auth_names => auth_names,
|
98
98
|
:return_type => 'ReportingV3ReportDefinitionsNameGet200Response')
|
99
99
|
if @api_client.config.debugging
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
100
|
+
begin
|
101
|
+
raise
|
102
|
+
@api_client.config.logger.debug "API called: ReportDefinitionsApi#get_resource_info_by_report_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
103
|
+
rescue
|
104
|
+
puts 'Cannot write to log'
|
105
|
+
end
|
106
|
+
end
|
107
107
|
return data, status_code, headers
|
108
108
|
end
|
109
109
|
# Get Reporting Resource Information
|
@@ -124,14 +124,14 @@ module CyberSource
|
|
124
124
|
# @option opts [String] :organization_id Valid Organization Id
|
125
125
|
# @return [Array<(ReportingV3ReportDefinitionsGet200Response, Fixnum, Hash)>] ReportingV3ReportDefinitionsGet200Response data, response status code and response headers
|
126
126
|
def get_resource_v2_info_with_http_info(opts = {})
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
127
|
+
|
128
|
+
if @api_client.config.debugging
|
129
|
+
begin
|
130
|
+
raise
|
131
|
+
@api_client.config.logger.debug 'Calling API: ReportDefinitionsApi.get_resource_v2_info ...'
|
132
|
+
rescue
|
133
|
+
puts 'Cannot write to log'
|
134
|
+
end
|
135
135
|
end
|
136
136
|
if @api_client.config.client_side_validation && !opts[:'organization_id'].nil? && opts[:'organization_id'].to_s.length > 32
|
137
137
|
fail ArgumentError, 'invalid value for "opts[:"organization_id"]" when calling ReportDefinitionsApi.get_resource_v2_info, the character length must be smaller than or equal to 32.'
|
@@ -174,13 +174,13 @@ module CyberSource
|
|
174
174
|
:auth_names => auth_names,
|
175
175
|
:return_type => 'ReportingV3ReportDefinitionsGet200Response')
|
176
176
|
if @api_client.config.debugging
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
177
|
+
begin
|
178
|
+
raise
|
179
|
+
@api_client.config.logger.debug "API called: ReportDefinitionsApi#get_resource_v2_info\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
180
|
+
rescue
|
181
|
+
puts 'Cannot write to log'
|
182
|
+
end
|
183
|
+
end
|
184
184
|
return data, status_code, headers
|
185
185
|
end
|
186
186
|
end
|