cybersource_rest_client 0.0.87 → 0.0.89

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 (677) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/authentication/jwt/JwtToken.rb +1 -0
  3. data/lib/AuthenticationSDK/util/Cache.rb +1 -1
  4. data/lib/AuthenticationSDK/util/MLEUtility.rb +2 -3
  5. data/lib/cybersource_rest_client/api/acp_checkout_api.rb +563 -0
  6. data/lib/cybersource_rest_client/api/agent_registration_api.rb +737 -0
  7. data/lib/cybersource_rest_client/api/bank_account_validation_api.rb +7 -6
  8. data/lib/cybersource_rest_client/api/batches_api.rb +38 -30
  9. data/lib/cybersource_rest_client/api/billing_agreements_api.rb +15 -9
  10. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +7 -5
  11. data/lib/cybersource_rest_client/api/capture_api.rb +4 -2
  12. data/lib/cybersource_rest_client/api/chargeback_details_api.rb +4 -2
  13. data/lib/cybersource_rest_client/api/chargeback_summaries_api.rb +4 -2
  14. data/lib/cybersource_rest_client/api/conversion_details_api.rb +4 -2
  15. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +65 -59
  16. data/lib/cybersource_rest_client/api/credentials_api.rb +4 -2
  17. data/lib/cybersource_rest_client/api/credit_api.rb +4 -2
  18. data/lib/cybersource_rest_client/api/customer_api.rb +16 -8
  19. data/lib/cybersource_rest_client/api/customer_payment_instrument_api.rb +20 -10
  20. data/lib/cybersource_rest_client/api/customer_shipping_address_api.rb +20 -10
  21. data/lib/cybersource_rest_client/api/decision_manager_api.rb +26 -16
  22. data/lib/cybersource_rest_client/api/device_de_association_api.rb +11 -7
  23. data/lib/cybersource_rest_client/api/device_search_api.rb +14 -10
  24. data/lib/cybersource_rest_client/api/download_dtd_api.rb +4 -2
  25. data/lib/cybersource_rest_client/api/download_xsd_api.rb +4 -2
  26. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +18 -14
  27. data/lib/cybersource_rest_client/api/enrollment_api.rb +106 -0
  28. data/lib/cybersource_rest_client/api/flex_api_api.rb +4 -2
  29. data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +17 -15
  30. data/lib/cybersource_rest_client/api/instrument_identifier_api.rb +24 -12
  31. data/lib/cybersource_rest_client/api/interchange_clearing_level_details_api.rb +4 -2
  32. data/lib/cybersource_rest_client/api/invoice_settings_api.rb +8 -4
  33. data/lib/cybersource_rest_client/api/invoices_api.rb +28 -14
  34. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +142 -128
  35. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +21 -15
  36. data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +80 -64
  37. data/lib/cybersource_rest_client/api/merchant_registration_api.rb +737 -0
  38. data/lib/cybersource_rest_client/api/microform_integration_api.rb +4 -2
  39. data/lib/cybersource_rest_client/api/net_fundings_api.rb +4 -2
  40. data/lib/cybersource_rest_client/api/network_tokens_api.rb +51 -37
  41. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +4 -2
  42. data/lib/cybersource_rest_client/api/offers_api.rb +16 -12
  43. data/lib/cybersource_rest_client/api/orders_api.rb +8 -4
  44. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +12 -6
  45. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +4 -2
  46. data/lib/cybersource_rest_client/api/payment_events_api.rb +201 -0
  47. data/lib/cybersource_rest_client/api/payment_instrument_api.rb +16 -8
  48. data/lib/cybersource_rest_client/api/payment_links_api.rb +16 -8
  49. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +17 -15
  50. data/lib/cybersource_rest_client/api/payments_api.rb +33 -21
  51. data/lib/cybersource_rest_client/api/payouts_api.rb +4 -2
  52. data/lib/cybersource_rest_client/api/plans_api.rb +32 -16
  53. data/lib/cybersource_rest_client/api/product_feed_api.rb +373 -0
  54. data/lib/cybersource_rest_client/api/pull_funds_api.rb +12 -6
  55. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +4 -2
  56. data/lib/cybersource_rest_client/api/purchase_intent_api.rb +284 -0
  57. data/lib/cybersource_rest_client/api/push_funds_api.rb +4 -2
  58. data/lib/cybersource_rest_client/api/refund_api.rb +8 -4
  59. data/lib/cybersource_rest_client/api/report_definitions_api.rb +8 -4
  60. data/lib/cybersource_rest_client/api/report_downloads_api.rb +4 -2
  61. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +20 -10
  62. data/lib/cybersource_rest_client/api/reports_api.rb +12 -6
  63. data/lib/cybersource_rest_client/api/retrieval_details_api.rb +4 -2
  64. data/lib/cybersource_rest_client/api/retrieval_summaries_api.rb +4 -2
  65. data/lib/cybersource_rest_client/api/reversal_api.rb +8 -4
  66. data/lib/cybersource_rest_client/api/search_transactions_api.rb +8 -4
  67. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +8 -4
  68. data/lib/cybersource_rest_client/api/subscriptions_api.rb +43 -23
  69. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +21 -17
  70. data/lib/cybersource_rest_client/api/taxes_api.rb +10 -6
  71. data/lib/cybersource_rest_client/api/tokenize_api.rb +7 -5
  72. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +19 -11
  73. data/lib/cybersource_rest_client/api/transaction_details_api.rb +4 -2
  74. data/lib/cybersource_rest_client/api/transaction_query_api.rb +17 -15
  75. data/lib/cybersource_rest_client/api/transient_token_data_v2_api.rb +12 -6
  76. data/lib/cybersource_rest_client/api/ucp_checkout_api.rb +463 -0
  77. data/lib/cybersource_rest_client/api/unified_checkout_capture_context_api.rb +4 -2
  78. data/lib/cybersource_rest_client/api/unified_checkout_v1_capture_context_api.rb +4 -2
  79. data/lib/cybersource_rest_client/api/user_management_api.rb +4 -2
  80. data/lib/cybersource_rest_client/api/user_management_search_api.rb +4 -2
  81. data/lib/cybersource_rest_client/api/verification_api.rb +8 -4
  82. data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +4 -2
  83. data/lib/cybersource_rest_client/api/void_api.rb +20 -10
  84. data/lib/cybersource_rest_client/models/acp_update_checkout_session_request.rb +1 -1
  85. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +1 -1
  86. data/lib/cybersource_rest_client/models/{key_request.rb → add_agent_key_request.rb} +5 -5
  87. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +11 -11
  88. data/lib/cybersource_rest_client/models/{key_request_1.rb → add_merchant_key_request.rb} +6 -6
  89. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +13 -15
  90. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +8 -8
  91. data/lib/cybersource_rest_client/models/agent_request.rb +10 -12
  92. data/lib/cybersource_rest_client/models/agent_update.rb +7 -9
  93. data/lib/cybersource_rest_client/models/{payments_products_alternative_payment_methods_configuration_payment_methods.rb → alternative_payments_payment_method_configuration.rb} +2 -2
  94. data/lib/cybersource_rest_client/models/{payments_products_alternative_payment_methods_additional_configurations.rb → alternative_payments_payment_method_configuration_additional_configurations.rb} +1 -1
  95. data/lib/cybersource_rest_client/models/alternative_payments_processor_configuration.rb +1 -1
  96. data/lib/cybersource_rest_client/models/auth_reversal_request.rb +1 -1
  97. data/lib/cybersource_rest_client/models/{inline_response_200_15.rb → bank_account_validation_response.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/{inline_response_202.rb → batch_create_response.rb} +2 -2
  99. data/lib/cybersource_rest_client/models/{inline_response_202__links.rb → batch_create_response_links.rb} +3 -3
  100. data/lib/cybersource_rest_client/models/{inline_response_202__links_status.rb → batch_create_response_links_status.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/{inline_response_200_14.rb → batch_report_response.rb} +4 -4
  102. data/lib/cybersource_rest_client/models/{inline_response_200_14_records.rb → batch_report_response_records.rb} +3 -3
  103. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record.rb → batch_report_response_response_record.rb} +2 -2
  104. data/lib/cybersource_rest_client/models/{inline_response_200_14_response_record_additional_updates.rb → batch_report_response_response_record_additional_updates.rb} +1 -1
  105. data/lib/cybersource_rest_client/models/{inline_response_200_14_source_record.rb → batch_report_response_source_record.rb} +1 -1
  106. data/lib/cybersource_rest_client/models/{inline_response_200_13.rb → batch_status_response.rb} +4 -4
  107. data/lib/cybersource_rest_client/models/{inline_response_200_13_billing.rb → batch_status_response_billing.rb} +1 -1
  108. data/lib/cybersource_rest_client/models/{inline_response_200_13__links.rb → batch_status_response_links.rb} +3 -3
  109. data/lib/cybersource_rest_client/models/{inline_response_200_13__links_report.rb → batch_status_response_links_report.rb} +1 -1
  110. data/lib/cybersource_rest_client/models/{inline_response_200_12.rb → batches_list_response.rb} +3 -3
  111. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded.rb → batches_list_response_embedded.rb} +2 -2
  112. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_batches.rb → batches_list_response_embedded_batches.rb} +3 -3
  113. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links.rb → batches_list_response_embedded_links.rb} +2 -2
  114. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded__links_reports.rb → batches_list_response_embedded_links_reports.rb} +1 -1
  115. data/lib/cybersource_rest_client/models/{inline_response_200_12__embedded_totals.rb → batches_list_response_embedded_totals.rb} +1 -1
  116. data/lib/cybersource_rest_client/models/{inline_response_200_12__links.rb → batches_list_response_links.rb} +1 -1
  117. data/lib/cybersource_rest_client/models/boarding_payouts_configurations.rb +1 -1
  118. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_acquirer.rb +216 -0
  119. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_merchant_descriptor.rb +205 -0
  120. data/lib/cybersource_rest_client/models/boarding_payouts_configurations_processors.rb +581 -0
  121. data/lib/cybersource_rest_client/models/{inline_response_201_6.rb → boarding_registration_create_response.rb} +5 -5
  122. data/lib/cybersource_rest_client/models/{inline_response_201_6_integration_information.rb → boarding_registration_create_response_integration_information.rb} +2 -2
  123. data/lib/cybersource_rest_client/models/{inline_response_201_6_integration_information_tenant_configurations.rb → boarding_registration_create_response_integration_information_tenant_configurations.rb} +1 -1
  124. data/lib/cybersource_rest_client/models/{inline_response_201_6_organization_information.rb → boarding_registration_create_response_organization_information.rb} +1 -1
  125. data/lib/cybersource_rest_client/models/{inline_response_201_6_product_information_setups.rb → boarding_registration_create_response_product_information_setups.rb} +2 -2
  126. data/lib/cybersource_rest_client/models/{inline_response_201_6_registration_information.rb → boarding_registration_create_response_registration_information.rb} +1 -1
  127. data/lib/cybersource_rest_client/models/{inline_response_201_6_setups.rb → boarding_registration_create_response_setups.rb} +4 -4
  128. data/lib/cybersource_rest_client/models/{inline_response_201_6_setups_commerce_solutions.rb → boarding_registration_create_response_setups_commerce_solutions.rb} +1 -1
  129. data/lib/cybersource_rest_client/models/{inline_response_201_6_setups_risk.rb → boarding_registration_create_response_setups_risk.rb} +16 -6
  130. data/lib/cybersource_rest_client/models/{inline_response_201_6_setups_value_added_services.rb → boarding_registration_create_response_setups_value_added_services.rb} +16 -6
  131. data/lib/cybersource_rest_client/models/{inline_response_200_5.rb → boarding_registration_get_response.rb} +3 -3
  132. data/lib/cybersource_rest_client/models/{inline_response_200_5_integration_information.rb → boarding_registration_get_response_integration_information.rb} +2 -2
  133. data/lib/cybersource_rest_client/models/{inline_response_200_5_integration_information_tenant_configurations.rb → boarding_registration_get_response_integration_information_tenant_configurations.rb} +1 -1
  134. data/lib/cybersource_rest_client/models/{inline_response_200_18.rb → cancel_checkout_response.rb} +47 -7
  135. data/lib/cybersource_rest_client/models/capture_payment_request.rb +1 -1
  136. data/lib/cybersource_rest_client/models/{inline_response_200_2.rb → card_art_asset_response.rb} +2 -2
  137. data/lib/cybersource_rest_client/models/{inline_response_200_2_content.rb → card_art_asset_response_content.rb} +1 -1
  138. data/lib/cybersource_rest_client/models/card_processing_config_common_acquirers.rb +1 -1
  139. data/lib/cybersource_rest_client/models/card_processing_config_common_payment_types.rb +1 -1
  140. data/lib/cybersource_rest_client/models/card_processing_config_common_processors.rb +1 -1
  141. data/lib/cybersource_rest_client/models/{payments_products_card_processing_subscription_information_features.rb → card_proessing_feature_subscription_item.rb} +1 -1
  142. data/lib/cybersource_rest_client/models/{inline_response_200_3.rb → case_management_actions_response.rb} +2 -2
  143. data/lib/cybersource_rest_client/models/{inline_response_200_3__embedded.rb → case_management_actions_response_embedded.rb} +3 -3
  144. data/lib/cybersource_rest_client/models/{inline_response_200_3__embedded_capture.rb → case_management_actions_response_embedded_capture.rb} +2 -2
  145. data/lib/cybersource_rest_client/models/{inline_response_200_3__embedded_capture__links.rb → case_management_actions_response_embedded_capture_links.rb} +2 -2
  146. data/lib/cybersource_rest_client/models/{inline_response_200_3__embedded_capture__links_self.rb → case_management_actions_response_embedded_capture_links_self.rb} +1 -1
  147. data/lib/cybersource_rest_client/models/{inline_response_200_3__embedded_reversal.rb → case_management_actions_response_embedded_reversal.rb} +2 -2
  148. data/lib/cybersource_rest_client/models/{inline_response_200_3__embedded_reversal__links.rb → case_management_actions_response_embedded_reversal_links.rb} +2 -2
  149. data/lib/cybersource_rest_client/models/{inline_response_200_3__embedded_reversal__links_self.rb → case_management_actions_response_embedded_reversal_links_self.rb} +1 -1
  150. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +1 -1
  151. data/lib/cybersource_rest_client/models/{inline_response_201_12.rb → checkout_session_response.rb} +48 -8
  152. data/lib/cybersource_rest_client/models/{inline_response_201_12_fulfillment_address.rb → checkout_session_response_fulfillment_address.rb} +1 -1
  153. data/lib/cybersource_rest_client/models/{inline_response_201_12_fulfillment_options.rb → checkout_session_response_fulfillment_options.rb} +31 -1
  154. data/lib/cybersource_rest_client/models/{inline_response_201_12_item.rb → checkout_session_response_item.rb} +1 -1
  155. data/lib/cybersource_rest_client/models/{inline_response_201_12_line_items.rb → checkout_session_response_line_items.rb} +2 -2
  156. data/lib/cybersource_rest_client/models/{inline_response_201_12_links.rb → checkout_session_response_links.rb} +1 -1
  157. data/lib/cybersource_rest_client/models/{inline_response_201_12_messages.rb → checkout_session_response_messages.rb} +1 -1
  158. data/lib/cybersource_rest_client/models/{inline_response_201_12_payment_provider.rb → checkout_session_response_payment_provider.rb} +1 -1
  159. data/lib/cybersource_rest_client/models/{inline_response_201_12_totals.rb → checkout_session_response_totals.rb} +16 -1
  160. data/lib/cybersource_rest_client/models/{inline_response_201_2.rb → comment_decision_manager_case_response.rb} +1 -1
  161. data/lib/cybersource_rest_client/models/{ptsv2paymentsidrefunds_travel_information_transit_airline_ancillary_information_service.rb → common_ancillary_information_service_item.rb} +1 -1
  162. data/lib/cybersource_rest_client/models/{inline_response_200_17.rb → complete_checkout_response.rb} +63 -8
  163. data/lib/cybersource_rest_client/models/{inline_response_200_17_fulfillment_address.rb → complete_checkout_response_fulfillment_address.rb} +1 -1
  164. data/lib/cybersource_rest_client/models/{inline_response_200_17_order.rb → complete_checkout_response_order.rb} +1 -1
  165. data/lib/cybersource_rest_client/models/create_bundled_decision_manager_case_request.rb +32 -2
  166. data/lib/cybersource_rest_client/models/{create_subscription_request_1.rb → create_follow_on_subscription_request.rb} +1 -1
  167. data/lib/cybersource_rest_client/models/create_fx_rates_request.rb +219 -0
  168. data/lib/cybersource_rest_client/models/{inline_response_201_3.rb → create_fx_rates_response.rb} +5 -5
  169. data/lib/cybersource_rest_client/models/{inline_response_201_3_error_information.rb → create_fx_rates_response_error_information.rb} +2 -2
  170. data/lib/cybersource_rest_client/models/{inline_response_201_3_error_information_details.rb → create_fx_rates_response_error_information_details.rb} +1 -1
  171. data/lib/cybersource_rest_client/models/{inline_response_201_3_order_information.rb → create_fx_rates_response_order_information.rb} +2 -2
  172. data/lib/cybersource_rest_client/models/{inline_response_201_3_order_information_amount_details.rb → create_fx_rates_response_order_information_amount_details.rb} +1 -1
  173. data/lib/cybersource_rest_client/models/{inline_response_201_3_processing_information.rb → create_fx_rates_response_processing_information.rb} +2 -2
  174. data/lib/cybersource_rest_client/models/{inline_response_201_3_processing_information_routing.rb → create_fx_rates_response_processing_information_routing.rb} +1 -1
  175. data/lib/cybersource_rest_client/models/{inline_response_201_3_processor_information.rb → create_fx_rates_response_processor_information.rb} +1 -1
  176. data/lib/cybersource_rest_client/models/{inline_response_201_11.rb → create_offer_response.rb} +5 -5
  177. data/lib/cybersource_rest_client/models/{inline_response_201_11_client_reference_information.rb → create_offer_response_client_reference_information.rb} +1 -1
  178. data/lib/cybersource_rest_client/models/{inline_response_201_11_error_information.rb → create_offer_response_error_information.rb} +1 -1
  179. data/lib/cybersource_rest_client/models/{inline_response_201_11_order_information.rb → create_offer_response_order_information.rb} +2 -2
  180. data/lib/cybersource_rest_client/models/{inline_response_201_11_order_information_currency_conversion.rb → create_offer_response_order_information_currency_conversion.rb} +2 -2
  181. data/lib/cybersource_rest_client/models/{inline_response_201_11_order_information_currency_conversion_offer.rb → create_offer_response_order_information_currency_conversion_offer.rb} +1 -1
  182. data/lib/cybersource_rest_client/models/{inline_response_201_11_processor_information.rb → create_offer_response_processor_information.rb} +1 -1
  183. data/lib/cybersource_rest_client/models/create_order_request.rb +11 -1
  184. data/lib/cybersource_rest_client/models/create_payment_request.rb +15 -2
  185. data/lib/cybersource_rest_client/models/{body_1.rb → create_query_api_request.rb} +1 -1
  186. data/lib/cybersource_rest_client/models/{inline_response_201_4.rb → create_query_api_response.rb} +5 -5
  187. data/lib/cybersource_rest_client/models/{inline_response_201_4_acquirer_information.rb → create_query_api_response_acquirer_information.rb} +1 -1
  188. data/lib/cybersource_rest_client/models/{inline_response_201_4_client_reference_information.rb → create_query_api_response_client_reference_information.rb} +1 -1
  189. data/lib/cybersource_rest_client/models/{inline_response_201_4_error_information.rb → create_query_api_response_error_information.rb} +2 -2
  190. data/lib/cybersource_rest_client/models/{inline_response_201_4_error_information_details.rb → create_query_api_response_error_information_details.rb} +1 -1
  191. data/lib/cybersource_rest_client/models/{inline_response_200_1__links.rb → create_query_api_response_links.rb} +2 -2
  192. data/lib/cybersource_rest_client/models/{inline_response_201_4__links_self.rb → create_query_api_response_links_self.rb} +1 -1
  193. data/lib/cybersource_rest_client/models/{inline_response_201_4_merchant_information.rb → create_query_api_response_merchant_information.rb} +1 -1
  194. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_2_order_information.rb → create_query_api_response_order_information.rb} +2 -2
  195. data/lib/cybersource_rest_client/models/{inline_response_201_4_order_information_amount_details.rb → create_query_api_response_order_information_amount_details.rb} +1 -1
  196. data/lib/cybersource_rest_client/models/{inline_response_201_4_payment_information.rb → create_query_api_response_payment_information.rb} +2 -2
  197. data/lib/cybersource_rest_client/models/{inline_response_201_4_payment_information_card.rb → create_query_api_response_payment_information_card.rb} +1 -1
  198. data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information.rb → create_query_api_response_processing_information.rb} +2 -2
  199. data/lib/cybersource_rest_client/models/{inline_response_201_4_processing_information_payouts_options.rb → create_query_api_response_processing_information_payouts_options.rb} +1 -1
  200. data/lib/cybersource_rest_client/models/{inline_response_201_4_processor_information.rb → create_query_api_response_processor_information.rb} +2 -2
  201. data/lib/cybersource_rest_client/models/{inline_response_201_4_processor_information_card_verification.rb → create_query_api_response_processor_information_card_verification.rb} +1 -1
  202. data/lib/cybersource_rest_client/models/{inline_response_201_4_transactions.rb → create_query_api_response_transactions.rb} +7 -7
  203. data/lib/cybersource_rest_client/models/create_session_req.rb +14 -1
  204. data/lib/cybersource_rest_client/models/create_session_request.rb +14 -1
  205. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_2.rb → create_session_response.rb} +4 -4
  206. data/lib/cybersource_rest_client/models/{inline_response_201_4_order_information.rb → create_session_response_order_information.rb} +2 -2
  207. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_2_order_information_amount_details.rb → create_session_response_order_information_amount_details.rb} +1 -1
  208. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_2_payment_information.rb → create_session_response_payment_information.rb} +2 -2
  209. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_2_payment_information_e_wallet.rb → create_session_response_payment_information_e_wallet.rb} +2 -2
  210. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_2_processor_information.rb → create_session_response_processor_information.rb} +1 -1
  211. data/lib/cybersource_rest_client/models/create_webhook.rb +1 -1
  212. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2webhooks_products_1.rb → create_webhook_request_product_item.rb} +1 -1
  213. data/lib/cybersource_rest_client/models/{inline_response_200_7.rb → create_webhook_subscription_response.rb} +1 -1
  214. data/lib/cybersource_rest_client/models/{card_processing_config_common_currencies.rb → currency_configuration.rb} +1 -1
  215. data/lib/cybersource_rest_client/models/{card_processing_config_common_currencies_1.rb → currency_updated_configuration.rb} +1 -1
  216. data/lib/cybersource_rest_client/models/default_merchant_information_merchant_descriptor.rb +196 -0
  217. data/lib/cybersource_rest_client/models/default_payment_instrument.rb +1 -1
  218. data/lib/cybersource_rest_client/models/{inline_response_200_10.rb → device_de_associate_v3_response.rb} +1 -1
  219. data/lib/cybersource_rest_client/models/{inline_response_200_9.rb → device_search_response.rb} +2 -2
  220. data/lib/cybersource_rest_client/models/{inline_response_200_9_devices.rb → device_search_response_devices.rb} +1 -1
  221. data/lib/cybersource_rest_client/models/{inline_response_200_11.rb → device_search_v3_response.rb} +2 -2
  222. data/lib/cybersource_rest_client/models/{inline_response_200_11_devices.rb → device_search_v3_response_devices.rb} +2 -2
  223. data/lib/cybersource_rest_client/models/{inline_response_200_11_payment_processor_to_terminal_map.rb → device_search_v3_response_payment_processor_to_terminal_map.rb} +1 -1
  224. data/lib/cybersource_rest_client/models/{payments_products_digital_payments_subscription_information_features.rb → digital_payments_feature_subscription_item.rb} +1 -1
  225. data/lib/cybersource_rest_client/models/{payment_instrument.rb → embedded_payment_instrument.rb} +2 -2
  226. data/lib/cybersource_rest_client/models/{ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb → enhanced_ancillary_information_service_item.rb} +1 -1
  227. data/lib/cybersource_rest_client/models/{inline_response_401_2.rb → feed_job_status_response.rb} +32 -30
  228. data/lib/cybersource_rest_client/models/feed_processing_summary.rb +213 -0
  229. data/lib/cybersource_rest_client/models/{inline_response_400_16.rb → feed_syndication_protocol_status.rb} +31 -42
  230. data/lib/cybersource_rest_client/models/{inline_response_400_13.rb → flex400_error_response.rb} +2 -2
  231. data/lib/cybersource_rest_client/models/{inline_response_400_1_details.rb → flex400_error_response_details.rb} +1 -1
  232. data/lib/cybersource_rest_client/models/generate_unified_checkout_capture_context_request.rb +2 -19
  233. data/lib/cybersource_rest_client/models/generate_unified_checkout_v1_capture_context_request.rb +2 -19
  234. data/lib/cybersource_rest_client/models/{inline_response_201_5.rb → get_account_info_response.rb} +2 -2
  235. data/lib/cybersource_rest_client/models/{inline_response_201_5_payout_information.rb → get_account_info_response_payout_information.rb} +3 -3
  236. data/lib/cybersource_rest_client/models/{inline_response_201_5_payout_information_pull_funds.rb → get_account_info_response_payout_information_pull_funds.rb} +1 -1
  237. data/lib/cybersource_rest_client/models/{inline_response_201_5_payout_information_push_funds.rb → get_account_info_response_payout_information_push_funds.rb} +1 -1
  238. data/lib/cybersource_rest_client/models/{get_subscription_response_1.rb → get_follow_on_subscription_response.rb} +5 -5
  239. data/lib/cybersource_rest_client/models/{get_subscription_response_1_buyer_information.rb → get_follow_on_subscription_response_buyer_information.rb} +1 -1
  240. data/lib/cybersource_rest_client/models/{get_subscription_response_1__links.rb → get_follow_on_subscription_response_links.rb} +1 -1
  241. data/lib/cybersource_rest_client/models/{get_subscription_response_1_payment_instrument.rb → get_follow_on_subscription_response_payment_instrument.rb} +3 -3
  242. data/lib/cybersource_rest_client/models/{get_subscription_response_1_payment_instrument_bank_account.rb → get_follow_on_subscription_response_payment_instrument_bank_account.rb} +1 -1
  243. data/lib/cybersource_rest_client/models/{get_subscription_response_1_payment_instrument_card.rb → get_follow_on_subscription_response_payment_instrument_card.rb} +1 -1
  244. data/lib/cybersource_rest_client/models/{get_subscription_response_1_shipping_address.rb → get_follow_on_subscription_response_shipping_address.rb} +1 -1
  245. data/lib/cybersource_rest_client/models/{inline_response_200_16.rb → get_offer_response.rb} +4 -4
  246. data/lib/cybersource_rest_client/models/{inline_response_200_16_client_reference_information.rb → get_offer_response_client_reference_information.rb} +1 -1
  247. data/lib/cybersource_rest_client/models/{inline_response_200_1.rb → get_tokenized_card_response.rb} +2 -2
  248. data/lib/cybersource_rest_client/models/{inline_response_201_4__links.rb → get_tokenized_card_response_links.rb} +2 -2
  249. data/lib/cybersource_rest_client/models/{inline_response_401_3__links_self.rb → get_tokenized_card_response_links_self.rb} +1 -1
  250. data/lib/cybersource_rest_client/models/{iccv1checkoutsessionssession_id_discounts.rb → iccv1_update_checkout_sessions_discounts.rb} +1 -1
  251. data/lib/cybersource_rest_client/models/{iccv1checkoutsessionssession_id_fulfillment.rb → iccv1_update_checkout_sessions_fulfillment.rb} +1 -1
  252. data/lib/cybersource_rest_client/models/{iccv1checkout_sessionssession_id_fulfillment_address.rb → iccv1_update_checkout_sessions_fulfillment_address.rb} +1 -1
  253. data/lib/cybersource_rest_client/models/{iccv1checkoutsessionssession_id_payment.rb → iccv1_update_checkoutsessions_payment.rb} +1 -1
  254. data/lib/cybersource_rest_client/models/{iccv1checkout_sessionssession_idcomplete_payment_data_billing_address.rb → iccv1checkout_sessions_payment_data_billing_address.rb} +1 -1
  255. data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data.rb +1 -1
  256. data/lib/cybersource_rest_client/models/{inline_response_201_13_discounts.rb → iccv1checkoutsessions_response_discounts.rb} +1 -1
  257. data/lib/cybersource_rest_client/models/{inline_response_201_13_fulfillment.rb → iccv1checkoutsessions_response_fulfillment.rb} +1 -1
  258. data/lib/cybersource_rest_client/models/{inline_response_201_13_payment.rb → iccv1checkoutsessions_response_payment.rb} +1 -1
  259. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +2 -2
  260. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +6 -6
  261. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +1 -1
  262. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +2 -2
  263. data/lib/cybersource_rest_client/models/inline_response_400.rb +53 -9
  264. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +56 -40
  265. data/lib/cybersource_rest_client/models/{inline_response_400_10_fields.rb → inline_response_400_1_fields.rb} +1 -1
  266. data/lib/cybersource_rest_client/models/inline_response_400_2.rb +6 -6
  267. data/lib/cybersource_rest_client/models/{inline_response_400_11_details.rb → inline_response_400_2_details.rb} +1 -1
  268. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +30 -58
  269. data/lib/cybersource_rest_client/models/{inline_response_400_12_details.rb → inline_response_400_3_details.rb} +1 -1
  270. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +40 -67
  271. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +16 -16
  272. data/lib/cybersource_rest_client/models/{inline_response_400_14_details.rb → inline_response_400_5_details.rb} +1 -1
  273. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +52 -6
  274. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +38 -38
  275. data/lib/cybersource_rest_client/models/inline_response_401.rb +33 -51
  276. data/lib/cybersource_rest_client/models/inline_response_401_1.rb +56 -44
  277. data/lib/cybersource_rest_client/models/{inline_response_401_3__links.rb → inline_response_401_1__links.rb} +2 -2
  278. data/lib/cybersource_rest_client/models/{inline_response_200_1__links_self.rb → inline_response_401_1__links_self.rb} +1 -1
  279. data/lib/cybersource_rest_client/models/{inline_response_401_3_fields.rb → inline_response_401_1_fields.rb} +1 -1
  280. data/lib/cybersource_rest_client/models/inline_response_403.rb +53 -9
  281. data/lib/cybersource_rest_client/models/inline_response_403_1.rb +22 -34
  282. data/lib/cybersource_rest_client/models/inline_response_403_2.rb +29 -29
  283. data/lib/cybersource_rest_client/models/inline_response_404.rb +20 -10
  284. data/lib/cybersource_rest_client/models/inline_response_404_1.rb +42 -7
  285. data/lib/cybersource_rest_client/models/{inline_response_404_2_details.rb → inline_response_404_1_details.rb} +1 -1
  286. data/lib/cybersource_rest_client/models/inline_response_404_2.rb +7 -8
  287. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +2 -26
  288. data/lib/cybersource_rest_client/models/{inline_response_404_4_details.rb → inline_response_404_3_details.rb} +1 -1
  289. data/lib/cybersource_rest_client/models/inline_response_404_4.rb +29 -17
  290. data/lib/cybersource_rest_client/models/inline_response_404_5.rb +28 -28
  291. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
  292. data/lib/cybersource_rest_client/models/inline_response_500.rb +53 -9
  293. data/lib/cybersource_rest_client/models/inline_response_500_1.rb +10 -22
  294. data/lib/cybersource_rest_client/models/inline_response_500_2.rb +29 -29
  295. data/lib/cybersource_rest_client/models/inline_response_502.rb +53 -9
  296. data/lib/cybersource_rest_client/models/inline_response_502_1.rb +12 -24
  297. data/lib/cybersource_rest_client/models/inline_response_502_2.rb +20 -21
  298. data/lib/cybersource_rest_client/models/{payment_instrument_list__embedded.rb → instrument_identifier_payment_instrument_list_embedded.rb} +2 -2
  299. data/lib/cybersource_rest_client/models/{payment_instrument_list_1__embedded.rb → instrument_identifier_payment_instrument_list_embedded_1.rb} +1 -1
  300. data/lib/cybersource_rest_client/models/{payment_instrument_list__links.rb → instrument_identifier_payment_instrument_list_links.rb} +6 -6
  301. data/lib/cybersource_rest_client/models/{payment_instrument_list__links_first.rb → instrument_identifier_payment_instrument_list_links_first.rb} +1 -1
  302. data/lib/cybersource_rest_client/models/{payment_instrument_list__links_last.rb → instrument_identifier_payment_instrument_list_links_last.rb} +1 -1
  303. data/lib/cybersource_rest_client/models/{payment_instrument_list__links_next.rb → instrument_identifier_payment_instrument_list_links_next.rb} +1 -1
  304. data/lib/cybersource_rest_client/models/{payment_instrument_list__links_prev.rb → instrument_identifier_payment_instrument_list_links_prev.rb} +1 -1
  305. data/lib/cybersource_rest_client/models/{payment_instrument_list__links_self.rb → instrument_identifier_payment_instrument_list_links_self.rb} +1 -1
  306. data/lib/cybersource_rest_client/models/{pts_v2_credits_post201_response_1.rb → intimate_billing_agreement_response.rb} +2 -2
  307. data/lib/cybersource_rest_client/models/{pts_v2_credits_post201_response_1_processor_information.rb → intimate_billing_agreement_response_processor_information.rb} +1 -1
  308. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +2 -2
  309. data/lib/cybersource_rest_client/models/{inline_response_200_4.rb → merchant_defined_field_with_id_response.rb} +1 -1
  310. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +10 -10
  311. data/lib/cybersource_rest_client/models/merchant_registration_response201_api_integrations.rb +225 -0
  312. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +1 -1
  313. data/lib/cybersource_rest_client/models/merchant_registration_response201_web_integrations.rb +225 -0
  314. data/lib/cybersource_rest_client/models/merchant_request.rb +7 -7
  315. data/lib/cybersource_rest_client/models/merchant_update.rb +5 -5
  316. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +1 -1
  317. data/lib/cybersource_rest_client/models/mit_void_request.rb +15 -5
  318. data/lib/cybersource_rest_client/models/mm_fx_rates400_error_response.rb +264 -0
  319. data/lib/cybersource_rest_client/models/{inline_response_404_6.rb → mm_fx_rates401_error_response.rb} +38 -20
  320. data/lib/cybersource_rest_client/models/{inline_response_502_5.rb → mm_fx_rates502_error_response.rb} +22 -21
  321. data/lib/cybersource_rest_client/models/{inline_response_400_15.rb → mm_query_api400_error_response.rb} +23 -35
  322. data/lib/cybersource_rest_client/models/mm_query_api401_error_response.rb +241 -0
  323. data/lib/cybersource_rest_client/models/{inline_response_502_3.rb → mm_query_api502_error_response.rb} +1 -1
  324. data/lib/cybersource_rest_client/models/{body_2.rb → parse_emv_tags_request.rb} +1 -1
  325. data/lib/cybersource_rest_client/models/{inline_response_206.rb → partial_device_de_associate_v3.rb} +1 -1
  326. data/lib/cybersource_rest_client/models/patch_customer_payment_instrument_request.rb +1 -1
  327. data/lib/cybersource_rest_client/models/patch_customer_request.rb +1 -1
  328. data/lib/cybersource_rest_client/models/patch_payment_instrument_request.rb +1 -1
  329. data/lib/cybersource_rest_client/models/{default_payment_instrument__embedded.rb → payment_instrument_embedded.rb} +1 -1
  330. data/lib/cybersource_rest_client/models/{payment_instrument_list__embedded__embedded.rb → payment_instrument_embedded_1.rb} +1 -1
  331. data/lib/cybersource_rest_client/models/{tmsv1paymentinstruments__embedded.rb → payment_instrument_embedded_2.rb} +1 -1
  332. data/lib/cybersource_rest_client/models/payment_instrument_list.rb +2 -2
  333. data/lib/cybersource_rest_client/models/payment_instrument_list_1.rb +2 -2
  334. data/lib/cybersource_rest_client/models/{request.rb → payment_token_request.rb} +1 -1
  335. data/lib/cybersource_rest_client/models/payments_configuration_setup.rb +11 -1
  336. data/lib/cybersource_rest_client/models/payments_products.rb +11 -1
  337. data/lib/cybersource_rest_client/models/payments_products_card_processing_subscription_information.rb +1 -1
  338. data/lib/cybersource_rest_client/models/payments_products_digital_payments_subscription_information.rb +1 -1
  339. data/lib/cybersource_rest_client/models/payments_products_microform_subscription_information.rb +1 -1
  340. data/lib/cybersource_rest_client/models/{merchant_defined_field_core.rb → pbl_merchant_defined_field_definition_request.rb} +1 -1
  341. data/lib/cybersource_rest_client/models/pbl_payment_links_all_get200_response.rb +1 -1
  342. data/lib/cybersource_rest_client/models/{pbl_payment_links_all_get200_response_links.rb → pbl_payment_links_all_get200_response_sdk_links.rb} +1 -1
  343. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +1 -1
  344. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +1 -1
  345. data/lib/cybersource_rest_client/models/{body.rb → post_batch_request.rb} +1 -1
  346. data/lib/cybersource_rest_client/models/post_customer_payment_instrument_request.rb +1 -1
  347. data/lib/cybersource_rest_client/models/post_customer_request.rb +1 -1
  348. data/lib/cybersource_rest_client/models/{inline_response_201_1.rb → post_payment_credentials_response.rb} +4 -4
  349. data/lib/cybersource_rest_client/models/{inline_response_201_1_card.rb → post_payment_credentials_response_card.rb} +1 -1
  350. data/lib/cybersource_rest_client/models/{inline_response_201_1__links.rb → post_payment_credentials_response_links.rb} +5 -5
  351. data/lib/cybersource_rest_client/models/{inline_response_201_1__links_customer.rb → post_payment_credentials_response_links_customer.rb} +1 -1
  352. data/lib/cybersource_rest_client/models/{inline_response_201_1__links_instrument_identifier.rb → post_payment_credentials_response_links_instrument_identifier.rb} +1 -1
  353. data/lib/cybersource_rest_client/models/{inline_response_201_1__links_payment_instruments.rb → post_payment_credentials_response_links_payment_instruments.rb} +1 -1
  354. data/lib/cybersource_rest_client/models/{inline_response_201_1__links_tokenized_card.rb → post_payment_credentials_response_links_tokenized_card.rb} +1 -1
  355. data/lib/cybersource_rest_client/models/{inline_response_201_1_tokenized_card.rb → post_payment_credentials_response_tokenized_card.rb} +1 -1
  356. data/lib/cybersource_rest_client/models/{post_payment_credentials_request_1.rb → post_payment_credentials_v3_request.rb} +1 -1
  357. data/lib/cybersource_rest_client/models/post_payment_instrument_request.rb +1 -1
  358. data/lib/cybersource_rest_client/models/{inline_response_200.rb → post_tokenize_response.rb} +2 -2
  359. data/lib/cybersource_rest_client/models/{inline_response_400_details.rb → post_tokenize_response_details.rb} +1 -1
  360. data/lib/cybersource_rest_client/models/{inline_response_200_errors.rb → post_tokenize_response_errors.rb} +2 -2
  361. data/lib/cybersource_rest_client/models/{inline_response_200_responses.rb → post_tokenize_response_responses.rb} +2 -2
  362. data/lib/cybersource_rest_client/models/{deactivate_merchant_key_response200.rb → product_accepted_feed_response.rb} +11 -16
  363. data/lib/cybersource_rest_client/models/{inline_response_200_6.rb → product_catalog_product.rb} +2 -2
  364. data/lib/cybersource_rest_client/models/{notificationsubscriptionsv2productsorganization_id_event_types.rb → product_catalog_product_item.rb} +1 -1
  365. data/lib/cybersource_rest_client/models/{inline_response_200_20.rb → product_catalog_response.rb} +2 -2
  366. data/lib/cybersource_rest_client/models/product_catalog_response_products.rb +479 -0
  367. data/lib/cybersource_rest_client/models/{inline_response_200_21.rb → product_detail_response.rb} +2 -2
  368. data/lib/cybersource_rest_client/models/pts_v2_payments_order_post201_response_processor_information.rb +1 -1
  369. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +12 -1
  370. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +102 -6
  371. data/lib/cybersource_rest_client/models/{push_funds201_response__links_self.rb → pts_v2_payments_post201_response_links_self_1.rb} +1 -1
  372. data/lib/cybersource_rest_client/models/{pull_funds201_response__links_instrument_identifier.rb → pts_v2_payments_post201_response_links_self_10.rb} +1 -1
  373. data/lib/cybersource_rest_client/models/{pull_funds_reversal201_response__links_self.rb → pts_v2_payments_post201_response_links_self_11.rb} +1 -1
  374. data/lib/cybersource_rest_client/models/{pull_funds_refund201_response__links_self.rb → pts_v2_payments_post201_response_links_self_12.rb} +1 -1
  375. data/lib/cybersource_rest_client/models/{push_funds201_response__links_customer.rb → pts_v2_payments_post201_response_links_self_2.rb} +1 -1
  376. data/lib/cybersource_rest_client/models/{push_funds201_response__links_payment_instrument.rb → pts_v2_payments_post201_response_links_self_3.rb} +1 -1
  377. data/lib/cybersource_rest_client/models/{push_funds201_response__links_instrument_identifier.rb → pts_v2_payments_post201_response_links_self_4.rb} +1 -1
  378. data/lib/cybersource_rest_client/models/{pull_funds201_response__links_self.rb → pts_v2_payments_post201_response_links_self_5.rb} +1 -1
  379. data/lib/cybersource_rest_client/models/{pull_funds201_response__links_reversal.rb → pts_v2_payments_post201_response_links_self_6.rb} +1 -1
  380. data/lib/cybersource_rest_client/models/{pull_funds201_response__links_refund.rb → pts_v2_payments_post201_response_links_self_7.rb} +1 -1
  381. data/lib/cybersource_rest_client/models/{pull_funds201_response__links_customer.rb → pts_v2_payments_post201_response_links_self_8.rb} +1 -1
  382. data/lib/cybersource_rest_client/models/{pull_funds201_response__links_payment_instrument.rb → pts_v2_payments_post201_response_links_self_9.rb} +1 -1
  383. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_ship_to.rb +12 -1
  384. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +22 -5
  385. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +22 -5
  386. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_risk_information_processor_results.rb +1 -1
  387. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_processor_information.rb +22 -5
  388. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +1 -1
  389. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information.rb} +2 -2
  390. data/lib/cybersource_rest_client/models/{ptsv2paymentsidreversals_point_of_sale_information_emv.rb → pts_v2_payments_reversals_post201_response_point_of_sale_information_emv.rb} +1 -1
  391. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_processor_information.rb +22 -5
  392. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_merchant_information.rb +1 -1
  393. data/lib/cybersource_rest_client/models/ptsv2billingagreements_installment_information.rb +1 -1
  394. data/lib/cybersource_rest_client/models/ptsv2intents_buyer_information.rb +196 -0
  395. data/lib/cybersource_rest_client/models/ptsv2intents_merchant_information_merchant_descriptor.rb +18 -1
  396. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_amount_details.rb +1 -1
  397. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_bill_to.rb +154 -1
  398. data/lib/cybersource_rest_client/models/ptsv2intents_order_information_line_items.rb +16 -5
  399. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information.rb +1 -1
  400. data/lib/cybersource_rest_client/models/ptsv2intentsid_merchant_information_merchant_descriptor.rb +207 -0
  401. data/lib/cybersource_rest_client/models/ptsv2paymentreferences_processing_information.rb +1 -1
  402. data/lib/cybersource_rest_client/models/ptsv2payments_buyer.rb +247 -0
  403. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +15 -5
  404. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_loyalty.rb +213 -0
  405. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +1 -1
  406. data/lib/cybersource_rest_client/models/ptsv2payments_order_history.rb +238 -0
  407. data/lib/cybersource_rest_client/models/ptsv2payments_order_information.rb +14 -2
  408. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items_extended.rb +733 -0
  409. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_ship_to.rb +22 -5
  410. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_vouchers.rb +196 -0
  411. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +39 -5
  412. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information.rb +53 -5
  413. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history.rb +16 -5
  414. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account.rb +75 -5
  415. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account_previous_login.rb +257 -0
  416. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account_previous_login_ip_address.rb +213 -0
  417. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_buyer_history_customer_account_previous_order.rb +196 -0
  418. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_external_score.rb +208 -0
  419. data/lib/cybersource_rest_client/models/ptsv2payments_risk_information_store.rb +265 -0
  420. data/lib/cybersource_rest_client/models/ptsv2payments_sender_information.rb +22 -5
  421. data/lib/cybersource_rest_client/models/ptsv2payments_ship_to.rb +281 -0
  422. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_extended.rb +258 -0
  423. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_legs.rb +213 -0
  424. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +1 -1
  425. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +5 -22
  426. data/lib/cybersource_rest_client/models/{ptsv2paymentsidrefunds_travel_information_transit_airline_ancillary_information.rb → ptsv2payments_travel_information_transit_airline_enhanced_ancillary_information.rb} +23 -6
  427. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +1 -1
  428. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_point_of_sale_information.rb +1 -1
  429. data/lib/cybersource_rest_client/models/{ptsv2paymentsidcaptures_point_of_sale_information_emv.rb → ptsv2paymentsidrefunds_point_of_sale_information_emv.rb} +1 -1
  430. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_travel_information_transit_airline.rb +1 -1
  431. data/lib/cybersource_rest_client/models/{pull_funds201_response__links.rb → pull_funds201_response_links.rb} +6 -6
  432. data/lib/cybersource_rest_client/models/{pull_funds_refund201_response__links.rb → pull_funds_refund201_response_links.rb} +1 -1
  433. data/lib/cybersource_rest_client/models/{pull_funds_reversal201_response__links.rb → pull_funds_reversal201_response_links.rb} +1 -1
  434. data/lib/cybersource_rest_client/models/{push_funds201_response__links.rb → push_funds201_response_links.rb} +4 -4
  435. data/lib/cybersource_rest_client/models/{inline_response_400_14.rb → rbs_follow_on_subscription400_error_response.rb} +17 -17
  436. data/lib/cybersource_rest_client/models/{inline_response_400_8.rb → rbs_get_payment400_error_response.rb} +1 -1
  437. data/lib/cybersource_rest_client/models/{inline_response_400_11.rb → rbs_plan400_error_response.rb} +7 -7
  438. data/lib/cybersource_rest_client/models/{inline_response_400_9.rb → rbs_put_payment400_error_response.rb} +1 -1
  439. data/lib/cybersource_rest_client/models/rbs_subscription400_error_response.rb +235 -0
  440. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1.rb → refresh_payment_status_response.rb} +18 -7
  441. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_error_information.rb → refresh_payment_status_response_error_information.rb} +2 -2
  442. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_error_information_details.rb → refresh_payment_status_response_error_information_details.rb} +1 -1
  443. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_issuer_information.rb → refresh_payment_status_response_issuer_information.rb} +1 -1
  444. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_order_information.rb → refresh_payment_status_response_order_information.rb} +48 -5
  445. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_order_information_amount_details.rb → refresh_payment_status_response_order_information_amount_details.rb} +1 -1
  446. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_order_information_bill_to.rb → refresh_payment_status_response_order_information_bill_to.rb} +1 -1
  447. data/lib/cybersource_rest_client/models/{pts_v2_payouts_post201_response_merchant_information_merchant_descriptor.rb → refresh_payment_status_response_order_information_merchant_descriptor.rb} +1 -1
  448. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_order_information_ship_to.rb → refresh_payment_status_response_order_information_ship_to.rb} +1 -1
  449. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_payment_information.rb → refresh_payment_status_response_payment_information.rb} +4 -4
  450. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_payment_information_bank.rb → refresh_payment_status_response_payment_information_bank.rb} +2 -2
  451. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_payment_information_bank_account.rb → refresh_payment_status_response_payment_information_bank_account.rb} +1 -1
  452. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_payment_information_e_wallet.rb → refresh_payment_status_response_payment_information_e_wallet.rb} +1 -1
  453. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_payment_information_payment_type.rb → refresh_payment_status_response_payment_information_payment_type.rb} +2 -2
  454. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_payment_information_payment_type_method.rb → refresh_payment_status_response_payment_information_payment_type_method.rb} +1 -1
  455. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_processor_information.rb → refresh_payment_status_response_processor_information.rb} +20 -3
  456. data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_1_processor_information_avs.rb → refresh_payment_status_response_processor_information_avs.rb} +1 -1
  457. data/lib/cybersource_rest_client/models/{inline_response_201.rb → retrieve_or_delete_payment_token_response.rb} +3 -3
  458. data/lib/cybersource_rest_client/models/{inline_response_201_order_information.rb → retrieve_or_delete_payment_token_response_order_information.rb} +2 -2
  459. data/lib/cybersource_rest_client/models/{inline_response_201_order_information_ship_to.rb → retrieve_or_delete_payment_token_response_order_information_ship_to.rb} +1 -1
  460. data/lib/cybersource_rest_client/models/{inline_response_201_payment_information.rb → retrieve_or_delete_payment_token_response_payment_information.rb} +3 -3
  461. data/lib/cybersource_rest_client/models/{inline_response_201_payment_information_e_wallet.rb → retrieve_or_delete_payment_token_response_payment_information_e_wallet.rb} +1 -1
  462. data/lib/cybersource_rest_client/models/{inline_response_201_payment_information_tokenized_payment_method.rb → retrieve_or_delete_payment_token_response_payment_information_tokenized_payment_method.rb} +1 -1
  463. data/lib/cybersource_rest_client/models/risk_information_buyer_history_customer_account.rb +263 -0
  464. data/lib/cybersource_rest_client/models/risk_products.rb +15 -5
  465. data/lib/cybersource_rest_client/models/riskv1authentications_merchant_information.rb +206 -0
  466. data/lib/cybersource_rest_client/models/riskv1authentications_risk_information.rb +1 -1
  467. data/lib/cybersource_rest_client/models/riskv1decisions_aggregator_information.rb +196 -0
  468. data/lib/cybersource_rest_client/models/riskv1decisions_bundled_consumer_authentication_information.rb +806 -0
  469. data/lib/cybersource_rest_client/models/riskv1decisions_bundled_order_information_ship_to.rb +462 -0
  470. data/lib/cybersource_rest_client/models/riskv1decisions_bundled_travel_information_legs.rb +286 -0
  471. data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +15 -5
  472. data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information_loyalty.rb +213 -0
  473. data/lib/cybersource_rest_client/models/riskv1decisions_merchant_information.rb +18 -1
  474. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +15 -2
  475. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +18 -1
  476. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +18 -1
  477. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_vouchers.rb +196 -0
  478. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +25 -5
  479. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information_payment_account_reference.rb +196 -0
  480. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information.rb +77 -5
  481. data/lib/cybersource_rest_client/models/riskv1decisions_processing_information_authorization_options.rb +190 -0
  482. data/lib/cybersource_rest_client/models/riskv1decisions_recipient_information.rb +468 -0
  483. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +53 -5
  484. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information_buyer_history.rb +276 -0
  485. data/lib/cybersource_rest_client/models/riskv1decisions_sender_information.rb +478 -0
  486. data/lib/cybersource_rest_client/models/riskv1decisions_sender_information_account.rb +230 -0
  487. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information.rb +16 -6
  488. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_lodging.rb +230 -0
  489. data/lib/cybersource_rest_client/models/{inline_response_201_10.rb → save_asym_egress_key_response.rb} +1 -1
  490. data/lib/cybersource_rest_client/models/{inline_response_201_7.rb → save_sym_egress_key_response.rb} +2 -2
  491. data/lib/cybersource_rest_client/models/{inline_response_201_7_key_information.rb → save_sym_egress_key_response_key_information.rb} +2 -2
  492. data/lib/cybersource_rest_client/models/{inline_response_201_7_key_information_error_information.rb → save_sym_egress_key_response_key_information_error_information.rb} +2 -2
  493. data/lib/cybersource_rest_client/models/{inline_response_201_7_key_information_error_information_details.rb → save_sym_egress_key_response_key_information_error_information_details_item.rb} +1 -1
  494. data/lib/cybersource_rest_client/models/{inline_response_201_9.rb → test_webhook_subscription_response.rb} +2 -2
  495. data/lib/cybersource_rest_client/models/{inline_response_201_9_payloads.rb → test_webhook_subscription_response_payloads.rb} +2 -2
  496. data/lib/cybersource_rest_client/models/{inline_response_201_9_payloads_test_payload.rb → test_webhook_subscription_response_payloads_test_payload.rb} +1 -1
  497. data/lib/cybersource_rest_client/models/{inline_response_409.rb → tms400_error_response.rb} +2 -2
  498. data/lib/cybersource_rest_client/models/{inline_response_200_details.rb → tms400_error_response_details.rb} +1 -1
  499. data/lib/cybersource_rest_client/models/{inline_response_400_errors.rb → tms400_error_response_errors.rb} +2 -2
  500. data/lib/cybersource_rest_client/models/{inline_response_410.rb → tms403_error_response.rb} +2 -2
  501. data/lib/cybersource_rest_client/models/{inline_response_403_errors.rb → tms403_error_response_errors.rb} +1 -1
  502. data/lib/cybersource_rest_client/models/{inline_response_412.rb → tms404_error_response.rb} +2 -2
  503. data/lib/cybersource_rest_client/models/{inline_response_404_errors.rb → tms404_error_response_errors.rb} +1 -1
  504. data/lib/cybersource_rest_client/models/{inline_response_424.rb → tms409_error_response.rb} +2 -2
  505. data/lib/cybersource_rest_client/models/{inline_response_409_errors.rb → tms409_error_response_errors.rb} +1 -1
  506. data/lib/cybersource_rest_client/models/tms410_error_response.rb +191 -0
  507. data/lib/cybersource_rest_client/models/{inline_response_410_errors.rb → tms410_error_response_errors.rb} +1 -1
  508. data/lib/cybersource_rest_client/models/tms412_error_response.rb +191 -0
  509. data/lib/cybersource_rest_client/models/{inline_response_412_errors.rb → tms412_error_response_errors.rb} +1 -1
  510. data/lib/cybersource_rest_client/models/tms424_error_response.rb +191 -0
  511. data/lib/cybersource_rest_client/models/{inline_response_424_errors.rb → tms424_error_response_errors.rb} +1 -1
  512. data/lib/cybersource_rest_client/models/tms500_error_response.rb +191 -0
  513. data/lib/cybersource_rest_client/models/{inline_response_500_errors.rb → tms500_error_response_errors.rb} +1 -1
  514. data/lib/cybersource_rest_client/models/tms502_error_response.rb +191 -0
  515. data/lib/cybersource_rest_client/models/tms_merchant_information_merchant_descriptor.rb +20 -15
  516. data/lib/cybersource_rest_client/models/{tmsv2customers__embedded.rb → tmsv2tokenize_token_information_customer_embedded_1.rb} +1 -1
  517. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +11 -1
  518. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +18 -1
  519. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information.rb +1 -1
  520. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +1 -1
  521. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +1 -1
  522. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_travel_information.rb +189 -0
  523. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_travel_information_transit.rb +189 -0
  524. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_travel_information_transit_airline.rb +213 -0
  525. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_client_reference_information.rb → tss_v2_transactions_post201_response_embedded_client_reference_information.rb} +18 -1
  526. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb → tss_v2_transactions_post201_response_embedded_point_of_sale_information.rb} +1 -1
  527. data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_transaction_summaries.rb → tss_v2_transactions_post201_response_embedded_transaction_summaries.rb} +11 -1
  528. data/lib/cybersource_rest_client/models/{inline_response_201_13.rb → ucp_checkout_session_response.rb} +8 -8
  529. data/lib/cybersource_rest_client/models/{inline_response_201_13_item.rb → ucp_checkout_session_response_item.rb} +1 -1
  530. data/lib/cybersource_rest_client/models/{inline_response_201_13_line_items.rb → ucp_checkout_session_response_line_items.rb} +2 -2
  531. data/lib/cybersource_rest_client/models/{inline_response_201_13_order.rb → ucp_checkout_session_response_order.rb} +1 -1
  532. data/lib/cybersource_rest_client/models/{inline_response_201_13_ucp.rb → ucp_checkout_session_response_ucp.rb} +2 -2
  533. data/lib/cybersource_rest_client/models/{inline_response_201_13_ucp_capabilities.rb → ucp_checkout_session_response_ucp_capabilities.rb} +1 -1
  534. data/lib/cybersource_rest_client/models/ucp_update_checkout_session_request.rb +3 -3
  535. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +1 -1
  536. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +2 -2
  537. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information_sub_merchant.rb +9 -9
  538. data/lib/cybersource_rest_client/models/ucv1sessions_data_installment_information.rb +1 -1
  539. data/lib/cybersource_rest_client/models/ucv1sessions_data_merchant_information.rb +1 -1
  540. data/lib/cybersource_rest_client/models/ucv1sessions_data_order_information_bill_to.rb +1 -1
  541. data/lib/cybersource_rest_client/models/ucv1sessions_data_processing_information_recurring_options.rb +1 -1
  542. data/lib/cybersource_rest_client/models/ucv1sessions_payment_configurations_clicktopay.rb +18 -5
  543. data/lib/cybersource_rest_client/models/underwriting_configuration_organization_information_business_information.rb +1 -1
  544. data/lib/cybersource_rest_client/models/{underwriting_configuration_organization_information_business_information_owner_information.rb → underwriting_configuration_owner_information.rb} +2 -2
  545. data/lib/cybersource_rest_client/models/{underwriting_configuration_organization_information_business_information_address_1.rb → underwriting_configuration_owner_information_address.rb} +1 -1
  546. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +3 -3
  547. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +3 -3
  548. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +3 -3
  549. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +3 -3
  550. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +3 -3
  551. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +2 -2
  552. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +3 -3
  553. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +2 -2
  554. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +3 -3
  555. data/lib/cybersource_rest_client/models/{key_update.rb → update_agent_key_request.rb} +6 -6
  556. data/lib/cybersource_rest_client/models/{merchant_defined_field_core_1.rb → update_merchant_defined_field_core_by_id_request.rb} +1 -1
  557. data/lib/cybersource_rest_client/models/{key_update_1.rb → update_merchant_key_request.rb} +6 -6
  558. data/lib/cybersource_rest_client/models/{merchant_defined_field_definition_request_1.rb → update_pbl_merchant_defined_field_core_by_id_request.rb} +1 -1
  559. data/lib/cybersource_rest_client/models/{get_subscriptions_payments_response_1.rb → update_subscriptions_payments_response.rb} +2 -2
  560. data/lib/cybersource_rest_client/models/{get_subscriptions_payments_response_1__links.rb → update_subscriptions_payments_response_links.rb} +1 -1
  561. data/lib/cybersource_rest_client/models/{inline_response_200_8.rb → update_webhook_subscription_response.rb} +1 -1
  562. data/lib/cybersource_rest_client/models/upv1capturecontexts_data_order_information_bill_to.rb +1 -1
  563. data/lib/cybersource_rest_client/models/upv1capturecontexts_order_information_bill_to.rb +1 -1
  564. data/lib/cybersource_rest_client/models/value_added_services_products.rb +15 -5
  565. data/lib/cybersource_rest_client/models/void_capture_request.rb +15 -5
  566. data/lib/cybersource_rest_client/models/void_credit_request.rb +15 -5
  567. data/lib/cybersource_rest_client/models/void_payment_request.rb +15 -5
  568. data/lib/cybersource_rest_client/models/void_refund_request.rb +15 -5
  569. data/lib/cybersource_rest_client/models/{inline_response_201_8.rb → webhook_subscription.rb} +1 -1
  570. data/lib/cybersource_rest_client.rb +2307 -2264
  571. metadata +439 -396
  572. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +0 -2279
  573. data/lib/cybersource_rest_client/api/merchant_capabilities_api.rb +0 -1065
  574. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +0 -239
  575. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +0 -302
  576. data/lib/cybersource_rest_client/models/inline_response_200_19_errors.rb +0 -213
  577. data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant.rb +0 -237
  578. data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant_products.rb +0 -259
  579. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +0 -1081
  580. data/lib/cybersource_rest_client/models/inline_response_400_10.rb +0 -258
  581. data/lib/cybersource_rest_client/models/inline_response_400_12.rb +0 -236
  582. data/lib/cybersource_rest_client/models/inline_response_401_3.rb +0 -253
  583. data/lib/cybersource_rest_client/models/inline_response_403_3.rb +0 -223
  584. data/lib/cybersource_rest_client/models/inline_response_500_3.rb +0 -223
  585. data/lib/cybersource_rest_client/models/inline_response_502_4.rb +0 -223
  586. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +0 -223
  587. /data/lib/cybersource_rest_client/models/{create_subscription_response__links.rb → create_subscription_response_links.rb} +0 -0
  588. /data/lib/cybersource_rest_client/models/{default_payment_instrument__links.rb → default_payment_instrument_links.rb} +0 -0
  589. /data/lib/cybersource_rest_client/models/{default_payment_instrument__links_self.rb → default_payment_instrument_links_self.rb} +0 -0
  590. /data/lib/cybersource_rest_client/models/{default_shipping_address__links.rb → default_shipping_address_links.rb} +0 -0
  591. /data/lib/cybersource_rest_client/models/{default_shipping_address__links_customer.rb → default_shipping_address_links_customer.rb} +0 -0
  592. /data/lib/cybersource_rest_client/models/{default_shipping_address__links_self.rb → default_shipping_address_links_self.rb} +0 -0
  593. /data/lib/cybersource_rest_client/models/{get_all_plans_response__links.rb → get_all_plans_response_links.rb} +0 -0
  594. /data/lib/cybersource_rest_client/models/{get_all_subscriptions_response__links.rb → get_all_subscriptions_response_links.rb} +0 -0
  595. /data/lib/cybersource_rest_client/models/{get_subscriptions_payments_response__links.rb → get_subscriptions_payments_response_links.rb} +0 -0
  596. /data/lib/cybersource_rest_client/models/{invoicing_v2_invoices_all_get200_response__links.rb → invoicing_v2_invoices_all_get200_response_links.rb} +0 -0
  597. /data/lib/cybersource_rest_client/models/{payer_auth_config_card_types_j_cbj_secure.rb → payer_auth_config_card_types_jcbj_secure.rb} +0 -0
  598. /data/lib/cybersource_rest_client/models/{pts_v1_transaction_batches_get200_response__links.rb → pts_v1_transaction_batches_get200_response_links.rb} +0 -0
  599. /data/lib/cybersource_rest_client/models/{pts_v1_transaction_batches_get200_response__links_self.rb → pts_v1_transaction_batches_get200_response_links_self.rb} +0 -0
  600. /data/lib/cybersource_rest_client/models/{pts_v1_transaction_batches_id_get200_response__links.rb → pts_v1_transaction_batches_id_get200_response_links.rb} +0 -0
  601. /data/lib/cybersource_rest_client/models/{pts_v1_transaction_batches_id_get200_response__links_transactions.rb → pts_v1_transaction_batches_id_get200_response_links_transactions.rb} +0 -0
  602. /data/lib/cybersource_rest_client/models/{pts_v2_create_billing_agreement_post201_response__links.rb → pts_v2_create_billing_agreement_post201_response_links.rb} +0 -0
  603. /data/lib/cybersource_rest_client/models/{pts_v2_incremental_authorization_patch201_response__links.rb → pts_v2_incremental_authorization_patch201_response_links.rb} +0 -0
  604. /data/lib/cybersource_rest_client/models/{pts_v2_modify_billing_agreement_post201_response__links.rb → pts_v2_modify_billing_agreement_post201_response_links.rb} +0 -0
  605. /data/lib/cybersource_rest_client/models/{pts_v2_payments_captures_post201_response__links.rb → pts_v2_payments_captures_post201_response_links.rb} +0 -0
  606. /data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_embedded_actions_consumer_authentication.rb → pts_v2_payments_post201_response_embedded_actions_consumerauthentication.rb} +0 -0
  607. /data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_embedded_actions_token_create.rb → pts_v2_payments_post201_response_embedded_actions_tokencreate.rb} +0 -0
  608. /data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_embedded_actions_token_update.rb → pts_v2_payments_post201_response_embedded_actions_tokenupdate.rb} +0 -0
  609. /data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response_embedded_actions_watchlist_screening.rb → pts_v2_payments_post201_response_embedded_actions_watchlistscreening.rb} +0 -0
  610. /data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response__links.rb → pts_v2_payments_post201_response_links.rb} +0 -0
  611. /data/lib/cybersource_rest_client/models/{pts_v2_payments_post201_response__links_self.rb → pts_v2_payments_post201_response_links_self.rb} +0 -0
  612. /data/lib/cybersource_rest_client/models/{pts_v2_payments_refund_post201_response__links.rb → pts_v2_payments_refund_post201_response_links.rb} +0 -0
  613. /data/lib/cybersource_rest_client/models/{reporting_v3_reports_get200_response__link.rb → reporting_v3_reports_get200_response_link.rb} +0 -0
  614. /data/lib/cybersource_rest_client/models/{reporting_v3_reports_get200_response__link_report_download.rb → reporting_v3_reports_get200_response_link_report_download.rb} +0 -0
  615. /data/lib/cybersource_rest_client/models/{shipping_address_list_for_customer__embedded.rb → shipping_address_list_for_customer_embedded.rb} +0 -0
  616. /data/lib/cybersource_rest_client/models/{shipping_address_list_for_customer__links.rb → shipping_address_list_for_customer_links.rb} +0 -0
  617. /data/lib/cybersource_rest_client/models/{shipping_address_list_for_customer__links_first.rb → shipping_address_list_for_customer_links_first.rb} +0 -0
  618. /data/lib/cybersource_rest_client/models/{shipping_address_list_for_customer__links_last.rb → shipping_address_list_for_customer_links_last.rb} +0 -0
  619. /data/lib/cybersource_rest_client/models/{shipping_address_list_for_customer__links_next.rb → shipping_address_list_for_customer_links_next.rb} +0 -0
  620. /data/lib/cybersource_rest_client/models/{shipping_address_list_for_customer__links_prev.rb → shipping_address_list_for_customer_links_prev.rb} +0 -0
  621. /data/lib/cybersource_rest_client/models/{shipping_address_list_for_customer__links_self.rb → shipping_address_list_for_customer_links_self.rb} +0 -0
  622. /data/lib/cybersource_rest_client/models/{tms_card_art_brand_logo_asset__links.rb → tms_card_art_brand_logo_asset_links.rb} +0 -0
  623. /data/lib/cybersource_rest_client/models/{tms_card_art_brand_logo_asset__links_self.rb → tms_card_art_brand_logo_asset_links_self.rb} +0 -0
  624. /data/lib/cybersource_rest_client/models/{tms_card_art_combined_asset__links.rb → tms_card_art_combined_asset_links.rb} +0 -0
  625. /data/lib/cybersource_rest_client/models/{tms_card_art_combined_asset__links_self.rb → tms_card_art_combined_asset_links_self.rb} +0 -0
  626. /data/lib/cybersource_rest_client/models/{tms_card_art_icon_asset__links.rb → tms_card_art_icon_asset_links.rb} +0 -0
  627. /data/lib/cybersource_rest_client/models/{tms_card_art_icon_asset__links_self.rb → tms_card_art_icon_asset_links_self.rb} +0 -0
  628. /data/lib/cybersource_rest_client/models/{tms_card_art_issuer_logo_asset__links.rb → tms_card_art_issuer_logo_asset_links.rb} +0 -0
  629. /data/lib/cybersource_rest_client/models/{tms_card_art_issuer_logo_asset__links_self.rb → tms_card_art_issuer_logo_asset_links_self.rb} +0 -0
  630. /data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier__embedded.rb → tms_embedded_instrument_identifier_embedded.rb} +0 -0
  631. /data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier__links.rb → tms_embedded_instrument_identifier_links.rb} +0 -0
  632. /data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier__links_payment_instruments.rb → tms_embedded_instrument_identifier_links_payment_instruments.rb} +0 -0
  633. /data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier__links_self.rb → tms_embedded_instrument_identifier_links_self.rb} +0 -0
  634. /data/lib/cybersource_rest_client/models/{tms_embedded_instrument_identifier__links_tokenizedcards.rb → tms_embedded_instrument_identifier_links_tokenizedcards.rb} +0 -0
  635. /data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__embedded.rb → tmsv2tokenize_token_information_customer_embedded.rb} +0 -0
  636. /data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__links.rb → tmsv2tokenize_token_information_customer_links.rb} +0 -0
  637. /data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__links_payment_instruments.rb → tmsv2tokenize_token_information_customer_links_payment_instruments.rb} +0 -0
  638. /data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__links_self.rb → tmsv2tokenize_token_information_customer_links_self.rb} +0 -0
  639. /data/lib/cybersource_rest_client/models/{tmsv2tokenize_token_information_customer__links_shipping_address.rb → tmsv2tokenize_token_information_customer_links_shipping_address.rb} +0 -0
  640. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_get200_response__links.rb → tss_v2_transactions_get200_response_links.rb} +0 -0
  641. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded.rb → tss_v2_transactions_post201_response_embedded.rb} +0 -0
  642. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_application_information.rb → tss_v2_transactions_post201_response_embedded_application_information.rb} +0 -0
  643. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_application_information_applications.rb → tss_v2_transactions_post201_response_embedded_application_information_applications.rb} +0 -0
  644. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_client_reference_information_partner.rb → tss_v2_transactions_post201_response_embedded_client_reference_information_partner.rb} +0 -0
  645. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb → tss_v2_transactions_post201_response_embedded_consumer_authentication_information.rb} +0 -0
  646. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_error_information.rb → tss_v2_transactions_post201_response_embedded_error_information.rb} +0 -0
  647. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded__links.rb → tss_v2_transactions_post201_response_embedded_links.rb} +0 -0
  648. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_merchant_information.rb → tss_v2_transactions_post201_response_embedded_merchant_information.rb} +0 -0
  649. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_order_information.rb → tss_v2_transactions_post201_response_embedded_order_information.rb} +0 -0
  650. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_order_information_bill_to.rb → tss_v2_transactions_post201_response_embedded_order_information_bill_to.rb} +0 -0
  651. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_order_information_ship_to.rb → tss_v2_transactions_post201_response_embedded_order_information_ship_to.rb} +0 -0
  652. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information.rb → tss_v2_transactions_post201_response_embedded_payment_information.rb} +0 -0
  653. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_bank.rb → tss_v2_transactions_post201_response_embedded_payment_information_bank.rb} +0 -0
  654. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_bank_account.rb → tss_v2_transactions_post201_response_embedded_payment_information_bank_account.rb} +0 -0
  655. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_card.rb → tss_v2_transactions_post201_response_embedded_payment_information_card.rb} +0 -0
  656. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_payment_information_payment_type.rb → tss_v2_transactions_post201_response_embedded_payment_information_payment_type.rb} +0 -0
  657. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_point_of_sale_information_partner.rb → tss_v2_transactions_post201_response_embedded_point_of_sale_information_partner.rb} +0 -0
  658. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_processing_information.rb → tss_v2_transactions_post201_response_embedded_processing_information.rb} +0 -0
  659. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_processor_information.rb → tss_v2_transactions_post201_response_embedded_processor_information.rb} +0 -0
  660. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_risk_information.rb → tss_v2_transactions_post201_response_embedded_risk_information.rb} +0 -0
  661. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_risk_information_providers.rb → tss_v2_transactions_post201_response_embedded_risk_information_providers.rb} +0 -0
  662. /data/lib/cybersource_rest_client/models/{tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb → tss_v2_transactions_post201_response_embedded_risk_information_providers_fingerprint.rb} +0 -0
  663. /data/lib/cybersource_rest_client/models/{ucv1sessions_payment_configurations_tms_token.rb → ucv1sessions_payment_configurations_tmstoken.rb} +0 -0
  664. /data/lib/cybersource_rest_client/models/{ucv1sessions_payment_configurations_tms_token_customer.rb → ucv1sessions_payment_configurations_tmstoken_customer.rb} +0 -0
  665. /data/lib/cybersource_rest_client/models/{ucv1sessions_payment_configurations_tms_token_instrument_identifiers.rb → ucv1sessions_payment_configurations_tmstoken_instrument_identifiers.rb} +0 -0
  666. /data/lib/cybersource_rest_client/models/{ucv1sessions_payment_configurations_tms_token_payment_instruments.rb → ucv1sessions_payment_configurations_tmstoken_payment_instruments.rb} +0 -0
  667. /data/lib/cybersource_rest_client/models/{underwriting_configuration_organization_information_business_information_address_2.rb → underwriting_configuration_organization_information_business_information_address2.rb} +0 -0
  668. /data/lib/cybersource_rest_client/models/{unified_risk_post201_response_results_risk_insights.rb → unified_risk_post201_response_results_riskinsights.rb} +0 -0
  669. /data/lib/cybersource_rest_client/models/{unified_risk_post201_response_results_risk_insights_client.rb → unified_risk_post201_response_results_riskinsights_client.rb} +0 -0
  670. /data/lib/cybersource_rest_client/models/{unified_risk_post201_response_results_risk_insights_error.rb → unified_risk_post201_response_results_riskinsights_error.rb} +0 -0
  671. /data/lib/cybersource_rest_client/models/{unified_risk_post201_response_results_risk_insights_packages.rb → unified_risk_post201_response_results_riskinsights_packages.rb} +0 -0
  672. /data/lib/cybersource_rest_client/models/{unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb → unified_risk_post201_response_results_riskinsights_packages_transaction_insights.rb} +0 -0
  673. /data/lib/cybersource_rest_client/models/{unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb → unified_risk_post201_response_results_riskinsights_packages_transaction_insights_insights.rb} +0 -0
  674. /data/lib/cybersource_rest_client/models/{v1_file_details_get200_response__links.rb → v1_file_details_get200_response_links.rb} +0 -0
  675. /data/lib/cybersource_rest_client/models/{v1_file_details_get200_response__links_files.rb → v1_file_details_get200_response_links_files.rb} +0 -0
  676. /data/lib/cybersource_rest_client/models/{v1_file_details_get200_response__links_self.rb → v1_file_details_get200_response_links_self.rb} +0 -0
  677. /data/lib/cybersource_rest_client/models/{vas_v2_payments_post201_response__links.rb → vas_v2_payments_post201_response_links.rb} +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 731beb93fa86e56af43050a567a8512e712695b8bb9006a5593c7c3841de6b32
4
- data.tar.gz: a2697272183c38f8d180d17b294f98412c8c729785e81521bc11140496a54651
3
+ metadata.gz: fabcaebf22d2bdc9a00144ecd8af3d487c8774cff85df4fdf0c1a18d0ac824ef
4
+ data.tar.gz: dae5e5a7d7943cd9abeb93c3931ccd24bb3046fa4bde41cf305cdaac93ad7099
5
5
  SHA512:
6
- metadata.gz: 271897597451a5b631c1be2f341c7965b2dbfa07a9b7bf18371265481f7e924e6d8dd6cfa39fcc390a96f23efce0d5260bcf92eab66b4f7033c499a4e818dcb3
7
- data.tar.gz: dece6dfe825872d035cfab32b63b3439dcb81a834a61b775a8b0b5cf9df11fad58cec8dfc484da5b29a8c7a1219dfd1622f8990cb6dad19c601d017283119afe
6
+ metadata.gz: cab40e8b2682933bec915a1d97502eb94d3abd784a53bd13e4e00cf6318cea49667616a6136b91002b6bbeef84012b46eabc027e863543c0a8291154dd113db7
7
+ data.tar.gz: 8471493a16f73a7ffd347b81ad61d3f4da1fd6d1a581028635c48e591b924c92bcde33566097c64c7baa44a1356e33980d50f2e20b2a6f1e2294c704270d4810
@@ -107,6 +107,7 @@ public
107
107
  if isResponseMLEForApi
108
108
  mle_kid = MLEUtility.validate_and_auto_extract_response_mle_kid(merchantconfig_obj)
109
109
  jwt_payload['v-c-response-mle-kid'] = mle_kid
110
+ jwt_payload['v-c-response-mle-algo'] = 'RSA-OAEP-256'
110
111
  end
111
112
 
112
113
  return jwt_payload
@@ -93,7 +93,7 @@ public
93
93
  mleCertificate = certificateList[0]
94
94
  end
95
95
 
96
- cacheValue = CacheValue.new(nil, mleCertificate, fileModifiedTime)
96
+ cacheValue = CacheValue.new(nil, Base64.strict_encode64(mleCertificate.to_der), fileModifiedTime)
97
97
 
98
98
  @@cache_obj.write(cacheKey, cacheValue)
99
99
  return
@@ -54,9 +54,8 @@ public
54
54
  is_mle_for_api
55
55
  end
56
56
 
57
- def self.encrypt_request_payload(merchantConfig, requestBody)
57
+ def self.encrypt_request_payload(merchantConfig, requestBody, contentType = nil)
58
58
  return nil if requestBody.nil?
59
- return requestBody if requestBody == '{}'
60
59
 
61
60
  @log_obj ||= Log.new(merchantConfig.log_config, 'MLEUtility')
62
61
 
@@ -91,10 +90,10 @@ public
91
90
  headers = {
92
91
  'alg' => 'RSA-OAEP-256',
93
92
  'enc' => 'A256GCM',
94
- 'typ' => 'JWT',
95
93
  'kid' => serial_number,
96
94
  'iat' => Time.now.to_i
97
95
  }
96
+ headers['cty'] = contentType if contentType && !contentType.to_s.strip.empty?
98
97
  jwe = JOSE::JWE.block_encrypt(jwk, requestBody, headers)
99
98
 
100
99
  compact_jwe = jwe.compact
@@ -0,0 +1,563 @@
1
+ =begin
2
+ #CyberSource Merged Spec
3
+
4
+ #All CyberSource API specs merged together. These are available at https://developer.cybersource.com/api/reference/api-reference.html
5
+
6
+ OpenAPI spec version: 0.0.1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.38
10
+ =end
11
+
12
+ require 'uri'
13
+ require 'AuthenticationSDK/util/MLEUtility'
14
+ module CyberSource
15
+ class ACPCheckoutApi
16
+ attr_accessor :api_client
17
+
18
+ def initialize(api_client = ApiClient.default, config)
19
+ @api_client = api_client
20
+ @api_client.set_configuration(config)
21
+ end
22
+ # Cancel Checkout ACP
23
+ # Cancels an active ACP checkout session. No charge is made to the buyer. This call is safe to make multiple times — cancelling an already-cancelled session returns a successful response without error. Sessions also expire automatically after 30 minutes of inactivity, so explicit cancellation is optional but recommended to release any reserved inventory immediately.
24
+ #
25
+ # @param session_id The unique identifier of the ACP checkout session to cancel. Obtained from the `id` field in the Create Session response.
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
28
+ # @option opts [String] :accept_language Preferred language for the response (e.g. `en-US`, `fr-FR`). Passed to the merchant backend for localized content.
29
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
30
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
31
+ # @option opts [String] :signature Request signature for payload integrity verification.
32
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
33
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. `2024-01-01`). When omitted, the latest supported version is assumed.
34
+ # @return [CancelCheckoutResponse]
35
+ #
36
+ def cancel_checkout(session_id, opts = {})
37
+ data, status_code, headers = cancel_checkout_with_http_info(session_id, opts)
38
+ return data, status_code, headers
39
+ end
40
+
41
+ # Cancel Checkout ACP
42
+ # Cancels an active ACP checkout session. No charge is made to the buyer. This call is safe to make multiple times — cancelling an already-cancelled session returns a successful response without error. Sessions also expire automatically after 30 minutes of inactivity, so explicit cancellation is optional but recommended to release any reserved inventory immediately.
43
+ # @param session_id The unique identifier of the ACP checkout session to cancel. Obtained from the `id` field in the Create Session response.
44
+ # @param [Hash] opts the optional parameters
45
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
46
+ # @option opts [String] :accept_language Preferred language for the response (e.g. `en-US`, `fr-FR`). Passed to the merchant backend for localized content.
47
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
48
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
49
+ # @option opts [String] :signature Request signature for payload integrity verification.
50
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
51
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. `2024-01-01`). When omitted, the latest supported version is assumed.
52
+ # @return [Array<(CancelCheckoutResponse, Fixnum, Hash)>] CancelCheckoutResponse data, response status code and response headers
53
+ def cancel_checkout_with_http_info(session_id, opts = {})
54
+
55
+ if @api_client.config.debugging
56
+ begin
57
+ raise
58
+ @api_client.config.logger.debug 'Calling API: ACPCheckoutApi.cancel_checkout ...'
59
+ rescue
60
+ puts 'Cannot write to log'
61
+ end
62
+ end
63
+ # verify the required parameter 'session_id' is set
64
+ if @api_client.config.client_side_validation && session_id.nil?
65
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling ACPCheckoutApi.cancel_checkout"
66
+ end
67
+ # resource path
68
+ local_var_path = 'icc/v1/checkout_sessions/{session_id}/cancel'.sub('{' + 'session_id' + '}', session_id.to_s)
69
+
70
+ # query parameters
71
+ query_params = {}
72
+
73
+ # header parameters
74
+ header_params = {}
75
+ # HTTP header 'Accept' (if needed)
76
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
77
+ local_header_content_type = nil
78
+ # HTTP header 'Content-Type'
79
+ local_header_content_type = @api_client.select_header_content_type(['application/json;charset=utf-8'])
80
+ header_params['Content-Type'] = local_header_content_type if local_header_content_type
81
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
82
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
83
+ header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
84
+ header_params[:'Request-Id'] = opts[:'request_id'] if !opts[:'request_id'].nil?
85
+ header_params[:'Signature'] = opts[:'signature'] if !opts[:'signature'].nil?
86
+ header_params[:'Timestamp'] = opts[:'timestamp'] if !opts[:'timestamp'].nil?
87
+ header_params[:'API-Version'] = opts[:'api_version'] if !opts[:'api_version'].nil?
88
+
89
+ # form parameters
90
+ form_params = {}
91
+
92
+ # http body (model)
93
+ if 'POST' == 'POST'
94
+ post_body = '{}'
95
+ else
96
+ post_body = nil
97
+ end
98
+ inbound_mle_status = "mandatory"
99
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["cancel_checkout","cancel_checkout_with_http_info"])
100
+ begin
101
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body, local_header_content_type)
102
+ rescue
103
+ raise
104
+ end
105
+ end
106
+
107
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["cancel_checkout","cancel_checkout_with_http_info"])
108
+
109
+ auth_names = []
110
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
111
+ :header_params => header_params,
112
+ :query_params => query_params,
113
+ :form_params => form_params,
114
+ :body => post_body,
115
+ :auth_names => auth_names,
116
+ :return_type => 'CancelCheckoutResponse',
117
+ :isResponseMLEForApi => is_response_mle_for_api)
118
+ if @api_client.config.debugging
119
+ begin
120
+ raise
121
+ @api_client.config.logger.debug "API called: ACPCheckoutApi#cancel_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
+ rescue
123
+ puts 'Cannot write to log'
124
+ end
125
+ end
126
+ return data, status_code, headers
127
+ end
128
+ # Complete Checkout ACP
129
+ # **Final step of the ACP checkout flow.** Submits payment and buyer information to place the order with the merchant. On success, the session transitions to `completed` and an `order_id` is returned confirming the merchant accepted the order. Once completed, the session is immutable — it cannot be updated or cancelled. **Payment token:** The `payment.token` must be a valid token from the payment provider configured for the merchant (e.g. a tokenized card from Stripe or Braintree). ACG forwards the token to the merchant's payment processor — it is never stored.
130
+ #
131
+ # @param session_id The unique identifier of the ACP checkout session to complete.
132
+ # @param acp_complete_checkout_request Final buyer and payment details needed to place the order. Both &#x60;buyer&#x60; and &#x60;payment&#x60; may have been provided in earlier Create/Update calls; if so, they can be omitted here. At least a valid payment token is required to process the transaction.
133
+ # @param [Hash] opts the optional parameters
134
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
135
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
136
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
137
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
138
+ # @option opts [String] :signature Request signature for payload integrity verification.
139
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
140
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
141
+ # @return [CompleteCheckoutResponse]
142
+ #
143
+ def complete_checkout(session_id, acp_complete_checkout_request, opts = {})
144
+ data, status_code, headers = complete_checkout_with_http_info(session_id, acp_complete_checkout_request, opts)
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # Complete Checkout ACP
149
+ # **Final step of the ACP checkout flow.** Submits payment and buyer information to place the order with the merchant. On success, the session transitions to &#x60;completed&#x60; and an &#x60;order_id&#x60; is returned confirming the merchant accepted the order. Once completed, the session is immutable — it cannot be updated or cancelled. **Payment token:** The &#x60;payment.token&#x60; must be a valid token from the payment provider configured for the merchant (e.g. a tokenized card from Stripe or Braintree). ACG forwards the token to the merchant&#39;s payment processor — it is never stored.
150
+ # @param session_id The unique identifier of the ACP checkout session to complete.
151
+ # @param acp_complete_checkout_request Final buyer and payment details needed to place the order. Both &#x60;buyer&#x60; and &#x60;payment&#x60; may have been provided in earlier Create/Update calls; if so, they can be omitted here. At least a valid payment token is required to process the transaction.
152
+ # @param [Hash] opts the optional parameters
153
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
154
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
155
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
156
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
157
+ # @option opts [String] :signature Request signature for payload integrity verification.
158
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
159
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
160
+ # @return [Array<(CompleteCheckoutResponse, Fixnum, Hash)>] CompleteCheckoutResponse data, response status code and response headers
161
+ def complete_checkout_with_http_info(session_id, acp_complete_checkout_request, opts = {})
162
+
163
+ if @api_client.config.debugging
164
+ begin
165
+ raise
166
+ @api_client.config.logger.debug 'Calling API: ACPCheckoutApi.complete_checkout ...'
167
+ rescue
168
+ puts 'Cannot write to log'
169
+ end
170
+ end
171
+ # verify the required parameter 'session_id' is set
172
+ if @api_client.config.client_side_validation && session_id.nil?
173
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling ACPCheckoutApi.complete_checkout"
174
+ end
175
+ # verify the required parameter 'acp_complete_checkout_request' is set
176
+ if @api_client.config.client_side_validation && acp_complete_checkout_request.nil?
177
+ fail ArgumentError, "Missing the required parameter 'acp_complete_checkout_request' when calling ACPCheckoutApi.complete_checkout"
178
+ end
179
+ # resource path
180
+ local_var_path = 'icc/v1/checkout_sessions/{session_id}/complete'.sub('{' + 'session_id' + '}', session_id.to_s)
181
+
182
+ # query parameters
183
+ query_params = {}
184
+
185
+ # header parameters
186
+ header_params = {}
187
+ # HTTP header 'Accept' (if needed)
188
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
189
+ local_header_content_type = nil
190
+ # HTTP header 'Content-Type'
191
+ local_header_content_type = @api_client.select_header_content_type(['application/json;charset=utf-8'])
192
+ header_params['Content-Type'] = local_header_content_type if local_header_content_type
193
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
194
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
195
+ header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
196
+ header_params[:'Request-Id'] = opts[:'request_id'] if !opts[:'request_id'].nil?
197
+ header_params[:'Signature'] = opts[:'signature'] if !opts[:'signature'].nil?
198
+ header_params[:'Timestamp'] = opts[:'timestamp'] if !opts[:'timestamp'].nil?
199
+ header_params[:'API-Version'] = opts[:'api_version'] if !opts[:'api_version'].nil?
200
+
201
+ # form parameters
202
+ form_params = {}
203
+
204
+ # http body (model)
205
+ post_body = @api_client.object_to_http_body(acp_complete_checkout_request)
206
+ sdk_tracker = SdkTracker.new
207
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AcpCompleteCheckoutRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
208
+ inbound_mle_status = "mandatory"
209
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["complete_checkout","complete_checkout_with_http_info"])
210
+ begin
211
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body, local_header_content_type)
212
+ rescue
213
+ raise
214
+ end
215
+ end
216
+
217
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["complete_checkout","complete_checkout_with_http_info"])
218
+
219
+ auth_names = []
220
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
221
+ :header_params => header_params,
222
+ :query_params => query_params,
223
+ :form_params => form_params,
224
+ :body => post_body,
225
+ :auth_names => auth_names,
226
+ :return_type => 'CompleteCheckoutResponse',
227
+ :isResponseMLEForApi => is_response_mle_for_api)
228
+ if @api_client.config.debugging
229
+ begin
230
+ raise
231
+ @api_client.config.logger.debug "API called: ACPCheckoutApi#complete_checkout\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
232
+ rescue
233
+ puts 'Cannot write to log'
234
+ end
235
+ end
236
+ return data, status_code, headers
237
+ end
238
+ # Create Checkout Session ACP
239
+ # **Step 1 of the ACP checkout flow.** Initiates a new ACP checkout session with the buyer's cart. ACG validates item availability against the merchant's catalog, calculates initial pricing and tax, and returns a session object with a unique `id`. **Store the `id`** — every subsequent call in this checkout flow (update, complete, cancel) requires it. The session remains active for 30 minutes. A new session must be created after expiry. **Idempotency:** Supply an `Idempotency-Key` header to safely retry this call without creating duplicate sessions.
240
+ #
241
+ # @param acp_create_checkout_session_request The cart contents and buyer context for this checkout session. &#x60;items&#x60; is required. &#x60;buyer&#x60; and &#x60;fulfillment_address&#x60; are optional on creation and can be provided via Update Session before completing checkout.
242
+ # @param [Hash] opts the optional parameters
243
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
244
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
245
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
246
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
247
+ # @option opts [String] :signature Request signature for payload integrity verification.
248
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
249
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
250
+ # @return [CheckoutSessionResponse]
251
+ #
252
+ def create_checkout_session(acp_create_checkout_session_request, opts = {})
253
+ data, status_code, headers = create_checkout_session_with_http_info(acp_create_checkout_session_request, opts)
254
+ return data, status_code, headers
255
+ end
256
+
257
+ # Create Checkout Session ACP
258
+ # **Step 1 of the ACP checkout flow.** Initiates a new ACP checkout session with the buyer&#39;s cart. ACG validates item availability against the merchant&#39;s catalog, calculates initial pricing and tax, and returns a session object with a unique &#x60;id&#x60;. **Store the &#x60;id&#x60;** — every subsequent call in this checkout flow (update, complete, cancel) requires it. The session remains active for 30 minutes. A new session must be created after expiry. **Idempotency:** Supply an &#x60;Idempotency-Key&#x60; header to safely retry this call without creating duplicate sessions.
259
+ # @param acp_create_checkout_session_request The cart contents and buyer context for this checkout session. &#x60;items&#x60; is required. &#x60;buyer&#x60; and &#x60;fulfillment_address&#x60; are optional on creation and can be provided via Update Session before completing checkout.
260
+ # @param [Hash] opts the optional parameters
261
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
262
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
263
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
264
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
265
+ # @option opts [String] :signature Request signature for payload integrity verification.
266
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
267
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
268
+ # @return [Array<(CheckoutSessionResponse, Fixnum, Hash)>] CheckoutSessionResponse data, response status code and response headers
269
+ def create_checkout_session_with_http_info(acp_create_checkout_session_request, opts = {})
270
+
271
+ if @api_client.config.debugging
272
+ begin
273
+ raise
274
+ @api_client.config.logger.debug 'Calling API: ACPCheckoutApi.create_checkout_session ...'
275
+ rescue
276
+ puts 'Cannot write to log'
277
+ end
278
+ end
279
+ # verify the required parameter 'acp_create_checkout_session_request' is set
280
+ if @api_client.config.client_side_validation && acp_create_checkout_session_request.nil?
281
+ fail ArgumentError, "Missing the required parameter 'acp_create_checkout_session_request' when calling ACPCheckoutApi.create_checkout_session"
282
+ end
283
+ # resource path
284
+ local_var_path = 'icc/v1/checkout_sessions'
285
+
286
+ # query parameters
287
+ query_params = {}
288
+
289
+ # header parameters
290
+ header_params = {}
291
+ # HTTP header 'Accept' (if needed)
292
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
293
+ local_header_content_type = nil
294
+ # HTTP header 'Content-Type'
295
+ local_header_content_type = @api_client.select_header_content_type(['application/json;charset=utf-8'])
296
+ header_params['Content-Type'] = local_header_content_type if local_header_content_type
297
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
298
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
299
+ header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
300
+ header_params[:'Request-Id'] = opts[:'request_id'] if !opts[:'request_id'].nil?
301
+ header_params[:'Signature'] = opts[:'signature'] if !opts[:'signature'].nil?
302
+ header_params[:'Timestamp'] = opts[:'timestamp'] if !opts[:'timestamp'].nil?
303
+ header_params[:'API-Version'] = opts[:'api_version'] if !opts[:'api_version'].nil?
304
+
305
+ # form parameters
306
+ form_params = {}
307
+
308
+ # http body (model)
309
+ post_body = @api_client.object_to_http_body(acp_create_checkout_session_request)
310
+ sdk_tracker = SdkTracker.new
311
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AcpCreateCheckoutSessionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
312
+ inbound_mle_status = "mandatory"
313
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["create_checkout_session","create_checkout_session_with_http_info"])
314
+ begin
315
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body, local_header_content_type)
316
+ rescue
317
+ raise
318
+ end
319
+ end
320
+
321
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["create_checkout_session","create_checkout_session_with_http_info"])
322
+
323
+ auth_names = []
324
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
325
+ :header_params => header_params,
326
+ :query_params => query_params,
327
+ :form_params => form_params,
328
+ :body => post_body,
329
+ :auth_names => auth_names,
330
+ :return_type => 'CheckoutSessionResponse',
331
+ :isResponseMLEForApi => is_response_mle_for_api)
332
+ if @api_client.config.debugging
333
+ begin
334
+ raise
335
+ @api_client.config.logger.debug "API called: ACPCheckoutApi#create_checkout_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
336
+ rescue
337
+ puts 'Cannot write to log'
338
+ end
339
+ end
340
+ return data, status_code, headers
341
+ end
342
+ # Get Checkout Session ACP
343
+ # Retrieves the current state of an ACP checkout session, including line items, buyer information, and current totals. Use this to: - Verify session status before presenting a checkout summary to the buyer - Resume an interrupted checkout flow - Poll for status after an async operation - Confirm a session has not expired before submitting payment
344
+ #
345
+ # @param session_id The unique identifier of the ACP checkout session to retrieve. Obtained from the &#x60;id&#x60; field in the Create Session response.
346
+ # @param acp_get_checkout_session_request Empty request body.
347
+ # @param [Hash] opts the optional parameters
348
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
349
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
350
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
351
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
352
+ # @option opts [String] :signature Request signature for payload integrity verification.
353
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
354
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
355
+ # @return [CheckoutSessionResponse]
356
+ #
357
+ def get_checkout_session(session_id, acp_get_checkout_session_request, opts = {})
358
+ data, status_code, headers = get_checkout_session_with_http_info(session_id, acp_get_checkout_session_request, opts)
359
+ return data, status_code, headers
360
+ end
361
+
362
+ # Get Checkout Session ACP
363
+ # Retrieves the current state of an ACP checkout session, including line items, buyer information, and current totals. Use this to: - Verify session status before presenting a checkout summary to the buyer - Resume an interrupted checkout flow - Poll for status after an async operation - Confirm a session has not expired before submitting payment
364
+ # @param session_id The unique identifier of the ACP checkout session to retrieve. Obtained from the &#x60;id&#x60; field in the Create Session response.
365
+ # @param acp_get_checkout_session_request Empty request body.
366
+ # @param [Hash] opts the optional parameters
367
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
368
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
369
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
370
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
371
+ # @option opts [String] :signature Request signature for payload integrity verification.
372
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
373
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
374
+ # @return [Array<(CheckoutSessionResponse, Fixnum, Hash)>] CheckoutSessionResponse data, response status code and response headers
375
+ def get_checkout_session_with_http_info(session_id, acp_get_checkout_session_request, opts = {})
376
+
377
+ if @api_client.config.debugging
378
+ begin
379
+ raise
380
+ @api_client.config.logger.debug 'Calling API: ACPCheckoutApi.get_checkout_session ...'
381
+ rescue
382
+ puts 'Cannot write to log'
383
+ end
384
+ end
385
+ # verify the required parameter 'session_id' is set
386
+ if @api_client.config.client_side_validation && session_id.nil?
387
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling ACPCheckoutApi.get_checkout_session"
388
+ end
389
+ # verify the required parameter 'acp_get_checkout_session_request' is set
390
+ if @api_client.config.client_side_validation && acp_get_checkout_session_request.nil?
391
+ fail ArgumentError, "Missing the required parameter 'acp_get_checkout_session_request' when calling ACPCheckoutApi.get_checkout_session"
392
+ end
393
+ # resource path
394
+ local_var_path = 'icc/v1/checkout_sessions/{session_id}'.sub('{' + 'session_id' + '}', session_id.to_s)
395
+
396
+ # query parameters
397
+ query_params = {}
398
+
399
+ # header parameters
400
+ header_params = {}
401
+ # HTTP header 'Accept' (if needed)
402
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
403
+ local_header_content_type = nil
404
+ # HTTP header 'Content-Type'
405
+ local_header_content_type = @api_client.select_header_content_type(['application/json;charset=utf-8'])
406
+ header_params['Content-Type'] = local_header_content_type if local_header_content_type
407
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
408
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
409
+ header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
410
+ header_params[:'Request-Id'] = opts[:'request_id'] if !opts[:'request_id'].nil?
411
+ header_params[:'Signature'] = opts[:'signature'] if !opts[:'signature'].nil?
412
+ header_params[:'Timestamp'] = opts[:'timestamp'] if !opts[:'timestamp'].nil?
413
+ header_params[:'API-Version'] = opts[:'api_version'] if !opts[:'api_version'].nil?
414
+
415
+ # form parameters
416
+ form_params = {}
417
+
418
+ # http body (model)
419
+ post_body = @api_client.object_to_http_body(acp_get_checkout_session_request)
420
+ sdk_tracker = SdkTracker.new
421
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Object', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
422
+ inbound_mle_status = "false"
423
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_checkout_session","get_checkout_session_with_http_info"])
424
+ begin
425
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body, local_header_content_type)
426
+ rescue
427
+ raise
428
+ end
429
+ end
430
+
431
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_checkout_session","get_checkout_session_with_http_info"])
432
+
433
+ auth_names = []
434
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
435
+ :header_params => header_params,
436
+ :query_params => query_params,
437
+ :form_params => form_params,
438
+ :body => post_body,
439
+ :auth_names => auth_names,
440
+ :return_type => 'CheckoutSessionResponse',
441
+ :isResponseMLEForApi => is_response_mle_for_api)
442
+ if @api_client.config.debugging
443
+ begin
444
+ raise
445
+ @api_client.config.logger.debug "API called: ACPCheckoutApi#get_checkout_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
446
+ rescue
447
+ puts 'Cannot write to log'
448
+ end
449
+ end
450
+ return data, status_code, headers
451
+ end
452
+ # Update Checkout Session ACP
453
+ # Modifies an active ACP checkout session and returns the updated session state with recalculated totals. Use this to: - Add, remove, or change quantities of cart items - Apply or remove discount codes - Update the buyer's shipping address or contact details - Trigger re-calculation of shipping costs and tax Only fields included in the request body are updated — omitted fields retain their current values. **Idempotency:** Supply an `Idempotency-Key` to safely retry updates without applying them twice.
454
+ #
455
+ # @param session_id The unique identifier of the ACP checkout session to update. Obtained from the &#x60;id&#x60; field in the Create Session response.
456
+ # @param acp_update_checkout_session_request Fields to update. All fields are optional — only included fields are changed. To replace the cart entirely, provide the full &#x60;items&#x60; array.
457
+ # @param [Hash] opts the optional parameters
458
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
459
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
460
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
461
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
462
+ # @option opts [String] :signature Request signature for payload integrity verification.
463
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
464
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
465
+ # @return [CheckoutSessionResponse]
466
+ #
467
+ def update_checkout_session(session_id, acp_update_checkout_session_request, opts = {})
468
+ data, status_code, headers = update_checkout_session_with_http_info(session_id, acp_update_checkout_session_request, opts)
469
+ return data, status_code, headers
470
+ end
471
+
472
+ # Update Checkout Session ACP
473
+ # Modifies an active ACP checkout session and returns the updated session state with recalculated totals. Use this to: - Add, remove, or change quantities of cart items - Apply or remove discount codes - Update the buyer&#39;s shipping address or contact details - Trigger re-calculation of shipping costs and tax Only fields included in the request body are updated — omitted fields retain their current values. **Idempotency:** Supply an &#x60;Idempotency-Key&#x60; to safely retry updates without applying them twice.
474
+ # @param session_id The unique identifier of the ACP checkout session to update. Obtained from the &#x60;id&#x60; field in the Create Session response.
475
+ # @param acp_update_checkout_session_request Fields to update. All fields are optional — only included fields are changed. To replace the cart entirely, provide the full &#x60;items&#x60; array.
476
+ # @param [Hash] opts the optional parameters
477
+ # @option opts [String] :idempotency_key Client-generated unique key to ensure this request is processed exactly once. If a request with the same key was already processed, the original response is returned.
478
+ # @option opts [String] :accept_language Preferred language for the response (e.g. &#x60;en-US&#x60;, &#x60;fr-FR&#x60;). Passed to the merchant backend for localized content.
479
+ # @option opts [String] :user_agent Client user agent string identifying the AI agent platform and version.
480
+ # @option opts [String] :request_id Unique request identifier for distributed tracing and debugging. Echoed back in the response headers.
481
+ # @option opts [String] :signature Request signature for payload integrity verification.
482
+ # @option opts [String] :timestamp ISO 8601 timestamp of when the request was generated. Used in conjunction with Signature for replay protection.
483
+ # @option opts [String] :api_version ACP specification version the client is targeting (e.g. &#x60;2024-01-01&#x60;). When omitted, the latest supported version is assumed.
484
+ # @return [Array<(CheckoutSessionResponse, Fixnum, Hash)>] CheckoutSessionResponse data, response status code and response headers
485
+ def update_checkout_session_with_http_info(session_id, acp_update_checkout_session_request, opts = {})
486
+
487
+ if @api_client.config.debugging
488
+ begin
489
+ raise
490
+ @api_client.config.logger.debug 'Calling API: ACPCheckoutApi.update_checkout_session ...'
491
+ rescue
492
+ puts 'Cannot write to log'
493
+ end
494
+ end
495
+ # verify the required parameter 'session_id' is set
496
+ if @api_client.config.client_side_validation && session_id.nil?
497
+ fail ArgumentError, "Missing the required parameter 'session_id' when calling ACPCheckoutApi.update_checkout_session"
498
+ end
499
+ # verify the required parameter 'acp_update_checkout_session_request' is set
500
+ if @api_client.config.client_side_validation && acp_update_checkout_session_request.nil?
501
+ fail ArgumentError, "Missing the required parameter 'acp_update_checkout_session_request' when calling ACPCheckoutApi.update_checkout_session"
502
+ end
503
+ # resource path
504
+ local_var_path = 'icc/v1/checkout_sessions/{session_id}'.sub('{' + 'session_id' + '}', session_id.to_s)
505
+
506
+ # query parameters
507
+ query_params = {}
508
+
509
+ # header parameters
510
+ header_params = {}
511
+ # HTTP header 'Accept' (if needed)
512
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
513
+ local_header_content_type = nil
514
+ # HTTP header 'Content-Type'
515
+ local_header_content_type = @api_client.select_header_content_type(['application/json;charset=utf-8'])
516
+ header_params['Content-Type'] = local_header_content_type if local_header_content_type
517
+ header_params[:'Idempotency-Key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
518
+ header_params[:'Accept-Language'] = opts[:'accept_language'] if !opts[:'accept_language'].nil?
519
+ header_params[:'User-Agent'] = opts[:'user_agent'] if !opts[:'user_agent'].nil?
520
+ header_params[:'Request-Id'] = opts[:'request_id'] if !opts[:'request_id'].nil?
521
+ header_params[:'Signature'] = opts[:'signature'] if !opts[:'signature'].nil?
522
+ header_params[:'Timestamp'] = opts[:'timestamp'] if !opts[:'timestamp'].nil?
523
+ header_params[:'API-Version'] = opts[:'api_version'] if !opts[:'api_version'].nil?
524
+
525
+ # form parameters
526
+ form_params = {}
527
+
528
+ # http body (model)
529
+ post_body = @api_client.object_to_http_body(acp_update_checkout_session_request)
530
+ sdk_tracker = SdkTracker.new
531
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'AcpUpdateCheckoutSessionRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
532
+ inbound_mle_status = "mandatory"
533
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_checkout_session","update_checkout_session_with_http_info"])
534
+ begin
535
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body, local_header_content_type)
536
+ rescue
537
+ raise
538
+ end
539
+ end
540
+
541
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["update_checkout_session","update_checkout_session_with_http_info"])
542
+
543
+ auth_names = []
544
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
545
+ :header_params => header_params,
546
+ :query_params => query_params,
547
+ :form_params => form_params,
548
+ :body => post_body,
549
+ :auth_names => auth_names,
550
+ :return_type => 'CheckoutSessionResponse',
551
+ :isResponseMLEForApi => is_response_mle_for_api)
552
+ if @api_client.config.debugging
553
+ begin
554
+ raise
555
+ @api_client.config.logger.debug "API called: ACPCheckoutApi#update_checkout_session\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
556
+ rescue
557
+ puts 'Cannot write to log'
558
+ end
559
+ end
560
+ return data, status_code, headers
561
+ end
562
+ end
563
+ end