cybersource_rest_client 0.0.53 → 0.0.55

Sign up to get free protection for your applications and to get access to all the features.
Files changed (148) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/http/GetSignatureParameter.rb +2 -2
  3. data/lib/AuthenticationSDK/authentication/http/HttpSignatureHeader.rb +6 -6
  4. data/lib/AuthenticationSDK/core/MerchantConfig.rb +6 -0
  5. data/lib/AuthenticationSDK/util/Cache.rb +15 -1
  6. data/lib/AuthenticationSDK/util/Constants.rb +1 -1
  7. data/lib/AuthenticationSDK/util/JWEUtility.rb +14 -0
  8. data/lib/cybersource_rest_client/api/batches_api.rb +12 -12
  9. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +231 -0
  10. data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
  11. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/invoices_api.rb +6 -6
  13. data/lib/cybersource_rest_client/api/keymanagement_api.rb +3 -3
  14. data/lib/cybersource_rest_client/api/payments_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/plans_api.rb +32 -32
  16. data/lib/cybersource_rest_client/api/subscriptions_api.rb +32 -32
  17. data/lib/cybersource_rest_client/api/void_api.rb +2 -2
  18. data/lib/cybersource_rest_client/models/access_token_response.rb +244 -244
  19. data/lib/cybersource_rest_client/models/activate_deactivate_plan_response.rb +239 -0
  20. data/lib/cybersource_rest_client/models/{inline_response_200_9.rb → activate_subscription_response.rb} +2 -2
  21. data/lib/cybersource_rest_client/models/{inline_response_200_9_subscription_information.rb → activate_subscription_response_subscription_information.rb} +1 -1
  22. data/lib/cybersource_rest_client/models/bad_request_error.rb +192 -192
  23. data/lib/cybersource_rest_client/models/{inline_response_202_1.rb → cancel_subscription_response.rb} +2 -2
  24. data/lib/cybersource_rest_client/models/{inline_response_202_subscription_information.rb → cancel_subscription_response_subscription_information.rb} +1 -1
  25. data/lib/cybersource_rest_client/models/case_management_actions_request.rb +200 -0
  26. data/lib/cybersource_rest_client/models/case_management_comments_request.rb +206 -0
  27. data/lib/cybersource_rest_client/models/create_access_token_request.rb +254 -254
  28. data/lib/cybersource_rest_client/models/{inline_response_200_14.rb → create_billing_agreement.rb} +65 -88
  29. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +15 -5
  30. data/lib/cybersource_rest_client/models/create_plan_response.rb +239 -0
  31. data/lib/cybersource_rest_client/models/{inline_response_201_plan_information.rb → create_plan_response_plan_information.rb} +1 -1
  32. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  33. data/lib/cybersource_rest_client/models/{inline_response_201_1.rb → create_subscription_response.rb} +3 -3
  34. data/lib/cybersource_rest_client/models/{inline_response_201_1__links.rb → create_subscription_response__links.rb} +1 -1
  35. data/lib/cybersource_rest_client/models/{inline_response_201_1_subscription_information.rb → create_subscription_response_subscription_information.rb} +1 -1
  36. data/lib/cybersource_rest_client/models/delete_plan_response.rb +202 -0
  37. data/lib/cybersource_rest_client/models/{inline_response_202_2.rb → get_all_plans_response.rb} +31 -18
  38. data/lib/cybersource_rest_client/models/{inline_response_200__links.rb → get_all_plans_response__links.rb} +1 -1
  39. data/lib/cybersource_rest_client/models/{inline_response_200_order_information.rb → get_all_plans_response_order_information.rb} +2 -2
  40. data/lib/cybersource_rest_client/models/{inline_response_200_order_information_amount_details.rb → get_all_plans_response_order_information_amount_details.rb} +1 -1
  41. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information.rb → get_all_plans_response_plan_information.rb} +3 -3
  42. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_cycles.rb → get_all_plans_response_plan_information_billing_cycles.rb} +1 -1
  43. data/lib/cybersource_rest_client/models/{inline_response_200_plan_information_billing_period.rb → get_all_plans_response_plan_information_billing_period.rb} +1 -1
  44. data/lib/cybersource_rest_client/models/{inline_response_200_plans.rb → get_all_plans_response_plans.rb} +3 -3
  45. data/lib/cybersource_rest_client/models/{inline_response_200_6.rb → get_all_subscriptions_response.rb} +3 -3
  46. data/lib/cybersource_rest_client/models/{inline_response_200_6__links.rb → get_all_subscriptions_response__links.rb} +1 -1
  47. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +200 -0
  48. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information_bill_to.rb → get_all_subscriptions_response_order_information_bill_to.rb} +1 -1
  49. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information.rb → get_all_subscriptions_response_payment_information.rb} +2 -2
  50. data/lib/cybersource_rest_client/models/{inline_response_200_6_payment_information_customer.rb → get_all_subscriptions_response_payment_information_customer.rb} +1 -1
  51. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information.rb → get_all_subscriptions_response_plan_information.rb} +3 -3
  52. data/lib/cybersource_rest_client/models/{inline_response_200_6_plan_information_billing_cycles.rb → get_all_subscriptions_response_plan_information_billing_cycles.rb} +1 -1
  53. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscription_information.rb → get_all_subscriptions_response_subscription_information.rb} +1 -1
  54. data/lib/cybersource_rest_client/models/{inline_response_200_6_subscriptions.rb → get_all_subscriptions_response_subscriptions.rb} +6 -6
  55. data/lib/cybersource_rest_client/models/{inline_response_200_5.rb → get_plan_code_response.rb} +1 -1
  56. data/lib/cybersource_rest_client/models/get_plan_response.rb +238 -0
  57. data/lib/cybersource_rest_client/models/{inline_response_200_10.rb → get_subscription_code_response.rb} +1 -1
  58. data/lib/cybersource_rest_client/models/{inline_response_200_7.rb → get_subscription_response.rb} +6 -6
  59. data/lib/cybersource_rest_client/models/inline_response_200.rb +30 -25
  60. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +50 -40
  61. data/lib/cybersource_rest_client/models/{inline_response_200_11_keys.rb → inline_response_200_1_keys.rb} +1 -1
  62. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +67 -17
  63. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded.rb → inline_response_200_2__embedded.rb} +2 -2
  64. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links.rb → inline_response_200_2__embedded__links.rb} +2 -2
  65. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links_reports.rb → inline_response_200_2__embedded__links_reports.rb} +1 -1
  66. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_batches.rb → inline_response_200_2__embedded_batches.rb} +3 -3
  67. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_totals.rb → inline_response_200_2__embedded_totals.rb} +1 -1
  68. data/lib/cybersource_rest_client/models/{inline_response_200_12__links.rb → inline_response_200_2__links.rb} +1 -1
  69. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +81 -29
  70. data/lib/cybersource_rest_client/models/{inline_response_200_13__links.rb → inline_response_200_3__links.rb} +3 -3
  71. data/lib/cybersource_rest_client/models/{inline_response_202_2__links_status.rb → inline_response_200_3__links_report.rb} +1 -1
  72. data/lib/cybersource_rest_client/models/{inline_response_200_13_billing.rb → inline_response_200_3_billing.rb} +1 -1
  73. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +96 -42
  74. data/lib/cybersource_rest_client/models/{inline_response_200_14_records.rb → inline_response_200_4_records.rb} +3 -3
  75. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record.rb → inline_response_200_4_response_record.rb} +2 -2
  76. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record_additional_updates.rb → inline_response_200_4_response_record_additional_updates.rb} +1 -1
  77. data/lib/cybersource_rest_client/models/{inline_response_200_14_source_record.rb → inline_response_200_4_source_record.rb} +1 -1
  78. data/lib/cybersource_rest_client/models/inline_response_200__embedded.rb +201 -0
  79. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture.rb +202 -0
  80. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links.rb +191 -0
  81. data/lib/cybersource_rest_client/models/inline_response_200__embedded_capture__links_self.rb +203 -0
  82. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal.rb +202 -0
  83. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links.rb +191 -0
  84. data/lib/cybersource_rest_client/models/inline_response_200__embedded_reversal__links_self.rb +203 -0
  85. data/lib/cybersource_rest_client/models/inline_response_201.rb +7 -27
  86. data/lib/cybersource_rest_client/models/inline_response_202.rb +17 -45
  87. data/lib/cybersource_rest_client/models/{inline_response_202_2__links.rb → inline_response_202__links.rb} +2 -2
  88. data/lib/cybersource_rest_client/models/{inline_response_200_13__links_report.rb → inline_response_202__links_status.rb} +1 -1
  89. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +3 -3
  90. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +37 -60
  92. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +61 -37
  93. data/lib/cybersource_rest_client/models/{inline_response_400_3_fields.rb → inline_response_400_4_fields.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +10 -11
  95. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +35 -75
  96. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +276 -0
  97. data/lib/cybersource_rest_client/models/{inline_response_400_6_details.rb → inline_response_400_7_details.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/inline_response_403_1.rb +236 -0
  99. data/lib/cybersource_rest_client/models/inline_response_422.rb +236 -0
  100. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +20 -8
  101. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +224 -0
  102. data/lib/cybersource_rest_client/models/inline_response_502.rb +13 -12
  103. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +235 -0
  104. data/lib/cybersource_rest_client/models/inline_response_503.rb +236 -0
  105. data/lib/cybersource_rest_client/models/{inline_response_200_12.rb → intimate_billing_agreement.rb} +37 -59
  106. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response.rb +1 -1
  107. data/lib/cybersource_rest_client/models/modify_billing_agreement.rb +270 -0
  108. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1.rb +239 -0
  109. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_installment_information.rb +197 -0
  110. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_1_processor_information.rb +214 -0
  111. data/lib/cybersource_rest_client/models/ptsv2billingagreements_aggregator_information.rb +207 -0
  112. data/lib/cybersource_rest_client/models/ptsv2billingagreements_consumer_authentication_information.rb +242 -0
  113. data/lib/cybersource_rest_client/models/ptsv2billingagreements_device_information.rb +231 -0
  114. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +327 -0
  115. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information.rb +235 -0
  116. data/lib/cybersource_rest_client/models/ptsv2billingagreements_merchant_information_merchant_descriptor.rb +242 -0
  117. data/lib/cybersource_rest_client/models/{inline_response_200_6_order_information.rb → ptsv2billingagreements_order_information.rb} +3 -3
  118. data/lib/cybersource_rest_client/models/ptsv2billingagreements_order_information_bill_to.rb +401 -0
  119. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information.rb +200 -0
  120. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +259 -0
  121. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +276 -0
  122. data/lib/cybersource_rest_client/models/ptsv2billingagreements_processing_information.rb +210 -0
  123. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +12 -1
  124. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +16 -5
  125. data/lib/cybersource_rest_client/models/rbsv1plans_plan_information.rb +1 -1
  126. data/lib/cybersource_rest_client/models/rbsv1plansid_plan_information.rb +1 -1
  127. data/lib/cybersource_rest_client/models/rbsv1subscriptions_plan_information.rb +1 -1
  128. data/lib/cybersource_rest_client/models/resource_not_found_error.rb +192 -192
  129. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_consumer_authentication_information.rb +1 -1
  130. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +22 -5
  131. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +12 -1
  132. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +1 -1
  133. data/lib/cybersource_rest_client/models/riskv1decisions_token_information.rb +197 -0
  134. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_decision_information.rb +208 -0
  135. data/lib/cybersource_rest_client/models/riskv1decisionsidactions_processing_information.rb +193 -0
  136. data/lib/cybersource_rest_client/models/suspend_subscription_response.rb +239 -0
  137. data/lib/cybersource_rest_client/models/{inline_response_202_1_subscription_information.rb → suspend_subscription_response_subscription_information.rb} +1 -1
  138. data/lib/cybersource_rest_client/models/unauthorized_client_error.rb +192 -192
  139. data/lib/cybersource_rest_client/models/update_plan_request.rb +1 -1
  140. data/lib/cybersource_rest_client/models/update_plan_response.rb +239 -0
  141. data/lib/cybersource_rest_client/models/{inline_response_200_3_plan_information.rb → update_plan_response_plan_information.rb} +1 -1
  142. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → update_subscription_response.rb} +3 -3
  143. data/lib/cybersource_rest_client/models/validate_request.rb +15 -5
  144. data/lib/cybersource_rest_client/utilities/jwe_utility.rb +12 -0
  145. data/lib/cybersource_rest_client.rb +95 -54
  146. metadata +112 -57
  147. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +0 -248
  148. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +0 -291
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9f76e378aa357e4c85b95882914e22b377c1f712d5c1bf44bde4814495e6fee
4
- data.tar.gz: '085abb14ef6ad398852f2da9bd0adce30f770b2bb048437aaa3a58f7b5d387a1'
3
+ metadata.gz: 38488f7d3a86cd6fa25e9727d0570b4e2bde8bd4be92ad62616c895cea0d4495
4
+ data.tar.gz: a6d5210f1edf0e44224bf32c89f1c7a9e558ff2f752095f68cbaee2e8bd77d48
5
5
  SHA512:
6
- metadata.gz: 89b354441650f8bdd1916753d2ac9b5ee6cdd9985a3ee9d44bcf242654e6655383d9b47dc5d599477f5aff282d139f09baed8d36c3552ea5c8d95b71ab557fe9
7
- data.tar.gz: d1d26742dfd1648c224335e22444d5b898470cbdb1d25d7ec1e4d3b766636885af35533ace0d21ea96e067301f015a2014788cec44051e840a871b58a3179b2a
6
+ metadata.gz: 662fed9b1692eb10e0dac0594ca6b43d022e284a944660fc22477bc9ed1cf2a06466bdac063a328153a56912424e43e387309837f6dc591c52d6a35f535f345c
7
+ data.tar.gz: 7428af4e0e31a9321addd0bdcf9dd7585eed5ef178a09a1390387b9900de616bdc9df13489e12b2b6c7c87756ca7bca7ab2a9bf1c036ea828bf793dabaaaba71
@@ -6,7 +6,7 @@ require 'openssl'
6
6
  # paramter 'Signature' is calucated based on below key values and then signed with SECRET KEY -
7
7
  # host: Sandbox (apitest.cybersource.com) or Production (api.cybersource.com) hostname
8
8
  # date: "HTTP-date" format as defined by RFC7231.
9
- # (request-target): Should be in format of httpMethod: path
9
+ # request-target: Should be in format of httpMethod: path
10
10
  # Example: "post /pts/v2/payments"
11
11
  # Digest: Only needed for POST calls.
12
12
  # digestString = BASE64( HMAC-SHA256 ( Payload ));
@@ -23,7 +23,7 @@ require 'openssl'
23
23
 
24
24
  signatureString = Constants::HOST + ': ' + merchantconfig_obj.requestHost
25
25
  signatureString << "\n"+ Constants::DATE + ': ' + gmtdatetime
26
- signatureString << "\n(request-target): "
26
+ signatureString << "\nrequest-target: "
27
27
 
28
28
  if request_type == Constants::GET_REQUEST_TYPE || request_type == Constants::DELETE_REQUEST_TYPE
29
29
  targetUrl=gettargetUrlForGetDelete(request_type,merchantconfig_obj)
@@ -10,8 +10,8 @@ public
10
10
  # * keyid -- Merchant ID obtained from EBC portal
11
11
  # * algorithm -- Should have value as "HmacSHA256"
12
12
  # * headers -- List of all header name passed in the Signature paramter below
13
- # String getHeaders = "host date (request-target)" + " " + "v-c-merchant-id";
14
- # String postHeaders = "host date (request-target) digest v-c-merchant-id";
13
+ # String getHeaders = "host date request-target" + " " + "v-c-merchant-id";
14
+ # String postHeaders = "host date request-target digest v-c-merchant-id";
15
15
  # Note: Digest is not passed for GET calls
16
16
  # * signature -- Signature header has paramter called signature
17
17
  # Paramter 'Signature' must contain all the paramters mentioned in header above in given order
@@ -44,13 +44,13 @@ public
44
44
  def getsignatureHeader(request_type)
45
45
  headers = ''
46
46
  if request_type == Constants::POST_REQUEST_TYPE
47
- headers = 'host date (request-target) digest ' + Constants::V_C_MERCHANT_ID
47
+ headers = 'host date request-target digest ' + Constants::V_C_MERCHANT_ID
48
48
  elsif request_type == Constants::GET_REQUEST_TYPE || request_type == Constants::DELETE_REQUEST_TYPE
49
- headers = 'host date (request-target)' + ' ' + Constants::V_C_MERCHANT_ID
49
+ headers = 'host date request-target' + ' ' + Constants::V_C_MERCHANT_ID
50
50
  elsif request_type == Constants::PUT_REQUEST_TYPE
51
- headers = 'host date (request-target) digest ' + Constants::V_C_MERCHANT_ID
51
+ headers = 'host date request-target digest ' + Constants::V_C_MERCHANT_ID
52
52
  elsif request_type == Constants::PATCH_REQUEST_TYPE
53
- headers = 'host date (request-target) digest ' + Constants::V_C_MERCHANT_ID
53
+ headers = 'host date request-target digest ' + Constants::V_C_MERCHANT_ID
54
54
  else
55
55
  raise StandardError.new(Constants::ERROR_PREFIX + Constants::INVALID_REQUEST_TYPE_METHOD)
56
56
  end
@@ -43,6 +43,8 @@ public
43
43
  @log_config = LogConfiguration.new(cybsPropertyObj['logConfiguration'])
44
44
  # Custom Default Headers
45
45
  @defaultCustomHeaders = cybsPropertyObj['defaultCustomHeaders']
46
+ # Path to client JWE pem file directory
47
+ @pemFileDirectory = cybsPropertyObj['pemFileDirectory']
46
48
  validateMerchantDetails()
47
49
  logAllProperties(cybsPropertyObj)
48
50
  end
@@ -217,6 +219,9 @@ public
217
219
  if !@proxyPort.instance_of? String
218
220
  @proxyPort=@proxyPort.to_s
219
221
  end
222
+ unless @pemFileDirectory.instance_of? String
223
+ @pemFileDirectory = @pemFileDirectory.to_s
224
+ end
220
225
  end
221
226
 
222
227
  def logAllProperties(propertyObj)
@@ -270,4 +275,5 @@ public
270
275
  attr_accessor :log_obj
271
276
  attr_accessor :solutionId
272
277
  attr_accessor :defaultCustomHeaders
278
+ attr_accessor :pemFileDirectory
273
279
  end
@@ -33,4 +33,18 @@ public
33
33
  cacheObj.write('certificateLastModifiedTimeStamp', currentFileLastModifiedTime)
34
34
  return x5CertDer
35
35
  end
36
- end
36
+
37
+ def fetchPEMFileForNetworkTokenization(filePath, cacheObj)
38
+ pem_file_cache = cacheObj.read('privateKeyFromPEMFile')
39
+ cached_pem_file_last_updated_time = cacheObj.read('cachedLastModifiedTimeOfPEMFile')
40
+ if File.exist?(filePath)
41
+ current_last_modified_time_of_PEM_file = File.mtime(filePath)
42
+ if pem_file_cache.nil? || pem_file_cache.to_s.empty? || current_last_modified_time_of_PEM_file > cached_pem_file_last_updated_time
43
+ private_key = JOSE::JWK.from_pem_file filePath
44
+ cacheObj.write('privateKeyFromPEMFile', private_key)
45
+ cacheObj.write('cachedLastModifiedTimeOfPEMFile', current_last_modified_time_of_PEM_file)
46
+ end
47
+ end
48
+ return cacheObj.read('privateKeyFromPEMFile')
49
+ end
50
+ end
@@ -26,7 +26,7 @@
26
26
 
27
27
  DATE = 'date' unless const_defined?(:DATE)
28
28
 
29
- REQUEST_TARGET = '(request-target)' unless const_defined?(:REQUEST_TARGET)
29
+ REQUEST_TARGET = 'request-target' unless const_defined?(:REQUEST_TARGET)
30
30
 
31
31
  DIGEST = 'digest' unless const_defined?(:DIGEST)
32
32
 
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative './Cache'
4
+ require 'jose'
5
+
6
+ public
7
+ class AuthJWEUtility
8
+
9
+ def self.decrypt_jwe_using_pem(merchant_config, encoded_response)
10
+ cache_obj = ActiveSupport::Cache::MemoryStore.new
11
+ key = Cache.new.fetchPEMFileForNetworkTokenization(merchant_config.pemFileDirectory, cache_obj)
12
+ return JOSE::JWE.block_decrypt(key, encoded_response).first
13
+ end
14
+ end
@@ -24,7 +24,7 @@ module CyberSource
24
24
  # **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
25
25
  # @param batch_id Unique identification number assigned to the submitted request.
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse20014]
27
+ # @return [InlineResponse2004]
28
28
  def get_batch_report(batch_id, opts = {})
29
29
  data, status_code, headers = get_batch_report_with_http_info(batch_id, opts)
30
30
  return data, status_code, headers
@@ -34,7 +34,7 @@ module CyberSource
34
34
  # **Get Batch Report**&lt;br&gt;This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates &amp; card type. - Response record information including response code, reason, token ids, masked card number, expiration dates &amp; card type.
35
35
  # @param batch_id Unique identification number assigned to the submitted request.
36
36
  # @param [Hash] opts the optional parameters
37
- # @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
37
+ # @return [Array<(InlineResponse2004, Fixnum, Hash)>] InlineResponse2004 data, response status code and response headers
38
38
  def get_batch_report_with_http_info(batch_id, opts = {})
39
39
 
40
40
  if @api_client.config.debugging
@@ -86,7 +86,7 @@ module CyberSource
86
86
  :form_params => form_params,
87
87
  :body => post_body,
88
88
  :auth_names => auth_names,
89
- :return_type => 'InlineResponse20014')
89
+ :return_type => 'InlineResponse2004')
90
90
  if @api_client.config.debugging
91
91
  begin
92
92
  raise
@@ -101,7 +101,7 @@ module CyberSource
101
101
  # **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
102
102
  # @param batch_id Unique identification number assigned to the submitted request.
103
103
  # @param [Hash] opts the optional parameters
104
- # @return [InlineResponse20013]
104
+ # @return [InlineResponse2003]
105
105
  def get_batch_status(batch_id, opts = {})
106
106
  data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
107
107
  return data, status_code, headers
@@ -111,7 +111,7 @@ module CyberSource
111
111
  # **Get Batch Status**&lt;br&gt;This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
112
112
  # @param batch_id Unique identification number assigned to the submitted request.
113
113
  # @param [Hash] opts the optional parameters
114
- # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
114
+ # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
115
115
  def get_batch_status_with_http_info(batch_id, opts = {})
116
116
 
117
117
  if @api_client.config.debugging
@@ -163,7 +163,7 @@ module CyberSource
163
163
  :form_params => form_params,
164
164
  :body => post_body,
165
165
  :auth_names => auth_names,
166
- :return_type => 'InlineResponse20013')
166
+ :return_type => 'InlineResponse2003')
167
167
  if @api_client.config.debugging
168
168
  begin
169
169
  raise
@@ -181,7 +181,7 @@ module CyberSource
181
181
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (default to 20)
182
182
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
183
183
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
184
- # @return [InlineResponse20012]
184
+ # @return [InlineResponse2002]
185
185
  def get_batches_list(opts = {})
186
186
  data, status_code, headers = get_batches_list_with_http_info(opts)
187
187
  return data, status_code, headers
@@ -194,7 +194,7 @@ module CyberSource
194
194
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
195
195
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
196
196
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
197
- # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
197
+ # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
198
198
  def get_batches_list_with_http_info(opts = {})
199
199
 
200
200
  if @api_client.config.debugging
@@ -250,7 +250,7 @@ module CyberSource
250
250
  :form_params => form_params,
251
251
  :body => post_body,
252
252
  :auth_names => auth_names,
253
- :return_type => 'InlineResponse20012')
253
+ :return_type => 'InlineResponse2002')
254
254
  if @api_client.config.debugging
255
255
  begin
256
256
  raise
@@ -265,7 +265,7 @@ module CyberSource
265
265
  # **Create a Batch**<br>This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. <br> The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.<br>The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
266
266
  # @param body
267
267
  # @param [Hash] opts the optional parameters
268
- # @return [InlineResponse2022]
268
+ # @return [InlineResponse202]
269
269
  def post_batch(body, opts = {})
270
270
  data, status_code, headers = post_batch_with_http_info(body, opts)
271
271
  return data, status_code, headers
@@ -275,7 +275,7 @@ module CyberSource
275
275
  # **Create a Batch**&lt;br&gt;This resource accepts TMS tokens ids of a Customer, Payment Instrument or Instrument Identifier. &lt;br&gt; The card numbers for the supplied tokens ids are then sent to the relevant card associations to check for updates.&lt;br&gt;The following type of batches can be submitted: - **oneOff** batch containing tokens id for Visa or MasterCard card numbers. - **amexRegistration** batch containing tokens id for Amex card numbers. A batch id will be returned on a successful response which can be used to get the batch status and the batch report.
276
276
  # @param body
277
277
  # @param [Hash] opts the optional parameters
278
- # @return [Array<(InlineResponse2022, Fixnum, Hash)>] InlineResponse2022 data, response status code and response headers
278
+ # @return [Array<(InlineResponse202, Fixnum, Hash)>] InlineResponse202 data, response status code and response headers
279
279
  def post_batch_with_http_info(body, opts = {})
280
280
 
281
281
  if @api_client.config.debugging
@@ -315,7 +315,7 @@ module CyberSource
315
315
  :form_params => form_params,
316
316
  :body => post_body,
317
317
  :auth_names => auth_names,
318
- :return_type => 'InlineResponse2022')
318
+ :return_type => 'InlineResponse202')
319
319
  if @api_client.config.debugging
320
320
  begin
321
321
  raise
@@ -0,0 +1,231 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.2.3
10
+
11
+ =end
12
+
13
+ require 'uri'
14
+
15
+ module CyberSource
16
+ class BillingAgreementsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default, config)
20
+ @api_client = api_client
21
+ @api_client.set_configuration(config)
22
+ end
23
+ # Standing Instruction Cancellation or Modification
24
+ # Standing Instruction with or without Token
25
+ # @param modify_billing_agreement
26
+ # @param id ID for de-registration or cancellation of Billing Agreement
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [PtsV2CreditsPost201Response1]
29
+ def billing_agreements_de_registration(modify_billing_agreement, id, opts = {})
30
+ data, status_code, headers = billing_agreements_de_registration_with_http_info(modify_billing_agreement, id, opts)
31
+ return data, status_code, headers
32
+ end
33
+
34
+ # Standing Instruction Cancellation or Modification
35
+ # Standing Instruction with or without Token
36
+ # @param modify_billing_agreement
37
+ # @param id ID for de-registration or cancellation of Billing Agreement
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(PtsV2CreditsPost201Response1, Fixnum, Hash)>] PtsV2CreditsPost201Response1 data, response status code and response headers
40
+ def billing_agreements_de_registration_with_http_info(modify_billing_agreement, id, opts = {})
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: BillingAgreementsApi.billing_agreements_de_registration ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
49
+ end
50
+ # verify the required parameter 'modify_billing_agreement' is set
51
+ if @api_client.config.client_side_validation && modify_billing_agreement.nil?
52
+ fail ArgumentError, "Missing the required parameter 'modify_billing_agreement' when calling BillingAgreementsApi.billing_agreements_de_registration"
53
+ end
54
+ # verify the required parameter 'id' is set
55
+ if @api_client.config.client_side_validation && id.nil?
56
+ fail ArgumentError, "Missing the required parameter 'id' when calling BillingAgreementsApi.billing_agreements_de_registration"
57
+ end
58
+ # resource path
59
+ local_var_path = 'pts/v2/billing-agreements/{id}'.sub('{' + 'id' + '}', id.to_s)
60
+
61
+ # query parameters
62
+ query_params = {}
63
+
64
+ # header parameters
65
+ header_params = {}
66
+ # HTTP header 'Accept' (if needed)
67
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
68
+ # HTTP header 'Content-Type'
69
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
70
+
71
+ # form parameters
72
+ form_params = {}
73
+
74
+ # http body (model)
75
+ post_body = @api_client.object_to_http_body(modify_billing_agreement)
76
+ auth_names = []
77
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => 'PtsV2CreditsPost201Response1')
84
+ if @api_client.config.debugging
85
+ begin
86
+ raise
87
+ @api_client.config.logger.debug "API called: BillingAgreementsApi#billing_agreements_de_registration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ rescue
89
+ puts 'Cannot write to log'
90
+ end
91
+ end
92
+ return data, status_code, headers
93
+ end
94
+ # Standing Instruction intimation
95
+ # Standing Instruction with or without Token.
96
+ # @param intimate_billing_agreement
97
+ # @param id ID for intimation of Billing Agreement
98
+ # @param [Hash] opts the optional parameters
99
+ # @return [PtsV2CreditsPost201Response1]
100
+ def billing_agreements_intimation(intimate_billing_agreement, id, opts = {})
101
+ data, status_code, headers = billing_agreements_intimation_with_http_info(intimate_billing_agreement, id, opts)
102
+ return data, status_code, headers
103
+ end
104
+
105
+ # Standing Instruction intimation
106
+ # Standing Instruction with or without Token.
107
+ # @param intimate_billing_agreement
108
+ # @param id ID for intimation of Billing Agreement
109
+ # @param [Hash] opts the optional parameters
110
+ # @return [Array<(PtsV2CreditsPost201Response1, Fixnum, Hash)>] PtsV2CreditsPost201Response1 data, response status code and response headers
111
+ def billing_agreements_intimation_with_http_info(intimate_billing_agreement, id, opts = {})
112
+
113
+ if @api_client.config.debugging
114
+ begin
115
+ raise
116
+ @api_client.config.logger.debug 'Calling API: BillingAgreementsApi.billing_agreements_intimation ...'
117
+ rescue
118
+ puts 'Cannot write to log'
119
+ end
120
+ end
121
+ # verify the required parameter 'intimate_billing_agreement' is set
122
+ if @api_client.config.client_side_validation && intimate_billing_agreement.nil?
123
+ fail ArgumentError, "Missing the required parameter 'intimate_billing_agreement' when calling BillingAgreementsApi.billing_agreements_intimation"
124
+ end
125
+ # verify the required parameter 'id' is set
126
+ if @api_client.config.client_side_validation && id.nil?
127
+ fail ArgumentError, "Missing the required parameter 'id' when calling BillingAgreementsApi.billing_agreements_intimation"
128
+ end
129
+ # resource path
130
+ local_var_path = 'pts/v2/billing-agreements/{id}/intimations'.sub('{' + 'id' + '}', id.to_s)
131
+
132
+ # query parameters
133
+ query_params = {}
134
+
135
+ # header parameters
136
+ header_params = {}
137
+ # HTTP header 'Accept' (if needed)
138
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
139
+ # HTTP header 'Content-Type'
140
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
141
+
142
+ # form parameters
143
+ form_params = {}
144
+
145
+ # http body (model)
146
+ post_body = @api_client.object_to_http_body(intimate_billing_agreement)
147
+ auth_names = []
148
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
149
+ :header_params => header_params,
150
+ :query_params => query_params,
151
+ :form_params => form_params,
152
+ :body => post_body,
153
+ :auth_names => auth_names,
154
+ :return_type => 'PtsV2CreditsPost201Response1')
155
+ if @api_client.config.debugging
156
+ begin
157
+ raise
158
+ @api_client.config.logger.debug "API called: BillingAgreementsApi#billing_agreements_intimation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
159
+ rescue
160
+ puts 'Cannot write to log'
161
+ end
162
+ end
163
+ return data, status_code, headers
164
+ end
165
+ # Standing Instruction completion registration
166
+ # Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed
167
+ # @param create_billing_agreement
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [PtsV2CreditsPost201Response1]
170
+ def billing_agreements_registration(create_billing_agreement, opts = {})
171
+ data, status_code, headers = billing_agreements_registration_with_http_info(create_billing_agreement, opts)
172
+ return data, status_code, headers
173
+ end
174
+
175
+ # Standing Instruction completion registration
176
+ # Standing Instruction with or without Token. Transaction amount in case First payment is coming along with registration. Only 2 decimal places allowed
177
+ # @param create_billing_agreement
178
+ # @param [Hash] opts the optional parameters
179
+ # @return [Array<(PtsV2CreditsPost201Response1, Fixnum, Hash)>] PtsV2CreditsPost201Response1 data, response status code and response headers
180
+ def billing_agreements_registration_with_http_info(create_billing_agreement, opts = {})
181
+
182
+ if @api_client.config.debugging
183
+ begin
184
+ raise
185
+ @api_client.config.logger.debug 'Calling API: BillingAgreementsApi.billing_agreements_registration ...'
186
+ rescue
187
+ puts 'Cannot write to log'
188
+ end
189
+ end
190
+ # verify the required parameter 'create_billing_agreement' is set
191
+ if @api_client.config.client_side_validation && create_billing_agreement.nil?
192
+ fail ArgumentError, "Missing the required parameter 'create_billing_agreement' when calling BillingAgreementsApi.billing_agreements_registration"
193
+ end
194
+ # resource path
195
+ local_var_path = 'pts/v2/billing-agreements'
196
+
197
+ # query parameters
198
+ query_params = {}
199
+
200
+ # header parameters
201
+ header_params = {}
202
+ # HTTP header 'Accept' (if needed)
203
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
204
+ # HTTP header 'Content-Type'
205
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
206
+
207
+ # form parameters
208
+ form_params = {}
209
+
210
+ # http body (model)
211
+ post_body = @api_client.object_to_http_body(create_billing_agreement)
212
+ auth_names = []
213
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
214
+ :header_params => header_params,
215
+ :query_params => query_params,
216
+ :form_params => form_params,
217
+ :body => post_body,
218
+ :auth_names => auth_names,
219
+ :return_type => 'PtsV2CreditsPost201Response1')
220
+ if @api_client.config.debugging
221
+ begin
222
+ raise
223
+ @api_client.config.logger.debug "API called: BillingAgreementsApi#billing_agreements_registration\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
224
+ rescue
225
+ puts 'Cannot write to log'
226
+ end
227
+ end
228
+ return data, status_code, headers
229
+ end
230
+ end
231
+ end
@@ -20,6 +20,77 @@ module CyberSource
20
20
  @api_client = api_client
21
21
  @api_client.set_configuration(config)
22
22
  end
23
+ # Take action on a DM post-transactional case
24
+ # Take action on a DM post-transactional case
25
+ # @param id An unique identification number generated by Cybersource to identify the submitted request.
26
+ # @param case_management_actions_request
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [InlineResponse200]
29
+ def action_decision_manager_case(id, case_management_actions_request, opts = {})
30
+ data, status_code, headers = action_decision_manager_case_with_http_info(id, case_management_actions_request, opts)
31
+ return data, status_code, headers
32
+ end
33
+
34
+ # Take action on a DM post-transactional case
35
+ # Take action on a DM post-transactional case
36
+ # @param id An unique identification number generated by Cybersource to identify the submitted request.
37
+ # @param case_management_actions_request
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [Array<(InlineResponse200, Fixnum, Hash)>] InlineResponse200 data, response status code and response headers
40
+ def action_decision_manager_case_with_http_info(id, case_management_actions_request, opts = {})
41
+
42
+ if @api_client.config.debugging
43
+ begin
44
+ raise
45
+ @api_client.config.logger.debug 'Calling API: DecisionManagerApi.action_decision_manager_case ...'
46
+ rescue
47
+ puts 'Cannot write to log'
48
+ end
49
+ end
50
+ # verify the required parameter 'id' is set
51
+ if @api_client.config.client_side_validation && id.nil?
52
+ fail ArgumentError, "Missing the required parameter 'id' when calling DecisionManagerApi.action_decision_manager_case"
53
+ end
54
+ # verify the required parameter 'case_management_actions_request' is set
55
+ if @api_client.config.client_side_validation && case_management_actions_request.nil?
56
+ fail ArgumentError, "Missing the required parameter 'case_management_actions_request' when calling DecisionManagerApi.action_decision_manager_case"
57
+ end
58
+ # resource path
59
+ local_var_path = 'risk/v1/decisions/{id}/actions'.sub('{' + 'id' + '}', id.to_s)
60
+
61
+ # query parameters
62
+ query_params = {}
63
+
64
+ # header parameters
65
+ header_params = {}
66
+ # HTTP header 'Accept' (if needed)
67
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
68
+ # HTTP header 'Content-Type'
69
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
70
+
71
+ # form parameters
72
+ form_params = {}
73
+
74
+ # http body (model)
75
+ post_body = @api_client.object_to_http_body(case_management_actions_request)
76
+ auth_names = []
77
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => 'InlineResponse200')
84
+ if @api_client.config.debugging
85
+ begin
86
+ raise
87
+ @api_client.config.logger.debug "API called: DecisionManagerApi#action_decision_manager_case\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ rescue
89
+ puts 'Cannot write to log'
90
+ end
91
+ end
92
+ return data, status_code, headers
93
+ end
23
94
  # List Management
24
95
  # This call adds/deletes/converts the request information in the negative list. Provide the list to be updated as the path parameter. This value can be 'postiive', 'negative' or 'review'.
25
96
  # @param type The list to be updated. It can be &#39;positive&#39;, &#39;negative&#39; or &#39;review&#39;.
@@ -91,6 +162,77 @@ module CyberSource
91
162
  end
92
163
  return data, status_code, headers
93
164
  end
165
+ # Add a comment to a DM post-transactional case
166
+ # Add a comment to a DM post-transactional case
167
+ # @param id An unique identification number generated by Cybersource to identify the submitted request.
168
+ # @param case_management_comments_request
169
+ # @param [Hash] opts the optional parameters
170
+ # @return [InlineResponse201]
171
+ def comment_decision_manager_case(id, case_management_comments_request, opts = {})
172
+ data, status_code, headers = comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts)
173
+ return data, status_code, headers
174
+ end
175
+
176
+ # Add a comment to a DM post-transactional case
177
+ # Add a comment to a DM post-transactional case
178
+ # @param id An unique identification number generated by Cybersource to identify the submitted request.
179
+ # @param case_management_comments_request
180
+ # @param [Hash] opts the optional parameters
181
+ # @return [Array<(InlineResponse201, Fixnum, Hash)>] InlineResponse201 data, response status code and response headers
182
+ def comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts = {})
183
+
184
+ if @api_client.config.debugging
185
+ begin
186
+ raise
187
+ @api_client.config.logger.debug 'Calling API: DecisionManagerApi.comment_decision_manager_case ...'
188
+ rescue
189
+ puts 'Cannot write to log'
190
+ end
191
+ end
192
+ # verify the required parameter 'id' is set
193
+ if @api_client.config.client_side_validation && id.nil?
194
+ fail ArgumentError, "Missing the required parameter 'id' when calling DecisionManagerApi.comment_decision_manager_case"
195
+ end
196
+ # verify the required parameter 'case_management_comments_request' is set
197
+ if @api_client.config.client_side_validation && case_management_comments_request.nil?
198
+ fail ArgumentError, "Missing the required parameter 'case_management_comments_request' when calling DecisionManagerApi.comment_decision_manager_case"
199
+ end
200
+ # resource path
201
+ local_var_path = 'risk/v1/decisions/{id}/comments'.sub('{' + 'id' + '}', id.to_s)
202
+
203
+ # query parameters
204
+ query_params = {}
205
+
206
+ # header parameters
207
+ header_params = {}
208
+ # HTTP header 'Accept' (if needed)
209
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
210
+ # HTTP header 'Content-Type'
211
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
212
+
213
+ # form parameters
214
+ form_params = {}
215
+
216
+ # http body (model)
217
+ post_body = @api_client.object_to_http_body(case_management_comments_request)
218
+ auth_names = []
219
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
220
+ :header_params => header_params,
221
+ :query_params => query_params,
222
+ :form_params => form_params,
223
+ :body => post_body,
224
+ :auth_names => auth_names,
225
+ :return_type => 'InlineResponse201')
226
+ if @api_client.config.debugging
227
+ begin
228
+ raise
229
+ @api_client.config.logger.debug "API called: DecisionManagerApi#comment_decision_manager_case\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
230
+ rescue
231
+ puts 'Cannot write to log'
232
+ end
233
+ end
234
+ return data, status_code, headers
235
+ end
94
236
  # Create Decision Manager
95
237
  # Decision Manager can help you automate and streamline your fraud operations. Decision Manager will return a decision based on the request values.
96
238
  # @param create_bundled_decision_manager_case_request
@@ -52,7 +52,7 @@ module CyberSource
52
52
  # header parameters
53
53
  header_params = {}
54
54
  # HTTP header 'Accept' (if needed)
55
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
55
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'])
56
56
  # HTTP header 'Content-Type'
57
57
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
58
58
 
@@ -121,7 +121,7 @@ module CyberSource
121
121
  # header parameters
122
122
  header_params = {}
123
123
  # HTTP header 'Accept' (if needed)
124
- header_params['Accept'] = @api_client.select_header_accept(['application/json;charset=utf-8'])
124
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'application/hal+json', 'application/json;charset=utf-8', 'application/hal+json;charset=utf-8'])
125
125
  # HTTP header 'Content-Type'
126
126
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
127
127