cybersource_rest_client 0.0.85 → 0.0.87

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 (369) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/util/Cache.rb +9 -6
  3. data/lib/AuthenticationSDK/util/CertificateUtility.rb +14 -6
  4. data/lib/AuthenticationSDK/util/Utility.rb +16 -5
  5. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +1868 -122
  6. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  7. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  8. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +1 -1
  9. data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +146 -0
  10. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
  11. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +94 -4
  12. data/lib/cybersource_rest_client/api/merchant_capabilities_api.rb +1065 -0
  13. data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +361 -0
  14. data/lib/cybersource_rest_client/api/network_tokens_api.rb +4 -4
  15. data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
  16. data/lib/cybersource_rest_client/api/orders_api.rb +2 -2
  17. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +1 -1
  18. data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
  19. data/lib/cybersource_rest_client/api/pull_funds_api.rb +3 -3
  20. data/lib/cybersource_rest_client/api/search_transactions_api.rb +2 -2
  21. data/lib/cybersource_rest_client/api/subscriptions_api.rb +2 -2
  22. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +2 -2
  23. data/lib/cybersource_rest_client/api/transaction_details_api.rb +1 -1
  24. data/lib/cybersource_rest_client/api/transaction_query_api.rb +158 -0
  25. data/lib/cybersource_rest_client/api/visa_protect_risk_insights_api.rb +104 -0
  26. data/lib/cybersource_rest_client/models/acp_checkout_session_response_buyer.rb +254 -0
  27. data/lib/cybersource_rest_client/models/acp_complete_checkout_request.rb +205 -0
  28. data/lib/cybersource_rest_client/models/acp_complete_checkout_response_buyer.rb +254 -0
  29. data/lib/cybersource_rest_client/models/acp_complete_checkout_session_buyer.rb +254 -0
  30. data/lib/cybersource_rest_client/models/acp_create_checkout_session_buyer.rb +254 -0
  31. data/lib/cybersource_rest_client/models/acp_create_checkout_session_request.rb +217 -0
  32. data/lib/cybersource_rest_client/models/acp_update_checkout_session_buyer.rb +254 -0
  33. data/lib/cybersource_rest_client/models/acp_update_checkout_session_request.rb +224 -0
  34. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +356 -0
  35. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +356 -0
  36. data/lib/cybersource_rest_client/models/agent_registration_conflict_response409.rb +196 -0
  37. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +356 -0
  38. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +308 -0
  39. data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422.rb +214 -0
  40. data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422_errors.rb +212 -0
  41. data/lib/cybersource_rest_client/models/agent_request.rb +286 -0
  42. data/lib/cybersource_rest_client/models/agent_update.rb +237 -0
  43. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb +1 -1
  44. data/lib/cybersource_rest_client/models/body_1.rb +189 -0
  45. data/lib/cybersource_rest_client/models/body_2.rb +224 -0
  46. data/lib/cybersource_rest_client/models/consumer_authentication_response.rb +196 -0
  47. data/lib/cybersource_rest_client/models/create_payment_link_request.rb +17 -5
  48. data/lib/cybersource_rest_client/models/deactivate_merchant_key_response200.rb +196 -0
  49. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +239 -0
  50. data/lib/cybersource_rest_client/models/iccv1checkout_sessions_fulfillment_address.rb +344 -0
  51. data/lib/cybersource_rest_client/models/iccv1checkout_sessions_items.rb +222 -0
  52. data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_id_fulfillment_address.rb +344 -0
  53. data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data.rb +222 -0
  54. data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data_billing_address.rb +344 -0
  55. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts.rb +206 -0
  56. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_allocations.rb +202 -0
  57. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_applied.rb +237 -0
  58. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment.rb +193 -0
  59. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_destinations.rb +246 -0
  60. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_groups.rb +228 -0
  61. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_methods.rb +252 -0
  62. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_options.rb +215 -0
  63. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_totals.rb +202 -0
  64. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_item.rb +207 -0
  65. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_line_items.rb +211 -0
  66. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment.rb +217 -0
  67. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_billing_address.rb +235 -0
  68. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_credential.rb +202 -0
  69. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_handlers.rb +259 -0
  70. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_instruments.rb +288 -0
  71. data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_discounts.rb +206 -0
  72. data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_fulfillment.rb +193 -0
  73. data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_payment.rb +217 -0
  74. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +225 -0
  75. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +245 -0
  76. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +236 -0
  77. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +225 -0
  78. data/lib/cybersource_rest_client/models/iccv1productsfeed_products.rb +1368 -0
  79. data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
  80. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +317 -0
  81. data/lib/cybersource_rest_client/models/inline_response_200_17_fulfillment_address.rb +344 -0
  82. data/lib/cybersource_rest_client/models/inline_response_200_17_order.rb +213 -0
  83. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +308 -0
  84. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +302 -0
  85. data/lib/cybersource_rest_client/models/inline_response_200_19_errors.rb +213 -0
  86. data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant.rb +237 -0
  87. data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant_products.rb +259 -0
  88. data/lib/cybersource_rest_client/models/inline_response_200_20.rb +259 -0
  89. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +1081 -0
  90. data/lib/cybersource_rest_client/models/inline_response_200_21.rb +201 -0
  91. data/lib/cybersource_rest_client/models/inline_response_200_4.rb +1 -1
  92. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
  93. data/lib/cybersource_rest_client/models/inline_response_200_5_integration_information_tenant_configurations.rb +1 -1
  94. data/lib/cybersource_rest_client/models/inline_response_201_10.rb +202 -0
  95. data/lib/cybersource_rest_client/models/inline_response_201_11.rb +297 -0
  96. data/lib/cybersource_rest_client/models/{inline_response_201_9_client_reference_information.rb → inline_response_201_11_client_reference_information.rb} +1 -1
  97. data/lib/cybersource_rest_client/models/{inline_response_201_9_error_information.rb → inline_response_201_11_error_information.rb} +1 -1
  98. data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information.rb → inline_response_201_11_order_information.rb} +2 -2
  99. data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion.rb → inline_response_201_11_order_information_currency_conversion.rb} +2 -2
  100. data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion_offer.rb → inline_response_201_11_order_information_currency_conversion_offer.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/{inline_response_201_9_processor_information.rb → inline_response_201_11_processor_information.rb} +1 -1
  102. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +318 -0
  103. data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_address.rb +344 -0
  104. data/lib/cybersource_rest_client/models/inline_response_201_12_fulfillment_options.rb +290 -0
  105. data/lib/cybersource_rest_client/models/inline_response_201_12_item.rb +213 -0
  106. data/lib/cybersource_rest_client/models/inline_response_201_12_line_items.rb +256 -0
  107. data/lib/cybersource_rest_client/models/inline_response_201_12_links.rb +212 -0
  108. data/lib/cybersource_rest_client/models/inline_response_201_12_messages.rb +250 -0
  109. data/lib/cybersource_rest_client/models/inline_response_201_12_payment_provider.rb +204 -0
  110. data/lib/cybersource_rest_client/models/inline_response_201_12_totals.rb +213 -0
  111. data/lib/cybersource_rest_client/models/inline_response_201_13.rb +312 -0
  112. data/lib/cybersource_rest_client/models/inline_response_201_13_discounts.rb +206 -0
  113. data/lib/cybersource_rest_client/models/inline_response_201_13_fulfillment.rb +193 -0
  114. data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +213 -0
  115. data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +225 -0
  116. data/lib/cybersource_rest_client/models/inline_response_201_13_order.rb +202 -0
  117. data/lib/cybersource_rest_client/models/inline_response_201_13_payment.rb +217 -0
  118. data/lib/cybersource_rest_client/models/inline_response_201_13_ucp.rb +204 -0
  119. data/lib/cybersource_rest_client/models/inline_response_201_13_ucp_capabilities.rb +202 -0
  120. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +57 -35
  121. data/lib/cybersource_rest_client/models/inline_response_201_3_error_information.rb +225 -0
  122. data/lib/cybersource_rest_client/models/inline_response_201_3_error_information_details.rb +213 -0
  123. data/lib/cybersource_rest_client/models/inline_response_201_3_order_information.rb +189 -0
  124. data/lib/cybersource_rest_client/models/inline_response_201_3_order_information_amount_details.rb +315 -0
  125. data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information.rb +189 -0
  126. data/lib/cybersource_rest_client/models/inline_response_201_3_processing_information_routing.rb +196 -0
  127. data/lib/cybersource_rest_client/models/inline_response_201_3_processor_information.rb +213 -0
  128. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +61 -61
  129. data/lib/cybersource_rest_client/models/{inline_response_401_1__links.rb → inline_response_201_4__links.rb} +2 -2
  130. data/lib/cybersource_rest_client/models/inline_response_201_4__links_self.rb +201 -0
  131. data/lib/cybersource_rest_client/models/inline_response_201_4_acquirer_information.rb +196 -0
  132. data/lib/cybersource_rest_client/models/inline_response_201_4_client_reference_information.rb +196 -0
  133. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +225 -0
  134. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +213 -0
  135. data/lib/cybersource_rest_client/models/inline_response_201_4_merchant_information.rb +196 -0
  136. data/lib/cybersource_rest_client/models/inline_response_201_4_order_information.rb +189 -0
  137. data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +264 -0
  138. data/lib/cybersource_rest_client/models/inline_response_201_4_payment_information.rb +223 -0
  139. data/lib/cybersource_rest_client/models/inline_response_201_4_payment_information_card.rb +213 -0
  140. data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +240 -0
  141. data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information_payouts_options.rb +196 -0
  142. data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +548 -0
  143. data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information_card_verification.rb +196 -0
  144. data/lib/cybersource_rest_client/models/inline_response_201_4_transactions.rb +239 -0
  145. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +44 -18
  146. data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information.rb → inline_response_201_5_payout_information.rb} +3 -3
  147. data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_pull_funds.rb → inline_response_201_5_payout_information_pull_funds.rb} +1 -1
  148. data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_push_funds.rb → inline_response_201_5_payout_information_push_funds.rb} +1 -1
  149. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +69 -102
  150. data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information.rb → inline_response_201_6_integration_information.rb} +2 -2
  151. data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information_tenant_configurations.rb → inline_response_201_6_integration_information_tenant_configurations.rb} +1 -1
  152. data/lib/cybersource_rest_client/models/{inline_response_201_4_organization_information.rb → inline_response_201_6_organization_information.rb} +1 -1
  153. data/lib/cybersource_rest_client/models/{inline_response_201_4_product_information_setups.rb → inline_response_201_6_product_information_setups.rb} +2 -2
  154. data/lib/cybersource_rest_client/models/{inline_response_201_4_registration_information.rb → inline_response_201_6_registration_information.rb} +1 -1
  155. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups.rb → inline_response_201_6_setups.rb} +4 -4
  156. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_commerce_solutions.rb → inline_response_201_6_setups_commerce_solutions.rb} +1 -1
  157. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_risk.rb → inline_response_201_6_setups_risk.rb} +1 -1
  158. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_value_added_services.rb → inline_response_201_6_setups_value_added_services.rb} +1 -1
  159. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +32 -87
  160. data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information.rb → inline_response_201_7_key_information.rb} +2 -2
  161. data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information.rb → inline_response_201_7_key_information_error_information.rb} +2 -2
  162. data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information_details.rb → inline_response_201_7_key_information_error_information_details.rb} +1 -1
  163. data/lib/cybersource_rest_client/models/inline_response_201_8.rb +127 -15
  164. data/lib/cybersource_rest_client/models/inline_response_201_9.rb +78 -98
  165. data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads.rb → inline_response_201_9_payloads.rb} +2 -2
  166. data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads_test_payload.rb → inline_response_201_9_payloads_test_payload.rb} +1 -1
  167. data/lib/cybersource_rest_client/models/inline_response_202__links.rb +1 -1
  168. data/lib/cybersource_rest_client/models/inline_response_400_10.rb +58 -36
  169. data/lib/cybersource_rest_client/models/{inline_response_400_8_fields.rb → inline_response_400_10_fields.rb} +1 -1
  170. data/lib/cybersource_rest_client/models/inline_response_400_11.rb +35 -42
  171. data/lib/cybersource_rest_client/models/{inline_response_400_9_details.rb → inline_response_400_11_details.rb} +1 -1
  172. data/lib/cybersource_rest_client/models/inline_response_400_12.rb +27 -26
  173. data/lib/cybersource_rest_client/models/inline_response_400_12_details.rb +18 -7
  174. data/lib/cybersource_rest_client/models/inline_response_400_13.rb +38 -77
  175. data/lib/cybersource_rest_client/models/inline_response_400_14.rb +235 -0
  176. data/lib/cybersource_rest_client/models/{inline_response_400_10_details.rb → inline_response_400_14_details.rb} +8 -19
  177. data/lib/cybersource_rest_client/models/inline_response_400_15.rb +281 -0
  178. data/lib/cybersource_rest_client/models/inline_response_400_16.rb +235 -0
  179. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +42 -13
  180. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +47 -13
  181. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +1 -1
  182. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +1 -1
  183. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +1 -1
  184. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +37 -60
  185. data/lib/cybersource_rest_client/models/inline_response_400_9.rb +6 -6
  186. data/lib/cybersource_rest_client/models/inline_response_401.rb +51 -33
  187. data/lib/cybersource_rest_client/models/inline_response_401_1.rb +44 -56
  188. data/lib/cybersource_rest_client/models/inline_response_401_2.rb +223 -0
  189. data/lib/cybersource_rest_client/models/inline_response_401_3.rb +253 -0
  190. data/lib/cybersource_rest_client/models/inline_response_401_3__links.rb +189 -0
  191. data/lib/cybersource_rest_client/models/{inline_response_401_1__links_self.rb → inline_response_401_3__links_self.rb} +1 -1
  192. data/lib/cybersource_rest_client/models/{inline_response_401_1_fields.rb → inline_response_401_3_fields.rb} +1 -1
  193. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
  194. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
  195. data/lib/cybersource_rest_client/models/inline_response_502_2.rb +55 -26
  196. data/lib/cybersource_rest_client/models/inline_response_502_3.rb +21 -15
  197. data/lib/cybersource_rest_client/models/inline_response_502_4.rb +223 -0
  198. data/lib/cybersource_rest_client/models/inline_response_502_5.rb +251 -0
  199. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -1
  200. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information.rb +2 -2
  201. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response.rb +17 -5
  202. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +20 -3
  203. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_merchant_defined_field_values_with_definition.rb +11 -1
  204. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +17 -5
  205. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_send200_response.rb +17 -5
  206. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -1
  207. data/lib/cybersource_rest_client/models/invoicingv2invoices_invoice_information.rb +20 -3
  208. data/lib/cybersource_rest_client/models/invoicingv2invoicesid_invoice_information.rb +20 -3
  209. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +26 -9
  210. data/lib/cybersource_rest_client/models/iplv2paymentlinks_purchase_information.rb +85 -5
  211. data/lib/cybersource_rest_client/models/iplv2paymentlinksid_purchase_information.rb +85 -5
  212. data/lib/cybersource_rest_client/models/key_request.rb +239 -0
  213. data/lib/cybersource_rest_client/models/key_request_1.rb +245 -0
  214. data/lib/cybersource_rest_client/models/key_update.rb +224 -0
  215. data/lib/cybersource_rest_client/models/key_update_1.rb +235 -0
  216. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +245 -0
  217. data/lib/cybersource_rest_client/models/list_agent_keys_response200_pagination.rb +276 -0
  218. data/lib/cybersource_rest_client/models/list_merchant_keys_response200.rb +262 -0
  219. data/lib/cybersource_rest_client/models/merchant_defined_field_core_1.rb +315 -0
  220. data/lib/cybersource_rest_client/models/merchant_defined_field_definition_request_1.rb +315 -0
  221. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +395 -0
  222. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +324 -0
  223. data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422.rb +193 -0
  224. data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422_detail.rb +215 -0
  225. data/lib/cybersource_rest_client/models/merchant_request.rb +317 -0
  226. data/lib/cybersource_rest_client/models/merchant_update.rb +270 -0
  227. data/lib/cybersource_rest_client/models/patch_registration_body.rb +234 -0
  228. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +17 -5
  229. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +17 -5
  230. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information.rb +81 -1
  231. data/lib/cybersource_rest_client/models/{tms_tokenized_card_delete_request.rb → post_tokenized_card_delete_request.rb} +1 -1
  232. data/lib/cybersource_rest_client/models/processing_info_authorization_options.rb +14 -1
  233. data/lib/cybersource_rest_client/models/product_feed_request.rb +230 -0
  234. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +1 -1
  235. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +37 -3
  236. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +11 -1
  237. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_card_verification.rb +214 -0
  238. data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +0 -14
  239. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
  240. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
  241. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_acquirer_information.rb +196 -0
  242. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information.rb +257 -0
  243. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information_partner.rb +213 -0
  244. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information.rb +189 -0
  245. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information_amount_details.rb +299 -0
  246. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information.rb +240 -0
  247. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information_routing.rb +205 -0
  248. data/lib/cybersource_rest_client/models/ptsv2payoutstransactionqueryid_client_reference_information.rb +247 -0
  249. data/lib/cybersource_rest_client/models/{boardingv1registrations_integration_information_tenant_information.rb → tenant_information.rb} +1 -1
  250. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  251. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +12 -1
  252. data/lib/cybersource_rest_client/models/ucp_checkout_session_response_buyer.rb +202 -0
  253. data/lib/cybersource_rest_client/models/ucp_complete_checkout_request.rb +201 -0
  254. data/lib/cybersource_rest_client/models/ucp_create_checkout_session_buyer.rb +202 -0
  255. data/lib/cybersource_rest_client/models/ucp_create_checkout_session_request.rb +249 -0
  256. data/lib/cybersource_rest_client/models/ucp_update_checkout_session_buyer.rb +202 -0
  257. data/lib/cybersource_rest_client/models/ucp_update_checkout_session_request.rb +255 -0
  258. data/lib/cybersource_rest_client/models/ucv1sessions_complete_mandate.rb +16 -5
  259. data/lib/cybersource_rest_client/models/ucv1sessions_data.rb +11 -1
  260. data/lib/cybersource_rest_client/models/ucv1sessions_data_acquirer_information.rb +196 -0
  261. data/lib/cybersource_rest_client/models/ucv1sessions_data_aggregator_information.rb +1 -1
  262. data/lib/cybersource_rest_client/models/ucv1sessions_data_consumer_authentication_information.rb +16 -5
  263. data/lib/cybersource_rest_client/models/unified_risk_post201_response.rb +211 -0
  264. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results.rb +190 -0
  265. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights.rb +291 -0
  266. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_client.rb +208 -0
  267. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_error.rb +202 -0
  268. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages.rb +190 -0
  269. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights.rb +250 -0
  270. data/lib/cybersource_rest_client/models/unified_risk_post201_response_results_risk_insights_packages_transaction_insights_insights.rb +219 -0
  271. data/lib/cybersource_rest_client/models/unified_risk_post201_response_transaction_insights_insights_warnings.rb +214 -0
  272. data/lib/cybersource_rest_client/models/unified_risk_post400_response.rb +230 -0
  273. data/lib/cybersource_rest_client/models/unified_risk_post400_response_errors.rb +223 -0
  274. data/lib/cybersource_rest_client/models/unifiedrisk_account.rb +190 -0
  275. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer.rb +302 -0
  276. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account.rb +234 -0
  277. data/lib/cybersource_rest_client/models/unifiedrisk_acquirer_merchant_account_security_amount.rb +246 -0
  278. data/lib/cybersource_rest_client/models/unifiedrisk_authentication.rb +402 -0
  279. data/lib/cybersource_rest_client/models/unifiedrisk_authentication_challenge.rb +202 -0
  280. data/lib/cybersource_rest_client/models/unifiedrisk_authorization.rb +212 -0
  281. data/lib/cybersource_rest_client/models/unifiedrisk_browser.rb +420 -0
  282. data/lib/cybersource_rest_client/models/unifiedrisk_customer.rb +403 -0
  283. data/lib/cybersource_rest_client/models/unifiedrisk_customer_address.rb +279 -0
  284. data/lib/cybersource_rest_client/models/unifiedrisk_customer_personal_identification.rb +297 -0
  285. data/lib/cybersource_rest_client/models/unifiedrisk_device.rb +681 -0
  286. data/lib/cybersource_rest_client/models/unifiedrisk_device_point_of_sale.rb +344 -0
  287. data/lib/cybersource_rest_client/models/unifiedrisk_initiating_party.rb +223 -0
  288. data/lib/cybersource_rest_client/models/unifiedrisk_labels.rb +230 -0
  289. data/lib/cybersource_rest_client/models/unifiedrisk_labels_authentication_outcome.rb +201 -0
  290. data/lib/cybersource_rest_client/models/unifiedrisk_labels_payment_authorization_decision.rb +201 -0
  291. data/lib/cybersource_rest_client/models/unifiedrisk_labels_return.rb +202 -0
  292. data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_decision.rb +201 -0
  293. data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_outcome.rb +201 -0
  294. data/lib/cybersource_rest_client/models/unifiedrisk_merchant.rb +326 -0
  295. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_address.rb +328 -0
  296. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor.rb +389 -0
  297. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_annual_sales.rb +268 -0
  298. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_average_ticket_size.rb +246 -0
  299. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_expected_monthly_sales.rb +268 -0
  300. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_hierarchy.rb +224 -0
  301. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_merchant_descriptor_limit_value.rb +257 -0
  302. data/lib/cybersource_rest_client/models/unifiedrisk_merchant_trading_address.rb +301 -0
  303. data/lib/cybersource_rest_client/models/unifiedrisk_order.rb +256 -0
  304. data/lib/cybersource_rest_client/models/unifiedrisk_order_billing.rb +360 -0
  305. data/lib/cybersource_rest_client/models/unifiedrisk_order_line_items.rb +262 -0
  306. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping.rb +464 -0
  307. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store.rb +251 -0
  308. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_address.rb +191 -0
  309. data/lib/cybersource_rest_client/models/unifiedrisk_order_shipping_store_store_address.rb +235 -0
  310. data/lib/cybersource_rest_client/models/unifiedrisk_partner.rb +214 -0
  311. data/lib/cybersource_rest_client/models/unifiedrisk_payment.rb +423 -0
  312. data/lib/cybersource_rest_client/models/unifiedrisk_payment_approvals.rb +193 -0
  313. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account.rb +451 -0
  314. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_balance_before.rb +257 -0
  315. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_branch_address.rb +328 -0
  316. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_credit_limit.rb +257 -0
  317. data/lib/cybersource_rest_client/models/unifiedrisk_payment_bank_account_financial_institution.rb +212 -0
  318. data/lib/cybersource_rest_client/models/unifiedrisk_payment_batch.rb +323 -0
  319. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card.rb +461 -0
  320. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_par_details.rb +196 -0
  321. data/lib/cybersource_rest_client/models/unifiedrisk_payment_card_token_details.rb +380 -0
  322. data/lib/cybersource_rest_client/models/unifiedrisk_payment_check.rb +289 -0
  323. data/lib/cybersource_rest_client/models/unifiedrisk_payment_check_deposit_location.rb +279 -0
  324. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty.rb +287 -0
  325. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_address.rb +279 -0
  326. data/lib/cybersource_rest_client/models/unifiedrisk_payment_counterparty_branch_address.rb +279 -0
  327. data/lib/cybersource_rest_client/models/unifiedrisk_payment_sdk.rb +268 -0
  328. data/lib/cybersource_rest_client/models/unifiedrisk_payment_token.rb +213 -0
  329. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification.rb +230 -0
  330. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_additional.rb +256 -0
  331. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication.rb +232 -0
  332. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_pin.rb +201 -0
  333. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_authentication_three_ds.rb +190 -0
  334. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security.rb +199 -0
  335. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_avs.rb +218 -0
  336. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_card_security_cvv.rb +196 -0
  337. data/lib/cybersource_rest_client/models/unifiedrisk_payment_verification_digital.rb +212 -0
  338. data/lib/cybersource_rest_client/models/unifiedrisk_payment_wallet.rb +201 -0
  339. data/lib/cybersource_rest_client/models/unifiedrisk_payment_wire.rb +364 -0
  340. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment.rb +308 -0
  341. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history.rb +276 -0
  342. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_account_history.rb +207 -0
  343. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account.rb +273 -0
  344. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_buyer_history_customer_account_alertnate_authentication.rb +257 -0
  345. data/lib/cybersource_rest_client/models/unifiedrisk_risk_assessment_vital4.rb +191 -0
  346. data/lib/cybersource_rest_client/models/unifiedrisk_session.rb +202 -0
  347. data/lib/cybersource_rest_client/models/unifiedrisk_terminal.rb +238 -0
  348. data/lib/cybersource_rest_client/models/unifiedrisk_terminal_address.rb +301 -0
  349. data/lib/cybersource_rest_client/models/unifiedrisk_terminal_capabilities.rb +234 -0
  350. data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk.rb +708 -0
  351. data/lib/cybersource_rest_client/models/unifiedrisk_third_party_risk_raw_data.rb +189 -0
  352. data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +489 -0
  353. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_additional_fees.rb +257 -0
  354. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_amount.rb +257 -0
  355. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details.rb +220 -0
  356. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_credits_amount.rb +246 -0
  357. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_batch_debits_amount.rb +246 -0
  358. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_credits.rb +246 -0
  359. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_batch_details_file_debits.rb +246 -0
  360. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details.rb +190 -0
  361. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_check_details_deposited_cash_amount.rb +246 -0
  362. data/lib/cybersource_rest_client/models/unifiedrisk_transaction_recurring_details.rb +341 -0
  363. data/lib/cybersource_rest_client/models/unifiedrisk_travel.rb +279 -0
  364. data/lib/cybersource_rest_client/models/update_payment_link_request.rb +17 -5
  365. data/lib/cybersource_rest_client/models/vpri_request.rb +505 -0
  366. data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data.rb +190 -0
  367. data/lib/cybersource_rest_client/models/vpri_transaction_insights_additional_data_card_bin_data.rb +357 -0
  368. data/lib/cybersource_rest_client.rb +2264 -2011
  369. metadata +286 -33
@@ -0,0 +1,1065 @@
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 MerchantCapabilitiesApi
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
+ # Activate a merchant key
23
+ # Activate a deactivated key. Raises 403 if merchant is deactivated, 404 if merchant or key not found, 409 if key is already active.
24
+ #
25
+ # @param merchant_id Unique merchant identifier (UUID)
26
+ # @param key_id Unique key identifier (UUID)
27
+ # @param [Hash] opts the optional parameters
28
+ # @return [ActivateMerchantKeyResponse200]
29
+ #
30
+ def activate_merchant_key(merchant_id, key_id, opts = {})
31
+ data, status_code, headers = activate_merchant_key_with_http_info(merchant_id, key_id, opts)
32
+ return data, status_code, headers
33
+ end
34
+
35
+ # Activate a merchant key
36
+ # Activate a deactivated key. Raises 403 if merchant is deactivated, 404 if merchant or key not found, 409 if key is already active.
37
+ # @param merchant_id Unique merchant identifier (UUID)
38
+ # @param key_id Unique key identifier (UUID)
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [Array<(ActivateMerchantKeyResponse200, Fixnum, Hash)>] ActivateMerchantKeyResponse200 data, response status code and response headers
41
+ def activate_merchant_key_with_http_info(merchant_id, key_id, opts = {})
42
+
43
+ if @api_client.config.debugging
44
+ begin
45
+ raise
46
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.activate_merchant_key ...'
47
+ rescue
48
+ puts 'Cannot write to log'
49
+ end
50
+ end
51
+ # verify the required parameter 'merchant_id' is set
52
+ if @api_client.config.client_side_validation && merchant_id.nil?
53
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.activate_merchant_key"
54
+ end
55
+ # verify the required parameter 'key_id' is set
56
+ if @api_client.config.client_side_validation && key_id.nil?
57
+ fail ArgumentError, "Missing the required parameter 'key_id' when calling MerchantCapabilitiesApi.activate_merchant_key"
58
+ end
59
+ # resource path
60
+ local_var_path = 'icc/v1/merchants/{merchantId}/keys/{keyId}/activate'.sub('{' + 'merchantId' + '}', merchant_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
61
+
62
+ # query parameters
63
+ query_params = {}
64
+
65
+ # header parameters
66
+ header_params = {}
67
+ # HTTP header 'Accept' (if needed)
68
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
69
+ # HTTP header 'Content-Type'
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ if 'POST' == 'POST'
77
+ post_body = '{}'
78
+ else
79
+ post_body = nil
80
+ end
81
+ inbound_mle_status = "mandatory"
82
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["activate_merchant_key","activate_merchant_key_with_http_info"])
83
+ begin
84
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
85
+ rescue
86
+ raise
87
+ end
88
+ end
89
+
90
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["activate_merchant_key","activate_merchant_key_with_http_info"])
91
+
92
+ auth_names = []
93
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
94
+ :header_params => header_params,
95
+ :query_params => query_params,
96
+ :form_params => form_params,
97
+ :body => post_body,
98
+ :auth_names => auth_names,
99
+ :return_type => 'ActivateMerchantKeyResponse200',
100
+ :isResponseMLEForApi => is_response_mle_for_api)
101
+ if @api_client.config.debugging
102
+ begin
103
+ raise
104
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#activate_merchant_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
105
+ rescue
106
+ puts 'Cannot write to log'
107
+ end
108
+ end
109
+ return data, status_code, headers
110
+ end
111
+ # Add a key to a merchant
112
+ # Add a new encryption key for a merchant. Raises 401 if not authenticated, 403 if caller does not own the merchant, 404 if merchant not found.
113
+ #
114
+ # @param merchant_id Unique merchant identifier (UUID)
115
+ # @param key_request Key creation request
116
+ # @param [Hash] opts the optional parameters
117
+ # @return [ActivateMerchantKeyResponse200]
118
+ #
119
+ def add_merchant_key(merchant_id, key_request, opts = {})
120
+ data, status_code, headers = add_merchant_key_with_http_info(merchant_id, key_request, opts)
121
+ return data, status_code, headers
122
+ end
123
+
124
+ # Add a key to a merchant
125
+ # Add a new encryption key for a merchant. Raises 401 if not authenticated, 403 if caller does not own the merchant, 404 if merchant not found.
126
+ # @param merchant_id Unique merchant identifier (UUID)
127
+ # @param key_request Key creation request
128
+ # @param [Hash] opts the optional parameters
129
+ # @return [Array<(ActivateMerchantKeyResponse200, Fixnum, Hash)>] ActivateMerchantKeyResponse200 data, response status code and response headers
130
+ def add_merchant_key_with_http_info(merchant_id, key_request, opts = {})
131
+
132
+ if @api_client.config.debugging
133
+ begin
134
+ raise
135
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.add_merchant_key ...'
136
+ rescue
137
+ puts 'Cannot write to log'
138
+ end
139
+ end
140
+ # verify the required parameter 'merchant_id' is set
141
+ if @api_client.config.client_side_validation && merchant_id.nil?
142
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.add_merchant_key"
143
+ end
144
+ # verify the required parameter 'key_request' is set
145
+ if @api_client.config.client_side_validation && key_request.nil?
146
+ fail ArgumentError, "Missing the required parameter 'key_request' when calling MerchantCapabilitiesApi.add_merchant_key"
147
+ end
148
+ # resource path
149
+ local_var_path = 'icc/v1/merchants/{merchantId}/keys'.sub('{' + 'merchantId' + '}', merchant_id.to_s)
150
+
151
+ # query parameters
152
+ query_params = {}
153
+
154
+ # header parameters
155
+ header_params = {}
156
+ # HTTP header 'Accept' (if needed)
157
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
158
+ # HTTP header 'Content-Type'
159
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
160
+
161
+ # form parameters
162
+ form_params = {}
163
+
164
+ # http body (model)
165
+ post_body = @api_client.object_to_http_body(key_request)
166
+ sdk_tracker = SdkTracker.new
167
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'KeyRequest1', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
168
+ inbound_mle_status = "mandatory"
169
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["add_merchant_key","add_merchant_key_with_http_info"])
170
+ begin
171
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
172
+ rescue
173
+ raise
174
+ end
175
+ end
176
+
177
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["add_merchant_key","add_merchant_key_with_http_info"])
178
+
179
+ auth_names = []
180
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
181
+ :header_params => header_params,
182
+ :query_params => query_params,
183
+ :form_params => form_params,
184
+ :body => post_body,
185
+ :auth_names => auth_names,
186
+ :return_type => 'ActivateMerchantKeyResponse200',
187
+ :isResponseMLEForApi => is_response_mle_for_api)
188
+ if @api_client.config.debugging
189
+ begin
190
+ raise
191
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#add_merchant_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
192
+ rescue
193
+ puts 'Cannot write to log'
194
+ end
195
+ end
196
+ return data, status_code, headers
197
+ end
198
+ # Deactivate a merchant key
199
+ # Deactivate a key (soft delete). Raises 401 if not authenticated, 403 if caller does not own the merchant, 404 if key not found.
200
+ #
201
+ # @param merchant_id Unique merchant identifier (UUID)
202
+ # @param key_id Unique key identifier (UUID)
203
+ # @param [Hash] opts the optional parameters
204
+ # @return [DeactivateMerchantKeyResponse200]
205
+ #
206
+ def deactivate_merchant_key(merchant_id, key_id, opts = {})
207
+ data, status_code, headers = deactivate_merchant_key_with_http_info(merchant_id, key_id, opts)
208
+ return data, status_code, headers
209
+ end
210
+
211
+ # Deactivate a merchant key
212
+ # Deactivate a key (soft delete). Raises 401 if not authenticated, 403 if caller does not own the merchant, 404 if key not found.
213
+ # @param merchant_id Unique merchant identifier (UUID)
214
+ # @param key_id Unique key identifier (UUID)
215
+ # @param [Hash] opts the optional parameters
216
+ # @return [Array<(DeactivateMerchantKeyResponse200, Fixnum, Hash)>] DeactivateMerchantKeyResponse200 data, response status code and response headers
217
+ def deactivate_merchant_key_with_http_info(merchant_id, key_id, opts = {})
218
+
219
+ if @api_client.config.debugging
220
+ begin
221
+ raise
222
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.deactivate_merchant_key ...'
223
+ rescue
224
+ puts 'Cannot write to log'
225
+ end
226
+ end
227
+ # verify the required parameter 'merchant_id' is set
228
+ if @api_client.config.client_side_validation && merchant_id.nil?
229
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.deactivate_merchant_key"
230
+ end
231
+ # verify the required parameter 'key_id' is set
232
+ if @api_client.config.client_side_validation && key_id.nil?
233
+ fail ArgumentError, "Missing the required parameter 'key_id' when calling MerchantCapabilitiesApi.deactivate_merchant_key"
234
+ end
235
+ # resource path
236
+ local_var_path = 'icc/v1/merchants/{merchantId}/keys/{keyId}'.sub('{' + 'merchantId' + '}', merchant_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
237
+
238
+ # query parameters
239
+ query_params = {}
240
+
241
+ # header parameters
242
+ header_params = {}
243
+ # HTTP header 'Accept' (if needed)
244
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
245
+ # HTTP header 'Content-Type'
246
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
247
+
248
+ # form parameters
249
+ form_params = {}
250
+
251
+ # http body (model)
252
+ if 'DELETE' == 'POST'
253
+ post_body = '{}'
254
+ else
255
+ post_body = nil
256
+ end
257
+ inbound_mle_status = "mandatory"
258
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["deactivate_merchant_key","deactivate_merchant_key_with_http_info"])
259
+ begin
260
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
261
+ rescue
262
+ raise
263
+ end
264
+ end
265
+
266
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["deactivate_merchant_key","deactivate_merchant_key_with_http_info"])
267
+
268
+ auth_names = []
269
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
270
+ :header_params => header_params,
271
+ :query_params => query_params,
272
+ :form_params => form_params,
273
+ :body => post_body,
274
+ :auth_names => auth_names,
275
+ :return_type => 'DeactivateMerchantKeyResponse200',
276
+ :isResponseMLEForApi => is_response_mle_for_api)
277
+ if @api_client.config.debugging
278
+ begin
279
+ raise
280
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#deactivate_merchant_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
281
+ rescue
282
+ puts 'Cannot write to log'
283
+ end
284
+ end
285
+ return data, status_code, headers
286
+ end
287
+ # Get All Products
288
+ # Returns the full product catalog stored in ACG. **Note:** This endpoint is intended for catalog verification and merchant tooling. It is not a real-time product discovery API for end buyers.
289
+ #
290
+ # @param get_all_products_request Empty request body.
291
+ # @param [Hash] opts the optional parameters
292
+ # @option opts [Integer] :page Page number to retrieve (0-based). Defaults to 0. (default to 0)
293
+ # @option opts [Integer] :size Number of products per page. Defaults to 300. Server enforces a maximum of 1000; values above 1000 are capped. (default to 300)
294
+ # @return [InlineResponse20020]
295
+ #
296
+ def get_all_products(get_all_products_request, opts = {})
297
+ data, status_code, headers = get_all_products_with_http_info(get_all_products_request, opts)
298
+ return data, status_code, headers
299
+ end
300
+
301
+ # Get All Products
302
+ # Returns the full product catalog stored in ACG. **Note:** This endpoint is intended for catalog verification and merchant tooling. It is not a real-time product discovery API for end buyers.
303
+ # @param get_all_products_request Empty request body.
304
+ # @param [Hash] opts the optional parameters
305
+ # @option opts [Integer] :page Page number to retrieve (0-based). Defaults to 0.
306
+ # @option opts [Integer] :size Number of products per page. Defaults to 300. Server enforces a maximum of 1000; values above 1000 are capped.
307
+ # @return [Array<(InlineResponse20020, Fixnum, Hash)>] InlineResponse20020 data, response status code and response headers
308
+ def get_all_products_with_http_info(get_all_products_request, opts = {})
309
+
310
+ if @api_client.config.debugging
311
+ begin
312
+ raise
313
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.get_all_products ...'
314
+ rescue
315
+ puts 'Cannot write to log'
316
+ end
317
+ end
318
+ # verify the required parameter 'get_all_products_request' is set
319
+ if @api_client.config.client_side_validation && get_all_products_request.nil?
320
+ fail ArgumentError, "Missing the required parameter 'get_all_products_request' when calling MerchantCapabilitiesApi.get_all_products"
321
+ end
322
+ # resource path
323
+ local_var_path = 'icc/v1/products'
324
+
325
+ # query parameters
326
+ query_params = {}
327
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
328
+ query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
329
+
330
+ # header parameters
331
+ header_params = {}
332
+ # HTTP header 'Accept' (if needed)
333
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
334
+ # HTTP header 'Content-Type'
335
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
336
+
337
+ # form parameters
338
+ form_params = {}
339
+
340
+ # http body (model)
341
+ post_body = @api_client.object_to_http_body(get_all_products_request)
342
+ sdk_tracker = SdkTracker.new
343
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Object', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
344
+ inbound_mle_status = "false"
345
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_all_products","get_all_products_with_http_info"])
346
+ begin
347
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
348
+ rescue
349
+ raise
350
+ end
351
+ end
352
+
353
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_all_products","get_all_products_with_http_info"])
354
+
355
+ auth_names = []
356
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
357
+ :header_params => header_params,
358
+ :query_params => query_params,
359
+ :form_params => form_params,
360
+ :body => post_body,
361
+ :auth_names => auth_names,
362
+ :return_type => 'InlineResponse20020',
363
+ :isResponseMLEForApi => is_response_mle_for_api)
364
+ if @api_client.config.debugging
365
+ begin
366
+ raise
367
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#get_all_products\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
368
+ rescue
369
+ puts 'Cannot write to log'
370
+ end
371
+ end
372
+ return data, status_code, headers
373
+ end
374
+ # Get a merchant
375
+ # Get merchant by ID with all associated keys. Raises 404 if merchant not found.
376
+ #
377
+ # @param merchant_id Unique merchant identifier (UUID)
378
+ # @param [Hash] opts the optional parameters
379
+ # @return [MerchantRegistrationResponse201]
380
+ #
381
+ def get_merchant(merchant_id, opts = {})
382
+ data, status_code, headers = get_merchant_with_http_info(merchant_id, opts)
383
+ return data, status_code, headers
384
+ end
385
+
386
+ # Get a merchant
387
+ # Get merchant by ID with all associated keys. Raises 404 if merchant not found.
388
+ # @param merchant_id Unique merchant identifier (UUID)
389
+ # @param [Hash] opts the optional parameters
390
+ # @return [Array<(MerchantRegistrationResponse201, Fixnum, Hash)>] MerchantRegistrationResponse201 data, response status code and response headers
391
+ def get_merchant_with_http_info(merchant_id, opts = {})
392
+
393
+ if @api_client.config.debugging
394
+ begin
395
+ raise
396
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.get_merchant ...'
397
+ rescue
398
+ puts 'Cannot write to log'
399
+ end
400
+ end
401
+ # verify the required parameter 'merchant_id' is set
402
+ if @api_client.config.client_side_validation && merchant_id.nil?
403
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.get_merchant"
404
+ end
405
+ # resource path
406
+ local_var_path = 'icc/v1/merchants/{merchantId}'.sub('{' + 'merchantId' + '}', merchant_id.to_s)
407
+
408
+ # query parameters
409
+ query_params = {}
410
+
411
+ # header parameters
412
+ header_params = {}
413
+ # HTTP header 'Accept' (if needed)
414
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
415
+ # HTTP header 'Content-Type'
416
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
417
+
418
+ # form parameters
419
+ form_params = {}
420
+
421
+ # http body (model)
422
+ if 'GET' == 'POST'
423
+ post_body = '{}'
424
+ else
425
+ post_body = nil
426
+ end
427
+ inbound_mle_status = "false"
428
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_merchant","get_merchant_with_http_info"])
429
+ begin
430
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
431
+ rescue
432
+ raise
433
+ end
434
+ end
435
+
436
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_merchant","get_merchant_with_http_info"])
437
+
438
+ auth_names = []
439
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
440
+ :header_params => header_params,
441
+ :query_params => query_params,
442
+ :form_params => form_params,
443
+ :body => post_body,
444
+ :auth_names => auth_names,
445
+ :return_type => 'MerchantRegistrationResponse201',
446
+ :isResponseMLEForApi => is_response_mle_for_api)
447
+ if @api_client.config.debugging
448
+ begin
449
+ raise
450
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#get_merchant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
451
+ rescue
452
+ puts 'Cannot write to log'
453
+ end
454
+ end
455
+ return data, status_code, headers
456
+ end
457
+ # Get a key by merchant and key ID
458
+ # Get a specific key by merchant ID and key ID. Raises 401 if not authenticated, 404 if key not found.
459
+ #
460
+ # @param merchant_id Unique merchant identifier (UUID)
461
+ # @param key_id Unique key identifier (UUID)
462
+ # @param [Hash] opts the optional parameters
463
+ # @return [ActivateMerchantKeyResponse200]
464
+ #
465
+ def get_merchant_key(merchant_id, key_id, opts = {})
466
+ data, status_code, headers = get_merchant_key_with_http_info(merchant_id, key_id, opts)
467
+ return data, status_code, headers
468
+ end
469
+
470
+ # Get a key by merchant and key ID
471
+ # Get a specific key by merchant ID and key ID. Raises 401 if not authenticated, 404 if key not found.
472
+ # @param merchant_id Unique merchant identifier (UUID)
473
+ # @param key_id Unique key identifier (UUID)
474
+ # @param [Hash] opts the optional parameters
475
+ # @return [Array<(ActivateMerchantKeyResponse200, Fixnum, Hash)>] ActivateMerchantKeyResponse200 data, response status code and response headers
476
+ def get_merchant_key_with_http_info(merchant_id, key_id, opts = {})
477
+
478
+ if @api_client.config.debugging
479
+ begin
480
+ raise
481
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.get_merchant_key ...'
482
+ rescue
483
+ puts 'Cannot write to log'
484
+ end
485
+ end
486
+ # verify the required parameter 'merchant_id' is set
487
+ if @api_client.config.client_side_validation && merchant_id.nil?
488
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.get_merchant_key"
489
+ end
490
+ # verify the required parameter 'key_id' is set
491
+ if @api_client.config.client_side_validation && key_id.nil?
492
+ fail ArgumentError, "Missing the required parameter 'key_id' when calling MerchantCapabilitiesApi.get_merchant_key"
493
+ end
494
+ # resource path
495
+ local_var_path = 'icc/v1/merchants/{merchantId}/keys/{keyId}'.sub('{' + 'merchantId' + '}', merchant_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
496
+
497
+ # query parameters
498
+ query_params = {}
499
+
500
+ # header parameters
501
+ header_params = {}
502
+ # HTTP header 'Accept' (if needed)
503
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
504
+ # HTTP header 'Content-Type'
505
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
506
+
507
+ # form parameters
508
+ form_params = {}
509
+
510
+ # http body (model)
511
+ if 'GET' == 'POST'
512
+ post_body = '{}'
513
+ else
514
+ post_body = nil
515
+ end
516
+ inbound_mle_status = "false"
517
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_merchant_key","get_merchant_key_with_http_info"])
518
+ begin
519
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
520
+ rescue
521
+ raise
522
+ end
523
+ end
524
+
525
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_merchant_key","get_merchant_key_with_http_info"])
526
+
527
+ auth_names = []
528
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
529
+ :header_params => header_params,
530
+ :query_params => query_params,
531
+ :form_params => form_params,
532
+ :body => post_body,
533
+ :auth_names => auth_names,
534
+ :return_type => 'ActivateMerchantKeyResponse200',
535
+ :isResponseMLEForApi => is_response_mle_for_api)
536
+ if @api_client.config.debugging
537
+ begin
538
+ raise
539
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#get_merchant_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
540
+ rescue
541
+ puts 'Cannot write to log'
542
+ end
543
+ end
544
+ return data, status_code, headers
545
+ end
546
+ # Get Product by ID
547
+ # Retrieves a single product from the ACG catalog by its unique product identifier (SKU). Use this to verify that a product was ingested correctly, inspect its current field values, or check its syndication-eligibility flags (`is_eligible_search`, `is_eligible_checkout`).
548
+ #
549
+ # @param product_id The unique product identifier (SKU) assigned by the merchant and provided during feed ingestion. Example: &#x60;SKU-1001&#x60;.
550
+ # @param get_product_request Empty request body.
551
+ # @param [Hash] opts the optional parameters
552
+ # @return [InlineResponse20021]
553
+ #
554
+ def get_product(product_id, get_product_request, opts = {})
555
+ data, status_code, headers = get_product_with_http_info(product_id, get_product_request, opts)
556
+ return data, status_code, headers
557
+ end
558
+
559
+ # Get Product by ID
560
+ # Retrieves a single product from the ACG catalog by its unique product identifier (SKU). Use this to verify that a product was ingested correctly, inspect its current field values, or check its syndication-eligibility flags (&#x60;is_eligible_search&#x60;, &#x60;is_eligible_checkout&#x60;).
561
+ # @param product_id The unique product identifier (SKU) assigned by the merchant and provided during feed ingestion. Example: &#x60;SKU-1001&#x60;.
562
+ # @param get_product_request Empty request body.
563
+ # @param [Hash] opts the optional parameters
564
+ # @return [Array<(InlineResponse20021, Fixnum, Hash)>] InlineResponse20021 data, response status code and response headers
565
+ def get_product_with_http_info(product_id, get_product_request, opts = {})
566
+
567
+ if @api_client.config.debugging
568
+ begin
569
+ raise
570
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.get_product ...'
571
+ rescue
572
+ puts 'Cannot write to log'
573
+ end
574
+ end
575
+ # verify the required parameter 'product_id' is set
576
+ if @api_client.config.client_side_validation && product_id.nil?
577
+ fail ArgumentError, "Missing the required parameter 'product_id' when calling MerchantCapabilitiesApi.get_product"
578
+ end
579
+ # verify the required parameter 'get_product_request' is set
580
+ if @api_client.config.client_side_validation && get_product_request.nil?
581
+ fail ArgumentError, "Missing the required parameter 'get_product_request' when calling MerchantCapabilitiesApi.get_product"
582
+ end
583
+ # resource path
584
+ local_var_path = 'icc/v1/products/{product_id}'.sub('{' + 'product_id' + '}', product_id.to_s)
585
+
586
+ # query parameters
587
+ query_params = {}
588
+
589
+ # header parameters
590
+ header_params = {}
591
+ # HTTP header 'Accept' (if needed)
592
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
593
+ # HTTP header 'Content-Type'
594
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
595
+
596
+ # form parameters
597
+ form_params = {}
598
+
599
+ # http body (model)
600
+ post_body = @api_client.object_to_http_body(get_product_request)
601
+ sdk_tracker = SdkTracker.new
602
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'Object', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
603
+ inbound_mle_status = "false"
604
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["get_product","get_product_with_http_info"])
605
+ begin
606
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
607
+ rescue
608
+ raise
609
+ end
610
+ end
611
+
612
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["get_product","get_product_with_http_info"])
613
+
614
+ auth_names = []
615
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
616
+ :header_params => header_params,
617
+ :query_params => query_params,
618
+ :form_params => form_params,
619
+ :body => post_body,
620
+ :auth_names => auth_names,
621
+ :return_type => 'InlineResponse20021',
622
+ :isResponseMLEForApi => is_response_mle_for_api)
623
+ if @api_client.config.debugging
624
+ begin
625
+ raise
626
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#get_product\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
627
+ rescue
628
+ puts 'Cannot write to log'
629
+ end
630
+ end
631
+ return data, status_code, headers
632
+ end
633
+ # Ingest Product Feed
634
+ # Uploads a merchant product catalog to ACG and triggers asynchronous syndication to all configured protocol backends (e.g. Google Merchant Center). **Processing pipeline:** 1. Each product is validated against UCP/ACP schema requirements (required fields, format rules) 2. Valid products are saved to the ACG catalog 3. An async syndication job is triggered to push the catalog to configured backends 4. A `feed_id` is returned — use this with the Syndication Status endpoint to monitor progress **Supported content types:** `application/json` (this endpoint). CSV and JSONL uploads are also supported via file upload endpoints. **Partial success:** If some products fail validation, the response status is `PARTIAL_SUCCESS` and the `errors` array lists the per-product validation failures. Successfully validated products are still ingested and syndicated.
635
+ #
636
+ # @param product_feed_request Product feed payload. The &#x60;products&#x60; array is required and must contain at least one product. See &#x60;ProductInput&#x60; for the full list of required fields.
637
+ # @param [Hash] opts the optional parameters
638
+ # @return [InlineResponse20019]
639
+ #
640
+ def ingest_product_feed_json(product_feed_request, opts = {})
641
+ data, status_code, headers = ingest_product_feed_json_with_http_info(product_feed_request, opts)
642
+ return data, status_code, headers
643
+ end
644
+
645
+ # Ingest Product Feed
646
+ # Uploads a merchant product catalog to ACG and triggers asynchronous syndication to all configured protocol backends (e.g. Google Merchant Center). **Processing pipeline:** 1. Each product is validated against UCP/ACP schema requirements (required fields, format rules) 2. Valid products are saved to the ACG catalog 3. An async syndication job is triggered to push the catalog to configured backends 4. A &#x60;feed_id&#x60; is returned — use this with the Syndication Status endpoint to monitor progress **Supported content types:** &#x60;application/json&#x60; (this endpoint). CSV and JSONL uploads are also supported via file upload endpoints. **Partial success:** If some products fail validation, the response status is &#x60;PARTIAL_SUCCESS&#x60; and the &#x60;errors&#x60; array lists the per-product validation failures. Successfully validated products are still ingested and syndicated.
647
+ # @param product_feed_request Product feed payload. The &#x60;products&#x60; array is required and must contain at least one product. See &#x60;ProductInput&#x60; for the full list of required fields.
648
+ # @param [Hash] opts the optional parameters
649
+ # @return [Array<(InlineResponse20019, Fixnum, Hash)>] InlineResponse20019 data, response status code and response headers
650
+ def ingest_product_feed_json_with_http_info(product_feed_request, opts = {})
651
+
652
+ if @api_client.config.debugging
653
+ begin
654
+ raise
655
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.ingest_product_feed_json ...'
656
+ rescue
657
+ puts 'Cannot write to log'
658
+ end
659
+ end
660
+ # verify the required parameter 'product_feed_request' is set
661
+ if @api_client.config.client_side_validation && product_feed_request.nil?
662
+ fail ArgumentError, "Missing the required parameter 'product_feed_request' when calling MerchantCapabilitiesApi.ingest_product_feed_json"
663
+ end
664
+ # resource path
665
+ local_var_path = 'icc/v1/products/feed'
666
+
667
+ # query parameters
668
+ query_params = {}
669
+
670
+ # header parameters
671
+ header_params = {}
672
+ # HTTP header 'Accept' (if needed)
673
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
674
+ # HTTP header 'Content-Type'
675
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
676
+
677
+ # form parameters
678
+ form_params = {}
679
+
680
+ # http body (model)
681
+ post_body = @api_client.object_to_http_body(product_feed_request)
682
+ sdk_tracker = SdkTracker.new
683
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'ProductFeedRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
684
+ inbound_mle_status = "mandatory"
685
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["ingest_product_feed_json","ingest_product_feed_json_with_http_info"])
686
+ begin
687
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
688
+ rescue
689
+ raise
690
+ end
691
+ end
692
+
693
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["ingest_product_feed_json","ingest_product_feed_json_with_http_info"])
694
+
695
+ auth_names = []
696
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
697
+ :header_params => header_params,
698
+ :query_params => query_params,
699
+ :form_params => form_params,
700
+ :body => post_body,
701
+ :auth_names => auth_names,
702
+ :return_type => 'InlineResponse20019',
703
+ :isResponseMLEForApi => is_response_mle_for_api)
704
+ if @api_client.config.debugging
705
+ begin
706
+ raise
707
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#ingest_product_feed_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
708
+ rescue
709
+ puts 'Cannot write to log'
710
+ end
711
+ end
712
+ return data, status_code, headers
713
+ end
714
+ # List keys for a merchant
715
+ # List all keys for a specific merchant with optional filtering by status. Raises 404 if merchant not found.
716
+ #
717
+ # @param merchant_id Unique merchant identifier (UUID)
718
+ # @param [Hash] opts the optional parameters
719
+ # @option opts [String] :status Filter by key status: &#39;active&#39;, &#39;deactivated&#39;, or &#39;expired&#39;. Omit to return all keys.
720
+ # @return [ListMerchantKeysResponse200]
721
+ #
722
+ def list_merchant_keys(merchant_id, opts = {})
723
+ data, status_code, headers = list_merchant_keys_with_http_info(merchant_id, opts)
724
+ return data, status_code, headers
725
+ end
726
+
727
+ # List keys for a merchant
728
+ # List all keys for a specific merchant with optional filtering by status. Raises 404 if merchant not found.
729
+ # @param merchant_id Unique merchant identifier (UUID)
730
+ # @param [Hash] opts the optional parameters
731
+ # @option opts [String] :status Filter by key status: &#39;active&#39;, &#39;deactivated&#39;, or &#39;expired&#39;. Omit to return all keys.
732
+ # @return [Array<(ListMerchantKeysResponse200, Fixnum, Hash)>] ListMerchantKeysResponse200 data, response status code and response headers
733
+ def list_merchant_keys_with_http_info(merchant_id, opts = {})
734
+
735
+ if @api_client.config.debugging
736
+ begin
737
+ raise
738
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.list_merchant_keys ...'
739
+ rescue
740
+ puts 'Cannot write to log'
741
+ end
742
+ end
743
+ # verify the required parameter 'merchant_id' is set
744
+ if @api_client.config.client_side_validation && merchant_id.nil?
745
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.list_merchant_keys"
746
+ end
747
+ if @api_client.config.client_side_validation && opts[:'status'] && !['active', 'deactivated', 'expired'].include?(opts[:'status'])
748
+ fail ArgumentError, 'invalid value for "status", must be one of active, deactivated, expired'
749
+ end
750
+ # resource path
751
+ local_var_path = 'icc/v1/merchants/{merchantId}/keys'.sub('{' + 'merchantId' + '}', merchant_id.to_s)
752
+
753
+ # query parameters
754
+ query_params = {}
755
+ query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
756
+
757
+ # header parameters
758
+ header_params = {}
759
+ # HTTP header 'Accept' (if needed)
760
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
761
+ # HTTP header 'Content-Type'
762
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
763
+
764
+ # form parameters
765
+ form_params = {}
766
+
767
+ # http body (model)
768
+ if 'GET' == 'POST'
769
+ post_body = '{}'
770
+ else
771
+ post_body = nil
772
+ end
773
+ inbound_mle_status = "false"
774
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["list_merchant_keys","list_merchant_keys_with_http_info"])
775
+ begin
776
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
777
+ rescue
778
+ raise
779
+ end
780
+ end
781
+
782
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["list_merchant_keys","list_merchant_keys_with_http_info"])
783
+
784
+ auth_names = []
785
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
786
+ :header_params => header_params,
787
+ :query_params => query_params,
788
+ :form_params => form_params,
789
+ :body => post_body,
790
+ :auth_names => auth_names,
791
+ :return_type => 'ListMerchantKeysResponse200',
792
+ :isResponseMLEForApi => is_response_mle_for_api)
793
+ if @api_client.config.debugging
794
+ begin
795
+ raise
796
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#list_merchant_keys\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
797
+ rescue
798
+ puts 'Cannot write to log'
799
+ end
800
+ end
801
+ return data, status_code, headers
802
+ end
803
+ # Register a merchant
804
+ # Onboard a new merchant into the VMRS. The merchant declares how they want payment data delivered: cryptogram type (TAVV or DAVV), transaction indicator (TAP, ACG, or Both), whether credentials should be encrypted, and their public encryption key if encryption is enabled. Raises 409 if merchantUrl or vmid already exists.
805
+ #
806
+ # @param merchant_request Merchant registration request
807
+ # @param [Hash] opts the optional parameters
808
+ # @return [MerchantRegistrationResponse201]
809
+ #
810
+ def register_merchant(merchant_request, opts = {})
811
+ data, status_code, headers = register_merchant_with_http_info(merchant_request, opts)
812
+ return data, status_code, headers
813
+ end
814
+
815
+ # Register a merchant
816
+ # Onboard a new merchant into the VMRS. The merchant declares how they want payment data delivered: cryptogram type (TAVV or DAVV), transaction indicator (TAP, ACG, or Both), whether credentials should be encrypted, and their public encryption key if encryption is enabled. Raises 409 if merchantUrl or vmid already exists.
817
+ # @param merchant_request Merchant registration request
818
+ # @param [Hash] opts the optional parameters
819
+ # @return [Array<(MerchantRegistrationResponse201, Fixnum, Hash)>] MerchantRegistrationResponse201 data, response status code and response headers
820
+ def register_merchant_with_http_info(merchant_request, opts = {})
821
+
822
+ if @api_client.config.debugging
823
+ begin
824
+ raise
825
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.register_merchant ...'
826
+ rescue
827
+ puts 'Cannot write to log'
828
+ end
829
+ end
830
+ # verify the required parameter 'merchant_request' is set
831
+ if @api_client.config.client_side_validation && merchant_request.nil?
832
+ fail ArgumentError, "Missing the required parameter 'merchant_request' when calling MerchantCapabilitiesApi.register_merchant"
833
+ end
834
+ # resource path
835
+ local_var_path = 'icc/v1/merchants'
836
+
837
+ # query parameters
838
+ query_params = {}
839
+
840
+ # header parameters
841
+ header_params = {}
842
+ # HTTP header 'Accept' (if needed)
843
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
844
+ # HTTP header 'Content-Type'
845
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
846
+
847
+ # form parameters
848
+ form_params = {}
849
+
850
+ # http body (model)
851
+ post_body = @api_client.object_to_http_body(merchant_request)
852
+ sdk_tracker = SdkTracker.new
853
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MerchantRequest', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
854
+ inbound_mle_status = "mandatory"
855
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["register_merchant","register_merchant_with_http_info"])
856
+ begin
857
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
858
+ rescue
859
+ raise
860
+ end
861
+ end
862
+
863
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["register_merchant","register_merchant_with_http_info"])
864
+
865
+ auth_names = []
866
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
867
+ :header_params => header_params,
868
+ :query_params => query_params,
869
+ :form_params => form_params,
870
+ :body => post_body,
871
+ :auth_names => auth_names,
872
+ :return_type => 'MerchantRegistrationResponse201',
873
+ :isResponseMLEForApi => is_response_mle_for_api)
874
+ if @api_client.config.debugging
875
+ begin
876
+ raise
877
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#register_merchant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
878
+ rescue
879
+ puts 'Cannot write to log'
880
+ end
881
+ end
882
+ return data, status_code, headers
883
+ end
884
+ # Update a merchant
885
+ # Update merchant configuration. Updatable fields: merchantName, merchantUrl, cryptogramType, acceptanceRelationships, protocolInteractions, webIntegrations, apiIntegrations. Partial updates are supported — only provided fields are changed. The vmid, indicator, and paymentPayloadType fields are not updatable here; use the enable/disable-payment-encryption endpoints for encryption changes. Raises 404 if merchant not found, 403 if merchant is deactivated, 409 if new merchantUrl already exists.
886
+ #
887
+ # @param merchant_id Unique merchant identifier (UUID)
888
+ # @param merchant_update Merchant update request
889
+ # @param [Hash] opts the optional parameters
890
+ # @return [MerchantRegistrationResponse201]
891
+ #
892
+ def update_merchant(merchant_id, merchant_update, opts = {})
893
+ data, status_code, headers = update_merchant_with_http_info(merchant_id, merchant_update, opts)
894
+ return data, status_code, headers
895
+ end
896
+
897
+ # Update a merchant
898
+ # Update merchant configuration. Updatable fields: merchantName, merchantUrl, cryptogramType, acceptanceRelationships, protocolInteractions, webIntegrations, apiIntegrations. Partial updates are supported — only provided fields are changed. The vmid, indicator, and paymentPayloadType fields are not updatable here; use the enable/disable-payment-encryption endpoints for encryption changes. Raises 404 if merchant not found, 403 if merchant is deactivated, 409 if new merchantUrl already exists.
899
+ # @param merchant_id Unique merchant identifier (UUID)
900
+ # @param merchant_update Merchant update request
901
+ # @param [Hash] opts the optional parameters
902
+ # @return [Array<(MerchantRegistrationResponse201, Fixnum, Hash)>] MerchantRegistrationResponse201 data, response status code and response headers
903
+ def update_merchant_with_http_info(merchant_id, merchant_update, opts = {})
904
+
905
+ if @api_client.config.debugging
906
+ begin
907
+ raise
908
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.update_merchant ...'
909
+ rescue
910
+ puts 'Cannot write to log'
911
+ end
912
+ end
913
+ # verify the required parameter 'merchant_id' is set
914
+ if @api_client.config.client_side_validation && merchant_id.nil?
915
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.update_merchant"
916
+ end
917
+ # verify the required parameter 'merchant_update' is set
918
+ if @api_client.config.client_side_validation && merchant_update.nil?
919
+ fail ArgumentError, "Missing the required parameter 'merchant_update' when calling MerchantCapabilitiesApi.update_merchant"
920
+ end
921
+ # resource path
922
+ local_var_path = 'icc/v1/merchants/{merchantId}'.sub('{' + 'merchantId' + '}', merchant_id.to_s)
923
+
924
+ # query parameters
925
+ query_params = {}
926
+
927
+ # header parameters
928
+ header_params = {}
929
+ # HTTP header 'Accept' (if needed)
930
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
931
+ # HTTP header 'Content-Type'
932
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
933
+
934
+ # form parameters
935
+ form_params = {}
936
+
937
+ # http body (model)
938
+ post_body = @api_client.object_to_http_body(merchant_update)
939
+ sdk_tracker = SdkTracker.new
940
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'MerchantUpdate', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
941
+ inbound_mle_status = "mandatory"
942
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_merchant","update_merchant_with_http_info"])
943
+ begin
944
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
945
+ rescue
946
+ raise
947
+ end
948
+ end
949
+
950
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["update_merchant","update_merchant_with_http_info"])
951
+
952
+ auth_names = []
953
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
954
+ :header_params => header_params,
955
+ :query_params => query_params,
956
+ :form_params => form_params,
957
+ :body => post_body,
958
+ :auth_names => auth_names,
959
+ :return_type => 'MerchantRegistrationResponse201',
960
+ :isResponseMLEForApi => is_response_mle_for_api)
961
+ if @api_client.config.debugging
962
+ begin
963
+ raise
964
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#update_merchant\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
965
+ rescue
966
+ puts 'Cannot write to log'
967
+ end
968
+ end
969
+ return data, status_code, headers
970
+ end
971
+ # Update a merchant key
972
+ # Update key information. Updatable fields are keyName, encryptionKey, algorithm, encryptionType, and expirationDate. Raises 401 if not authenticated, 403 if caller does not own the merchant or if merchant/key is deactivated, 404 if merchant or key not found, 409 if new keyName already exists.
973
+ #
974
+ # @param merchant_id Unique merchant identifier (UUID)
975
+ # @param key_id Unique key identifier (UUID)
976
+ # @param key_update Key update request
977
+ # @param [Hash] opts the optional parameters
978
+ # @return [ActivateMerchantKeyResponse200]
979
+ #
980
+ def update_merchant_key(merchant_id, key_id, key_update, opts = {})
981
+ data, status_code, headers = update_merchant_key_with_http_info(merchant_id, key_id, key_update, opts)
982
+ return data, status_code, headers
983
+ end
984
+
985
+ # Update a merchant key
986
+ # Update key information. Updatable fields are keyName, encryptionKey, algorithm, encryptionType, and expirationDate. Raises 401 if not authenticated, 403 if caller does not own the merchant or if merchant/key is deactivated, 404 if merchant or key not found, 409 if new keyName already exists.
987
+ # @param merchant_id Unique merchant identifier (UUID)
988
+ # @param key_id Unique key identifier (UUID)
989
+ # @param key_update Key update request
990
+ # @param [Hash] opts the optional parameters
991
+ # @return [Array<(ActivateMerchantKeyResponse200, Fixnum, Hash)>] ActivateMerchantKeyResponse200 data, response status code and response headers
992
+ def update_merchant_key_with_http_info(merchant_id, key_id, key_update, opts = {})
993
+
994
+ if @api_client.config.debugging
995
+ begin
996
+ raise
997
+ @api_client.config.logger.debug 'Calling API: MerchantCapabilitiesApi.update_merchant_key ...'
998
+ rescue
999
+ puts 'Cannot write to log'
1000
+ end
1001
+ end
1002
+ # verify the required parameter 'merchant_id' is set
1003
+ if @api_client.config.client_side_validation && merchant_id.nil?
1004
+ fail ArgumentError, "Missing the required parameter 'merchant_id' when calling MerchantCapabilitiesApi.update_merchant_key"
1005
+ end
1006
+ # verify the required parameter 'key_id' is set
1007
+ if @api_client.config.client_side_validation && key_id.nil?
1008
+ fail ArgumentError, "Missing the required parameter 'key_id' when calling MerchantCapabilitiesApi.update_merchant_key"
1009
+ end
1010
+ # verify the required parameter 'key_update' is set
1011
+ if @api_client.config.client_side_validation && key_update.nil?
1012
+ fail ArgumentError, "Missing the required parameter 'key_update' when calling MerchantCapabilitiesApi.update_merchant_key"
1013
+ end
1014
+ # resource path
1015
+ local_var_path = 'icc/v1/merchants/{merchantId}/keys/{keyId}'.sub('{' + 'merchantId' + '}', merchant_id.to_s).sub('{' + 'keyId' + '}', key_id.to_s)
1016
+
1017
+ # query parameters
1018
+ query_params = {}
1019
+
1020
+ # header parameters
1021
+ header_params = {}
1022
+ # HTTP header 'Accept' (if needed)
1023
+ header_params['Accept'] = @api_client.select_header_accept(['application/hal+json;charset=utf-8'])
1024
+ # HTTP header 'Content-Type'
1025
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json;charset=utf-8'])
1026
+
1027
+ # form parameters
1028
+ form_params = {}
1029
+
1030
+ # http body (model)
1031
+ post_body = @api_client.object_to_http_body(key_update)
1032
+ sdk_tracker = SdkTracker.new
1033
+ post_body = sdk_tracker.insert_developer_id_tracker(post_body, 'KeyUpdate1', @api_client.config.host, @api_client.merchantconfig.defaultDeveloperId)
1034
+ inbound_mle_status = "mandatory"
1035
+ if MLEUtility.check_is_mle_for_API(@api_client.merchantconfig, inbound_mle_status, ["update_merchant_key","update_merchant_key_with_http_info"])
1036
+ begin
1037
+ post_body = MLEUtility.encrypt_request_payload(@api_client.merchantconfig, post_body)
1038
+ rescue
1039
+ raise
1040
+ end
1041
+ end
1042
+
1043
+ is_response_mle_for_api = MLEUtility.check_is_response_mle_for_api(@api_client.merchantconfig, ["update_merchant_key","update_merchant_key_with_http_info"])
1044
+
1045
+ auth_names = []
1046
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1047
+ :header_params => header_params,
1048
+ :query_params => query_params,
1049
+ :form_params => form_params,
1050
+ :body => post_body,
1051
+ :auth_names => auth_names,
1052
+ :return_type => 'ActivateMerchantKeyResponse200',
1053
+ :isResponseMLEForApi => is_response_mle_for_api)
1054
+ if @api_client.config.debugging
1055
+ begin
1056
+ raise
1057
+ @api_client.config.logger.debug "API called: MerchantCapabilitiesApi#update_merchant_key\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1058
+ rescue
1059
+ puts 'Cannot write to log'
1060
+ end
1061
+ end
1062
+ return data, status_code, headers
1063
+ end
1064
+ end
1065
+ end