cybersource_rest_client 0.0.81 → 0.0.83

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 (323) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +79 -42
  3. data/lib/AuthenticationSDK/core/MerchantConfig.rb +9 -2
  4. data/lib/AuthenticationSDK/logging/log_configuration.rb +2 -1
  5. data/lib/AuthenticationSDK/util/AuthJWEUtility.rb +1 -0
  6. data/lib/AuthenticationSDK/util/Constants.rb +2 -0
  7. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +3 -3
  8. data/lib/cybersource_rest_client/api/batches_api.rb +9 -9
  9. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  10. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +9 -9
  11. data/lib/cybersource_rest_client/api/decision_manager_api.rb +6 -6
  12. data/lib/cybersource_rest_client/api/device_de_association_api.rb +3 -3
  13. data/lib/cybersource_rest_client/api/device_search_api.rb +6 -6
  14. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +12 -0
  15. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +15 -15
  16. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +6 -6
  17. data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +9 -9
  18. data/lib/cybersource_rest_client/api/offers_api.rb +9 -8
  19. data/lib/cybersource_rest_client/api/pull_funds_api.rb +404 -0
  20. data/lib/cybersource_rest_client/api/subscriptions_api.rb +3 -0
  21. data/lib/cybersource_rest_client/api/token_api.rb +98 -8
  22. data/lib/cybersource_rest_client/api/tokenized_card_api.rb +16 -16
  23. data/lib/cybersource_rest_client/api/{transient_token_data_api.rb → transient_token_data_v2_api.rb} +91 -9
  24. data/lib/cybersource_rest_client/api/unified_checkout_v1_capture_context_api.rb +104 -0
  25. data/lib/cybersource_rest_client/models/add_negative_list_request.rb +1 -1
  26. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information.rb +15 -5
  27. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_msd.rb +196 -0
  28. data/lib/cybersource_rest_client/models/card_processing_config_common.rb +11 -1
  29. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement.rb +190 -0
  30. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code.rb +355 -0
  31. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirer_agreement_acquirer_code_payment_options.rb +192 -0
  32. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
  33. data/lib/cybersource_rest_client/models/create_subscription_request.rb +1 -1
  34. data/lib/cybersource_rest_client/models/create_subscription_request_1.rb +1 -1
  35. data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +1 -1
  36. data/lib/cybersource_rest_client/models/generate_unified_checkout_v1_capture_context_request.rb +334 -0
  37. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information.rb +1 -1
  38. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details.rb +240 -0
  39. data/lib/cybersource_rest_client/models/get_all_subscriptions_response_order_information_amount_details_surcharge.rb +196 -0
  40. data/lib/cybersource_rest_client/models/inline_response_200_1.rb +15 -42
  41. data/lib/cybersource_rest_client/models/inline_response_200_10.rb +10 -55
  42. data/lib/cybersource_rest_client/models/inline_response_200_11.rb +33 -37
  43. data/lib/cybersource_rest_client/models/{inline_response_200_10_devices.rb → inline_response_200_11_devices.rb} +2 -2
  44. data/lib/cybersource_rest_client/models/{inline_response_200_10_payment_processor_to_terminal_map.rb → inline_response_200_11_payment_processor_to_terminal_map.rb} +1 -1
  45. data/lib/cybersource_rest_client/models/inline_response_200_12.rb +47 -86
  46. data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded.rb → inline_response_200_12__embedded.rb} +2 -2
  47. data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded__links.rb → inline_response_200_12__embedded__links.rb} +2 -2
  48. data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded__links_reports.rb → inline_response_200_12__embedded__links_reports.rb} +1 -1
  49. data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded_batches.rb → inline_response_200_12__embedded_batches.rb} +3 -3
  50. data/lib/cybersource_rest_client/models/{inline_response_200_11__embedded_totals.rb → inline_response_200_12__embedded_totals.rb} +1 -1
  51. data/lib/cybersource_rest_client/models/inline_response_200_12__links.rb +16 -17
  52. data/lib/cybersource_rest_client/models/inline_response_200_13.rb +47 -49
  53. data/lib/cybersource_rest_client/models/inline_response_200_13__links.rb +201 -0
  54. data/lib/cybersource_rest_client/models/{inline_response_200_12__links_report.rb → inline_response_200_13__links_report.rb} +1 -1
  55. data/lib/cybersource_rest_client/models/{inline_response_200_12_billing.rb → inline_response_200_13_billing.rb} +1 -1
  56. data/lib/cybersource_rest_client/models/inline_response_200_14.rb +102 -31
  57. data/lib/cybersource_rest_client/models/{inline_response_200_13_records.rb → inline_response_200_14_records.rb} +3 -3
  58. data/lib/cybersource_rest_client/models/{inline_response_200_13_response_record.rb → inline_response_200_14_response_record.rb} +2 -2
  59. data/lib/cybersource_rest_client/models/{inline_response_200_13_response_record_additional_updates.rb → inline_response_200_14_response_record_additional_updates.rb} +1 -1
  60. data/lib/cybersource_rest_client/models/{inline_response_200_13_source_record.rb → inline_response_200_14_source_record.rb} +1 -1
  61. data/lib/cybersource_rest_client/models/inline_response_200_15.rb +18 -84
  62. data/lib/cybersource_rest_client/models/inline_response_200_16.rb +287 -0
  63. data/lib/cybersource_rest_client/models/{inline_response_200_15_client_reference_information.rb → inline_response_200_16_client_reference_information.rb} +1 -1
  64. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card__links.rb → inline_response_200_1__links.rb} +2 -2
  65. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card__links_self.rb → inline_response_200_1__links_self.rb} +1 -2
  66. data/lib/cybersource_rest_client/models/inline_response_200_2.rb +29 -31
  67. data/lib/cybersource_rest_client/models/{inline_response_200_1_content.rb → inline_response_200_2_content.rb} +1 -1
  68. data/lib/cybersource_rest_client/models/inline_response_200_3.rb +32 -103
  69. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded.rb → inline_response_200_3__embedded.rb} +3 -3
  70. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_capture.rb → inline_response_200_3__embedded_capture.rb} +2 -2
  71. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_capture__links.rb → inline_response_200_3__embedded_capture__links.rb} +2 -2
  72. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_capture__links_self.rb → inline_response_200_3__embedded_capture__links_self.rb} +1 -1
  73. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_reversal.rb → inline_response_200_3__embedded_reversal.rb} +2 -2
  74. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_reversal__links.rb → inline_response_200_3__embedded_reversal__links.rb} +2 -2
  75. data/lib/cybersource_rest_client/models/{inline_response_200_2__embedded_reversal__links_self.rb → inline_response_200_3__embedded_reversal__links_self.rb} +1 -1
  76. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +100 -54
  77. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +65 -25
  78. data/lib/cybersource_rest_client/models/{inline_response_200_4_integration_information.rb → inline_response_200_5_integration_information.rb} +16 -6
  79. data/lib/cybersource_rest_client/models/{inline_response_200_4_integration_information_tenant_configurations.rb → inline_response_200_5_integration_information_tenant_configurations.rb} +1 -1
  80. data/lib/cybersource_rest_client/models/inline_response_200_6.rb +25 -126
  81. data/lib/cybersource_rest_client/models/inline_response_200_7.rb +1 -12
  82. data/lib/cybersource_rest_client/models/inline_response_200_8.rb +129 -51
  83. data/lib/cybersource_rest_client/models/inline_response_200_9.rb +55 -10
  84. data/lib/cybersource_rest_client/models/{inline_response_200_8_devices.rb → inline_response_200_9_devices.rb} +1 -1
  85. data/lib/cybersource_rest_client/models/inline_response_201_1.rb +22 -31
  86. data/lib/cybersource_rest_client/models/inline_response_201_1__links.rb +219 -0
  87. data/lib/cybersource_rest_client/models/{inline_response_200_11__links.rb → inline_response_201_1__links_customer.rb} +3 -13
  88. data/lib/cybersource_rest_client/models/inline_response_201_1__links_instrument_identifier.rb +190 -0
  89. data/lib/cybersource_rest_client/models/inline_response_201_1__links_payment_instruments.rb +190 -0
  90. data/lib/cybersource_rest_client/models/inline_response_201_1__links_tokenized_card.rb +190 -0
  91. data/lib/cybersource_rest_client/models/inline_response_201_1_card.rb +241 -0
  92. data/lib/cybersource_rest_client/models/{tokenizedcard_request.rb → inline_response_201_1_tokenized_card.rb} +39 -108
  93. data/lib/cybersource_rest_client/models/inline_response_201_2.rb +7 -37
  94. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +26 -59
  95. data/lib/cybersource_rest_client/models/{inline_response_201_2_payout_information.rb → inline_response_201_3_payout_information.rb} +3 -3
  96. data/lib/cybersource_rest_client/models/{inline_response_201_2_payout_information_pull_funds.rb → inline_response_201_3_payout_information_pull_funds.rb} +1 -1
  97. data/lib/cybersource_rest_client/models/{inline_response_201_2_payout_information_push_funds.rb → inline_response_201_3_payout_information_push_funds.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +78 -19
  99. data/lib/cybersource_rest_client/models/{inline_response_201_3_integration_information.rb → inline_response_201_4_integration_information.rb} +2 -2
  100. data/lib/cybersource_rest_client/models/{inline_response_201_3_integration_information_tenant_configurations.rb → inline_response_201_4_integration_information_tenant_configurations.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/{inline_response_201_3_organization_information.rb → inline_response_201_4_organization_information.rb} +1 -1
  102. data/lib/cybersource_rest_client/models/{inline_response_201_3_product_information_setups.rb → inline_response_201_4_product_information_setups.rb} +2 -2
  103. data/lib/cybersource_rest_client/models/{inline_response_201_3_registration_information.rb → inline_response_201_4_registration_information.rb} +1 -1
  104. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups.rb → inline_response_201_4_setups.rb} +5 -5
  105. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_commerce_solutions.rb → inline_response_201_4_setups_commerce_solutions.rb} +4 -4
  106. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments.rb → inline_response_201_4_setups_payments.rb} +21 -21
  107. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_alternative_payment_methods.rb → inline_response_201_4_setups_payments_alternative_payment_methods.rb} +3 -3
  108. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_alternative_payment_methods_configuration_status.rb → inline_response_201_4_setups_payments_alternative_payment_methods_configuration_status.rb} +1 -1
  109. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_card_processing.rb → inline_response_201_4_setups_payments_card_processing.rb} +3 -3
  110. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_card_processing_configuration_status.rb → inline_response_201_4_setups_payments_card_processing_configuration_status.rb} +1 -1
  111. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_card_processing_subscription_status.rb → inline_response_201_4_setups_payments_card_processing_subscription_status.rb} +1 -1
  112. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_payments_digital_payments.rb → inline_response_201_4_setups_payments_digital_payments.rb} +2 -2
  113. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_risk.rb → inline_response_201_4_setups_risk.rb} +3 -3
  114. data/lib/cybersource_rest_client/models/{inline_response_201_3_setups_value_added_services.rb → inline_response_201_4_setups_value_added_services.rb} +4 -4
  115. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +25 -117
  116. data/lib/cybersource_rest_client/models/{inline_response_201_4_key_information.rb → inline_response_201_5_key_information.rb} +2 -2
  117. data/lib/cybersource_rest_client/models/{inline_response_201_4_key_information_error_information.rb → inline_response_201_5_key_information_error_information.rb} +2 -2
  118. data/lib/cybersource_rest_client/models/{inline_response_201_4_key_information_error_information_details.rb → inline_response_201_5_key_information_error_information_details.rb} +1 -1
  119. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +105 -68
  120. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +93 -18
  121. data/lib/cybersource_rest_client/models/{inline_response_201_6_payloads.rb → inline_response_201_7_payloads.rb} +2 -2
  122. data/lib/cybersource_rest_client/models/{inline_response_201_6_payloads_test_payload.rb → inline_response_201_7_payloads_test_payload.rb} +1 -1
  123. data/lib/cybersource_rest_client/models/inline_response_201_8.rb +8 -103
  124. data/lib/cybersource_rest_client/models/inline_response_201_9.rb +297 -0
  125. data/lib/cybersource_rest_client/models/{inline_response_201_8_client_reference_information.rb → inline_response_201_9_client_reference_information.rb} +1 -1
  126. data/lib/cybersource_rest_client/models/{inline_response_201_8_error_information.rb → inline_response_201_9_error_information.rb} +1 -1
  127. data/lib/cybersource_rest_client/models/{inline_response_201_8_order_information.rb → inline_response_201_9_order_information.rb} +2 -2
  128. data/lib/cybersource_rest_client/models/{inline_response_201_8_order_information_currency_conversion.rb → inline_response_201_9_order_information_currency_conversion.rb} +2 -2
  129. data/lib/cybersource_rest_client/models/{inline_response_201_8_order_information_currency_conversion_offer.rb → inline_response_201_9_order_information_currency_conversion_offer.rb} +1 -1
  130. data/lib/cybersource_rest_client/models/{inline_response_201_8_processor_information.rb → inline_response_201_9_processor_information.rb} +1 -1
  131. data/lib/cybersource_rest_client/models/inline_response_404.rb +10 -20
  132. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +7 -42
  133. data/lib/cybersource_rest_client/models/inline_response_404_2.rb +8 -7
  134. data/lib/cybersource_rest_client/models/{inline_response_404_1_details.rb → inline_response_404_2_details.rb} +1 -1
  135. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +26 -2
  136. data/lib/cybersource_rest_client/models/inline_response_404_4.rb +17 -29
  137. data/lib/cybersource_rest_client/models/{inline_response_404_3_details.rb → inline_response_404_4_details.rb} +1 -1
  138. data/lib/cybersource_rest_client/models/inline_response_404_5.rb +28 -28
  139. data/lib/cybersource_rest_client/models/inline_response_404_6.rb +223 -0
  140. data/lib/cybersource_rest_client/models/inline_response_404_errors.rb +201 -0
  141. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +15 -5
  142. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information_custom_redirect_urls.rb +231 -0
  143. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +15 -5
  144. data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +1 -1
  145. data/lib/cybersource_rest_client/models/payments_products_payouts_configuration_information_configurations_common.rb +18 -1
  146. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_info_features_portfolio_accessof_sensi_data.rb +190 -0
  147. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features.rb +205 -5
  148. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_after_pay.rb +190 -0
  149. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_apple_pay.rb +190 -0
  150. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_bancontact.rb +190 -0
  151. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_click_to_pay.rb +190 -0
  152. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_decision_manager.rb +190 -0
  153. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_dragon_pay.rb +190 -0
  154. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_e_check.rb +190 -0
  155. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_google_pay.rb +190 -0
  156. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_ideal.rb +190 -0
  157. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_konbini.rb +190 -0
  158. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_multibanco.rb +190 -0
  159. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_my_bank.rb +190 -0
  160. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_p24.rb +190 -0
  161. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_pay_pal.rb +190 -0
  162. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_payer_authentication.rb +190 -0
  163. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_tink_pay_by_bank.rb +190 -0
  164. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_token_management.rb +190 -0
  165. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_unified_click_to_pay_sdk.rb +190 -0
  166. data/lib/cybersource_rest_client/models/payments_products_unified_checkout_subscription_information_features_venmo.rb +190 -0
  167. data/lib/cybersource_rest_client/models/post_payment_credentials_request.rb +4 -4
  168. data/lib/cybersource_rest_client/models/post_payment_credentials_request_1.rb +269 -0
  169. data/lib/cybersource_rest_client/models/post_tokenized_card_request.rb +254 -0
  170. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +15 -5
  171. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +1 -1
  172. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processor_information.rb +1 -1
  173. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +11 -1
  174. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_clearing_information.rb +315 -0
  175. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_error_information.rb +1 -1
  176. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_merchant_information.rb +18 -1
  177. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +18 -1
  178. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +18 -1
  179. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +15 -5
  180. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_error_information.rb +213 -0
  181. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_aggregator_information.rb +317 -0
  182. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_aggregator_information_sub_merchant.rb +196 -0
  183. data/lib/cybersource_rest_client/models/{riskv1authenticationsetups_client_reference_information.rb → ptsv1pullfundstransfer_client_reference_information.rb} +39 -32
  184. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_merchant_information.rb +189 -0
  185. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_merchant_information_merchant_descriptor.rb +349 -0
  186. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information.rb +206 -0
  187. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_order_information_amount_details.rb +275 -0
  188. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_info_funding_options_initiator_origin_ini_transaction.rb +222 -0
  189. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information.rb +295 -0
  190. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_funding_options.rb +189 -0
  191. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_funding_options_initiator.rb +228 -0
  192. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_payouts_options.rb +196 -0
  193. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_processing_information_recurring_options.rb +190 -0
  194. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_recipient_information.rb +607 -0
  195. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_recipient_information_personal_identification.rb +265 -0
  196. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information.rb +595 -0
  197. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_account.rb +213 -0
  198. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_consumer_authentication.rb +206 -0
  199. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_consumer_authentication_strong_authentication.rb +264 -0
  200. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information.rb +255 -0
  201. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_card.rb +291 -0
  202. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_customer.rb +196 -0
  203. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_instrument_identifier.rb +196 -0
  204. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_payment_instrument.rb +196 -0
  205. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_payment_information_tokenized_card.rb +281 -0
  206. data/lib/cybersource_rest_client/models/ptsv1pullfundstransfer_sender_information_personal_identification.rb +274 -0
  207. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidrefund_order_information.rb +194 -0
  208. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidrefund_order_information_amount_details.rb +205 -0
  209. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidreversal_reversal_information.rb +194 -0
  210. data/lib/cybersource_rest_client/models/ptsv1pullfundstransferidreversal_reversal_information_amount_details.rb +205 -0
  211. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information.rb +15 -14
  212. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_merchant_information_merchant_descriptor.rb +298 -0
  213. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information.rb +219 -0
  214. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_card.rb +264 -0
  215. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_customer.rb +196 -0
  216. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_instrument_identifier.rb +196 -0
  217. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_payment_information_payment_instrument.rb +196 -0
  218. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +22 -5
  219. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information_payouts_options.rb +1 -1
  220. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_recipient_information_payment_information_card.rb +1 -19
  221. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +35 -5
  222. data/lib/cybersource_rest_client/models/ptsv2credits_sender_information.rb +18 -1
  223. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +18 -1
  224. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +22 -5
  225. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information_payouts_options.rb +1 -1
  226. data/lib/cybersource_rest_client/models/pull_funds201_response.rb +270 -0
  227. data/lib/cybersource_rest_client/models/pull_funds201_response__links.rb +239 -0
  228. data/lib/cybersource_rest_client/models/pull_funds201_response__links_customer.rb +202 -0
  229. data/lib/cybersource_rest_client/models/pull_funds201_response__links_instrument_identifier.rb +202 -0
  230. data/lib/cybersource_rest_client/models/pull_funds201_response__links_payment_instrument.rb +202 -0
  231. data/lib/cybersource_rest_client/models/pull_funds201_response__links_refund.rb +202 -0
  232. data/lib/cybersource_rest_client/models/pull_funds201_response__links_reversal.rb +202 -0
  233. data/lib/cybersource_rest_client/models/pull_funds201_response__links_self.rb +202 -0
  234. data/lib/cybersource_rest_client/models/pull_funds201_response_error_information.rb +225 -0
  235. data/lib/cybersource_rest_client/models/pull_funds201_response_error_information_details.rb +213 -0
  236. data/lib/cybersource_rest_client/models/pull_funds201_response_order_information.rb +189 -0
  237. data/lib/cybersource_rest_client/models/pull_funds201_response_order_information_amount_details.rb +222 -0
  238. data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information.rb +301 -0
  239. data/lib/cybersource_rest_client/models/{kmsegressv2keysasym_client_reference_information.rb → pull_funds201_response_processor_information_avs.rb} +2 -3
  240. data/lib/cybersource_rest_client/models/pull_funds201_response_processor_information_consumer_authentication_response.rb +196 -0
  241. data/lib/cybersource_rest_client/models/pull_funds_refund201_response.rb +260 -0
  242. data/lib/cybersource_rest_client/models/pull_funds_refund201_response__links.rb +189 -0
  243. data/lib/cybersource_rest_client/models/pull_funds_refund201_response__links_self.rb +202 -0
  244. data/lib/cybersource_rest_client/models/pull_funds_refund201_response_processor_information.rb +213 -0
  245. data/lib/cybersource_rest_client/models/pull_funds_refund_request.rb +204 -0
  246. data/lib/cybersource_rest_client/models/pull_funds_request.rb +249 -0
  247. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response.rb +260 -0
  248. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response__links.rb +189 -0
  249. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response__links_self.rb +202 -0
  250. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_error_information.rb +219 -0
  251. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_error_information_details.rb +207 -0
  252. data/lib/cybersource_rest_client/models/pull_funds_reversal201_response_processor_information.rb +247 -0
  253. data/lib/cybersource_rest_client/models/pull_funds_reversal400_response.rb +258 -0
  254. data/lib/cybersource_rest_client/models/pull_funds_reversal_request.rb +204 -0
  255. data/lib/cybersource_rest_client/models/push_funds201_response_error_information.rb +1 -1
  256. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information.rb +15 -5
  257. data/lib/cybersource_rest_client/models/push_funds201_response_processor_information_merchant_advice.rb +213 -0
  258. data/lib/cybersource_rest_client/models/push_funds_request.rb +11 -1
  259. data/lib/cybersource_rest_client/models/rbsv1subscriptions_order_information.rb +189 -0
  260. data/lib/cybersource_rest_client/models/rbsv1subscriptionsid_order_information_amount_details.rb +15 -5
  261. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +1 -10
  262. data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +0 -9
  263. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +1 -1
  264. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +1 -1
  265. data/lib/cybersource_rest_client/models/save_asym_egress_key.rb +1 -1
  266. data/lib/cybersource_rest_client/models/tms_bin_lookup_payment_account_information_features.rb +50 -6
  267. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier__links.rb +15 -5
  268. data/lib/cybersource_rest_client/models/tms_embedded_instrument_identifier__links_tokenizedcards.rb +190 -0
  269. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card.rb +34 -93
  270. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_card.rb +1 -2
  271. data/lib/cybersource_rest_client/models/tmsv2_tokenized_card_metadata.rb +0 -1
  272. data/lib/cybersource_rest_client/models/tmsv2tokenize_processing_information.rb +1 -1
  273. data/lib/cybersource_rest_client/models/{riskv1liststypeentries_client_reference_information.rb → tmsv2tokenizedcards_card.rb} +48 -39
  274. data/lib/cybersource_rest_client/models/{tmsv2_tokenized_card_passcode.rb → tmsv2tokenizedcards_passcode.rb} +1 -1
  275. data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_authenticated_identities.rb → tmsv3tokenstoken_idpaymentcredentials_authenticated_identities.rb} +1 -1
  276. data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_device_information.rb → tmsv3tokenstoken_idpaymentcredentials_device_information.rb} +1 -1
  277. data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_merchant_information.rb → tmsv3tokenstoken_idpaymentcredentials_merchant_information.rb} +2 -2
  278. data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_merchant_information_merchant_descriptor.rb → tmsv3tokenstoken_idpaymentcredentials_merchant_information_merchant_descriptor.rb} +1 -1
  279. data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_order_information.rb → tmsv3tokenstoken_idpaymentcredentials_order_information.rb} +3 -3
  280. data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_order_information_amount_details.rb → tmsv3tokenstoken_idpaymentcredentials_order_information_amount_details.rb} +1 -1
  281. data/lib/cybersource_rest_client/models/{tmsv2tokenstoken_idpaymentcredentials_order_information_bill_to.rb → tmsv3tokenstoken_idpaymentcredentials_order_information_bill_to.rb} +1 -1
  282. data/lib/cybersource_rest_client/models/ucv1sessions_appearance.rb +207 -0
  283. data/lib/cybersource_rest_client/models/ucv1sessions_appearance_variables.rb +1645 -0
  284. data/lib/cybersource_rest_client/models/ucv1sessions_capture_mandate.rb +296 -0
  285. data/lib/cybersource_rest_client/models/ucv1sessions_capture_mandate_cpf.rb +190 -0
  286. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +229 -0
  287. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate_tms.rb +204 -0
  288. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +281 -0
  289. data/lib/cybersource_rest_client/models/ucv1sessions_data_buyer_information.rb +259 -0
  290. data/lib/cybersource_rest_client/models/ucv1sessions_data_buyer_information_personal_identification.rb +224 -0
  291. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +230 -0
  292. data/lib/cybersource_rest_client/models/ucv1sessions_data_device_information.rb +196 -0
  293. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_defined_information.rb +214 -0
  294. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +189 -0
  295. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information_merchant_descriptor.rb +315 -0
  296. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information.rb +231 -0
  297. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details.rb +279 -0
  298. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_amount_details_tax_details.rb +213 -0
  299. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_bill_to.rb +483 -0
  300. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_bill_to_company.rb +298 -0
  301. data/lib/cybersource_rest_client/models/ucv1sessions_data_payment_information.rb +189 -0
  302. data/lib/cybersource_rest_client/models/ucv1sessions_data_payment_information_card.rb +196 -0
  303. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information.rb +257 -0
  304. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_authorization_options.rb +233 -0
  305. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_authorization_options_initiator.rb +200 -0
  306. data/lib/cybersource_rest_client/models/ucv1sessions_data_recipient_information.rb +329 -0
  307. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations.rb +210 -0
  308. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_clicktopay.rb +190 -0
  309. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_googlepay.rb +192 -0
  310. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token.rb +216 -0
  311. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_customer.rb +196 -0
  312. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_instrument_identifiers.rb +195 -0
  313. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_tms_token_payment_instruments.rb +195 -0
  314. data/lib/cybersource_rest_client/models/ucv1sessions_transient_token_response_options.rb +190 -0
  315. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to_company.rb +20 -20
  316. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information.rb +1 -1
  317. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to.rb +483 -0
  318. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to_company.rb +366 -0
  319. data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +1 -1
  320. data/lib/cybersource_rest_client/models/validate_request.rb +1 -1
  321. data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +1 -1
  322. data/lib/cybersource_rest_client.rb +218 -73
  323. metadata +277 -126
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ea8b1d8350133ff8b367e96c70a70abe706b01c701f1ed9cab11518836ee9d8
4
- data.tar.gz: 947eb679f3c7a6de9e2946b8c621ee7ee945039f43e8eac60b5999298c24ba55
3
+ metadata.gz: c7b2145187caddc5e65d832429b125682e89bd7cb5524cce56ac174480dd8fb8
4
+ data.tar.gz: '05439a8ea021577faf619bc4ceff17236524baf1cfaa3738f8712ae278c1f671'
5
5
  SHA512:
6
- metadata.gz: 374d020327bff052168ee27f74ca1dcdfe6c20e306958d5adf647b234cbec5eb90db64b1c315a2a71309f2bc3e97223c47d54874d9d3a29b4cdc2923c9841021
7
- data.tar.gz: 280efbdd1ce57c95e8f0f5f047284408f3ee9897cdf7f39c282cefac8a4e3ab0f8aff36b846f50a2c11f4a1f389424e18cb658ccad0da8883d2a87e97ffbf1c5
6
+ metadata.gz: 82bf63f6b1166f9822849d41bbad0999a78318d158bd891af281e7cee28b6f421b45cc56c6bb309feaf660ecdd1551801976f5091f7bc5419c82f7fdd8e70e27
7
+ data.tar.gz: a2b31e89fea58024cf133481dc8ee379a7ab7f94d810150b77738456f62763125da4a0d0c7342cb7adc4cb05aa365c39ff8afe254ba65e089c7ce6f7146a96ad
@@ -4,6 +4,7 @@ require 'jwt'
4
4
  require 'json'
5
5
  require 'active_support'
6
6
  require 'time'
7
+ require 'securerandom'
7
8
  require_relative '../../core/ITokenGeneration.rb'
8
9
  require_relative '../../util/Constants.rb'
9
10
  require_relative '../../util/ExceptionHandler.rb'
@@ -16,63 +17,99 @@ public
16
17
  class GenerateJwtToken
17
18
  @log_obj
18
19
 
19
- #JWT Token-generated based on the Request type
20
+ # JWT Token generation for JWTv2 specification
20
21
  def getToken(merchantconfig_obj, gmtDatetime, isResponseMLEForApi)
21
22
  @log_obj = Log.new merchantconfig_obj.log_config, "JwtToken"
22
23
 
23
- jwtBody = ''
24
- request_type = merchantconfig_obj.requestType.upcase
25
-
26
- jwtBody = getJwtBody(request_type, gmtDatetime, merchantconfig_obj, isResponseMLEForApi)
27
- claimSet = JSON.parse(jwtBody)
28
-
29
- cache_value = Cache.new.fetchCachedP12Certificate(merchantconfig_obj)
30
- privateKey = cache_value.private_key
31
- jwt_cert_obj = cache_value.cert
32
- jwt_cert_in_der = Base64.strict_encode64(jwt_cert_obj.to_der)
33
-
34
-
35
- # JWT token-Generates using RS256 algorithm only
36
- x5clist = [jwt_cert_in_der]
37
- customHeaders = {}
38
- customHeaders['v-c-merchant-id'] = merchantconfig_obj.keyAlias
39
- customHeaders['x5c'] = x5clist
40
-
41
- # Generating JWT token
42
- token = JWT.encode(claimSet, privateKey, 'RS256', customHeaders)
43
- return token
44
- rescue StandardError => err
45
- if err.message.include? 'PKCS12_parse: mac verify failure'
46
- @log_obj.logger.error(ExceptionHandler.new.new_custom_error Constants::ERROR_PREFIX + Constants::INCORRECT_KEY_PASS)
47
- # exit!
48
- else
49
- @log_obj.logger.error(ExceptionHandler.new.new_api_exception err)
50
- # exit!
24
+ begin
25
+ # Get payload claim set for JWTv2
26
+ payload_claim_set = getPayloadClaimSet(merchantconfig_obj, isResponseMLEForApi)
27
+
28
+ # Get cached certificate and private key
29
+ cache_value = Cache.new.fetchCachedP12Certificate(merchantconfig_obj)
30
+ private_key = cache_value.private_key
31
+ jwt_cert_obj = cache_value.cert
32
+
33
+ # Get header claim set for JWTv2
34
+ header_claim_set = getHeaderClaimSet(jwt_cert_obj)
35
+
36
+ # Generate JWT token using RS256 algorithm
37
+ token = JWT.encode(payload_claim_set, private_key, 'RS256', header_claim_set)
38
+ return token
39
+ rescue StandardError => err
40
+ if err.message.include? 'PKCS12_parse: mac verify failure'
41
+ @log_obj.logger.error(ExceptionHandler.new.new_custom_error Constants::ERROR_PREFIX + Constants::INCORRECT_KEY_PASS)
42
+ else
43
+ @log_obj.logger.error(ExceptionHandler.new.new_api_exception err)
44
+ end
45
+ raise err
51
46
  end
52
- raise err
53
47
  end
54
48
 
55
- def getJwtBody(request_type, gmtDatetime, merchantconfig_obj, isResponseMLEForApi=false)
56
- jwtBody = "{\n "
57
-
49
+ private
50
+
51
+ def getPayloadClaimSet(merchantconfig_obj, isResponseMLEForApi)
52
+ jwt_payload = {}
53
+ request_type = merchantconfig_obj.requestType.upcase
54
+
55
+ # Setting the JWT digest and digest Algorithm when a POST, PUT, or PATCH request is made
58
56
  if request_type == Constants::POST_REQUEST_TYPE || request_type == Constants::PUT_REQUEST_TYPE || request_type == Constants::PATCH_REQUEST_TYPE
59
57
  payload = merchantconfig_obj.requestJsonData
60
-
61
- # Note: Digest is not passed for GET calls
62
58
  digest = DigestGeneration.new.generateDigest(payload)
63
- jwtBody = jwtBody + "\"digest\":\"" + digest + "\", \"digestAlgorithm\":\"SHA-256\", \"iat\":" + Time.parse(gmtDatetime).to_i.to_s
64
- elsif request_type == Constants::GET_REQUEST_TYPE || request_type == Constants::DELETE_REQUEST_TYPE
65
- jwtBody = jwtBody + "\"iat\":" + Time.parse(gmtDatetime).to_i.to_s
59
+ jwt_payload['digest'] = digest
60
+ jwt_payload['digestAlgorithm'] = 'SHA-256'
61
+ end
62
+
63
+ # Set the iat and exp claims using Unix timestamps
64
+ current_time = Time.now.to_i
65
+ jwt_payload['iat'] = current_time
66
+ jwt_payload['exp'] = current_time + 120 # The exp claim is set to 2 mins more than the iat claim
67
+
68
+ # Set the request method, host and resource path in the JWT body as per the specification for all request types
69
+ jwt_payload['request-method'] = request_type
70
+ jwt_payload['request-host'] = merchantconfig_obj.requestHost
71
+ jwt_payload['request-resource-path'] = extractResourcePath(merchantconfig_obj.requestTarget)
72
+
73
+ # Choose issuer claim in the JWT body as per the use_metakey flag in the config file
74
+ if merchantconfig_obj.useMetaKey
75
+ issuer = merchantconfig_obj.portfolioID
66
76
  else
67
- raise StandardError.new(Constants::ERROR_PREFIX + Constants::INVALID_REQUEST_TYPE_METHOD)
77
+ issuer = merchantconfig_obj.merchantId
68
78
  end
69
79
 
80
+ jwt_payload['iss'] = issuer
81
+ jwt_payload['jti'] = SecureRandom.uuid # Unique JWT ID
82
+ jwt_payload['v-c-jwt-version'] = '2'
83
+ jwt_payload['v-c-merchant-id'] = merchantconfig_obj.merchantId
84
+
70
85
  if isResponseMLEForApi
71
- mleKid = MLEUtility.validate_and_auto_extract_response_mle_kid(merchantconfig_obj)
72
- jwtBody = jwtBody + ", \"v-c-response-mle-kid\":\"" + mleKid + "\""
86
+ mle_kid = MLEUtility.validate_and_auto_extract_response_mle_kid(merchantconfig_obj)
87
+ jwt_payload['v-c-response-mle-kid'] = mle_kid
73
88
  end
74
89
 
75
- jwtBody = jwtBody + "\n}"
90
+ return jwt_payload
76
91
  end
92
+
93
+ def getHeaderClaimSet(jwt_cert_obj)
94
+ # Extract serial number from certificate for kid header
95
+ serial_number = MLEUtility.extract_serial_number_from_certificate(jwt_cert_obj)
96
+
97
+ jwt_headers = {
98
+ 'kid' => serial_number,
99
+ 'typ' => 'JWT'
100
+ }
101
+
102
+ # Add any other future parameters to the header claim set here
103
+ return jwt_headers
104
+ end
105
+
106
+ def extractResourcePath(request_target)
107
+ return '' if request_target.nil? || request_target.empty?
108
+
109
+ # Split the string to remove the query params
110
+ parts = request_target.split('?', 2)
111
+ return parts[0]
112
+ end
113
+
77
114
  implements TokenInterface
78
115
  end
@@ -142,7 +142,9 @@ public
142
142
 
143
143
  validateMerchantDetails()
144
144
  validateMLEConfiguration(cybsPropertyObj)
145
- @p12KeyFilePath = File.join(@keysDirectory, @keyFilename + ".p12")
145
+ if !@keysDirectory.nil? && !@keysDirectory.to_s.empty? && !@keyFilename.nil? && !@keyFilename.to_s.empty?
146
+ @p12KeyFilePath = File.join(@keysDirectory, @keyFilename + ".p12")
147
+ end
146
148
  logAllProperties(cybsPropertyObj)
147
149
  end
148
150
 
@@ -232,10 +234,15 @@ public
232
234
  @log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::KEY_ALIAS_NULL_EMPTY)
233
235
  elsif !@keyAlias.instance_of? String
234
236
  @keyAlias=@keyAlias.to_s
235
- elsif @keyAlias != @merchantId
237
+ end
238
+ if !@useMetaKey && @keyAlias != @merchantId
236
239
  @keyAlias = @merchantId
237
240
  @log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::INCORRECT_KEY_ALIAS)
238
241
  end
242
+ if @useMetaKey && @keyAlias != @portfolioID
243
+ @keyAlias = @portfolioID
244
+ @log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::INCORRECT_KEY_ALIAS_USE_METAKEY)
245
+ end
239
246
  if @keyPass.to_s.empty?
240
247
  @keyPass = @merchantId
241
248
  @log_obj.logger.warn(ExceptionHandler.new.new_api_warning Constants::WARNING_PREFIX + Constants::KEY_PASS_NULL)
@@ -54,7 +54,8 @@ public
54
54
  if @maxLogFiles.nil? || @maxLogFiles.to_s.empty?
55
55
  @maxLogFiles = Constants::DEFAULT_MAX_LOG_FILES
56
56
  log_message += Constants::WARNING_PREFIX + Constants::INVALID_MAX_LOG_FILES + @maxLogFiles
57
- elsif !@maxLogFiles.instance_of? Integer
57
+ end
58
+ if !@maxLogFiles.instance_of? Integer
58
59
  @maxLogFiles = @maxLogFiles.to_i
59
60
  end
60
61
  if @enableMasking == "true"
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require_relative './Cache'
4
+ require 'stringio'
4
5
  require 'jose'
5
6
 
6
7
  public
@@ -146,6 +146,8 @@
146
146
 
147
147
  INCORRECT_KEY_ALIAS = 'The Entered KeyAlias is Incorrect. Assigining merchantID value' unless const_defined?(:INCORRECT_KEY_ALIAS)
148
148
 
149
+ INCORRECT_KEY_ALIAS_USE_METAKEY = 'The Entered KeyAlias is Incorrect with useMetaKey set to true. Assigining portfolioID value' unless const_defined?(:INCORRECT_KEY_ALIAS_USE_METAKEY)
150
+
149
151
  ENABLE_CLIENT_CERT_EMPTY = 'Enable Clientcert is Empty/Null.' unless const_defined?(:ENABLE_CLIENT_CERT_EMPTY)
150
152
 
151
153
  CLIENT_CERT_DIR_EMPTY = 'Client Cert Directory is Empty/Null' unless const_defined?(:CLIENT_CERT_DIR_EMPTY)
@@ -24,7 +24,7 @@ module CyberSource
24
24
  #
25
25
  # @param account_validations_request
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse20014]
27
+ # @return [InlineResponse20015]
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's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha'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<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 data, response status code and response headers
39
+ # @return [Array<(InlineResponse20015, Fixnum, Hash)>] InlineResponse20015 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
@@ -89,7 +89,7 @@ module CyberSource
89
89
  :form_params => form_params,
90
90
  :body => post_body,
91
91
  :auth_names => auth_names,
92
- :return_type => 'InlineResponse20014',
92
+ :return_type => 'InlineResponse20015',
93
93
  :isResponseMLEForApi => is_response_mle_for_api)
94
94
  if @api_client.config.debugging
95
95
  begin
@@ -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 [InlineResponse20013]
27
+ # @return [InlineResponse20014]
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<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
38
+ # @return [Array<(InlineResponse20014, Fixnum, Hash)>] InlineResponse20014 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
@@ -94,7 +94,7 @@ module CyberSource
94
94
  :form_params => form_params,
95
95
  :body => post_body,
96
96
  :auth_names => auth_names,
97
- :return_type => 'InlineResponse20013',
97
+ :return_type => 'InlineResponse20014',
98
98
  :isResponseMLEForApi => is_response_mle_for_api)
99
99
  if @api_client.config.debugging
100
100
  begin
@@ -111,7 +111,7 @@ module CyberSource
111
111
  #
112
112
  # @param batch_id Unique identification number assigned to the submitted request.
113
113
  # @param [Hash] opts the optional parameters
114
- # @return [InlineResponse20012]
114
+ # @return [InlineResponse20013]
115
115
  #
116
116
  def get_batch_status(batch_id, opts = {})
117
117
  data, status_code, headers = get_batch_status_with_http_info(batch_id, opts)
@@ -122,7 +122,7 @@ module CyberSource
122
122
  # **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)
123
123
  # @param batch_id Unique identification number assigned to the submitted request.
124
124
  # @param [Hash] opts the optional parameters
125
- # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
125
+ # @return [Array<(InlineResponse20013, Fixnum, Hash)>] InlineResponse20013 data, response status code and response headers
126
126
  def get_batch_status_with_http_info(batch_id, opts = {})
127
127
 
128
128
  if @api_client.config.debugging
@@ -181,7 +181,7 @@ module CyberSource
181
181
  :form_params => form_params,
182
182
  :body => post_body,
183
183
  :auth_names => auth_names,
184
- :return_type => 'InlineResponse20012',
184
+ :return_type => 'InlineResponse20013',
185
185
  :isResponseMLEForApi => is_response_mle_for_api)
186
186
  if @api_client.config.debugging
187
187
  begin
@@ -201,7 +201,7 @@ module CyberSource
201
201
  # @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)
202
202
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
203
203
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
204
- # @return [InlineResponse20011]
204
+ # @return [InlineResponse20012]
205
205
  #
206
206
  def get_batches_list(opts = {})
207
207
  data, status_code, headers = get_batches_list_with_http_info(opts)
@@ -215,7 +215,7 @@ module CyberSource
215
215
  # @option opts [Integer] :limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset.
216
216
  # @option opts [String] :from_date ISO-8601 format: yyyyMMddTHHmmssZ
217
217
  # @option opts [String] :to_date ISO-8601 format: yyyyMMddTHHmmssZ
218
- # @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
218
+ # @return [Array<(InlineResponse20012, Fixnum, Hash)>] InlineResponse20012 data, response status code and response headers
219
219
  def get_batches_list_with_http_info(opts = {})
220
220
 
221
221
  if @api_client.config.debugging
@@ -270,7 +270,7 @@ module CyberSource
270
270
  :form_params => form_params,
271
271
  :body => post_body,
272
272
  :auth_names => auth_names,
273
- :return_type => 'InlineResponse20011',
273
+ :return_type => 'InlineResponse20012',
274
274
  :isResponseMLEForApi => is_response_mle_for_api)
275
275
  if @api_client.config.debugging
276
276
  begin
@@ -24,7 +24,7 @@ module CyberSource
24
24
  #
25
25
  # @param create_bin_lookup_request
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse2012]
27
+ # @return [InlineResponse2013]
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 get_account_info(create_bin_lookup_request, opts = {})
@@ -36,7 +36,7 @@ module CyberSource
36
36
  # The BIN Lookup Service is a versatile business tool that provides card network agnostic solution designed to ensure frictionless transaction experience by utilizing up-to-date Bank Identification Number (BIN) attributes sourced from multiple global and regional data sources. This service helps to improve authorization rates by helping to route transactions to the best-suited card network, minimizes fraud through card detail verification and aids in regulatory compliance by identifying card properties. The service is flexible and provides businesses with a flexible choice of inputs such as primary account number (PAN), network token from major networks (such as Visa, American Express, Discover and several regional networks) which includes device PAN (DPAN), and all types of tokens generated via CyberSource Token Management Service (TMS). Currently, the range of available credentials is contingent on the networks enabled for the business entity. Therefore, the network information specified in this documentation is illustrative and subject to personalized offerings for each reseller or merchant.
37
37
  # @param create_bin_lookup_request
38
38
  # @param [Hash] opts the optional parameters
39
- # @return [Array<(InlineResponse2012, Fixnum, Hash)>] InlineResponse2012 data, response status code and response headers
39
+ # @return [Array<(InlineResponse2013, Fixnum, Hash)>] InlineResponse2013 data, response status code and response headers
40
40
  def get_account_info_with_http_info(create_bin_lookup_request, opts = {})
41
41
 
42
42
  if @api_client.config.debugging
@@ -89,7 +89,7 @@ module CyberSource
89
89
  :form_params => form_params,
90
90
  :body => post_body,
91
91
  :auth_names => auth_names,
92
- :return_type => 'InlineResponse2012',
92
+ :return_type => 'InlineResponse2013',
93
93
  :isResponseMLEForApi => is_response_mle_for_api)
94
94
  if @api_client.config.debugging
95
95
  begin
@@ -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<InlineResponse2005>]
27
+ # @return [Array<InlineResponse2006>]
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<InlineResponse2005>, Fixnum, Hash)>] Array<InlineResponse2005> data, response status code and response headers
38
+ # @return [Array<(Array<InlineResponse2006>, Fixnum, Hash)>] Array<InlineResponse2006> 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
@@ -90,7 +90,7 @@ module CyberSource
90
90
  :form_params => form_params,
91
91
  :body => post_body,
92
92
  :auth_names => auth_names,
93
- :return_type => 'Array<InlineResponse2005>',
93
+ :return_type => 'Array<InlineResponse2006>',
94
94
  :isResponseMLEForApi => is_response_mle_for_api)
95
95
  if @api_client.config.debugging
96
96
  begin
@@ -107,7 +107,7 @@ module CyberSource
107
107
  #
108
108
  # @param [Hash] opts the optional parameters
109
109
  # @option opts [CreateWebhook] :create_webhook The webhook payload
110
- # @return [InlineResponse2015]
110
+ # @return [InlineResponse2016]
111
111
  #
112
112
  def notification_subscriptions_v2_webhooks_post(opts = {})
113
113
  data, status_code, headers = notification_subscriptions_v2_webhooks_post_with_http_info(opts)
@@ -118,7 +118,7 @@ module CyberSource
118
118
  # Create a new webhook subscription. Before creating a webhook, ensure that a signature key has been created. For the example \&quot;Create Webhook using oAuth with Client Credentials\&quot; - for clients who have more than one oAuth Provider and have different client secrets that they would like to config for a given webhook, they may do so by overriding the keyId inside security config of webhook subscription. See the Developer Center examples section titled \&quot;Webhook Security - Create or Store Egress Symmetric Key - Store oAuth Credentials For Symmetric Key\&quot; to store these oAuth credentials that CYBS will need for oAuth. For JWT authentication, attach your oAuth details to the webhook subscription. See the example \&quot;Create Webhook using oAuth with JWT\&quot;
119
119
  # @param [Hash] opts the optional parameters
120
120
  # @option opts [CreateWebhook] :create_webhook The webhook payload
121
- # @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
121
+ # @return [Array<(InlineResponse2016, Fixnum, Hash)>] InlineResponse2016 data, response status code and response headers
122
122
  def notification_subscriptions_v2_webhooks_post_with_http_info(opts = {})
123
123
 
124
124
  if @api_client.config.debugging
@@ -167,7 +167,7 @@ module CyberSource
167
167
  :form_params => form_params,
168
168
  :body => post_body,
169
169
  :auth_names => auth_names,
170
- :return_type => 'InlineResponse2015',
170
+ :return_type => 'InlineResponse2016',
171
171
  :isResponseMLEForApi => is_response_mle_for_api)
172
172
  if @api_client.config.debugging
173
173
  begin
@@ -187,7 +187,7 @@ module CyberSource
187
187
  # @param [Hash] opts the optional parameters
188
188
  # @option opts [String] :v_c_correlation_id A globally unique id associated with your request
189
189
  # @option opts [SaveSymEgressKey] :save_sym_egress_key Provide egress Symmetric key information to save (create or store or refresh)
190
- # @return [InlineResponse2014]
190
+ # @return [InlineResponse2015]
191
191
  #
192
192
  def save_sym_egress_key(v_c_sender_organization_id, v_c_permissions, opts = {})
193
193
  data, status_code, headers = save_sym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, opts)
@@ -201,7 +201,7 @@ module CyberSource
201
201
  # @param [Hash] opts the optional parameters
202
202
  # @option opts [String] :v_c_correlation_id A globally unique id associated with your request
203
203
  # @option opts [SaveSymEgressKey] :save_sym_egress_key Provide egress Symmetric key information to save (create or store or refresh)
204
- # @return [Array<(InlineResponse2014, Fixnum, Hash)>] InlineResponse2014 data, response status code and response headers
204
+ # @return [Array<(InlineResponse2015, Fixnum, Hash)>] InlineResponse2015 data, response status code and response headers
205
205
  def save_sym_egress_key_with_http_info(v_c_sender_organization_id, v_c_permissions, opts = {})
206
206
 
207
207
  if @api_client.config.debugging
@@ -269,7 +269,7 @@ module CyberSource
269
269
  :form_params => form_params,
270
270
  :body => post_body,
271
271
  :auth_names => auth_names,
272
- :return_type => 'InlineResponse2014',
272
+ :return_type => 'InlineResponse2015',
273
273
  :isResponseMLEForApi => is_response_mle_for_api)
274
274
  if @api_client.config.debugging
275
275
  begin
@@ -25,7 +25,7 @@ module CyberSource
25
25
  # @param id An unique identification number generated by Cybersource to identify the submitted request.
26
26
  # @param case_management_actions_request
27
27
  # @param [Hash] opts the optional parameters
28
- # @return [InlineResponse2002]
28
+ # @return [InlineResponse2003]
29
29
  #
30
30
  def action_decision_manager_case(id, case_management_actions_request, opts = {})
31
31
  data, status_code, headers = action_decision_manager_case_with_http_info(id, case_management_actions_request, opts)
@@ -37,7 +37,7 @@ module CyberSource
37
37
  # @param id An unique identification number generated by Cybersource to identify the submitted request.
38
38
  # @param case_management_actions_request
39
39
  # @param [Hash] opts the optional parameters
40
- # @return [Array<(InlineResponse2002, Fixnum, Hash)>] InlineResponse2002 data, response status code and response headers
40
+ # @return [Array<(InlineResponse2003, Fixnum, Hash)>] InlineResponse2003 data, response status code and response headers
41
41
  def action_decision_manager_case_with_http_info(id, case_management_actions_request, opts = {})
42
42
 
43
43
  if @api_client.config.debugging
@@ -94,7 +94,7 @@ module CyberSource
94
94
  :form_params => form_params,
95
95
  :body => post_body,
96
96
  :auth_names => auth_names,
97
- :return_type => 'InlineResponse2002',
97
+ :return_type => 'InlineResponse2003',
98
98
  :isResponseMLEForApi => is_response_mle_for_api)
99
99
  if @api_client.config.debugging
100
100
  begin
@@ -199,7 +199,7 @@ module CyberSource
199
199
  # @param id An unique identification number generated by Cybersource to identify the submitted request.
200
200
  # @param case_management_comments_request
201
201
  # @param [Hash] opts the optional parameters
202
- # @return [InlineResponse2011]
202
+ # @return [InlineResponse2012]
203
203
  #
204
204
  def comment_decision_manager_case(id, case_management_comments_request, opts = {})
205
205
  data, status_code, headers = comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts)
@@ -211,7 +211,7 @@ module CyberSource
211
211
  # @param id An unique identification number generated by Cybersource to identify the submitted request.
212
212
  # @param case_management_comments_request
213
213
  # @param [Hash] opts the optional parameters
214
- # @return [Array<(InlineResponse2011, Fixnum, Hash)>] InlineResponse2011 data, response status code and response headers
214
+ # @return [Array<(InlineResponse2012, Fixnum, Hash)>] InlineResponse2012 data, response status code and response headers
215
215
  def comment_decision_manager_case_with_http_info(id, case_management_comments_request, opts = {})
216
216
 
217
217
  if @api_client.config.debugging
@@ -268,7 +268,7 @@ module CyberSource
268
268
  :form_params => form_params,
269
269
  :body => post_body,
270
270
  :auth_names => auth_names,
271
- :return_type => 'InlineResponse2011',
271
+ :return_type => 'InlineResponse2012',
272
272
  :isResponseMLEForApi => is_response_mle_for_api)
273
273
  if @api_client.config.debugging
274
274
  begin
@@ -104,7 +104,7 @@ module CyberSource
104
104
  #
105
105
  # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId.
106
106
  # @param [Hash] opts the optional parameters
107
- # @return [Array<InlineResponse2009>]
107
+ # @return [Array<InlineResponse20010>]
108
108
  #
109
109
  def post_de_associate_v3_terminal(device_de_associate_v3_request, opts = {})
110
110
  data, status_code, headers = post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts)
@@ -115,7 +115,7 @@ module CyberSource
115
115
  # A device will be de-associated from its current organization and moved up in the hierarchy. The device&#39;s new position will be determined by a specified destination, either an account or a portfolio. If no destination is provided, the device will default to the currently logged-in user.
116
116
  # @param device_de_associate_v3_request deviceId that has to be de-associated to the destination organizationId.
117
117
  # @param [Hash] opts the optional parameters
118
- # @return [Array<(Array<InlineResponse2009>, Fixnum, Hash)>] Array<InlineResponse2009> data, response status code and response headers
118
+ # @return [Array<(Array<InlineResponse20010>, Fixnum, Hash)>] Array<InlineResponse20010> data, response status code and response headers
119
119
  def post_de_associate_v3_terminal_with_http_info(device_de_associate_v3_request, opts = {})
120
120
 
121
121
  if @api_client.config.debugging
@@ -168,7 +168,7 @@ module CyberSource
168
168
  :form_params => form_params,
169
169
  :body => post_body,
170
170
  :auth_names => auth_names,
171
- :return_type => 'Array<InlineResponse2009>',
171
+ :return_type => 'Array<InlineResponse20010>',
172
172
  :isResponseMLEForApi => is_response_mle_for_api)
173
173
  if @api_client.config.debugging
174
174
  begin
@@ -24,7 +24,7 @@ module CyberSource
24
24
  #
25
25
  # @param post_device_search_request
26
26
  # @param [Hash] opts the optional parameters
27
- # @return [InlineResponse2008]
27
+ # @return [InlineResponse2009]
28
28
  #
29
29
  def post_search_query(post_device_search_request, opts = {})
30
30
  data, status_code, headers = post_search_query_with_http_info(post_device_search_request, opts)
@@ -35,7 +35,7 @@ module CyberSource
35
35
  # Retrieves list of terminals in paginated format.
36
36
  # @param post_device_search_request
37
37
  # @param [Hash] opts the optional parameters
38
- # @return [Array<(InlineResponse2008, Fixnum, Hash)>] InlineResponse2008 data, response status code and response headers
38
+ # @return [Array<(InlineResponse2009, Fixnum, Hash)>] InlineResponse2009 data, response status code and response headers
39
39
  def post_search_query_with_http_info(post_device_search_request, opts = {})
40
40
 
41
41
  if @api_client.config.debugging
@@ -88,7 +88,7 @@ module CyberSource
88
88
  :form_params => form_params,
89
89
  :body => post_body,
90
90
  :auth_names => auth_names,
91
- :return_type => 'InlineResponse2008',
91
+ :return_type => 'InlineResponse2009',
92
92
  :isResponseMLEForApi => is_response_mle_for_api)
93
93
  if @api_client.config.debugging
94
94
  begin
@@ -105,7 +105,7 @@ module CyberSource
105
105
  #
106
106
  # @param post_device_search_request_v3
107
107
  # @param [Hash] opts the optional parameters
108
- # @return [InlineResponse20010]
108
+ # @return [InlineResponse20011]
109
109
  #
110
110
  def post_search_query_v3(post_device_search_request_v3, opts = {})
111
111
  data, status_code, headers = post_search_query_v3_with_http_info(post_device_search_request_v3, opts)
@@ -116,7 +116,7 @@ module CyberSource
116
116
  # Search for devices matching a given search query. The search query supports serialNumber, readerId, terminalId, status, statusChangeReason or organizationId Matching results are paginated.
117
117
  # @param post_device_search_request_v3
118
118
  # @param [Hash] opts the optional parameters
119
- # @return [Array<(InlineResponse20010, Fixnum, Hash)>] InlineResponse20010 data, response status code and response headers
119
+ # @return [Array<(InlineResponse20011, Fixnum, Hash)>] InlineResponse20011 data, response status code and response headers
120
120
  def post_search_query_v3_with_http_info(post_device_search_request_v3, opts = {})
121
121
 
122
122
  if @api_client.config.debugging
@@ -169,7 +169,7 @@ module CyberSource
169
169
  :form_params => form_params,
170
170
  :body => post_body,
171
171
  :auth_names => auth_names,
172
- :return_type => 'InlineResponse20010',
172
+ :return_type => 'InlineResponse20011',
173
173
  :isResponseMLEForApi => is_response_mle_for_api)
174
174
  if @api_client.config.debugging
175
175
  begin
@@ -23,6 +23,7 @@ module CyberSource
23
23
  # Allows you to retrieve the invoice settings for the payment page.
24
24
  #
25
25
  # @param [Hash] opts the optional parameters
26
+ # @option opts [String] :product_type Allows you to choose which product type settings you want to update.
26
27
  # @return [InvoicingV2InvoiceSettingsGet200Response]
27
28
  #
28
29
  def get_invoice_settings(opts = {})
@@ -33,6 +34,7 @@ module CyberSource
33
34
  # Get Invoice Settings
34
35
  # Allows you to retrieve the invoice settings for the payment page.
35
36
  # @param [Hash] opts the optional parameters
37
+ # @option opts [String] :product_type Allows you to choose which product type settings you want to update.
36
38
  # @return [Array<(InvoicingV2InvoiceSettingsGet200Response, Fixnum, Hash)>] InvoicingV2InvoiceSettingsGet200Response data, response status code and response headers
37
39
  def get_invoice_settings_with_http_info(opts = {})
38
40
 
@@ -44,11 +46,15 @@ module CyberSource
44
46
  puts 'Cannot write to log'
45
47
  end
46
48
  end
49
+ if @api_client.config.client_side_validation && opts[:'product_type'] && !['INVOICING', 'PAYBYLINK'].include?(opts[:'product_type'])
50
+ fail ArgumentError, 'invalid value for "product_type", must be one of INVOICING, PAYBYLINK'
51
+ end
47
52
  # resource path
48
53
  local_var_path = 'invoicing/v2/invoiceSettings'
49
54
 
50
55
  # query parameters
51
56
  query_params = {}
57
+ query_params[:'productType'] = opts[:'product_type'] if !opts[:'product_type'].nil?
52
58
 
53
59
  # header parameters
54
60
  header_params = {}
@@ -101,6 +107,7 @@ module CyberSource
101
107
  #
102
108
  # @param invoice_settings_request
103
109
  # @param [Hash] opts the optional parameters
110
+ # @option opts [String] :product_type Allows you to choose which product type settings you want to update.
104
111
  # @return [InvoicingV2InvoiceSettingsGet200Response]
105
112
  #
106
113
  def update_invoice_settings(invoice_settings_request, opts = {})
@@ -112,6 +119,7 @@ module CyberSource
112
119
  # Allows you to customize the payment page, the checkout experience, email communication and payer authentication. You can customize the invoice to match your brand with your business name, logo and brand colors, and a VAT Tax number. You can choose to capture the payers shipping details, phone number and email during the checkout process. You can add a custom message to all invoice emails and enable or disable payer authentication for invoice payments.
113
120
  # @param invoice_settings_request
114
121
  # @param [Hash] opts the optional parameters
122
+ # @option opts [String] :product_type Allows you to choose which product type settings you want to update.
115
123
  # @return [Array<(InvoicingV2InvoiceSettingsGet200Response, Fixnum, Hash)>] InvoicingV2InvoiceSettingsGet200Response data, response status code and response headers
116
124
  def update_invoice_settings_with_http_info(invoice_settings_request, opts = {})
117
125
 
@@ -127,11 +135,15 @@ module CyberSource
127
135
  if @api_client.config.client_side_validation && invoice_settings_request.nil?
128
136
  fail ArgumentError, "Missing the required parameter 'invoice_settings_request' when calling InvoiceSettingsApi.update_invoice_settings"
129
137
  end
138
+ if @api_client.config.client_side_validation && opts[:'product_type'] && !['INVOICING', 'PAYBYLINK'].include?(opts[:'product_type'])
139
+ fail ArgumentError, 'invalid value for "product_type", must be one of INVOICING, PAYBYLINK'
140
+ end
130
141
  # resource path
131
142
  local_var_path = 'invoicing/v2/invoiceSettings'
132
143
 
133
144
  # query parameters
134
145
  query_params = {}
146
+ query_params[:'productType'] = opts[:'product_type'] if !opts[:'product_type'].nil?
135
147
 
136
148
  # header parameters
137
149
  header_params = {}