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
  # Get Chargeback Summaries
24
24
  # Chargeback Summary Report Description
@@ -40,14 +40,14 @@ module CyberSource
40
40
  # @option opts [String] :organization_id Valid Organization Id
41
41
  # @return [Array<(ReportingV3ChargebackSummariesGet200Response, Fixnum, Hash)>] ReportingV3ChargebackSummariesGet200Response data, response status code and response headers
42
42
  def get_chargeback_summaries_with_http_info(start_time, end_time, opts = {})
43
-
44
- if @api_client.config.debugging
45
- begin
46
- raise
47
- @api_client.config.logger.debug 'Calling API: ChargebackSummariesApi.get_chargeback_summaries ...'
48
- rescue
49
- puts 'Cannot write to log'
50
- end
43
+
44
+ if @api_client.config.debugging
45
+ begin
46
+ raise
47
+ @api_client.config.logger.debug 'Calling API: ChargebackSummariesApi.get_chargeback_summaries ...'
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 => 'ReportingV3ChargebackSummariesGet200Response')
101
101
  if @api_client.config.debugging
102
- begin
103
- raise
104
- @api_client.config.logger.debug "API called: ChargebackSummariesApi#get_chargeback_summaries\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
- rescue
106
- puts 'Cannot write to log'
107
- end
108
- end
102
+ begin
103
+ raise
104
+ @api_client.config.logger.debug "API called: ChargebackSummariesApi#get_chargeback_summaries\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
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Get Conversion Detail Transactions
24
24
  # Get conversion detail of transactions for a merchant.
@@ -40,14 +40,14 @@ module CyberSource
40
40
  # @option opts [String] :organization_id Valid Organization Id
41
41
  # @return [Array<(ReportingV3ConversionDetailsGet200Response, Fixnum, Hash)>] ReportingV3ConversionDetailsGet200Response data, response status code and response headers
42
42
  def get_conversion_detail_with_http_info(start_time, end_time, opts = {})
43
-
44
- if @api_client.config.debugging
45
- begin
46
- raise
47
- @api_client.config.logger.debug 'Calling API: ConversionDetailsApi.get_conversion_detail ...'
48
- rescue
49
- puts 'Cannot write to log'
50
- end
43
+
44
+ if @api_client.config.debugging
45
+ begin
46
+ raise
47
+ @api_client.config.logger.debug 'Calling API: ConversionDetailsApi.get_conversion_detail ...'
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 => 'ReportingV3ConversionDetailsGet200Response')
101
101
  if @api_client.config.debugging
102
- begin
103
- raise
104
- @api_client.config.logger.debug "API called: ConversionDetailsApi#get_conversion_detail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
- rescue
106
- puts 'Cannot write to log'
107
- end
108
- end
102
+ begin
103
+ raise
104
+ @api_client.config.logger.debug "API called: ConversionDetailsApi#get_conversion_detail\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
- @api_client.set_configuration(config)
21
+ @api_client.set_configuration(config)
22
22
  end
23
23
  # Process a Credit
24
24
  # POST to the credit resource to credit funds to a specified credit card.
@@ -36,14 +36,14 @@ module CyberSource
36
36
  # @param [Hash] opts the optional parameters
37
37
  # @return [Array<(PtsV2CreditsPost201Response, Fixnum, Hash)>] PtsV2CreditsPost201Response data, response status code and response headers
38
38
  def create_credit_with_http_info(create_credit_request, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: CreditApi.create_credit ...'
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: CreditApi.create_credit ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'create_credit_request' is set
49
49
  if @api_client.config.client_side_validation && create_credit_request.nil?
@@ -76,13 +76,13 @@ module CyberSource
76
76
  :auth_names => auth_names,
77
77
  :return_type => 'PtsV2CreditsPost201Response')
78
78
  if @api_client.config.debugging
79
- begin
80
- raise
81
- @api_client.config.logger.debug "API called: CreditApi#create_credit\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: CreditApi#create_credit\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
  # Delete a Customer
24
24
  # @param customer_token_id The TokenId of a customer.
@@ -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_customer_with_http_info(customer_token_id, opts = {})
39
-
40
- if @api_client.config.debugging
41
- begin
42
- raise
43
- @api_client.config.logger.debug 'Calling API: CustomerApi.delete_customer ...'
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: CustomerApi.delete_customer ...'
44
+ rescue
45
+ puts 'Cannot write to log'
46
+ end
47
47
  end
48
48
  # verify the required parameter 'customer_token_id' is set
49
49
  if @api_client.config.client_side_validation && customer_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
- begin
96
- raise
97
- @api_client.config.logger.debug "API called: CustomerApi#delete_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
- rescue
99
- puts 'Cannot write to log'
100
- end
101
- end
95
+ begin
96
+ raise
97
+ @api_client.config.logger.debug "API called: CustomerApi#delete_customer\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 Customer
@@ -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<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
119
119
  def get_customer_with_http_info(customer_token_id, opts = {})
120
-
121
- if @api_client.config.debugging
122
- begin
123
- raise
124
- @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer ...'
125
- rescue
126
- puts 'Cannot write to log'
127
- end
120
+
121
+ if @api_client.config.debugging
122
+ begin
123
+ raise
124
+ @api_client.config.logger.debug 'Calling API: CustomerApi.get_customer ...'
125
+ rescue
126
+ puts 'Cannot write to log'
127
+ end
128
128
  end
129
129
  # verify the required parameter 'customer_token_id' is set
130
130
  if @api_client.config.client_side_validation && customer_token_id.nil?
@@ -174,13 +174,13 @@ module CyberSource
174
174
  :auth_names => auth_names,
175
175
  :return_type => 'TmsV2CustomersResponse')
176
176
  if @api_client.config.debugging
177
- begin
178
- raise
179
- @api_client.config.logger.debug "API called: CustomerApi#get_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
180
- rescue
181
- puts 'Cannot write to log'
182
- end
183
- end
177
+ begin
178
+ raise
179
+ @api_client.config.logger.debug "API called: CustomerApi#get_customer\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 Customer
@@ -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<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
205
205
  def patch_customer_with_http_info(customer_token_id, patch_customer_request, opts = {})
206
-
207
- if @api_client.config.debugging
208
- begin
209
- raise
210
- @api_client.config.logger.debug 'Calling API: CustomerApi.patch_customer ...'
211
- rescue
212
- puts 'Cannot write to log'
213
- end
206
+
207
+ if @api_client.config.debugging
208
+ begin
209
+ raise
210
+ @api_client.config.logger.debug 'Calling API: CustomerApi.patch_customer ...'
211
+ rescue
212
+ puts 'Cannot write to log'
213
+ end
214
214
  end
215
215
  # verify the required parameter 'customer_token_id' is set
216
216
  if @api_client.config.client_side_validation && customer_token_id.nil?
@@ -273,13 +273,13 @@ module CyberSource
273
273
  :auth_names => auth_names,
274
274
  :return_type => 'TmsV2CustomersResponse')
275
275
  if @api_client.config.debugging
276
- begin
277
- raise
278
- @api_client.config.logger.debug "API called: CustomerApi#patch_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
279
- rescue
280
- puts 'Cannot write to log'
281
- end
282
- end
276
+ begin
277
+ raise
278
+ @api_client.config.logger.debug "API called: CustomerApi#patch_customer\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 Customer
@@ -298,14 +298,14 @@ module CyberSource
298
298
  # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
299
299
  # @return [Array<(TmsV2CustomersResponse, Fixnum, Hash)>] TmsV2CustomersResponse data, response status code and response headers
300
300
  def post_customer_with_http_info(post_customer_request, opts = {})
301
-
302
- if @api_client.config.debugging
303
- begin
304
- raise
305
- @api_client.config.logger.debug 'Calling API: CustomerApi.post_customer ...'
306
- rescue
307
- puts 'Cannot write to log'
308
- end
301
+
302
+ if @api_client.config.debugging
303
+ begin
304
+ raise
305
+ @api_client.config.logger.debug 'Calling API: CustomerApi.post_customer ...'
306
+ rescue
307
+ puts 'Cannot write to log'
308
+ end
309
309
  end
310
310
  # verify the required parameter 'post_customer_request' is set
311
311
  if @api_client.config.client_side_validation && post_customer_request.nil?
@@ -347,13 +347,13 @@ module CyberSource
347
347
  :auth_names => auth_names,
348
348
  :return_type => 'TmsV2CustomersResponse')
349
349
  if @api_client.config.debugging
350
- begin
351
- raise
352
- @api_client.config.logger.debug "API called: CustomerApi#post_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
353
- rescue
354
- puts 'Cannot write to log'
355
- end
356
- end
350
+ begin
351
+ raise
352
+ @api_client.config.logger.debug "API called: CustomerApi#post_customer\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
353
+ rescue
354
+ puts 'Cannot write to log'
355
+ end
356
+ end
357
357
  return data, status_code, headers
358
358
  end
359
359
  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
  # Delete a Customer Payment Instrument
24
24
  # @param customer_token_id The TokenId of a customer.
@@ -38,14 +38,14 @@ module CyberSource
38
38
  # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
39
39
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
40
40
  def delete_customer_payment_instrument_with_http_info(customer_token_id, payment_instrument_token_id, opts = {})
41
-
42
- if @api_client.config.debugging
43
- begin
44
- raise
45
- @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.delete_customer_payment_instrument ...'
46
- rescue
47
- puts 'Cannot write to log'
48
- end
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.delete_customer_payment_instrument ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
49
49
  end
50
50
  # verify the required parameter 'customer_token_id' is set
51
51
  if @api_client.config.client_side_validation && customer_token_id.nil?
@@ -106,13 +106,13 @@ module CyberSource
106
106
  :body => post_body,
107
107
  :auth_names => auth_names)
108
108
  if @api_client.config.debugging
109
- begin
110
- raise
111
- @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#delete_customer_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
112
- rescue
113
- puts 'Cannot write to log'
114
- end
115
- end
109
+ begin
110
+ raise
111
+ @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#delete_customer_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
112
+ rescue
113
+ puts 'Cannot write to log'
114
+ end
115
+ end
116
116
  return data, status_code, headers
117
117
  end
118
118
  # Retrieve a Customer Payment Instrument
@@ -133,14 +133,14 @@ module CyberSource
133
133
  # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
134
134
  # @return [Array<(Tmsv2customersEmbeddedDefaultPaymentInstrument, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultPaymentInstrument data, response status code and response headers
135
135
  def get_customer_payment_instrument_with_http_info(customer_token_id, payment_instrument_token_id, opts = {})
136
-
137
- if @api_client.config.debugging
138
- begin
139
- raise
140
- @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.get_customer_payment_instrument ...'
141
- rescue
142
- puts 'Cannot write to log'
143
- end
136
+
137
+ if @api_client.config.debugging
138
+ begin
139
+ raise
140
+ @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.get_customer_payment_instrument ...'
141
+ rescue
142
+ puts 'Cannot write to log'
143
+ end
144
144
  end
145
145
  # verify the required parameter 'customer_token_id' is set
146
146
  if @api_client.config.client_side_validation && customer_token_id.nil?
@@ -202,13 +202,13 @@ module CyberSource
202
202
  :auth_names => auth_names,
203
203
  :return_type => 'Tmsv2customersEmbeddedDefaultPaymentInstrument')
204
204
  if @api_client.config.debugging
205
- begin
206
- raise
207
- @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#get_customer_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
- rescue
209
- puts 'Cannot write to log'
210
- end
211
- end
205
+ begin
206
+ raise
207
+ @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#get_customer_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
208
+ rescue
209
+ puts 'Cannot write to log'
210
+ end
211
+ end
212
212
  return data, status_code, headers
213
213
  end
214
214
  # List Payment Instruments for a Customer
@@ -231,14 +231,14 @@ module CyberSource
231
231
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100.
232
232
  # @return [Array<(PaymentInstrumentList, Fixnum, Hash)>] PaymentInstrumentList data, response status code and response headers
233
233
  def get_customer_payment_instruments_list_with_http_info(customer_token_id, opts = {})
234
-
235
- if @api_client.config.debugging
236
- begin
237
- raise
238
- @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.get_customer_payment_instruments_list ...'
239
- rescue
240
- puts 'Cannot write to log'
241
- end
234
+
235
+ if @api_client.config.debugging
236
+ begin
237
+ raise
238
+ @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.get_customer_payment_instruments_list ...'
239
+ rescue
240
+ puts 'Cannot write to log'
241
+ end
242
242
  end
243
243
  # verify the required parameter 'customer_token_id' is set
244
244
  if @api_client.config.client_side_validation && customer_token_id.nil?
@@ -302,13 +302,13 @@ module CyberSource
302
302
  :auth_names => auth_names,
303
303
  :return_type => 'PaymentInstrumentList')
304
304
  if @api_client.config.debugging
305
- begin
306
- raise
307
- @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#get_customer_payment_instruments_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
308
- rescue
309
- puts 'Cannot write to log'
310
- end
311
- end
305
+ begin
306
+ raise
307
+ @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#get_customer_payment_instruments_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
308
+ rescue
309
+ puts 'Cannot write to log'
310
+ end
311
+ end
312
312
  return data, status_code, headers
313
313
  end
314
314
  # Update a Customer Payment Instrument
@@ -333,14 +333,14 @@ module CyberSource
333
333
  # @option opts [String] :if_match Contains an ETag value from a GET request to make the request conditional.
334
334
  # @return [Array<(Tmsv2customersEmbeddedDefaultPaymentInstrument, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultPaymentInstrument data, response status code and response headers
335
335
  def patch_customers_payment_instrument_with_http_info(customer_token_id, payment_instrument_token_id, patch_customer_payment_instrument_request, opts = {})
336
-
337
- if @api_client.config.debugging
338
- begin
339
- raise
340
- @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.patch_customers_payment_instrument ...'
341
- rescue
342
- puts 'Cannot write to log'
343
- end
336
+
337
+ if @api_client.config.debugging
338
+ begin
339
+ raise
340
+ @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.patch_customers_payment_instrument ...'
341
+ rescue
342
+ puts 'Cannot write to log'
343
+ end
344
344
  end
345
345
  # verify the required parameter 'customer_token_id' is set
346
346
  if @api_client.config.client_side_validation && customer_token_id.nil?
@@ -415,13 +415,13 @@ module CyberSource
415
415
  :auth_names => auth_names,
416
416
  :return_type => 'Tmsv2customersEmbeddedDefaultPaymentInstrument')
417
417
  if @api_client.config.debugging
418
- begin
419
- raise
420
- @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#patch_customers_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
- rescue
422
- puts 'Cannot write to log'
423
- end
424
- end
418
+ begin
419
+ raise
420
+ @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#patch_customers_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
421
+ rescue
422
+ puts 'Cannot write to log'
423
+ end
424
+ end
425
425
  return data, status_code, headers
426
426
  end
427
427
  # Create a Customer Payment Instrument
@@ -444,14 +444,14 @@ module CyberSource
444
444
  # @option opts [String] :profile_id The id of a profile containing user specific TMS configuration.
445
445
  # @return [Array<(Tmsv2customersEmbeddedDefaultPaymentInstrument, Fixnum, Hash)>] Tmsv2customersEmbeddedDefaultPaymentInstrument data, response status code and response headers
446
446
  def post_customer_payment_instrument_with_http_info(customer_token_id, post_customer_payment_instrument_request, opts = {})
447
-
448
- if @api_client.config.debugging
449
- begin
450
- raise
451
- @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.post_customer_payment_instrument ...'
452
- rescue
453
- puts 'Cannot write to log'
454
- end
447
+
448
+ if @api_client.config.debugging
449
+ begin
450
+ raise
451
+ @api_client.config.logger.debug 'Calling API: CustomerPaymentInstrumentApi.post_customer_payment_instrument ...'
452
+ rescue
453
+ puts 'Cannot write to log'
454
+ end
455
455
  end
456
456
  # verify the required parameter 'customer_token_id' is set
457
457
  if @api_client.config.client_side_validation && customer_token_id.nil?
@@ -505,13 +505,13 @@ module CyberSource
505
505
  :auth_names => auth_names,
506
506
  :return_type => 'Tmsv2customersEmbeddedDefaultPaymentInstrument')
507
507
  if @api_client.config.debugging
508
- begin
509
- raise
510
- @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#post_customer_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
511
- rescue
512
- puts 'Cannot write to log'
513
- end
514
- end
508
+ begin
509
+ raise
510
+ @api_client.config.logger.debug "API called: CustomerPaymentInstrumentApi#post_customer_payment_instrument\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
511
+ rescue
512
+ puts 'Cannot write to log'
513
+ end
514
+ end
515
515
  return data, status_code, headers
516
516
  end
517
517
  end