cybersource_rest_client 0.0.79 → 0.0.80

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 (214) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +1 -0
  3. data/lib/AuthenticationSDK/util/Cache.rb +14 -0
  4. data/lib/AuthenticationSDK/util/Constants.rb +2 -0
  5. data/lib/AuthenticationSDK/util/JWT/JWTExceptions.rb +81 -0
  6. data/lib/AuthenticationSDK/util/JWT/JWTUtility.rb +154 -0
  7. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +8 -4
  8. data/lib/cybersource_rest_client/api/batches_api.rb +29 -13
  9. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +15 -3
  10. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +5 -1
  11. data/lib/cybersource_rest_client/api/capture_api.rb +5 -1
  12. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +5 -1
  13. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +5 -1
  14. data/lib/cybersource_rest_client/api/conversion_details_api.rb +5 -1
  15. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +18 -6
  16. data/lib/cybersource_rest_client/api/credit_api.rb +5 -1
  17. data/lib/cybersource_rest_client/api/customer_api.rb +22 -6
  18. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +27 -7
  19. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +27 -7
  20. data/lib/cybersource_rest_client/api/decision_manager_api.rb +28 -8
  21. data/lib/cybersource_rest_client/api/device_de_association_api.rb +13 -5
  22. data/lib/cybersource_rest_client/api/device_search_api.rb +16 -8
  23. data/lib/cybersource_rest_client/api/download_dtd_api.rb +5 -1
  24. data/lib/cybersource_rest_client/api/download_xsd_api.rb +5 -1
  25. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +10 -2
  26. data/lib/cybersource_rest_client/api/flex_api_api.rb +5 -1
  27. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +33 -9
  28. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +5 -1
  29. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +10 -2
  30. data/lib/cybersource_rest_client/api/invoices_api.rb +35 -7
  31. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +41 -13
  32. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +13 -5
  33. data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +29 -13
  34. data/lib/cybersource_rest_client/api/microform_integration_api.rb +5 -1
  35. data/lib/cybersource_rest_client/api/net_fundings_api.rb +5 -1
  36. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +5 -1
  37. data/lib/cybersource_rest_client/api/offers_api.rb +13 -5
  38. data/lib/cybersource_rest_client/api/orders_api.rb +10 -2
  39. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +15 -3
  40. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +5 -1
  41. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +22 -6
  42. data/lib/cybersource_rest_client/api/payment_links_api.rb +20 -4
  43. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +5 -1
  44. data/lib/cybersource_rest_client/api/payments_api.rb +30 -6
  45. data/lib/cybersource_rest_client/api/payouts_api.rb +5 -1
  46. data/lib/cybersource_rest_client/api/plans_api.rb +40 -8
  47. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +5 -1
  48. data/lib/cybersource_rest_client/api/push_funds_api.rb +5 -1
  49. data/lib/cybersource_rest_client/api/refund_api.rb +10 -2
  50. data/lib/cybersource_rest_client/api/report_definitions_api.rb +10 -2
  51. data/lib/cybersource_rest_client/api/report_downloads_api.rb +5 -1
  52. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +25 -5
  53. data/lib/cybersource_rest_client/api/reports_api.rb +15 -3
  54. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +5 -1
  55. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +5 -1
  56. data/lib/cybersource_rest_client/api/reversal_api.rb +10 -2
  57. data/lib/cybersource_rest_client/api/search_transactions_api.rb +10 -2
  58. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +10 -2
  59. data/lib/cybersource_rest_client/api/subscriptions_api.rb +49 -17
  60. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +10 -2
  61. data/lib/cybersource_rest_client/api/taxes_api.rb +10 -2
  62. data/lib/cybersource_rest_client/api/token_api.rb +14 -6
  63. data/lib/cybersource_rest_client/api/tokenize_api.rb +103 -0
  64. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +105 -4
  65. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +20 -4
  66. data/lib/cybersource_rest_client/api/transaction_details_api.rb +5 -1
  67. data/lib/cybersource_rest_client/api/transient_token_data_api.rb +10 -2
  68. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +5 -1
  69. data/lib/cybersource_rest_client/api/user_management_api.rb +5 -1
  70. data/lib/cybersource_rest_client/api/user_management_search_api.rb +5 -1
  71. data/lib/cybersource_rest_client/api/verification_api.rb +10 -2
  72. data/lib/cybersource_rest_client/api/void_api.rb +25 -5
  73. data/lib/cybersource_rest_client/models/create_plan_request.rb +1 -11
  74. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  75. data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +1 -1
  76. data/lib/cybersource_rest_client/models/create_subscription_response.rb +15 -5
  77. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +13 -2
  78. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_client_reference_information.rb +196 -0
  79. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_subscriptions.rb +11 -1
  80. data/lib/cybersource_rest_client/models/get_subscription_response.rb +11 -1
  81. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument.rb +1 -1
  82. data/lib/cybersource_rest_client/models/get_subscription_response_1_payment_instrument_buyer_information.rb +1 -1
  83. data/lib/cybersource_rest_client/models/get_subscription_response_1_shipping_address.rb +1 -1
  84. data/lib/cybersource_rest_client/models/get_subscription_response_reactivation_information.rb +22 -22
  85. data/lib/cybersource_rest_client/models/inline_response_200.rb +9 -44
  86. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +29 -31
  87. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +33 -37
  88. data/lib/cybersource_rest_client/models/{inline_response_200_9_devices.rb → inline_response_200_10_devices.rb} +2 -2
  89. data/lib/cybersource_rest_client/models/{inline_response_200_9_payment_processor_to_terminal_map.rb → inline_response_200_10_payment_processor_to_terminal_map.rb} +1 -1
  90. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +47 -86
  91. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded.rb → inline_response_200_11__embedded.rb} +2 -2
  92. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links.rb → inline_response_200_11__embedded__links.rb} +2 -2
  93. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded__links_reports.rb → inline_response_200_11__embedded__links_reports.rb} +1 -1
  94. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_batches.rb → inline_response_200_11__embedded_batches.rb} +3 -3
  95. data/lib/cybersource_rest_client/models/{inline_response_200_10__embedded_totals.rb → inline_response_200_11__embedded_totals.rb} +1 -1
  96. data/lib/cybersource_rest_client/models/inline_response_200_11__links.rb +16 -17
  97. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +47 -49
  98. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +201 -0
  99. data/lib/cybersource_rest_client/models/{inline_response_200_11__links_report.rb → inline_response_200_12__links_report.rb} +1 -1
  100. data/lib/cybersource_rest_client/models/{inline_response_200_11_billing.rb → inline_response_200_12_billing.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +102 -31
  102. data/lib/cybersource_rest_client/models/{inline_response_200_12_records.rb → inline_response_200_13_records.rb} +3 -3
  103. data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record.rb → inline_response_200_13_response_record.rb} +2 -2
  104. data/lib/cybersource_rest_client/models/{inline_response_200_12_response_record_additional_updates.rb → inline_response_200_13_response_record_additional_updates.rb} +1 -1
  105. data/lib/cybersource_rest_client/models/{inline_response_200_12_source_record.rb → inline_response_200_13_source_record.rb} +1 -1
  106. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +18 -84
  107. data/lib/cybersource_rest_client/models/inline_response_200_15.rb +287 -0
  108. data/lib/cybersource_rest_client/models/{inline_response_200_14_client_reference_information.rb → inline_response_200_15_client_reference_information.rb} +1 -1
  109. data/lib/cybersource_rest_client/models/{inline_response_200_content.rb → inline_response_200_1_content.rb} +1 -1
  110. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +32 -103
  111. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded.rb → inline_response_200_2__embedded.rb} +3 -3
  112. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture.rb → inline_response_200_2__embedded_capture.rb} +2 -2
  113. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links.rb → inline_response_200_2__embedded_capture__links.rb} +2 -2
  114. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_capture__links_self.rb → inline_response_200_2__embedded_capture__links_self.rb} +1 -1
  115. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal.rb → inline_response_200_2__embedded_reversal.rb} +2 -2
  116. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links.rb → inline_response_200_2__embedded_reversal__links.rb} +2 -2
  117. data/lib/cybersource_rest_client/models/{inline_response_200_1__embedded_reversal__links_self.rb → inline_response_200_2__embedded_reversal__links_self.rb} +1 -1
  118. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +100 -54
  119. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +65 -25
  120. data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information.rb → inline_response_200_4_integration_information.rb} +2 -2
  121. data/lib/cybersource_rest_client/models/{inline_response_200_3_integration_information_tenant_configurations.rb → inline_response_200_4_integration_information_tenant_configurations.rb} +1 -1
  122. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +25 -126
  123. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +1 -12
  124. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +129 -51
  125. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +55 -10
  126. data/lib/cybersource_rest_client/models/{inline_response_200_7_devices.rb → inline_response_200_8_devices.rb} +1 -1
  127. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +10 -55
  128. data/lib/cybersource_rest_client/models/{inline_response_200_10__links.rb → inline_response_200_details.rb} +18 -17
  129. data/lib/cybersource_rest_client/models/inline_response_200_errors.rb +213 -0
  130. data/lib/cybersource_rest_client/models/inline_response_200_responses.rb +224 -0
  131. data/lib/cybersource_rest_client/models/inline_response_201_3_setups_payments.rb +15 -5
  132. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +9 -9
  133. data/lib/cybersource_rest_client/models/patch_customer_request.rb +9 -9
  134. data/lib/cybersource_rest_client/models/patch_customer_shipping_address_request.rb +3 -3
  135. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +9 -9
  136. data/lib/cybersource_rest_client/models/payment_instrument_list_1__embedded_payment_instruments.rb +8 -8
  137. data/lib/cybersource_rest_client/models/payment_instrument_list__embedded.rb +1 -1
  138. data/lib/cybersource_rest_client/models/payments_products.rb +15 -5
  139. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +9 -9
  140. data/lib/cybersource_rest_client/models/post_customer_request.rb +9 -9
  141. data/lib/cybersource_rest_client/models/post_customer_shipping_address_request.rb +3 -3
  142. data/lib/cybersource_rest_client/models/post_issuer_life_cycle_simulation_request.rb +211 -0
  143. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +9 -9
  144. data/lib/cybersource_rest_client/models/post_tokenize_request.rb +199 -0
  145. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information.rb +22 -5
  146. data/lib/cybersource_rest_client/models/shipping_address_list_for_customer__embedded.rb +1 -1
  147. data/lib/cybersource_rest_client/models/tms_issuerlifecycleeventsimulations_metadata_card_art_combined_asset.rb +190 -0
  148. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information.rb → tms_merchant_information.rb} +2 -2
  149. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_merchant_information_merchant_descriptor.rb → tms_merchant_information_merchant_descriptor.rb} +1 -1
  150. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_issued_by.rb → tmsv2tokenize_default_payment_instrument_buyer_info_issued_by.rb} +1 -1
  151. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information_personal_identification.rb → tmsv2tokenize_default_payment_instrument_buyer_info_personal_identification.rb} +2 -2
  152. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card_tokenized_information.rb → tmsv2tokenize_default_payment_instrument_card_tokenized_info.rb} +1 -1
  153. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_instrument_identifier.rb → tmsv2tokenize_default_payment_instrument_instrument_identifier.rb} +1 -1
  154. data/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb +205 -0
  155. data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information.rb +247 -0
  156. data/lib/cybersource_rest_client/models/tmsv2tokenize_token_information_customer.rb +289 -0
  157. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded.rb → tmsv2tokenize_token_information_customer__embedded.rb} +3 -3
  158. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument.rb} +10 -10
  159. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__embedded.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__embedded.rb} +1 -1
  160. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links.rb} +3 -3
  161. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument__links_self.rb} +1 -1
  162. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bank_account.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bank_account.rb} +1 -1
  163. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_bill_to.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_bill_to.rb} +1 -1
  164. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_buyer_information.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_buyer_information.rb} +2 -2
  165. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_card.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_card.rb} +2 -2
  166. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_payment_instrument_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_payment_instrument_metadata.rb} +1 -1
  167. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address.rb} +4 -4
  168. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links.rb} +3 -3
  169. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_customer.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_customer.rb} +1 -1
  170. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address__links_self.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address__links_self.rb} +1 -1
  171. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_metadata.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_metadata.rb} +1 -1
  172. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded_default_shipping_address_ship_to.rb → tmsv2tokenize_token_information_customer__embedded_default_shipping_address_ship_to.rb} +1 -1
  173. data/lib/cybersource_rest_client/models/{tmsv2customers__links.rb → tmsv2tokenize_token_information_customer__links.rb} +4 -4
  174. data/lib/cybersource_rest_client/models/{tmsv2customers__links_payment_instruments.rb → tmsv2tokenize_token_information_customer__links_payment_instruments.rb} +1 -1
  175. data/lib/cybersource_rest_client/models/{tmsv2customers__links_self.rb → tmsv2tokenize_token_information_customer__links_self.rb} +1 -1
  176. data/lib/cybersource_rest_client/models/{tmsv2customers__links_shipping_address.rb → tmsv2tokenize_token_information_customer__links_shipping_address.rb} +1 -1
  177. data/lib/cybersource_rest_client/models/{tmsv2customers_buyer_information.rb → tmsv2tokenize_token_information_customer_buyer_information.rb} +1 -1
  178. data/lib/cybersource_rest_client/models/{tmsv2customers_client_reference_information.rb → tmsv2tokenize_token_information_customer_client_reference_information.rb} +1 -1
  179. data/lib/cybersource_rest_client/models/{tmsv2customers_default_payment_instrument.rb → tmsv2tokenize_token_information_customer_default_payment_instrument.rb} +1 -1
  180. data/lib/cybersource_rest_client/models/{tmsv2customers_default_shipping_address.rb → tmsv2tokenize_token_information_customer_default_shipping_address.rb} +1 -1
  181. data/lib/cybersource_rest_client/models/{tmsv2customers_merchant_defined_information.rb → tmsv2tokenize_token_information_customer_merchant_defined_information.rb} +1 -1
  182. data/lib/cybersource_rest_client/models/{tmsv2customers_metadata.rb → tmsv2tokenize_token_information_customer_metadata.rb} +1 -1
  183. data/lib/cybersource_rest_client/models/{tmsv2customers_object_information.rb → tmsv2tokenize_token_information_customer_object_information.rb} +1 -1
  184. data/lib/cybersource_rest_client/models/{rbsv1subscriptions_client_reference_information_partner.rb → tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_card.rb} +41 -24
  185. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata.rb +189 -0
  186. data/lib/cybersource_rest_client/models/tmsv2tokenizedcardstokenized_card_idissuerlifecycleeventsimulations_metadata_card_art.rb +189 -0
  187. data/lib/cybersource_rest_client/models/update_subscription.rb +1 -1
  188. data/lib/cybersource_rest_client/models/upv1capturecontexts_data.rb +25 -5
  189. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information.rb +41 -5
  190. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_buyer_information_personal_identification.rb +1 -0
  191. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_client_reference_information_partner.rb +3 -3
  192. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_consumer_authentication_information.rb +24 -5
  193. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_device_information.rb +196 -0
  194. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_merchant_information_merchant_descriptor.rb +124 -5
  195. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information.rb +15 -5
  196. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details.rb +15 -5
  197. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_amount_details_tax_details.rb +213 -0
  198. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_invoice_details.rb +213 -0
  199. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items.rb +30 -0
  200. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_passenger.rb +8 -0
  201. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_line_items_tax_details.rb +7 -0
  202. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information.rb +189 -0
  203. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_payment_information_card.rb +196 -0
  204. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information.rb +1 -0
  205. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options.rb +74 -5
  206. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_processing_information_authorization_options_initiator.rb +1 -0
  207. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_recipient_information.rb +39 -5
  208. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +1 -0
  209. data/lib/cybersource_rest_client/utilities/capture_context/capture_context_parsing_utility.rb +113 -0
  210. data/lib/cybersource_rest_client/utilities/capture_context/public_key_fetcher.rb +131 -0
  211. data/lib/cybersource_rest_client.rb +80 -62
  212. metadata +85 -64
  213. data/lib/cybersource_rest_client/models/rbsv1plans_client_reference_information.rb +0 -239
  214. data/lib/cybersource_rest_client/models/rbsv1subscriptions_client_reference_information.rb +0 -256
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe3f28c5fdf62cf2f25f3d08ec5f095a4ddff9eb4ad4922f53a00381c1e11d89
4
- data.tar.gz: 2f1717601f59f514ef1f7fea0344230ad3ef3fc3e306106b9e65a7532704aaab
3
+ metadata.gz: 74de73ed4d3ea5cdc01fd04adad6790dd6f78c8e1c8735ac77ef876fda92b6b1
4
+ data.tar.gz: '09b961a66b260468680e254cd21dac203d5218663d008d556d338a5e6d02a044'
5
5
  SHA512:
6
- metadata.gz: 48fa274d2abfda3ebf62feed99aae4730161f45c8151ed2a75ced785df10ef94fa858fc62ac9b6fbf1c9c835b4ae279c7c984e699057296385e9802d3c3be092
7
- data.tar.gz: 4cc99dd67aee3c7b399a859d4dfe2dff136e102132ebc62a0bf62214db5058057a6353493032c8ff777b4687cacb6969b1e4427d012f35af316be3bc869be8de
6
+ metadata.gz: 28a45c4a395b75f6d76d5f498acbe50a3a7a7bbe80714286ac11514dfb7ae184126ba7deac4a8fc39d2e4a6d033401f318789f75f9dd69d98cbf8350d7346064
7
+ data.tar.gz: 16e5b2d1a241c7fb43dae529c5250a367d7ea591418ed812073d3a552bbe345d956521f39ff54e6e0aa9cdc67508ce7c03e29ffd15458f0eb6780d529f8ff575
@@ -409,4 +409,5 @@ public
409
409
  attr_accessor :mapToControlMLEonAPI
410
410
  attr_accessor :mleKeyAlias
411
411
  attr_accessor :p12KeyFilePath
412
+ attr_reader :runEnvironment
412
413
  end
@@ -150,4 +150,18 @@ public
150
150
  return @@cache_obj.read('privateKeyFromPEMFile')
151
151
  end
152
152
  end
153
+
154
+ def addPublicKeyToCache(runEnvironment, keyId, publicKey)
155
+ cacheKey = "#{Constants::PUBLIC_KEY_CACHE_IDENTIFIER}_#{runEnvironment}_#{keyId}"
156
+ @@mutex.synchronize do
157
+ @@cache_obj.write(cacheKey, publicKey)
158
+ end
159
+ end
160
+
161
+ def getPublicKeyFromCache(runEnvironment, keyId)
162
+ cacheKey = "#{Constants::PUBLIC_KEY_CACHE_IDENTIFIER}_#{runEnvironment}_#{keyId}"
163
+ @@mutex.synchronize do
164
+ return @@cache_obj.read(cacheKey)
165
+ end
166
+ end
153
167
  end
@@ -175,4 +175,6 @@
175
175
  MLE_CACHE_IDENTIFIER_FOR_P12_CERT = "mleCertFromP12"
176
176
 
177
177
  DEFAULT_KEY_FILE_PATH = File.join(Dir.pwd, "resources")
178
+
179
+ PUBLIC_KEY_CACHE_IDENTIFIER = "FlexV2PublicKeys"
178
180
  end
@@ -0,0 +1,81 @@
1
+ # frozen_string_literal: true
2
+
3
+ module CyberSource
4
+ module Authentication
5
+ module Util
6
+ module JWT
7
+ # Base JWT Exception Class
8
+ #
9
+ # Provides enhanced exception handling for JWT-related operations with
10
+ # error chaining and detailed stack trace information.
11
+ class JWTException < StandardError
12
+ # @param message [String] Error message describing the exception
13
+ # @param cause [Exception, nil] Optional underlying cause of the error
14
+ def initialize(message = '', cause = nil)
15
+ super(message)
16
+ set_backtrace(cause.backtrace) if cause&.backtrace
17
+ end
18
+
19
+ # @return [Boolean] True if a cause exception exists
20
+ def has_cause?
21
+ !cause.nil?
22
+ end
23
+
24
+ # @return [String] Exception string with cause information
25
+ def to_s
26
+ return super unless has_cause?
27
+
28
+ "#{super}\nCaused by: #{cause}"
29
+ end
30
+
31
+ # @return [Array<Exception>] Array of exceptions in the chain
32
+ def exception_chain
33
+ chain = [self]
34
+ current = cause
35
+
36
+ while current
37
+ chain << current
38
+ current = current.cause
39
+ end
40
+
41
+ chain
42
+ end
43
+
44
+ # @return [Exception] The root cause of the exception chain
45
+ def root_cause
46
+ exception_chain.last
47
+ end
48
+
49
+ # @return [Array<String>] Error messages from all exceptions in the chain
50
+ def cause_chain_messages
51
+ exception_chain.map(&:message)
52
+ end
53
+
54
+ # @param highlight [Boolean] Whether to highlight the message
55
+ # @param order [Symbol] :top or :bottom, determines message order
56
+ # @return [String] Detailed error message with all causes
57
+ def full_message(highlight: false, order: :top, **)
58
+ messages = exception_chain.each_with_index.map do |exception, index|
59
+ prefix = index.zero? ? '' : 'Caused by: '
60
+ "#{prefix}#{exception.class}: #{exception.message}"
61
+ end
62
+
63
+ order == :bottom ? messages.reverse.join("\n") : messages.join("\n")
64
+ end
65
+ end
66
+
67
+ # Thrown when a JSON Web Key (JWK) is invalid or malformed
68
+ class InvalidJwkException < JWTException
69
+ end
70
+
71
+ # Thrown when a JWT token is invalid, malformed, or cannot be processed
72
+ class InvalidJwtException < JWTException
73
+ end
74
+
75
+ # Thrown when JWT signature validation fails
76
+ class JwtSignatureValidationException < JWTException
77
+ end
78
+ end
79
+ end
80
+ end
81
+ end
@@ -0,0 +1,154 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'jwt'
4
+ require 'json'
5
+ require_relative 'JWTExceptions'
6
+
7
+ module CyberSource
8
+ module Authentication
9
+ module Util
10
+ module JWT
11
+ # JWT Utility Class
12
+ #
13
+ # Provides JWT parsing, verification, and JWK handling functionality.
14
+ #
15
+ # @category Class
16
+ # @package CyberSource::Authentication::Util::JWT
17
+ # @author CyberSource
18
+ class JWTUtility
19
+ # Supported JWT algorithms
20
+ SUPPORTED_ALGORITHMS = %w[RS256 RS384 RS512].freeze
21
+
22
+ class << self
23
+ # Parses a JWT token and extracts its header, payload, and signature components
24
+ #
25
+ # @param jwt_token [String] The JWT token to parse
26
+ #
27
+ # @return [Hash] Hash containing header, payload, signature, and raw parts
28
+ # @raise [InvalidJwtException] If the JWT token is invalid or malformed
29
+ def parse(jwt_token)
30
+ raise InvalidJwtException.new('JWT token is null or undefined') if jwt_token.to_s.empty?
31
+
32
+ token_parts = jwt_token.split('.')
33
+ if token_parts.length != 3
34
+ raise InvalidJwtException.new('Invalid JWT token format: expected 3 parts separated by dots')
35
+ end
36
+
37
+ if token_parts.any?(&:empty?)
38
+ raise InvalidJwtException.new('Malformed JWT : JWT provided does not conform to the proper structure for JWT')
39
+ end
40
+
41
+ begin
42
+ header = JSON.parse(::JWT::Base64.url_decode(token_parts[0]))
43
+ payload = JSON.parse(::JWT::Base64.url_decode(token_parts[1]))
44
+ signature = token_parts[2]
45
+
46
+ {
47
+ header: header,
48
+ payload: payload,
49
+ signature: signature,
50
+ raw_header: token_parts[0],
51
+ raw_payload: token_parts[1]
52
+ }
53
+ rescue StandardError => e
54
+ raise InvalidJwtException.new("Malformed JWT cannot be parsed: #{e.message}", e)
55
+ end
56
+ end
57
+
58
+ # Verifies a JWT token using an RSA public key
59
+ #
60
+ # @param jwt_token [String] The JWT token to verify
61
+ # @param public_key [String, Hash] The RSA public key (JWK Hash or JSON string)
62
+ #
63
+ # @return [void]
64
+ # @raise [InvalidJwtException] If JWT parsing fails
65
+ # @raise [JwtSignatureValidationException] If signature verification fails
66
+ # @raise [InvalidJwkException] If the public key is invalid
67
+ # @raise [JSON::ParserError] If JSON parsing fails
68
+ def verify_jwt(jwt_token, public_key)
69
+ raise JwtSignatureValidationException.new('No public key found') if public_key.to_s.empty?
70
+ raise JwtSignatureValidationException.new('JWT token is null or undefined') if jwt_token.to_s.empty?
71
+
72
+ parsed_token = parse(jwt_token)
73
+ header = parsed_token[:header]
74
+
75
+ if header['alg'].nil? || header['alg'].to_s.empty?
76
+ raise JwtSignatureValidationException.new('JWT header missing algorithm (alg) field')
77
+ end
78
+
79
+ algorithm = header['alg']
80
+ unless SUPPORTED_ALGORITHMS.include?(algorithm)
81
+ supported_algs = SUPPORTED_ALGORITHMS.join(', ')
82
+ raise JwtSignatureValidationException.new(
83
+ format('Unsupported JWT algorithm: %s. Supported algorithms: %s', algorithm, supported_algs)
84
+ )
85
+ end
86
+
87
+ jwk_key = validate_and_parse_jwk(public_key)
88
+ jwk_key['alg'] ||= algorithm
89
+
90
+ begin
91
+ rsa_key = jwk_to_rsa_key(jwk_key)
92
+ ::JWT.decode(jwt_token, rsa_key, true, { algorithm: algorithm })
93
+
94
+ rescue ::JWT::VerificationError => e
95
+ raise JwtSignatureValidationException.new('JWT signature verification failed', e)
96
+ rescue ::JWT::ExpiredSignature => e
97
+ raise JwtSignatureValidationException.new('JWT has expired (exp claim)', e)
98
+ rescue ::JWT::ImmatureSignature => e
99
+ raise JwtSignatureValidationException.new('JWT not yet valid (nbf claim)', e)
100
+ rescue ::JWT::DecodeError => e
101
+ raise JwtSignatureValidationException.new("JWT verification failed: #{e.message}", e)
102
+ rescue JwtSignatureValidationException, InvalidJwtException
103
+ raise
104
+ rescue StandardError => e
105
+ raise JwtSignatureValidationException.new("JWT verification failed: #{e.message}", e)
106
+ end
107
+ end
108
+
109
+ private
110
+
111
+ # Validates and parses a JWK (JSON Web Key)
112
+ #
113
+ # @param public_key [String, Hash] The public key to validate (JWK Hash or JSON string)
114
+ #
115
+ # @return [Hash] The parsed and validated JWK
116
+ # @raise [InvalidJwkException] If the JWK is invalid or not an RSA key
117
+ def validate_and_parse_jwk(public_key)
118
+ return public_key if public_key.is_a?(Hash) && public_key.key?('kty')
119
+
120
+ jwk_hash = if public_key.is_a?(String)
121
+ begin
122
+ JSON.parse(public_key)
123
+ rescue JSON::ParserError => e
124
+ raise InvalidJwkException.new('Invalid public key JSON format', e)
125
+ end
126
+ else
127
+ raise InvalidJwkException.new('Invalid public key format. Expected JWK object or JSON string.')
128
+ end
129
+
130
+ raise InvalidJwkException.new('Public key must be an RSA key (kty: RSA)') if jwk_hash['kty'] != 'RSA'
131
+ raise InvalidJwkException.new('Invalid RSA JWK: missing required parameters (n, e)') unless jwk_hash['n'] && jwk_hash['e']
132
+
133
+ jwk_hash
134
+ end
135
+
136
+ # Converts a JWK to an RSA key object
137
+ #
138
+ # @param jwk [Hash] The JWK to convert
139
+ #
140
+ # @return [OpenSSL::PKey::RSA] The RSA key object
141
+ # @raise [InvalidJwkException] If conversion fails
142
+ def jwk_to_rsa_key(jwk)
143
+ # Use jwt gem's JWK support for OpenSSL 3.0+ compatibility
144
+ # This handles both OpenSSL 1.x and 3.0+ internally
145
+ ::JWT::JWK.import(jwk).keypair
146
+ rescue StandardError => e
147
+ raise InvalidJwkException.new("Failed to convert JWK to RSA key: #{e.message}", e)
148
+ end
149
+ end
150
+ end
151
+ end
152
+ end
153
+ end
154
+ end
@@ -24,7 +24,7 @@ module CyberSource
24
24
  #
25
25
  # @param account_validations_request
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse20013]
27
+ # @return [InlineResponse20014]
28
28
  #
29
29
  # DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
30
30
  def bank_account_validation_request(account_validations_request, opts = {})
@@ -36,7 +36,7 @@ module CyberSource
36
36
  # The Visa Bank Account Validation Service is a new standalone product designed to validate customer&#39;s routing and bank account number combination for ACH transactions. Merchant&#39;s can use this standalone product to validate their customer&#39;s account prior to processing an ACH transaction against the customer&#39;s account to comply with Nacha&#39;s account validation mandate for Web-debit transactions.
37
37
  # @param account_validations_request
38
38
  # @param [Hash] opts the optional parameters
39
- # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
39
+ # @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
40
40
  def bank_account_validation_request_with_http_info(account_validations_request, opts = {})
41
41
 
42
42
  if @api_client.config.debugging
@@ -73,7 +73,11 @@ module CyberSource
73
73
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AccountValidationsRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
74
74
  inbound_mle_status = "mandatory"
75
75
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["bank_account_validation_request","bank_account_validation_request_with_http_info"])
76
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
+ begin
77
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
78
+ rescue
79
+ raise
80
+ end
77
81
  end
78
82
  auth_names = []
79
83
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -82,7 +86,7 @@ module CyberSource
82
86
  :form_params => form_params,
83
87
  :body => post_body,
84
88
  :auth_names => auth_names,
85
- :return_type => 'InlineResponse20013')
89
+ :return_type => 'InlineResponse20014')
86
90
  if @api_client.config.debugging
87
91
  begin
88
92
  raise
@@ -24,7 +24,7 @@ module CyberSource
24
24
  #
25
25
  # @param batch_id Unique identification number assigned to the submitted request.
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse20012]
27
+ # @return [InlineResponse20013]
28
28
  #
29
29
  def get_batch_report(batch_id, opts = {})
30
30
  data, status_code, headers = get_batch_report_with_http_info(batch_id, opts)
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # **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.
36
36
  # @param batch_id Unique identification number assigned to the submitted request.
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
38
+ # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
39
39
  def get_batch_report_with_http_info(batch_id, opts = {})
40
40
 
41
41
  if @api_client.config.debugging
@@ -78,7 +78,11 @@ module CyberSource
78
78
  end
79
79
  inbound_mle_status = "false"
80
80
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batch_report","get_batch_report_with_http_info"])
81
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
81
+ begin
82
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
83
+ rescue
84
+ raise
85
+ end
82
86
  end
83
87
  auth_names = []
84
88
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -87,7 +91,7 @@ module CyberSource
87
91
  :form_params => form_params,
88
92
  :body => post_body,
89
93
  :auth_names => auth_names,
90
- :return_type => 'InlineResponse20012')
94
+ :return_type => 'InlineResponse20013')
91
95
  if @api_client.config.debugging
92
96
  begin
93
97
  raise
@@ -103,7 +107,7 @@ module CyberSource
103
107
  #
104
108
  # @param batch_id Unique identification number assigned to the submitted request.
105
109
  # @param [Hash] opts the optional parameters
106
- # @return [InlineResponse20011]
110
+ # @return [InlineResponse20012]
107
111
  #
108
112
  def get_batch_status(batch_id, opts = {})
109
113
  data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
@@ -114,7 +118,7 @@ module CyberSource
114
118
  # **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)
115
119
  # @param batch_id Unique identification number assigned to the submitted request.
116
120
  # @param [Hash] opts the optional parameters
117
- # @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
121
+ # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
118
122
  def get_batch_status_with_http_info(batch_id, opts = {})
119
123
 
120
124
  if @api_client.config.debugging
@@ -157,7 +161,11 @@ module CyberSource
157
161
  end
158
162
  inbound_mle_status = "false"
159
163
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batch_status","get_batch_status_with_http_info"])
160
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
164
+ begin
165
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
166
+ rescue
167
+ raise
168
+ end
161
169
  end
162
170
  auth_names = []
163
171
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -166,7 +174,7 @@ module CyberSource
166
174
  :form_params => form_params,
167
175
  :body => post_body,
168
176
  :auth_names => auth_names,
169
- :return_type => 'InlineResponse20011')
177
+ :return_type => 'InlineResponse20012')
170
178
  if @api_client.config.debugging
171
179
  begin
172
180
  raise
@@ -185,7 +193,7 @@ module CyberSource
185
193
  # @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)
186
194
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
187
195
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
188
- # @return [InlineResponse20010]
196
+ # @return [InlineResponse20011]
189
197
  #
190
198
  def get_batches_list(opts = {})
191
199
  data, status_code, headers = get_batches_list_with_http_info(opts)
@@ -199,7 +207,7 @@ module CyberSource
199
207
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
200
208
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
201
209
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
202
- # @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
210
+ # @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
203
211
  def get_batches_list_with_http_info(opts = {})
204
212
 
205
213
  if @api_client.config.debugging
@@ -238,7 +246,11 @@ module CyberSource
238
246
  end
239
247
  inbound_mle_status = "false"
240
248
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_batches_list","get_batches_list_with_http_info"])
241
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
249
+ begin
250
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
251
+ rescue
252
+ raise
253
+ end
242
254
  end
243
255
  auth_names = []
244
256
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -247,7 +259,7 @@ module CyberSource
247
259
  :form_params => form_params,
248
260
  :body => post_body,
249
261
  :auth_names => auth_names,
250
- :return_type => 'InlineResponse20010')
262
+ :return_type => 'InlineResponse20011')
251
263
  if @api_client.config.debugging
252
264
  begin
253
265
  raise
@@ -311,7 +323,11 @@ module CyberSource
311
323
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Body', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
312
324
  inbound_mle_status = "false"
313
325
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["post_batch","post_batch_with_http_info"])
314
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
326
+ begin
327
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
328
+ rescue
329
+ raise
330
+ end
315
331
  end
316
332
  auth_names = []
317
333
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -78,7 +78,11 @@ module CyberSource
78
78
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ModifyBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
79
79
  inbound_mle_status = "optional"
80
80
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_de_registration","billing_agreements_de_registration_with_http_info"])
81
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
81
+ begin
82
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
83
+ rescue
84
+ raise
85
+ end
82
86
  end
83
87
  auth_names = []
84
88
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
@@ -157,7 +161,11 @@ module CyberSource
157
161
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'IntimateBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
158
162
  inbound_mle_status = "optional"
159
163
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_intimation","billing_agreements_intimation_with_http_info"])
160
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
164
+ begin
165
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
166
+ rescue
167
+ raise
168
+ end
161
169
  end
162
170
  auth_names = []
163
171
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -230,7 +238,11 @@ module CyberSource
230
238
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBillingAgreement', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
231
239
  inbound_mle_status = "optional"
232
240
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["billing_agreements_registration","billing_agreements_registration_with_http_info"])
233
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
241
+ begin
242
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
243
+ rescue
244
+ raise
245
+ end
234
246
  end
235
247
  auth_names = []
236
248
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -73,7 +73,11 @@ module CyberSource
73
73
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateBinLookupRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
74
74
  inbound_mle_status = "false"
75
75
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_account_info","get_account_info_with_http_info"])
76
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
76
+ begin
77
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
78
+ rescue
79
+ raise
80
+ end
77
81
  end
78
82
  auth_names = []
79
83
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -78,7 +78,11 @@ module CyberSource
78
78
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CapturePaymentRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
79
79
  inbound_mle_status = "optional"
80
80
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["capture_payment","capture_payment_with_http_info"])
81
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
81
+ begin
82
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
83
+ rescue
84
+ raise
85
+ end
82
86
  end
83
87
  auth_names = []
84
88
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -89,7 +89,11 @@ module CyberSource
89
89
  end
90
90
  inbound_mle_status = "false"
91
91
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_chargeback_details","get_chargeback_details_with_http_info"])
92
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
92
+ begin
93
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
94
+ rescue
95
+ raise
96
+ end
93
97
  end
94
98
  auth_names = []
95
99
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -89,7 +89,11 @@ module CyberSource
89
89
  end
90
90
  inbound_mle_status = "false"
91
91
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_chargeback_summaries","get_chargeback_summaries_with_http_info"])
92
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
92
+ begin
93
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
94
+ rescue
95
+ raise
96
+ end
93
97
  end
94
98
  auth_names = []
95
99
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -89,7 +89,11 @@ module CyberSource
89
89
  end
90
90
  inbound_mle_status = "false"
91
91
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_conversion_detail","get_conversion_detail_with_http_info"])
92
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
92
+ begin
93
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
94
+ rescue
95
+ raise
96
+ end
93
97
  end
94
98
  auth_names = []
95
99
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -24,7 +24,7 @@ module CyberSource
24
24
  #
25
25
  # @param organization_id The Organization Identifier.
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [Array<InlineResponse2004>]
27
+ # @return [Array<InlineResponse2005>]
28
28
  #
29
29
  def find_products_to_subscribe(organization_id, opts = {})
30
30
  data, status_code, headers = find_products_to_subscribe_with_http_info(organization_id, opts)
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
36
36
  # @param organization_id The Organization Identifier.
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(Array<InlineResponse2004>, Fixnum, Hash)>] Array<InlineResponse2004> data, response status code and response headers
38
+ # @return [Array<(Array<InlineResponse2005>, Fixnum, Hash)>] Array<InlineResponse2005> data, response status code and response headers
39
39
  def find_products_to_subscribe_with_http_info(organization_id, opts = {})
40
40
 
41
41
  if @api_client.config.debugging
@@ -74,7 +74,11 @@ module CyberSource
74
74
  end
75
75
  inbound_mle_status = "false"
76
76
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["find_products_to_subscribe","find_products_to_subscribe_with_http_info"])
77
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ begin
78
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
79
+ rescue
80
+ raise
81
+ end
78
82
  end
79
83
  auth_names = []
80
84
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
@@ -83,7 +87,7 @@ module CyberSource
83
87
  :form_params => form_params,
84
88
  :body => post_body,
85
89
  :auth_names => auth_names,
86
- :return_type => 'Array<InlineResponse2004>')
90
+ :return_type => 'Array<InlineResponse2005>')
87
91
  if @api_client.config.debugging
88
92
  begin
89
93
  raise
@@ -143,7 +147,11 @@ module CyberSource
143
147
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateWebhook', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
144
148
  inbound_mle_status = "false"
145
149
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["notification_subscriptions_v2_webhooks_post","notification_subscriptions_v2_webhooks_post_with_http_info"])
146
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
150
+ begin
151
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
152
+ rescue
153
+ raise
154
+ end
147
155
  end
148
156
  auth_names = []
149
157
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -237,7 +245,11 @@ module CyberSource
237
245
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'SaveSymEgressKey', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
238
246
  inbound_mle_status = "false"
239
247
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["save_sym_egress_key","save_sym_egress_key_with_http_info"])
240
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
248
+ begin
249
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
250
+ rescue
251
+ raise
252
+ end
241
253
  end
242
254
  auth_names = []
243
255
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
@@ -72,7 +72,11 @@ module CyberSource
72
72
  post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'CreateCreditRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
73
73
  inbound_mle_status = "optional"
74
74
  if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_credit","create_credit_with_http_info"])
75
- post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
75
+ begin
76
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
77
+ rescue
78
+ raise
79
+ end
76
80
  end
77
81
  auth_names = []
78
82
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,