cybersource_rest_client 0.0.75 → 0.0.77

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +6 -17
  3. data/lib/AuthenticationSDK/core/MerchantConfig.rb +132 -54
  4. data/lib/AuthenticationSDK/util/Cache.rb +135 -30
  5. data/lib/AuthenticationSDK/util/CacheValue.rb +18 -0
  6. data/lib/AuthenticationSDK/util/CertificateUtility.rb +124 -0
  7. data/lib/AuthenticationSDK/util/Constants.rb +6 -0
  8. data/lib/AuthenticationSDK/util/JWEUtility.rb +1 -2
  9. data/lib/AuthenticationSDK/util/MLEUtility.rb +26 -35
  10. data/lib/AuthenticationSDK/util/Utility.rb +1 -16
  11. data/lib/cybersource_rest_client/api/batches_api.rb +17 -17
  12. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +6 -6
  13. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +2 -2
  14. data/lib/cybersource_rest_client/api/capture_api.rb +2 -2
  15. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +2 -2
  16. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
  18. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  19. data/lib/cybersource_rest_client/api/credit_api.rb +2 -2
  20. data/lib/cybersource_rest_client/api/customer_api.rb +8 -8
  21. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +10 -10
  22. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +10 -10
  23. data/lib/cybersource_rest_client/api/decision_manager_api.rb +10 -10
  24. data/lib/cybersource_rest_client/api/device_de_association_api.rb +7 -7
  25. data/lib/cybersource_rest_client/api/device_search_api.rb +10 -10
  26. data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
  27. data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
  28. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +4 -4
  29. data/lib/cybersource_rest_client/api/flex_api_api.rb +2 -2
  30. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +12 -12
  31. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +2 -2
  32. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +4 -4
  33. data/lib/cybersource_rest_client/api/invoices_api.rb +87 -12
  34. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +18 -17
  35. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +4 -4
  36. data/lib/cybersource_rest_client/api/microform_integration_api.rb +2 -2
  37. data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
  38. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
  39. data/lib/cybersource_rest_client/api/orders_api.rb +4 -4
  40. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +6 -6
  41. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
  42. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +8 -8
  43. data/lib/cybersource_rest_client/api/payment_links_api.rb +12 -12
  44. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +2 -2
  45. data/lib/cybersource_rest_client/api/payments_api.rb +12 -12
  46. data/lib/cybersource_rest_client/api/payouts_api.rb +2 -2
  47. data/lib/cybersource_rest_client/api/plans_api.rb +16 -16
  48. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
  49. data/lib/cybersource_rest_client/api/push_funds_api.rb +2 -2
  50. data/lib/cybersource_rest_client/api/refund_api.rb +4 -4
  51. data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
  52. data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
  53. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +10 -10
  54. data/lib/cybersource_rest_client/api/reports_api.rb +6 -6
  55. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +2 -2
  56. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +2 -2
  57. data/lib/cybersource_rest_client/api/reversal_api.rb +4 -4
  58. data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
  59. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
  60. data/lib/cybersource_rest_client/api/subscriptions_api.rb +16 -16
  61. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +4 -4
  62. data/lib/cybersource_rest_client/api/taxes_api.rb +4 -4
  63. data/lib/cybersource_rest_client/api/token_api.rb +4 -4
  64. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +6 -6
  65. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +8 -8
  66. data/lib/cybersource_rest_client/api/transaction_details_api.rb +2 -2
  67. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +4 -4
  68. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +2 -2
  69. data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
  70. data/lib/cybersource_rest_client/api/user_management_search_api.rb +2 -2
  71. data/lib/cybersource_rest_client/api/verification_api.rb +4 -4
  72. data/lib/cybersource_rest_client/api/void_api.rb +10 -10
  73. data/lib/cybersource_rest_client/api_client.rb +3 -1
  74. data/lib/cybersource_rest_client/ethon_extensions.rb +38 -0
  75. data/lib/cybersource_rest_client/models/create_order_request.rb +269 -269
  76. data/lib/cybersource_rest_client/models/create_webhook.rb +16 -3
  77. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +47 -49
  78. data/lib/cybersource_rest_client/models/{inline_response_200_8__links.rb → inline_response_200_10__links.rb} +18 -17
  79. data/lib/cybersource_rest_client/models/{inline_response_200_9__links_report.rb → inline_response_200_10__links_report.rb} +1 -1
  80. data/lib/cybersource_rest_client/models/{inline_response_200_9_billing.rb → inline_response_200_10_billing.rb} +1 -1
  81. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +292 -0
  82. data/lib/cybersource_rest_client/models/{inline_response_200_10_records.rb → inline_response_200_11_records.rb} +3 -3
  83. data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record.rb → inline_response_200_11_response_record.rb} +2 -2
  84. data/lib/cybersource_rest_client/models/{inline_response_200_10_response_record_additional_updates.rb → inline_response_200_11_response_record_additional_updates.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/{inline_response_200_10_source_record.rb → inline_response_200_11_source_record.rb} +1 -1
  86. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +253 -253
  87. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +12 -10
  88. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +129 -51
  89. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +55 -10
  90. data/lib/cybersource_rest_client/models/{inline_response_200_5_devices.rb → inline_response_200_6_devices.rb} +1 -1
  91. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +10 -55
  92. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +33 -37
  93. data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +2 -2
  94. data/lib/cybersource_rest_client/models/{inline_response_200_7_payment_processor_to_terminal_map.rb → inline_response_200_8_payment_processor_to_terminal_map.rb} +1 -1
  95. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +47 -86
  96. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded.rb → inline_response_200_9__embedded.rb} +2 -2
  97. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links.rb → inline_response_200_9__embedded__links.rb} +2 -2
  98. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded__links_reports.rb → inline_response_200_9__embedded__links_reports.rb} +1 -1
  99. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_batches.rb → inline_response_200_9__embedded_batches.rb} +3 -3
  100. data/lib/cybersource_rest_client/models/{inline_response_200_8__embedded_totals.rb → inline_response_200_9__embedded_totals.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/inline_response_200_9__links.rb +16 -17
  102. data/lib/cybersource_rest_client/models/inline_response_201.rb +227 -227
  103. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +218 -218
  104. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +248 -248
  105. data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information.rb +216 -216
  106. data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_pull_funds.rb +213 -213
  107. data/lib/cybersource_rest_client/models/inline_response_201_2_payout_information_push_funds.rb +417 -417
  108. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +281 -281
  109. data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information.rb +192 -192
  110. data/lib/cybersource_rest_client/models/inline_response_201_3_integration_information_tenant_configurations.rb +253 -253
  111. data/lib/cybersource_rest_client/models/inline_response_201_3_organization_information.rb +217 -217
  112. data/lib/cybersource_rest_client/models/inline_response_201_3_product_information_setups.rb +214 -214
  113. data/lib/cybersource_rest_client/models/inline_response_201_3_registration_information.rb +222 -222
  114. data/lib/cybersource_rest_client/models/inline_response_201_3_setups.rb +219 -219
  115. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_commerce_solutions.rb +209 -209
  116. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +369 -369
  117. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods.rb +221 -221
  118. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb +200 -200
  119. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing.rb +199 -199
  120. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_configuration_status.rb +255 -255
  121. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_card_processing_subscription_status.rb +234 -234
  122. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments_digital_payments.rb +189 -189
  123. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_risk.rb +199 -199
  124. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_value_added_services.rb +209 -209
  125. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +222 -222
  126. data/lib/cybersource_rest_client/models/inline_response_201_4_key_information.rb +300 -300
  127. data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information.rb +202 -202
  128. data/lib/cybersource_rest_client/models/inline_response_201_4_key_information_error_information_details.rb +201 -201
  129. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +314 -312
  130. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +277 -277
  131. data/lib/cybersource_rest_client/models/inline_response_201_6_payloads.rb +189 -189
  132. data/lib/cybersource_rest_client/models/inline_response_201_6_payloads_test_payload.rb +190 -190
  133. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +202 -202
  134. data/lib/cybersource_rest_client/models/inline_response_201_order_information.rb +189 -189
  135. data/lib/cybersource_rest_client/models/inline_response_201_order_information_ship_to.rb +315 -315
  136. data/lib/cybersource_rest_client/models/inline_response_201_payment_information.rb +199 -199
  137. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_e_wallet.rb +196 -196
  138. data/lib/cybersource_rest_client/models/inline_response_201_payment_information_tokenized_payment_method.rb +213 -213
  139. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -5
  140. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +18 -5
  141. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config.rb → invoicing_v2_invoices_post201_response_invoice_information_custom_labels.rb} +57 -34
  142. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +268 -0
  143. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -5
  144. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_retry_policy.rb +2 -0
  145. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy.rb +1 -1
  146. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_config.rb +16 -17
  147. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_security_policy_1_config_additional_config.rb → notificationsubscriptionsv2webhooks_security_policy_config_additional_config.rb} +1 -1
  148. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +609 -609
  149. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_account_information_card.rb +269 -269
  150. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information.rb +364 -364
  151. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +309 -309
  152. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_payment_method.rb +213 -213
  153. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get400_response.rb +252 -252
  154. data/lib/cybersource_rest_client/models/pts_v2_retrieve_payment_token_get502_response.rb +240 -240
  155. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_card.rb +258 -258
  156. data/lib/cybersource_rest_client/models/ptsv2billingagreements_payment_information_tokenized_card.rb +275 -275
  157. data/lib/cybersource_rest_client/models/ptsv2intents_event_information.rb +212 -212
  158. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_ship_to.rb +354 -354
  159. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information.rb +220 -220
  160. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_e_wallet.rb +196 -196
  161. data/lib/cybersource_rest_client/models/ptsv2intents_payment_information_tokenized_payment_method.rb +241 -241
  162. data/lib/cybersource_rest_client/models/ptsv2intents_processing_information.rb +351 -351
  163. data/lib/cybersource_rest_client/models/ptsv2intents_recipient_information.rb +245 -245
  164. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information.rb +277 -277
  165. data/lib/cybersource_rest_client/models/ptsv2intents_sender_information_account.rb +190 -190
  166. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information.rb +211 -211
  167. data/lib/cybersource_rest_client/models/ptsv2intents_travel_information_agency.rb +245 -245
  168. data/lib/cybersource_rest_client/models/ptsv2intentsid_payment_information.rb +189 -189
  169. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_order_information_amount_details.rb +417 -417
  170. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_payment_information_card.rb +275 -275
  171. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +461 -433
  172. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +668 -668
  173. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +716 -716
  174. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +356 -356
  175. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +445 -445
  176. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_payment_type_method.rb +1 -1
  177. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +377 -377
  178. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_payment_method.rb +196 -196
  179. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +604 -604
  180. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_payment_type_method.rb +1 -1
  181. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +377 -377
  182. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_payment_information.rb +199 -199
  183. data/lib/cybersource_rest_client/models/ptsv2paymenttokens_processing_information.rb +192 -192
  184. data/lib/cybersource_rest_client/models/ptsv2payouts_payment_information_card.rb +258 -258
  185. data/lib/cybersource_rest_client/models/request.rb +199 -199
  186. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_card.rb +241 -241
  187. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information_tokenized_card.rb +258 -258
  188. data/lib/cybersource_rest_client/models/riskv1authentications_payment_information_tokenized_card.rb +351 -351
  189. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +268 -268
  190. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +299 -299
  191. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_card.rb +259 -259
  192. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_tokenized_card.rb +259 -259
  193. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +224 -224
  194. data/lib/cybersource_rest_client/models/tms_bin_lookup_issuer_information.rb +264 -264
  195. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card.rb +277 -277
  196. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_card_brands.rb +213 -213
  197. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +430 -430
  198. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +11 -1
  199. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_bank_account_validation.rb +211 -0
  200. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_brands.rb +201 -201
  201. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_card.rb +365 -365
  202. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +16 -5
  203. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +15 -5
  204. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_payment_information_card.rb +218 -218
  205. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processor_information.rb +245 -245
  206. data/lib/cybersource_rest_client/models/update_order_request.rb +229 -229
  207. data/lib/cybersource_rest_client/models/update_webhook.rb +19 -19
  208. data/lib/cybersource_rest_client.rb +20 -18
  209. metadata +25 -20
  210. data/lib/cybersource_rest_client/models/notificationsubscriptionsv2webhooks_security_policy_1.rb +0 -201
@@ -75,8 +75,8 @@ module CyberSource
75
75
  else
76
76
  post_body = nil
77
77
  end
78
- is_mle_supported_by_cybs_for_api = false
79
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["activate_subscription","activate_subscription_with_http_info"])
78
+ inbound_mle_status = "false"
79
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["activate_subscription","activate_subscription_with_http_info"])
80
80
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
81
81
  end
82
82
  auth_names = []
@@ -150,8 +150,8 @@ module CyberSource
150
150
  else
151
151
  post_body = nil
152
152
  end
153
- is_mle_supported_by_cybs_for_api = false
154
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["cancel_subscription","cancel_subscription_with_http_info"])
153
+ inbound_mle_status = "false"
154
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["cancel_subscription","cancel_subscription_with_http_info"])
155
155
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
156
156
  end
157
157
  auth_names = []
@@ -223,8 +223,8 @@ module CyberSource
223
223
  post_body = @api_client.object_to_http_body(create_subscription_request)
224
224
  sdk_tracker = SdkTracker.new
225
225
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSubscriptionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
226
- is_mle_supported_by_cybs_for_api = false
227
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["create_subscription","create_subscription_with_http_info"])
226
+ inbound_mle_status = "false"
227
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_subscription","create_subscription_with_http_info"])
228
228
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
229
229
  end
230
230
  auth_names = []
@@ -304,8 +304,8 @@ module CyberSource
304
304
  else
305
305
  post_body = nil
306
306
  end
307
- is_mle_supported_by_cybs_for_api = false
308
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_all_subscriptions","get_all_subscriptions_with_http_info"])
307
+ inbound_mle_status = "false"
308
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_all_subscriptions","get_all_subscriptions_with_http_info"])
309
309
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
310
310
  end
311
311
  auth_names = []
@@ -379,8 +379,8 @@ module CyberSource
379
379
  else
380
380
  post_body = nil
381
381
  end
382
- is_mle_supported_by_cybs_for_api = false
383
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_subscription","get_subscription_with_http_info"])
382
+ inbound_mle_status = "false"
383
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_subscription","get_subscription_with_http_info"])
384
384
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
385
385
  end
386
386
  auth_names = []
@@ -448,8 +448,8 @@ module CyberSource
448
448
  else
449
449
  post_body = nil
450
450
  end
451
- is_mle_supported_by_cybs_for_api = false
452
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_subscription_code","get_subscription_code_with_http_info"])
451
+ inbound_mle_status = "false"
452
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_subscription_code","get_subscription_code_with_http_info"])
453
453
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
454
454
  end
455
455
  auth_names = []
@@ -523,8 +523,8 @@ module CyberSource
523
523
  else
524
524
  post_body = nil
525
525
  end
526
- is_mle_supported_by_cybs_for_api = false
527
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["suspend_subscription","suspend_subscription_with_http_info"])
526
+ inbound_mle_status = "false"
527
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["suspend_subscription","suspend_subscription_with_http_info"])
528
528
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
529
529
  end
530
530
  auth_names = []
@@ -602,8 +602,8 @@ module CyberSource
602
602
  post_body = @api_client.object_to_http_body(update_subscription)
603
603
  sdk_tracker = SdkTracker.new
604
604
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'UpdateSubscription', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
605
- is_mle_supported_by_cybs_for_api = false
606
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["update_subscription","update_subscription_with_http_info"])
605
+ inbound_mle_status = "false"
606
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_subscription","update_subscription_with_http_info"])
607
607
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
608
608
  end
609
609
  auth_names = []
@@ -76,8 +76,8 @@ module CyberSource
76
76
  post_body = @api_client.object_to_http_body(create_subscription_request)
77
77
  sdk_tracker = SdkTracker.new
78
78
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateSubscriptionRequest1', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
79
- is_mle_supported_by_cybs_for_api = false
80
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["create_follow_on_subscription","create_follow_on_subscription_with_http_info"])
79
+ inbound_mle_status = "false"
80
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_follow_on_subscription","create_follow_on_subscription_with_http_info"])
81
81
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
82
82
  end
83
83
  auth_names = []
@@ -151,8 +151,8 @@ module CyberSource
151
151
  else
152
152
  post_body = nil
153
153
  end
154
- is_mle_supported_by_cybs_for_api = false
155
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_follow_on_subscription","get_follow_on_subscription_with_http_info"])
154
+ inbound_mle_status = "false"
155
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_follow_on_subscription","get_follow_on_subscription_with_http_info"])
156
156
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
157
157
  end
158
158
  auth_names = []
@@ -70,8 +70,8 @@ module CyberSource
70
70
  post_body = @api_client.object_to_http_body(tax_request)
71
71
  sdk_tracker = SdkTracker.new
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'TaxRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
- is_mle_supported_by_cybs_for_api = false
74
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["calculate_tax","calculate_tax_with_http_info"])
73
+ inbound_mle_status = "false"
74
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["calculate_tax","calculate_tax_with_http_info"])
75
75
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
76
  end
77
77
  auth_names = []
@@ -149,8 +149,8 @@ module CyberSource
149
149
  post_body = @api_client.object_to_http_body(void_tax_request)
150
150
  sdk_tracker = SdkTracker.new
151
151
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidTaxRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
152
- is_mle_supported_by_cybs_for_api = false
153
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["void_tax","void_tax_with_http_info"])
152
+ inbound_mle_status = "false"
153
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_tax","void_tax_with_http_info"])
154
154
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
155
155
  end
156
156
  auth_names = []
@@ -92,8 +92,8 @@ module CyberSource
92
92
  else
93
93
  post_body = nil
94
94
  end
95
- is_mle_supported_by_cybs_for_api = false
96
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_card_art_asset","get_card_art_asset_with_http_info"])
95
+ inbound_mle_status = "false"
96
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_card_art_asset","get_card_art_asset_with_http_info"])
97
97
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
98
98
  end
99
99
  auth_names = []
@@ -174,8 +174,8 @@ module CyberSource
174
174
  post_body = @api_client.object_to_http_body(post_payment_credentials_request)
175
175
  sdk_tracker = SdkTracker.new
176
176
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'PostPaymentCredentialsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
177
- is_mle_supported_by_cybs_for_api = false
178
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["post_token_payment_credentials","post_token_payment_credentials_with_http_info"])
177
+ inbound_mle_status = "false"
178
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_token_payment_credentials","post_token_payment_credentials_with_http_info"])
179
179
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
180
180
  end
181
181
  auth_names = []
@@ -75,8 +75,8 @@ module CyberSource
75
75
  else
76
76
  post_body = nil
77
77
  end
78
- is_mle_supported_by_cybs_for_api = false
79
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["delete_tokenized_card","delete_tokenized_card_with_http_info"])
78
+ inbound_mle_status = "false"
79
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["delete_tokenized_card","delete_tokenized_card_with_http_info"])
80
80
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
81
81
  end
82
82
  auth_names = []
@@ -152,8 +152,8 @@ module CyberSource
152
152
  else
153
153
  post_body = nil
154
154
  end
155
- is_mle_supported_by_cybs_for_api = false
156
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_tokenized_card","get_tokenized_card_with_http_info"])
155
+ inbound_mle_status = "false"
156
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_tokenized_card","get_tokenized_card_with_http_info"])
157
157
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
158
158
  end
159
159
  auth_names = []
@@ -228,8 +228,8 @@ module CyberSource
228
228
  post_body = @api_client.object_to_http_body(tokenizedcard_request)
229
229
  sdk_tracker = SdkTracker.new
230
230
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'TokenizedcardRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
231
- is_mle_supported_by_cybs_for_api = false
232
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["post_tokenized_card","post_tokenized_card_with_http_info"])
231
+ inbound_mle_status = "false"
232
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_tokenized_card","post_tokenized_card_with_http_info"])
233
233
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
234
234
  end
235
235
  auth_names = []
@@ -78,8 +78,8 @@ module CyberSource
78
78
  else
79
79
  post_body = nil
80
80
  end
81
- is_mle_supported_by_cybs_for_api = false
82
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_transaction_batch_details","get_transaction_batch_details_with_http_info"])
81
+ inbound_mle_status = "false"
82
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batch_details","get_transaction_batch_details_with_http_info"])
83
83
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
84
84
  end
85
85
  auth_names = []
@@ -152,8 +152,8 @@ module CyberSource
152
152
  else
153
153
  post_body = nil
154
154
  end
155
- is_mle_supported_by_cybs_for_api = false
156
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_transaction_batch_id","get_transaction_batch_id_with_http_info"])
155
+ inbound_mle_status = "false"
156
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batch_id","get_transaction_batch_id_with_http_info"])
157
157
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
158
158
  end
159
159
  auth_names = []
@@ -235,8 +235,8 @@ module CyberSource
235
235
  else
236
236
  post_body = nil
237
237
  end
238
- is_mle_supported_by_cybs_for_api = false
239
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_transaction_batches","get_transaction_batches_with_http_info"])
238
+ inbound_mle_status = "false"
239
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_batches","get_transaction_batches_with_http_info"])
240
240
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
241
241
  end
242
242
  auth_names = []
@@ -316,8 +316,8 @@ module CyberSource
316
316
  else
317
317
  post_body = nil
318
318
  end
319
- is_mle_supported_by_cybs_for_api = false
320
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["upload_transaction_batch","upload_transaction_batch_with_http_info"])
319
+ inbound_mle_status = "false"
320
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["upload_transaction_batch","upload_transaction_batch_with_http_info"])
321
321
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
322
322
  end
323
323
  auth_names = []
@@ -72,8 +72,8 @@ module CyberSource
72
72
  else
73
73
  post_body = nil
74
74
  end
75
- is_mle_supported_by_cybs_for_api = false
76
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_transaction","get_transaction_with_http_info"])
75
+ inbound_mle_status = "false"
76
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction","get_transaction_with_http_info"])
77
77
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
78
78
  end
79
79
  auth_names = []
@@ -72,8 +72,8 @@ module CyberSource
72
72
  else
73
73
  post_body = nil
74
74
  end
75
- is_mle_supported_by_cybs_for_api = false
76
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_payment_credentials_for_transient_token","get_payment_credentials_for_transient_token_with_http_info"])
75
+ inbound_mle_status = "false"
76
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_payment_credentials_for_transient_token","get_payment_credentials_for_transient_token_with_http_info"])
77
77
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
78
78
  end
79
79
  auth_names = []
@@ -147,8 +147,8 @@ module CyberSource
147
147
  else
148
148
  post_body = nil
149
149
  end
150
- is_mle_supported_by_cybs_for_api = false
151
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_transaction_for_transient_token","get_transaction_for_transient_token_with_http_info"])
150
+ inbound_mle_status = "false"
151
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_transaction_for_transient_token","get_transaction_for_transient_token_with_http_info"])
152
152
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
153
153
  end
154
154
  auth_names = []
@@ -70,8 +70,8 @@ module CyberSource
70
70
  post_body = @api_client.object_to_http_body(generate_unified_checkout_capture_context_request)
71
71
  sdk_tracker = SdkTracker.new
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'GenerateUnifiedCheckoutCaptureContextRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
- is_mle_supported_by_cybs_for_api = false
74
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["generate_unified_checkout_capture_context","generate_unified_checkout_capture_context_with_http_info"])
73
+ inbound_mle_status = "false"
74
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["generate_unified_checkout_capture_context","generate_unified_checkout_capture_context_with_http_info"])
75
75
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
76
  end
77
77
  auth_names = []
@@ -78,8 +78,8 @@ module CyberSource
78
78
  else
79
79
  post_body = nil
80
80
  end
81
- is_mle_supported_by_cybs_for_api = false
82
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["get_users","get_users_with_http_info"])
81
+ inbound_mle_status = "false"
82
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_users","get_users_with_http_info"])
83
83
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
84
84
  end
85
85
  auth_names = []
@@ -70,8 +70,8 @@ module CyberSource
70
70
  post_body = @api_client.object_to_http_body(search_request)
71
71
  sdk_tracker = SdkTracker.new
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'SearchRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
- is_mle_supported_by_cybs_for_api = false
74
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["search_users","search_users_with_http_info"])
73
+ inbound_mle_status = "false"
74
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["search_users","search_users_with_http_info"])
75
75
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
76
  end
77
77
  auth_names = []
@@ -70,8 +70,8 @@ module CyberSource
70
70
  post_body = @api_client.object_to_http_body(validate_export_compliance_request)
71
71
  sdk_tracker = SdkTracker.new
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ValidateExportComplianceRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
- is_mle_supported_by_cybs_for_api = false
74
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["validate_export_compliance","validate_export_compliance_with_http_info"])
73
+ inbound_mle_status = "false"
74
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["validate_export_compliance","validate_export_compliance_with_http_info"])
75
75
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
76
  end
77
77
  auth_names = []
@@ -143,8 +143,8 @@ module CyberSource
143
143
  post_body = @api_client.object_to_http_body(verify_customer_address_request)
144
144
  sdk_tracker = SdkTracker.new
145
145
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VerifyCustomerAddressRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
146
- is_mle_supported_by_cybs_for_api = false
147
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["verify_customer_address","verify_customer_address_with_http_info"])
146
+ inbound_mle_status = "false"
147
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["verify_customer_address","verify_customer_address_with_http_info"])
148
148
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
149
149
  end
150
150
  auth_names = []
@@ -70,8 +70,8 @@ module CyberSource
70
70
  post_body = @api_client.object_to_http_body(mit_void_request)
71
71
  sdk_tracker = SdkTracker.new
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MitVoidRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
- is_mle_supported_by_cybs_for_api = true
74
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["mit_void","mit_void_with_http_info"])
73
+ inbound_mle_status = "optional"
74
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["mit_void","mit_void_with_http_info"])
75
75
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
76
  end
77
77
  auth_names = []
@@ -149,8 +149,8 @@ module CyberSource
149
149
  post_body = @api_client.object_to_http_body(void_capture_request)
150
150
  sdk_tracker = SdkTracker.new
151
151
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidCaptureRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
152
- is_mle_supported_by_cybs_for_api = true
153
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["void_capture","void_capture_with_http_info"])
152
+ inbound_mle_status = "optional"
153
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_capture","void_capture_with_http_info"])
154
154
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
155
155
  end
156
156
  auth_names = []
@@ -228,8 +228,8 @@ module CyberSource
228
228
  post_body = @api_client.object_to_http_body(void_credit_request)
229
229
  sdk_tracker = SdkTracker.new
230
230
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidCreditRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
231
- is_mle_supported_by_cybs_for_api = true
232
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["void_credit","void_credit_with_http_info"])
231
+ inbound_mle_status = "optional"
232
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_credit","void_credit_with_http_info"])
233
233
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
234
234
  end
235
235
  auth_names = []
@@ -307,8 +307,8 @@ module CyberSource
307
307
  post_body = @api_client.object_to_http_body(void_payment_request)
308
308
  sdk_tracker = SdkTracker.new
309
309
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidPaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
310
- is_mle_supported_by_cybs_for_api = true
311
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["void_payment","void_payment_with_http_info"])
310
+ inbound_mle_status = "optional"
311
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_payment","void_payment_with_http_info"])
312
312
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
313
313
  end
314
314
  auth_names = []
@@ -386,8 +386,8 @@ module CyberSource
386
386
  post_body = @api_client.object_to_http_body(void_refund_request)
387
387
  sdk_tracker = SdkTracker.new
388
388
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'VoidRefundRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
389
- is_mle_supported_by_cybs_for_api = true
390
- if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, is_mle_supported_by_cybs_for_api, ["void_refund","void_refund_with_http_info"])
389
+ inbound_mle_status = "optional"
390
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["void_refund","void_refund_with_http_info"])
391
391
  post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
392
392
  end
393
393
  auth_names = []
@@ -15,6 +15,7 @@ require 'logger'
15
15
  require 'tempfile'
16
16
  require 'typhoeus'
17
17
  require 'addressable/uri'
18
+ require_relative 'ethon_extensions'
18
19
 
19
20
  module CyberSource
20
21
  class ApiClient
@@ -148,7 +149,8 @@ module CyberSource
148
149
  :sslcert => @config.cert_file,
149
150
  :sslkeypasswd => @merchantconfig.sslKeyPassword || "",
150
151
  :sslkey => @config.key_file,
151
- :verbose => @config.debugging
152
+ :verbose => @config.debugging,
153
+ :maxage_conn => @merchantconfig.keepAliveTime || 118 # Default to 118 seconds as same as default of libcurl
152
154
  }
153
155
 
154
156
  # set custom cert, if provided
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Extension to add CURLOPT_MAXAGE_CONN support to Ethon without modifying the gem
4
+ # This file extends Ethon to add the maxage_conn option
5
+
6
+ require 'ethon'
7
+
8
+ # Now extend the Easy class to add the setter/getter methods
9
+ # This follows the same pattern as other Ethon options
10
+ module Ethon
11
+ class Easy
12
+ # Add the maxage_conn setter method - it will get call from set_attributes(options) from http actionable in ethon lib.
13
+ def maxage_conn=(value)
14
+ return if value.nil?
15
+ @maxage_conn = value.to_i
16
+
17
+ # CURLOPT_MAXAGE_CONN = CURLOPTTYPE_LONG + 288
18
+ # CURLOPTTYPE_LONG = 0, so the option value is 0 + 288 = 288
19
+ curl_option = 288
20
+ # Call curl directly using Ethon::Curl.easy_setopt
21
+ Ethon::Curl.easy_setopt(@handle, curl_option, :long, @maxage_conn)
22
+ end
23
+
24
+ # Add the maxage_conn getter method
25
+ def maxage_conn
26
+ @maxage_conn
27
+ end
28
+
29
+ # Add alias methods
30
+ def max_connection_age=(value)
31
+ self.maxage_conn = value
32
+ end
33
+
34
+ def max_connection_age
35
+ @maxage_conn
36
+ end
37
+ end
38
+ end