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.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +13 -6
  3. data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +13 -5
  4. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +26 -11
  5. data/lib/AuthenticationSDK/authentication/oauth/OAuthToken.rb +11 -5
  6. data/lib/AuthenticationSDK/authentication/payloadDigest/digest.rb +2 -2
  7. data/lib/AuthenticationSDK/core/Authorization.rb +28 -20
  8. data/lib/AuthenticationSDK/core/MerchantConfig.rb +72 -78
  9. data/lib/AuthenticationSDK/logging/log_configuration.rb +71 -0
  10. data/lib/AuthenticationSDK/logging/log_factory.rb +65 -0
  11. data/lib/AuthenticationSDK/logging/sensitive_logging.rb +101 -0
  12. data/lib/AuthenticationSDK/util/Cache.rb +1 -1
  13. data/lib/AuthenticationSDK/util/Constants.rb +25 -17
  14. data/lib/AuthenticationSDK/util/ExceptionHandler.rb +26 -0
  15. data/lib/AuthenticationSDK/util/PropertiesUtil.rb +2 -2
  16. data/lib/cybersource_rest_client/api/asymmetric_key_management_api.rb +46 -46
  17. data/lib/cybersource_rest_client/api/capture_api.rb +16 -16
  18. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +16 -16
  19. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +16 -16
  20. data/lib/cybersource_rest_client/api/conversion_details_api.rb +16 -16
  21. data/lib/cybersource_rest_client/api/credit_api.rb +16 -16
  22. data/lib/cybersource_rest_client/api/customer_api.rb +61 -61
  23. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +76 -76
  24. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +76 -76
  25. data/lib/cybersource_rest_client/api/decision_manager_api.rb +46 -46
  26. data/lib/cybersource_rest_client/api/download_dtd_api.rb +16 -16
  27. data/lib/cybersource_rest_client/api/download_xsd_api.rb +16 -16
  28. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +91 -91
  29. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +16 -16
  30. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +31 -31
  31. data/lib/cybersource_rest_client/api/invoices_api.rb +97 -97
  32. data/lib/cybersource_rest_client/api/key_generation_api.rb +16 -16
  33. data/lib/cybersource_rest_client/api/net_fundings_api.rb +16 -16
  34. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +16 -16
  35. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +46 -46
  36. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +16 -16
  37. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +61 -61
  38. data/lib/cybersource_rest_client/api/payments_api.rb +33 -33
  39. data/lib/cybersource_rest_client/api/payouts_api.rb +16 -16
  40. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +16 -16
  41. data/lib/cybersource_rest_client/api/refund_api.rb +31 -31
  42. data/lib/cybersource_rest_client/api/report_definitions_api.rb +31 -31
  43. data/lib/cybersource_rest_client/api/report_downloads_api.rb +16 -16
  44. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +76 -76
  45. data/lib/cybersource_rest_client/api/reports_api.rb +46 -46
  46. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +16 -16
  47. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +16 -16
  48. data/lib/cybersource_rest_client/api/reversal_api.rb +31 -31
  49. data/lib/cybersource_rest_client/api/search_transactions_api.rb +31 -31
  50. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +31 -31
  51. data/lib/cybersource_rest_client/api/symmetric_key_management_api.rb +46 -46
  52. data/lib/cybersource_rest_client/api/taxes_api.rb +31 -31
  53. data/lib/cybersource_rest_client/api/tokenization_api.rb +16 -16
  54. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +46 -46
  55. data/lib/cybersource_rest_client/api/transaction_details_api.rb +16 -16
  56. data/lib/cybersource_rest_client/api/user_management_api.rb +16 -16
  57. data/lib/cybersource_rest_client/api/user_management_search_api.rb +16 -16
  58. data/lib/cybersource_rest_client/api/verification_api.rb +31 -31
  59. data/lib/cybersource_rest_client/api/void_api.rb +76 -76
  60. data/lib/cybersource_rest_client/api_client.rb +7 -8
  61. data/lib/cybersource_rest_client/models/create_adhoc_report_request.rb +2 -5
  62. data/lib/cybersource_rest_client/models/create_payment_request.rb +19 -1
  63. data/lib/cybersource_rest_client/models/create_search_request.rb +1 -1
  64. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +20 -4
  65. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +10 -1
  66. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_buyer_information.rb +243 -0
  67. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information.rb +10 -1
  68. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_issuer_information.rb +206 -0
  69. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_consumer_authentication_information_strong_authentication.rb +183 -0
  70. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +52 -4
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +17 -1
  72. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +33 -1
  73. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +15 -5
  74. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -1
  75. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +17 -1
  76. data/lib/cybersource_rest_client/models/ptsv2payments_device_information.rb +17 -1
  77. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +24 -4
  78. data/lib/cybersource_rest_client/models/ptsv2payments_invoice_details.rb +191 -0
  79. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +65 -1
  80. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +1 -1
  81. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +17 -1
  82. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +20 -4
  83. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +33 -1
  84. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +13 -4
  85. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +14 -4
  86. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_e_wallet.rb +190 -0
  87. data/lib/cybersource_rest_client/models/ptsv2payments_processor_information.rb +191 -0
  88. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +17 -1
  89. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +14 -5
  90. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_bank.rb +215 -0
  91. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +36 -4
  92. data/lib/cybersource_rest_client/models/ptsv2payouts_recipient_information.rb +17 -1
  93. data/lib/cybersource_rest_client/models/ptsv2payouts_sender_information.rb +17 -1
  94. data/lib/cybersource_rest_client/models/reportingv3reports_report_filters.rb +218 -0
  95. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +17 -1
  96. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +17 -1
  97. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +17 -1
  98. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +10 -11
  99. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +10 -1
  100. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information_partner.rb +190 -0
  101. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_installment_information.rb +14 -4
  102. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +13 -4
  103. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +32 -5
  104. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_customer.rb +206 -0
  105. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_instrument_identifier.rb +190 -0
  106. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +36 -4
  107. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_token_information.rb +210 -0
  108. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
  109. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +13 -4
  110. data/lib/cybersource_rest_client/utilities/flex/token_verification.rb +4 -4
  111. data/lib/cybersource_rest_client.rb +17 -3
  112. metadata +18 -4
  113. data/lib/AuthenticationSDK/core/Logger.rb +0 -26
  114. data/lib/AuthenticationSDK/util/ApiException.rb +0 -19
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Retrieve a Transaction
24
24
  # Include the Request ID in the GET request to retrieve the transaction details.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(TssV2TransactionsGet200Response, Fixnum, Hash)>] TssV2TransactionsGet200Response data, response status code and response headers
38
38
  def get_transaction_with_http_info(id, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: TransactionDetailsApi.get_transaction ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: TransactionDetailsApi.get_transaction ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'id' is set
49
49
  if @api_client.config.client_side_validation && id.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'TssV2TransactionsGet200Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: TransactionDetailsApi#get_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: TransactionDetailsApi#get_transaction\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
86
  return data, status_code, headers
87
87
  end
88
88
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Get User Information - Deprecated
24
24
  # This endpoint is deprecated. Please use the search end point.
@@ -42,14 +42,14 @@ module CyberSource
42
42
  # @option opts [String] :role_id role of the user you are trying to search on.
43
43
  # @return [Array<(UmsV1UsersGet200Response, Fixnum, Hash)>] UmsV1UsersGet200Response data, response status code and response headers
44
44
  def get_users_with_http_info(opts = {})
45
-
46
- if @api_client.config.debugging
47
- begin
48
- raise
49
- @api_client.config.logger.debug 'Calling API: UserManagementApi.get_users ...'
50
- rescue
51
- puts 'Cannot write to log'
52
- end
45
+
46
+ if @api_client.config.debugging
47
+ begin
48
+ raise
49
+ @api_client.config.logger.debug 'Calling API: UserManagementApi.get_users ...'
50
+ rescue
51
+ puts 'Cannot write to log'
52
+ end
53
53
  end
54
54
  # resource path
55
55
  local_var_path = 'ums/v1/users'
@@ -82,13 +82,13 @@ module CyberSource
82
82
  :auth_names => auth_names,
83
83
  :return_type => 'UmsV1UsersGet200Response')
84
84
  if @api_client.config.debugging
85
- begin
86
- raise
87
- @api_client.config.logger.debug "API called: UserManagementApi#get_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
- rescue
89
- puts 'Cannot write to log'
90
- end
91
- end
85
+ begin
86
+ raise
87
+ @api_client.config.logger.debug "API called: UserManagementApi#get_users\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
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Search User Information
24
24
  # This endpoint is to get all the user information depending on the filter criteria passed in request body.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(UmsV1UsersGet200Response, Fixnum, Hash)>] UmsV1UsersGet200Response data, response status code and response headers
38
38
  def search_users_with_http_info(search_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: UserManagementSearchApi.search_users ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: UserManagementSearchApi.search_users ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'search_request' is set
49
49
  if @api_client.config.client_side_validation && search_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'UmsV1UsersGet200Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: UserManagementSearchApi#search_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: UserManagementSearchApi#search_users\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
86
  return data, status_code, headers
87
87
  end
88
88
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Validate export compliance
24
24
  # This call checks customer data against specified watch lists to ensure export compliance.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(RiskV1ExportComplianceInquiriesPost201Response, Fixnum, Hash)>] RiskV1ExportComplianceInquiriesPost201Response data, response status code and response headers
38
38
  def validate_export_compliance_with_http_info(validate_export_compliance_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: VerificationApi.validate_export_compliance ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: VerificationApi.validate_export_compliance ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'validate_export_compliance_request' is set
49
49
  if @api_client.config.client_side_validation && validate_export_compliance_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'RiskV1ExportComplianceInquiriesPost201Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: VerificationApi#validate_export_compliance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: VerificationApi#validate_export_compliance\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
  # Verify customer address
@@ -101,14 +101,14 @@ module CyberSource
101
101
  # @param [Hash] opts the optional parameters
102
102
  # @return [Array<(RiskV1AddressVerificationsPost201Response, Fixnum, Hash)>] RiskV1AddressVerificationsPost201Response data, response status code and response headers
103
103
  def verify_customer_address_with_http_info(verify_customer_address_request, opts = {})
104
-
105
- if @api_client.config.debugging
106
- begin
107
- raise
108
- @api_client.config.logger.debug 'Calling API: VerificationApi.verify_customer_address ...'
109
- rescue
110
- puts 'Cannot write to log'
111
- end
104
+
105
+ if @api_client.config.debugging
106
+ begin
107
+ raise
108
+ @api_client.config.logger.debug 'Calling API: VerificationApi.verify_customer_address ...'
109
+ rescue
110
+ puts 'Cannot write to log'
111
+ end
112
112
  end
113
113
  # verify the required parameter 'verify_customer_address_request' is set
114
114
  if @api_client.config.client_side_validation && verify_customer_address_request.nil?
@@ -141,13 +141,13 @@ module CyberSource
141
141
  :auth_names => auth_names,
142
142
  :return_type => 'RiskV1AddressVerificationsPost201Response')
143
143
  if @api_client.config.debugging
144
- begin
145
- raise
146
- @api_client.config.logger.debug "API called: VerificationApi#verify_customer_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
- rescue
148
- puts 'Cannot write to log'
149
- end
150
- end
144
+ begin
145
+ raise
146
+ @api_client.config.logger.debug "API called: VerificationApi#verify_customer_address\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
147
+ rescue
148
+ puts 'Cannot write to log'
149
+ end
150
+ end
151
151
  return data, status_code, headers
152
152
  end
153
153
  end
@@ -18,7 +18,7 @@ module CyberSource
18
18
 
19
19
  def initialize(api_client = ApiClient.default, config)
20
20
  @api_client = api_client
21
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Timeout Void
24
24
  # This is to void a previous payment, capture, refund, or credit that merchant does not receive a reply(Mostly due to timeout). This is to void a previous payment, capture, refund, or credit that merchant does not receive a reply(Mostly due to Timeout). To use this feature/API, make sure to pass unique value to field - clientReferenceInformation -> transactionId in your payment, capture, refund, or credit API call and use same transactionId in this API request payload to reverse the payment.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(PtsV2PaymentsVoidsPost201Response, Fixnum, Hash)>] PtsV2PaymentsVoidsPost201Response data, response status code and response headers
38
38
  def mit_void_with_http_info(mit_void_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: VoidApi.mit_void ...'
44
- rescue
45
- puts 'Cannot write to log'
46
- end
39
+
40
+ if @api_client.config.debugging
41
+ begin
42
+ raise
43
+ @api_client.config.logger.debug 'Calling API: VoidApi.mit_void ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'mit_void_request' is set
49
49
  if @api_client.config.client_side_validation && mit_void_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'PtsV2PaymentsVoidsPost201Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: VoidApi#mit_void\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
- rescue
83
- puts 'Cannot write to log'
84
- end
85
- end
79
+ begin
80
+ raise
81
+ @api_client.config.logger.debug "API called: VoidApi#mit_void\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ rescue
83
+ puts 'Cannot write to log'
84
+ end
85
+ end
86
86
  return data, status_code, headers
87
87
  end
88
88
  # Void a Capture
@@ -103,14 +103,14 @@ module CyberSource
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [Array<(PtsV2PaymentsVoidsPost201Response, Fixnum, Hash)>] PtsV2PaymentsVoidsPost201Response data, response status code and response headers
105
105
  def void_capture_with_http_info(void_capture_request, id, opts = {})
106
-
107
- if @api_client.config.debugging
108
- begin
109
- raise
110
- @api_client.config.logger.debug 'Calling API: VoidApi.void_capture ...'
111
- rescue
112
- puts 'Cannot write to log'
113
- end
106
+
107
+ if @api_client.config.debugging
108
+ begin
109
+ raise
110
+ @api_client.config.logger.debug 'Calling API: VoidApi.void_capture ...'
111
+ rescue
112
+ puts 'Cannot write to log'
113
+ end
114
114
  end
115
115
  # verify the required parameter 'void_capture_request' is set
116
116
  if @api_client.config.client_side_validation && void_capture_request.nil?
@@ -147,13 +147,13 @@ module CyberSource
147
147
  :auth_names => auth_names,
148
148
  :return_type => 'PtsV2PaymentsVoidsPost201Response')
149
149
  if @api_client.config.debugging
150
- begin
151
- raise
152
- @api_client.config.logger.debug "API called: VoidApi#void_capture\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
153
- rescue
154
- puts 'Cannot write to log'
155
- end
156
- end
150
+ begin
151
+ raise
152
+ @api_client.config.logger.debug "API called: VoidApi#void_capture\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
  # Void a Credit
@@ -174,14 +174,14 @@ module CyberSource
174
174
  # @param [Hash] opts the optional parameters
175
175
  # @return [Array<(PtsV2PaymentsVoidsPost201Response, Fixnum, Hash)>] PtsV2PaymentsVoidsPost201Response data, response status code and response headers
176
176
  def void_credit_with_http_info(void_credit_request, id, opts = {})
177
-
178
- if @api_client.config.debugging
179
- begin
180
- raise
181
- @api_client.config.logger.debug 'Calling API: VoidApi.void_credit ...'
182
- rescue
183
- puts 'Cannot write to log'
184
- end
177
+
178
+ if @api_client.config.debugging
179
+ begin
180
+ raise
181
+ @api_client.config.logger.debug 'Calling API: VoidApi.void_credit ...'
182
+ rescue
183
+ puts 'Cannot write to log'
184
+ end
185
185
  end
186
186
  # verify the required parameter 'void_credit_request' is set
187
187
  if @api_client.config.client_side_validation && void_credit_request.nil?
@@ -218,13 +218,13 @@ module CyberSource
218
218
  :auth_names => auth_names,
219
219
  :return_type => 'PtsV2PaymentsVoidsPost201Response')
220
220
  if @api_client.config.debugging
221
- begin
222
- raise
223
- @api_client.config.logger.debug "API called: VoidApi#void_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
- rescue
225
- puts 'Cannot write to log'
226
- end
227
- end
221
+ begin
222
+ raise
223
+ @api_client.config.logger.debug "API called: VoidApi#void_credit\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ rescue
225
+ puts 'Cannot write to log'
226
+ end
227
+ end
228
228
  return data, status_code, headers
229
229
  end
230
230
  # Void a Payment
@@ -245,14 +245,14 @@ module CyberSource
245
245
  # @param [Hash] opts the optional parameters
246
246
  # @return [Array<(PtsV2PaymentsVoidsPost201Response, Fixnum, Hash)>] PtsV2PaymentsVoidsPost201Response data, response status code and response headers
247
247
  def void_payment_with_http_info(void_payment_request, id, opts = {})
248
-
249
- if @api_client.config.debugging
250
- begin
251
- raise
252
- @api_client.config.logger.debug 'Calling API: VoidApi.void_payment ...'
253
- rescue
254
- puts 'Cannot write to log'
255
- end
248
+
249
+ if @api_client.config.debugging
250
+ begin
251
+ raise
252
+ @api_client.config.logger.debug 'Calling API: VoidApi.void_payment ...'
253
+ rescue
254
+ puts 'Cannot write to log'
255
+ end
256
256
  end
257
257
  # verify the required parameter 'void_payment_request' is set
258
258
  if @api_client.config.client_side_validation && void_payment_request.nil?
@@ -289,13 +289,13 @@ module CyberSource
289
289
  :auth_names => auth_names,
290
290
  :return_type => 'PtsV2PaymentsVoidsPost201Response')
291
291
  if @api_client.config.debugging
292
- begin
293
- raise
294
- @api_client.config.logger.debug "API called: VoidApi#void_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
295
- rescue
296
- puts 'Cannot write to log'
297
- end
298
- end
292
+ begin
293
+ raise
294
+ @api_client.config.logger.debug "API called: VoidApi#void_payment\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
295
+ rescue
296
+ puts 'Cannot write to log'
297
+ end
298
+ end
299
299
  return data, status_code, headers
300
300
  end
301
301
  # Void a Refund
@@ -316,14 +316,14 @@ module CyberSource
316
316
  # @param [Hash] opts the optional parameters
317
317
  # @return [Array<(PtsV2PaymentsVoidsPost201Response, Fixnum, Hash)>] PtsV2PaymentsVoidsPost201Response data, response status code and response headers
318
318
  def void_refund_with_http_info(void_refund_request, id, opts = {})
319
-
320
- if @api_client.config.debugging
321
- begin
322
- raise
323
- @api_client.config.logger.debug 'Calling API: VoidApi.void_refund ...'
324
- rescue
325
- puts 'Cannot write to log'
326
- end
319
+
320
+ if @api_client.config.debugging
321
+ begin
322
+ raise
323
+ @api_client.config.logger.debug 'Calling API: VoidApi.void_refund ...'
324
+ rescue
325
+ puts 'Cannot write to log'
326
+ end
327
327
  end
328
328
  # verify the required parameter 'void_refund_request' is set
329
329
  if @api_client.config.client_side_validation && void_refund_request.nil?
@@ -360,13 +360,13 @@ module CyberSource
360
360
  :auth_names => auth_names,
361
361
  :return_type => 'PtsV2PaymentsVoidsPost201Response')
362
362
  if @api_client.config.debugging
363
- begin
364
- raise
365
- @api_client.config.logger.debug "API called: VoidApi#void_refund\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
366
- rescue
367
- puts 'Cannot write to log'
368
- end
369
- end
363
+ begin
364
+ raise
365
+ @api_client.config.logger.debug "API called: VoidApi#void_refund\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
366
+ rescue
367
+ puts 'Cannot write to log'
368
+ end
369
+ end
370
370
  return data, status_code, headers
371
371
  end
372
372
  end
@@ -28,7 +28,7 @@ module CyberSource
28
28
  attr_accessor :default_headers
29
29
 
30
30
  # Defines the client ID for the SDK
31
- attr_accessor :client_id
31
+ attr_accessor :client_id
32
32
 
33
33
  # Defines the user-defined Accept Header Type
34
34
  attr_accessor :accept_header
@@ -72,7 +72,7 @@ module CyberSource
72
72
  raise
73
73
  @config.logger.debug "HTTP response body ~BEGIN~\n#{response.body}\n~END~\n"
74
74
  rescue
75
- puts 'Cannot write to log'
75
+ puts 'Cannot write to log'
76
76
  end
77
77
  end
78
78
 
@@ -167,7 +167,7 @@ module CyberSource
167
167
  download_file(request) if opts[:return_type] == 'File'
168
168
  request
169
169
  end
170
- # set merchantConfig
170
+ # set merchantConfig
171
171
  def set_configuration(config)
172
172
  require_relative '../AuthenticationSDK/core/MerchantConfig.rb'
173
173
  $merchantconfig_obj = Merchantconfig.new(config)
@@ -180,7 +180,7 @@ module CyberSource
180
180
  request_target = get_query_param(path, query_params)
181
181
  # Request Type. [Non-Editable]
182
182
  request_type = http_method.to_s
183
- log_obj = Log.new $merchantconfig_obj.logDirectory, $merchantconfig_obj.logFilename, $merchantconfig_obj.logSize, $merchantconfig_obj.enableLog
183
+ log_obj = Log.new $merchantconfig_obj.log_config, "ApiClient"
184
184
  # Set Request Type into the merchant config object.
185
185
  $merchantconfig_obj.requestType = request_type
186
186
  # Set Request Target into the merchant config object.
@@ -193,14 +193,13 @@ module CyberSource
193
193
  $merchantconfig_obj.requestUrl = url
194
194
  # Calling APISDK, Apisdk.controller.
195
195
  gmtDateTime = DateTime.now.httpdate
196
- token = Authorization.new.getToken($merchantconfig_obj, gmtDateTime, log_obj)
196
+ token = Authorization.new.getToken($merchantconfig_obj, gmtDateTime)
197
197
 
198
198
  # Adding client ID header
199
199
  header_params['v-c-client-id'] = @client_id
200
200
 
201
201
  # Adding solution ID header
202
202
  # header_params['v-c-solution-id'] = $merchantconfig_obj.solutionId if !$merchantconfig_obj.solutionId.nil? && !$merchantconfig_obj.solutionId.empty?
203
-
204
203
  # HTTP header 'Accept' (if needed)
205
204
  if $merchantconfig_obj.authenticationType.upcase == Constants::AUTH_TYPE_HTTP
206
205
  # Appending headers for Get Connection
@@ -209,7 +208,7 @@ module CyberSource
209
208
  header_params['Host'] = $merchantconfig_obj.requestHost
210
209
  header_params['Signature'] = token
211
210
  if request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE || request_type == Constants::PATCH_REQUEST_TYPE
212
- digest = DigestGeneration.new.generateDigest(body_params, log_obj)
211
+ digest = DigestGeneration.new.generateDigest(body_params)
213
212
  digest_payload = Constants::SHA256 + digest
214
213
  header_params['Digest'] = digest_payload
215
214
  end
@@ -236,7 +235,7 @@ module CyberSource
236
235
  end
237
236
  request_target
238
237
  end
239
-
238
+
240
239
  # Check if the given MIME is a JSON MIME.
241
240
  # JSON MIME examples:
242
241
  # application/json
@@ -37,7 +37,6 @@ module CyberSource
37
37
  # End time of the report
38
38
  attr_accessor :report_end_time
39
39
 
40
- # List of filters to apply
41
40
  attr_accessor :report_filters
42
41
 
43
42
  attr_accessor :report_preferences
@@ -73,7 +72,7 @@ module CyberSource
73
72
  :'timezone' => :'String',
74
73
  :'report_start_time' => :'DateTime',
75
74
  :'report_end_time' => :'DateTime',
76
- :'report_filters' => :'Hash<String, Array<String>>',
75
+ :'report_filters' => :'Reportingv3reportsReportFilters',
77
76
  :'report_preferences' => :'Reportingv3reportsReportPreferences',
78
77
  :'group_name' => :'String'
79
78
  }
@@ -122,9 +121,7 @@ module CyberSource
122
121
  end
123
122
 
124
123
  if attributes.has_key?(:'reportFilters')
125
- if (value = attributes[:'reportFilters']).is_a?(Hash)
126
- self.report_filters = value
127
- end
124
+ self.report_filters = attributes[:'reportFilters']
128
125
  end
129
126
 
130
127
  if attributes.has_key?(:'reportPreferences')
@@ -51,6 +51,10 @@ module CyberSource
51
51
 
52
52
  attr_accessor :token_information
53
53
 
54
+ attr_accessor :invoice_details
55
+
56
+ attr_accessor :processor_information
57
+
54
58
  attr_accessor :risk_information
55
59
 
56
60
  attr_accessor :acquirer_information
@@ -78,6 +82,8 @@ module CyberSource
78
82
  :'health_care_information' => :'healthCareInformation',
79
83
  :'promotion_information' => :'promotionInformation',
80
84
  :'token_information' => :'tokenInformation',
85
+ :'invoice_details' => :'invoiceDetails',
86
+ :'processor_information' => :'processorInformation',
81
87
  :'risk_information' => :'riskInformation',
82
88
  :'acquirer_information' => :'acquirerInformation',
83
89
  :'recurring_payment_information' => :'recurringPaymentInformation'
@@ -105,6 +111,8 @@ module CyberSource
105
111
  :'health_care_information' => :'Ptsv2paymentsHealthCareInformation',
106
112
  :'promotion_information' => :'Ptsv2paymentsPromotionInformation',
107
113
  :'token_information' => :'Ptsv2paymentsTokenInformation',
114
+ :'invoice_details' => :'Ptsv2paymentsInvoiceDetails',
115
+ :'processor_information' => :'Ptsv2paymentsProcessorInformation',
108
116
  :'risk_information' => :'Ptsv2paymentsRiskInformation',
109
117
  :'acquirer_information' => :'Ptsv2paymentsAcquirerInformation',
110
118
  :'recurring_payment_information' => :'Ptsv2paymentsRecurringPaymentInformation'
@@ -193,6 +201,14 @@ module CyberSource
193
201
  self.token_information = attributes[:'tokenInformation']
194
202
  end
195
203
 
204
+ if attributes.has_key?(:'invoiceDetails')
205
+ self.invoice_details = attributes[:'invoiceDetails']
206
+ end
207
+
208
+ if attributes.has_key?(:'processorInformation')
209
+ self.processor_information = attributes[:'processorInformation']
210
+ end
211
+
196
212
  if attributes.has_key?(:'riskInformation')
197
213
  self.risk_information = attributes[:'riskInformation']
198
214
  end
@@ -242,6 +258,8 @@ module CyberSource
242
258
  health_care_information == o.health_care_information &&
243
259
  promotion_information == o.promotion_information &&
244
260
  token_information == o.token_information &&
261
+ invoice_details == o.invoice_details &&
262
+ processor_information == o.processor_information &&
245
263
  risk_information == o.risk_information &&
246
264
  acquirer_information == o.acquirer_information &&
247
265
  recurring_payment_information == o.recurring_payment_information
@@ -256,7 +274,7 @@ module CyberSource
256
274
  # Calculates hash code according to all attributes.
257
275
  # @return [Fixnum] Hash code
258
276
  def hash
259
- [client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, installment_information, travel_information, health_care_information, promotion_information, token_information, risk_information, acquirer_information, recurring_payment_information].hash
277
+ [client_reference_information, processing_information, issuer_information, payment_information, order_information, buyer_information, recipient_information, device_information, merchant_information, aggregator_information, consumer_authentication_information, point_of_sale_information, merchant_defined_information, installment_information, travel_information, health_care_information, promotion_information, token_information, invoice_details, processor_information, risk_information, acquirer_information, recurring_payment_information].hash
260
278
  end
261
279
 
262
280
  # Builds the object from hash
@@ -23,7 +23,7 @@ module CyberSource
23
23
  # Merchant’s time zone in ISO standard, using the TZ database format. For example: `America/Chicago`
24
24
  attr_accessor :timezone
25
25
 
26
- # String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn_search_api/creating_txn_search_request.html) section of the Transaction Search Developer Guide.
26
+ # String that contains the filters and variables for which you want to search. For information about supported field-filters and operators, see the [Query Filters]( https://developer.cybersource.com/api/developer-guides/dita-txn-search-details-rest-api-dev-guide-102718/txn-search-intro/txn-filtering.html) section of the Transaction Search Developer Guide.
27
27
  attr_accessor :query
28
28
 
29
29
  # Controls the starting point within the collection of results, which defaults to 0. The first item in the collection is retrieved by setting a zero offset. For example, if you have a collection of 15 items to be retrieved from a resource and you specify limit=5, you can retrieve the entire set of results in 3 successive requests by varying the offset value like this: `offset=0` `offset=5` `offset=10` **Note:** If an offset larger than the number of results is provided, this will result in no embedded object being returned.