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,1081 @@
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 'date'
13
+
14
+ module CyberSource
15
+ # Full product record as stored in the ACG catalog. Contains all ingest fields plus server-assigned metadata timestamps.
16
+ class InlineResponse20020Products
17
+ # The merchant SKU / `item_id` as stored in the ACG catalog. Equivalent to the `item_id` field submitted during feed ingestion.
18
+ attr_accessor :id
19
+
20
+ # Unique product identifier / SKU.
21
+ attr_accessor :item_id
22
+
23
+ # Product display name.
24
+ attr_accessor :title
25
+
26
+ # Product description.
27
+ attr_accessor :description
28
+
29
+ # URL to the product page on the merchant's storefront.
30
+ attr_accessor :url
31
+
32
+ # URL to the primary product image.
33
+ attr_accessor :image_url
34
+
35
+ # Additional product image URLs.
36
+ attr_accessor :additional_image_urls
37
+
38
+ # URL to a product video.
39
+ attr_accessor :video_url
40
+
41
+ # URL to a 3D model asset.
42
+ attr_accessor :model_3d_url
43
+
44
+ # Product category hierarchy (e.g. `Electronics > Audio > Headphones`).
45
+ attr_accessor :product_category
46
+
47
+ # Product brand or manufacturer.
48
+ attr_accessor :brand
49
+
50
+ # Global Trade Item Number.
51
+ attr_accessor :gtin
52
+
53
+ # Manufacturer Part Number.
54
+ attr_accessor :mpn
55
+
56
+ # Product condition (e.g. new, used, refurbished).
57
+ attr_accessor :condition
58
+
59
+ # Primary material (relevant for apparel, furniture, etc.).
60
+ attr_accessor :material
61
+
62
+ # Product weight including unit.
63
+ attr_accessor :weight
64
+
65
+ # Combined dimension string (e.g. \"10x5x3 cm\").
66
+ attr_accessor :dimensions
67
+
68
+ # Product length. Pair with `dimensions_unit` for unit context.
69
+ attr_accessor :length
70
+
71
+ # Product width. Pair with `dimensions_unit` for unit context.
72
+ attr_accessor :width
73
+
74
+ # Product height. Pair with `dimensions_unit` for unit context.
75
+ attr_accessor :height
76
+
77
+ # Unit for dimension values (e.g. \"cm\", \"in\", \"mm\").
78
+ attr_accessor :dimensions_unit
79
+
80
+ # Unit for weight value (e.g. \"kg\", \"lb\", \"oz\").
81
+ attr_accessor :item_weight_unit
82
+
83
+ # Target age group (e.g. \"adult\", \"kids\", \"infant\").
84
+ attr_accessor :age_group
85
+
86
+ # Primary product color. Used for variant filtering.
87
+ attr_accessor :color
88
+
89
+ # Product size (e.g. \"M\", \"42\", \"XL\"). Used for variant filtering.
90
+ attr_accessor :size
91
+
92
+ # Size standard used (e.g. \"US\", \"EU\", \"UK\").
93
+ attr_accessor :size_system
94
+
95
+ # Target gender (e.g. \"male\", \"female\", \"unisex\").
96
+ attr_accessor :gender
97
+
98
+ # Product variant group identifier.
99
+ attr_accessor :group_id
100
+
101
+ # Whether this listing has product variations (e.g. different sizes or colors).
102
+ attr_accessor :listing_has_variations
103
+
104
+ # Display title for the variant group.
105
+ attr_accessor :item_group_title
106
+
107
+ # Merchant-assigned offer identifier.
108
+ attr_accessor :offer_id
109
+
110
+ attr_accessor :variant_dict
111
+
112
+ attr_accessor :custom_variant1_category
113
+
114
+ attr_accessor :custom_variant1_option
115
+
116
+ attr_accessor :custom_variant2_category
117
+
118
+ attr_accessor :custom_variant2_option
119
+
120
+ attr_accessor :custom_variant3_category
121
+
122
+ attr_accessor :custom_variant3_option
123
+
124
+ # Product price as a decimal number.
125
+ attr_accessor :price
126
+
127
+ # ISO 4217 currency code.
128
+ attr_accessor :currency
129
+
130
+ attr_accessor :sale_price
131
+
132
+ attr_accessor :sale_price_start_date
133
+
134
+ attr_accessor :sale_price_end_date
135
+
136
+ attr_accessor :unit_pricing_measure
137
+
138
+ attr_accessor :base_measure
139
+
140
+ attr_accessor :pricing_trend
141
+
142
+ attr_accessor :geo_price
143
+
144
+ attr_accessor :geo_availability
145
+
146
+ # Current stock status. Possible values: - in_stock - out_of_stock - preorder - backorder
147
+ attr_accessor :availability
148
+
149
+ attr_accessor :availability_date
150
+
151
+ attr_accessor :expiration_date
152
+
153
+ # Merchant or seller display name. Max 70 characters.
154
+ attr_accessor :seller_name
155
+
156
+ attr_accessor :seller_url
157
+
158
+ attr_accessor :marketplace_seller
159
+
160
+ attr_accessor :seller_privacy_policy
161
+
162
+ attr_accessor :seller_tos
163
+
164
+ attr_accessor :shipping_price
165
+
166
+ attr_accessor :delivery_estimate
167
+
168
+ attr_accessor :pickup_method
169
+
170
+ attr_accessor :pickup_sla
171
+
172
+ attr_accessor :is_digital
173
+
174
+ attr_accessor :return_policy
175
+
176
+ attr_accessor :accepts_returns
177
+
178
+ attr_accessor :return_deadline_in_days
179
+
180
+ attr_accessor :accepts_exchanges
181
+
182
+ # When `true`, product appears in AI agent discovery results.
183
+ attr_accessor :is_eligible_search
184
+
185
+ # When `true`, product can be added to a checkout session.
186
+ attr_accessor :is_eligible_checkout
187
+
188
+ attr_accessor :popularity_score
189
+
190
+ attr_accessor :return_rate
191
+
192
+ attr_accessor :warning
193
+
194
+ attr_accessor :warning_url
195
+
196
+ attr_accessor :age_restriction
197
+
198
+ attr_accessor :review_count
199
+
200
+ attr_accessor :star_rating
201
+
202
+ attr_accessor :store_review_count
203
+
204
+ attr_accessor :store_star_rating
205
+
206
+ attr_accessor :related_product_id
207
+
208
+ attr_accessor :relationship_type
209
+
210
+ # Country codes where this product is available.
211
+ attr_accessor :target_countries
212
+
213
+ # ISO 3166-1 alpha-2 country code of the merchant's store.
214
+ attr_accessor :store_country
215
+
216
+ attr_accessor :q_and_a
217
+
218
+ attr_accessor :qand_a
219
+
220
+ attr_accessor :reviews
221
+
222
+ # ISO 8601 timestamp when this product was first ingested.
223
+ attr_accessor :created_at
224
+
225
+ # ISO 8601 timestamp of the most recent update.
226
+ attr_accessor :updated_at
227
+
228
+ # Attribute mapping from ruby-style variable name to JSON key.
229
+ def self.attribute_map
230
+ {
231
+ :'id' => :'id',
232
+ :'item_id' => :'item_id',
233
+ :'title' => :'title',
234
+ :'description' => :'description',
235
+ :'url' => :'url',
236
+ :'image_url' => :'image_url',
237
+ :'additional_image_urls' => :'additional_image_urls',
238
+ :'video_url' => :'video_url',
239
+ :'model_3d_url' => :'model_3d_url',
240
+ :'product_category' => :'product_category',
241
+ :'brand' => :'brand',
242
+ :'gtin' => :'gtin',
243
+ :'mpn' => :'mpn',
244
+ :'condition' => :'condition',
245
+ :'material' => :'material',
246
+ :'weight' => :'weight',
247
+ :'dimensions' => :'dimensions',
248
+ :'length' => :'length',
249
+ :'width' => :'width',
250
+ :'height' => :'height',
251
+ :'dimensions_unit' => :'dimensions_unit',
252
+ :'item_weight_unit' => :'item_weight_unit',
253
+ :'age_group' => :'age_group',
254
+ :'color' => :'color',
255
+ :'size' => :'size',
256
+ :'size_system' => :'size_system',
257
+ :'gender' => :'gender',
258
+ :'group_id' => :'group_id',
259
+ :'listing_has_variations' => :'listing_has_variations',
260
+ :'item_group_title' => :'item_group_title',
261
+ :'offer_id' => :'offer_id',
262
+ :'variant_dict' => :'variant_dict',
263
+ :'custom_variant1_category' => :'custom_variant1_category',
264
+ :'custom_variant1_option' => :'custom_variant1_option',
265
+ :'custom_variant2_category' => :'custom_variant2_category',
266
+ :'custom_variant2_option' => :'custom_variant2_option',
267
+ :'custom_variant3_category' => :'custom_variant3_category',
268
+ :'custom_variant3_option' => :'custom_variant3_option',
269
+ :'price' => :'price',
270
+ :'currency' => :'currency',
271
+ :'sale_price' => :'sale_price',
272
+ :'sale_price_start_date' => :'sale_price_start_date',
273
+ :'sale_price_end_date' => :'sale_price_end_date',
274
+ :'unit_pricing_measure' => :'unit_pricing_measure',
275
+ :'base_measure' => :'base_measure',
276
+ :'pricing_trend' => :'pricing_trend',
277
+ :'geo_price' => :'geo_price',
278
+ :'geo_availability' => :'geo_availability',
279
+ :'availability' => :'availability',
280
+ :'availability_date' => :'availability_date',
281
+ :'expiration_date' => :'expiration_date',
282
+ :'seller_name' => :'seller_name',
283
+ :'seller_url' => :'seller_url',
284
+ :'marketplace_seller' => :'marketplace_seller',
285
+ :'seller_privacy_policy' => :'seller_privacy_policy',
286
+ :'seller_tos' => :'seller_tos',
287
+ :'shipping_price' => :'shipping_price',
288
+ :'delivery_estimate' => :'delivery_estimate',
289
+ :'pickup_method' => :'pickup_method',
290
+ :'pickup_sla' => :'pickup_sla',
291
+ :'is_digital' => :'is_digital',
292
+ :'return_policy' => :'return_policy',
293
+ :'accepts_returns' => :'accepts_returns',
294
+ :'return_deadline_in_days' => :'return_deadline_in_days',
295
+ :'accepts_exchanges' => :'accepts_exchanges',
296
+ :'is_eligible_search' => :'is_eligible_search',
297
+ :'is_eligible_checkout' => :'is_eligible_checkout',
298
+ :'popularity_score' => :'popularity_score',
299
+ :'return_rate' => :'return_rate',
300
+ :'warning' => :'warning',
301
+ :'warning_url' => :'warning_url',
302
+ :'age_restriction' => :'age_restriction',
303
+ :'review_count' => :'review_count',
304
+ :'star_rating' => :'star_rating',
305
+ :'store_review_count' => :'store_review_count',
306
+ :'store_star_rating' => :'store_star_rating',
307
+ :'related_product_id' => :'related_product_id',
308
+ :'relationship_type' => :'relationship_type',
309
+ :'target_countries' => :'target_countries',
310
+ :'store_country' => :'store_country',
311
+ :'q_and_a' => :'q_and_a',
312
+ :'qand_a' => :'qandA',
313
+ :'reviews' => :'reviews',
314
+ :'created_at' => :'created_at',
315
+ :'updated_at' => :'updated_at'
316
+ }
317
+ end
318
+
319
+ # Attribute mapping from JSON key to ruby-style variable name.
320
+ def self.json_map
321
+ {
322
+ :'id' => :'id',
323
+ :'item_id' => :'item_id',
324
+ :'title' => :'title',
325
+ :'description' => :'description',
326
+ :'url' => :'url',
327
+ :'image_url' => :'image_url',
328
+ :'additional_image_urls' => :'additional_image_urls',
329
+ :'video_url' => :'video_url',
330
+ :'model_3d_url' => :'model_3d_url',
331
+ :'product_category' => :'product_category',
332
+ :'brand' => :'brand',
333
+ :'gtin' => :'gtin',
334
+ :'mpn' => :'mpn',
335
+ :'condition' => :'condition',
336
+ :'material' => :'material',
337
+ :'weight' => :'weight',
338
+ :'dimensions' => :'dimensions',
339
+ :'length' => :'length',
340
+ :'width' => :'width',
341
+ :'height' => :'height',
342
+ :'dimensions_unit' => :'dimensions_unit',
343
+ :'item_weight_unit' => :'item_weight_unit',
344
+ :'age_group' => :'age_group',
345
+ :'color' => :'color',
346
+ :'size' => :'size',
347
+ :'size_system' => :'size_system',
348
+ :'gender' => :'gender',
349
+ :'group_id' => :'group_id',
350
+ :'listing_has_variations' => :'listing_has_variations',
351
+ :'item_group_title' => :'item_group_title',
352
+ :'offer_id' => :'offer_id',
353
+ :'variant_dict' => :'variant_dict',
354
+ :'custom_variant1_category' => :'custom_variant1_category',
355
+ :'custom_variant1_option' => :'custom_variant1_option',
356
+ :'custom_variant2_category' => :'custom_variant2_category',
357
+ :'custom_variant2_option' => :'custom_variant2_option',
358
+ :'custom_variant3_category' => :'custom_variant3_category',
359
+ :'custom_variant3_option' => :'custom_variant3_option',
360
+ :'price' => :'price',
361
+ :'currency' => :'currency',
362
+ :'sale_price' => :'sale_price',
363
+ :'sale_price_start_date' => :'sale_price_start_date',
364
+ :'sale_price_end_date' => :'sale_price_end_date',
365
+ :'unit_pricing_measure' => :'unit_pricing_measure',
366
+ :'base_measure' => :'base_measure',
367
+ :'pricing_trend' => :'pricing_trend',
368
+ :'geo_price' => :'geo_price',
369
+ :'geo_availability' => :'geo_availability',
370
+ :'availability' => :'availability',
371
+ :'availability_date' => :'availability_date',
372
+ :'expiration_date' => :'expiration_date',
373
+ :'seller_name' => :'seller_name',
374
+ :'seller_url' => :'seller_url',
375
+ :'marketplace_seller' => :'marketplace_seller',
376
+ :'seller_privacy_policy' => :'seller_privacy_policy',
377
+ :'seller_tos' => :'seller_tos',
378
+ :'shipping_price' => :'shipping_price',
379
+ :'delivery_estimate' => :'delivery_estimate',
380
+ :'pickup_method' => :'pickup_method',
381
+ :'pickup_sla' => :'pickup_sla',
382
+ :'is_digital' => :'is_digital',
383
+ :'return_policy' => :'return_policy',
384
+ :'accepts_returns' => :'accepts_returns',
385
+ :'return_deadline_in_days' => :'return_deadline_in_days',
386
+ :'accepts_exchanges' => :'accepts_exchanges',
387
+ :'is_eligible_search' => :'is_eligible_search',
388
+ :'is_eligible_checkout' => :'is_eligible_checkout',
389
+ :'popularity_score' => :'popularity_score',
390
+ :'return_rate' => :'return_rate',
391
+ :'warning' => :'warning',
392
+ :'warning_url' => :'warning_url',
393
+ :'age_restriction' => :'age_restriction',
394
+ :'review_count' => :'review_count',
395
+ :'star_rating' => :'star_rating',
396
+ :'store_review_count' => :'store_review_count',
397
+ :'store_star_rating' => :'store_star_rating',
398
+ :'related_product_id' => :'related_product_id',
399
+ :'relationship_type' => :'relationship_type',
400
+ :'target_countries' => :'target_countries',
401
+ :'store_country' => :'store_country',
402
+ :'q_and_a' => :'q_and_a',
403
+ :'qand_a' => :'qand_a',
404
+ :'reviews' => :'reviews',
405
+ :'created_at' => :'created_at',
406
+ :'updated_at' => :'updated_at'
407
+ }
408
+ end
409
+
410
+ # Attribute type mapping.
411
+ def self.swagger_types
412
+ {
413
+ :'id' => :'String',
414
+ :'item_id' => :'String',
415
+ :'title' => :'String',
416
+ :'description' => :'String',
417
+ :'url' => :'String',
418
+ :'image_url' => :'String',
419
+ :'additional_image_urls' => :'String',
420
+ :'video_url' => :'String',
421
+ :'model_3d_url' => :'String',
422
+ :'product_category' => :'String',
423
+ :'brand' => :'String',
424
+ :'gtin' => :'String',
425
+ :'mpn' => :'String',
426
+ :'condition' => :'String',
427
+ :'material' => :'String',
428
+ :'weight' => :'String',
429
+ :'dimensions' => :'String',
430
+ :'length' => :'String',
431
+ :'width' => :'String',
432
+ :'height' => :'String',
433
+ :'dimensions_unit' => :'String',
434
+ :'item_weight_unit' => :'String',
435
+ :'age_group' => :'String',
436
+ :'color' => :'String',
437
+ :'size' => :'String',
438
+ :'size_system' => :'String',
439
+ :'gender' => :'String',
440
+ :'group_id' => :'String',
441
+ :'listing_has_variations' => :'BOOLEAN',
442
+ :'item_group_title' => :'String',
443
+ :'offer_id' => :'String',
444
+ :'variant_dict' => :'Hash<String, String>',
445
+ :'custom_variant1_category' => :'String',
446
+ :'custom_variant1_option' => :'String',
447
+ :'custom_variant2_category' => :'String',
448
+ :'custom_variant2_option' => :'String',
449
+ :'custom_variant3_category' => :'String',
450
+ :'custom_variant3_option' => :'String',
451
+ :'price' => :'Float',
452
+ :'currency' => :'String',
453
+ :'sale_price' => :'Float',
454
+ :'sale_price_start_date' => :'Date',
455
+ :'sale_price_end_date' => :'Date',
456
+ :'unit_pricing_measure' => :'String',
457
+ :'base_measure' => :'String',
458
+ :'pricing_trend' => :'String',
459
+ :'geo_price' => :'String',
460
+ :'geo_availability' => :'String',
461
+ :'availability' => :'String',
462
+ :'availability_date' => :'Date',
463
+ :'expiration_date' => :'Date',
464
+ :'seller_name' => :'String',
465
+ :'seller_url' => :'String',
466
+ :'marketplace_seller' => :'String',
467
+ :'seller_privacy_policy' => :'String',
468
+ :'seller_tos' => :'String',
469
+ :'shipping_price' => :'String',
470
+ :'delivery_estimate' => :'Date',
471
+ :'pickup_method' => :'String',
472
+ :'pickup_sla' => :'String',
473
+ :'is_digital' => :'BOOLEAN',
474
+ :'return_policy' => :'String',
475
+ :'accepts_returns' => :'BOOLEAN',
476
+ :'return_deadline_in_days' => :'Integer',
477
+ :'accepts_exchanges' => :'BOOLEAN',
478
+ :'is_eligible_search' => :'BOOLEAN',
479
+ :'is_eligible_checkout' => :'BOOLEAN',
480
+ :'popularity_score' => :'Float',
481
+ :'return_rate' => :'String',
482
+ :'warning' => :'String',
483
+ :'warning_url' => :'String',
484
+ :'age_restriction' => :'Integer',
485
+ :'review_count' => :'Integer',
486
+ :'star_rating' => :'String',
487
+ :'store_review_count' => :'Integer',
488
+ :'store_star_rating' => :'String',
489
+ :'related_product_id' => :'String',
490
+ :'relationship_type' => :'String',
491
+ :'target_countries' => :'Array<String>',
492
+ :'store_country' => :'String',
493
+ :'q_and_a' => :'Array<Hash<String, Object>>',
494
+ :'qand_a' => :'Array<Hash<String, Object>>',
495
+ :'reviews' => :'Array<Hash<String, Object>>',
496
+ :'created_at' => :'DateTime',
497
+ :'updated_at' => :'DateTime'
498
+ }
499
+ end
500
+
501
+ # Initializes the object
502
+ # @param [Hash] attributes Model attributes in the form of hash
503
+ def initialize(attributes = {})
504
+ return unless attributes.is_a?(Hash)
505
+
506
+ # convert string to symbol for hash key
507
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
508
+
509
+ if attributes.has_key?(:'id')
510
+ self.id = attributes[:'id']
511
+ end
512
+
513
+ if attributes.has_key?(:'item_id')
514
+ self.item_id = attributes[:'item_id']
515
+ end
516
+
517
+ if attributes.has_key?(:'title')
518
+ self.title = attributes[:'title']
519
+ end
520
+
521
+ if attributes.has_key?(:'description')
522
+ self.description = attributes[:'description']
523
+ end
524
+
525
+ if attributes.has_key?(:'url')
526
+ self.url = attributes[:'url']
527
+ end
528
+
529
+ if attributes.has_key?(:'image_url')
530
+ self.image_url = attributes[:'image_url']
531
+ end
532
+
533
+ if attributes.has_key?(:'additional_image_urls')
534
+ self.additional_image_urls = attributes[:'additional_image_urls']
535
+ end
536
+
537
+ if attributes.has_key?(:'video_url')
538
+ self.video_url = attributes[:'video_url']
539
+ end
540
+
541
+ if attributes.has_key?(:'model_3d_url')
542
+ self.model_3d_url = attributes[:'model_3d_url']
543
+ end
544
+
545
+ if attributes.has_key?(:'product_category')
546
+ self.product_category = attributes[:'product_category']
547
+ end
548
+
549
+ if attributes.has_key?(:'brand')
550
+ self.brand = attributes[:'brand']
551
+ end
552
+
553
+ if attributes.has_key?(:'gtin')
554
+ self.gtin = attributes[:'gtin']
555
+ end
556
+
557
+ if attributes.has_key?(:'mpn')
558
+ self.mpn = attributes[:'mpn']
559
+ end
560
+
561
+ if attributes.has_key?(:'condition')
562
+ self.condition = attributes[:'condition']
563
+ end
564
+
565
+ if attributes.has_key?(:'material')
566
+ self.material = attributes[:'material']
567
+ end
568
+
569
+ if attributes.has_key?(:'weight')
570
+ self.weight = attributes[:'weight']
571
+ end
572
+
573
+ if attributes.has_key?(:'dimensions')
574
+ self.dimensions = attributes[:'dimensions']
575
+ end
576
+
577
+ if attributes.has_key?(:'length')
578
+ self.length = attributes[:'length']
579
+ end
580
+
581
+ if attributes.has_key?(:'width')
582
+ self.width = attributes[:'width']
583
+ end
584
+
585
+ if attributes.has_key?(:'height')
586
+ self.height = attributes[:'height']
587
+ end
588
+
589
+ if attributes.has_key?(:'dimensions_unit')
590
+ self.dimensions_unit = attributes[:'dimensions_unit']
591
+ end
592
+
593
+ if attributes.has_key?(:'item_weight_unit')
594
+ self.item_weight_unit = attributes[:'item_weight_unit']
595
+ end
596
+
597
+ if attributes.has_key?(:'age_group')
598
+ self.age_group = attributes[:'age_group']
599
+ end
600
+
601
+ if attributes.has_key?(:'color')
602
+ self.color = attributes[:'color']
603
+ end
604
+
605
+ if attributes.has_key?(:'size')
606
+ self.size = attributes[:'size']
607
+ end
608
+
609
+ if attributes.has_key?(:'size_system')
610
+ self.size_system = attributes[:'size_system']
611
+ end
612
+
613
+ if attributes.has_key?(:'gender')
614
+ self.gender = attributes[:'gender']
615
+ end
616
+
617
+ if attributes.has_key?(:'group_id')
618
+ self.group_id = attributes[:'group_id']
619
+ end
620
+
621
+ if attributes.has_key?(:'listing_has_variations')
622
+ self.listing_has_variations = attributes[:'listing_has_variations']
623
+ end
624
+
625
+ if attributes.has_key?(:'item_group_title')
626
+ self.item_group_title = attributes[:'item_group_title']
627
+ end
628
+
629
+ if attributes.has_key?(:'offer_id')
630
+ self.offer_id = attributes[:'offer_id']
631
+ end
632
+
633
+ if attributes.has_key?(:'variant_dict')
634
+ if (value = attributes[:'variant_dict']).is_a?(Hash)
635
+ self.variant_dict = value
636
+ end
637
+ end
638
+
639
+ if attributes.has_key?(:'custom_variant1_category')
640
+ self.custom_variant1_category = attributes[:'custom_variant1_category']
641
+ end
642
+
643
+ if attributes.has_key?(:'custom_variant1_option')
644
+ self.custom_variant1_option = attributes[:'custom_variant1_option']
645
+ end
646
+
647
+ if attributes.has_key?(:'custom_variant2_category')
648
+ self.custom_variant2_category = attributes[:'custom_variant2_category']
649
+ end
650
+
651
+ if attributes.has_key?(:'custom_variant2_option')
652
+ self.custom_variant2_option = attributes[:'custom_variant2_option']
653
+ end
654
+
655
+ if attributes.has_key?(:'custom_variant3_category')
656
+ self.custom_variant3_category = attributes[:'custom_variant3_category']
657
+ end
658
+
659
+ if attributes.has_key?(:'custom_variant3_option')
660
+ self.custom_variant3_option = attributes[:'custom_variant3_option']
661
+ end
662
+
663
+ if attributes.has_key?(:'price')
664
+ self.price = attributes[:'price']
665
+ end
666
+
667
+ if attributes.has_key?(:'currency')
668
+ self.currency = attributes[:'currency']
669
+ end
670
+
671
+ if attributes.has_key?(:'sale_price')
672
+ self.sale_price = attributes[:'sale_price']
673
+ end
674
+
675
+ if attributes.has_key?(:'sale_price_start_date')
676
+ self.sale_price_start_date = attributes[:'sale_price_start_date']
677
+ end
678
+
679
+ if attributes.has_key?(:'sale_price_end_date')
680
+ self.sale_price_end_date = attributes[:'sale_price_end_date']
681
+ end
682
+
683
+ if attributes.has_key?(:'unit_pricing_measure')
684
+ self.unit_pricing_measure = attributes[:'unit_pricing_measure']
685
+ end
686
+
687
+ if attributes.has_key?(:'base_measure')
688
+ self.base_measure = attributes[:'base_measure']
689
+ end
690
+
691
+ if attributes.has_key?(:'pricing_trend')
692
+ self.pricing_trend = attributes[:'pricing_trend']
693
+ end
694
+
695
+ if attributes.has_key?(:'geo_price')
696
+ self.geo_price = attributes[:'geo_price']
697
+ end
698
+
699
+ if attributes.has_key?(:'geo_availability')
700
+ self.geo_availability = attributes[:'geo_availability']
701
+ end
702
+
703
+ if attributes.has_key?(:'availability')
704
+ self.availability = attributes[:'availability']
705
+ end
706
+
707
+ if attributes.has_key?(:'availability_date')
708
+ self.availability_date = attributes[:'availability_date']
709
+ end
710
+
711
+ if attributes.has_key?(:'expiration_date')
712
+ self.expiration_date = attributes[:'expiration_date']
713
+ end
714
+
715
+ if attributes.has_key?(:'seller_name')
716
+ self.seller_name = attributes[:'seller_name']
717
+ end
718
+
719
+ if attributes.has_key?(:'seller_url')
720
+ self.seller_url = attributes[:'seller_url']
721
+ end
722
+
723
+ if attributes.has_key?(:'marketplace_seller')
724
+ self.marketplace_seller = attributes[:'marketplace_seller']
725
+ end
726
+
727
+ if attributes.has_key?(:'seller_privacy_policy')
728
+ self.seller_privacy_policy = attributes[:'seller_privacy_policy']
729
+ end
730
+
731
+ if attributes.has_key?(:'seller_tos')
732
+ self.seller_tos = attributes[:'seller_tos']
733
+ end
734
+
735
+ if attributes.has_key?(:'shipping_price')
736
+ self.shipping_price = attributes[:'shipping_price']
737
+ end
738
+
739
+ if attributes.has_key?(:'delivery_estimate')
740
+ self.delivery_estimate = attributes[:'delivery_estimate']
741
+ end
742
+
743
+ if attributes.has_key?(:'pickup_method')
744
+ self.pickup_method = attributes[:'pickup_method']
745
+ end
746
+
747
+ if attributes.has_key?(:'pickup_sla')
748
+ self.pickup_sla = attributes[:'pickup_sla']
749
+ end
750
+
751
+ if attributes.has_key?(:'is_digital')
752
+ self.is_digital = attributes[:'is_digital']
753
+ end
754
+
755
+ if attributes.has_key?(:'return_policy')
756
+ self.return_policy = attributes[:'return_policy']
757
+ end
758
+
759
+ if attributes.has_key?(:'accepts_returns')
760
+ self.accepts_returns = attributes[:'accepts_returns']
761
+ end
762
+
763
+ if attributes.has_key?(:'return_deadline_in_days')
764
+ self.return_deadline_in_days = attributes[:'return_deadline_in_days']
765
+ end
766
+
767
+ if attributes.has_key?(:'accepts_exchanges')
768
+ self.accepts_exchanges = attributes[:'accepts_exchanges']
769
+ end
770
+
771
+ if attributes.has_key?(:'is_eligible_search')
772
+ self.is_eligible_search = attributes[:'is_eligible_search']
773
+ end
774
+
775
+ if attributes.has_key?(:'is_eligible_checkout')
776
+ self.is_eligible_checkout = attributes[:'is_eligible_checkout']
777
+ end
778
+
779
+ if attributes.has_key?(:'popularity_score')
780
+ self.popularity_score = attributes[:'popularity_score']
781
+ end
782
+
783
+ if attributes.has_key?(:'return_rate')
784
+ self.return_rate = attributes[:'return_rate']
785
+ end
786
+
787
+ if attributes.has_key?(:'warning')
788
+ self.warning = attributes[:'warning']
789
+ end
790
+
791
+ if attributes.has_key?(:'warning_url')
792
+ self.warning_url = attributes[:'warning_url']
793
+ end
794
+
795
+ if attributes.has_key?(:'age_restriction')
796
+ self.age_restriction = attributes[:'age_restriction']
797
+ end
798
+
799
+ if attributes.has_key?(:'review_count')
800
+ self.review_count = attributes[:'review_count']
801
+ end
802
+
803
+ if attributes.has_key?(:'star_rating')
804
+ self.star_rating = attributes[:'star_rating']
805
+ end
806
+
807
+ if attributes.has_key?(:'store_review_count')
808
+ self.store_review_count = attributes[:'store_review_count']
809
+ end
810
+
811
+ if attributes.has_key?(:'store_star_rating')
812
+ self.store_star_rating = attributes[:'store_star_rating']
813
+ end
814
+
815
+ if attributes.has_key?(:'related_product_id')
816
+ self.related_product_id = attributes[:'related_product_id']
817
+ end
818
+
819
+ if attributes.has_key?(:'relationship_type')
820
+ self.relationship_type = attributes[:'relationship_type']
821
+ end
822
+
823
+ if attributes.has_key?(:'target_countries')
824
+ if (value = attributes[:'target_countries']).is_a?(Array)
825
+ self.target_countries = value
826
+ end
827
+ end
828
+
829
+ if attributes.has_key?(:'store_country')
830
+ self.store_country = attributes[:'store_country']
831
+ end
832
+
833
+ if attributes.has_key?(:'q_and_a')
834
+ if (value = attributes[:'q_and_a']).is_a?(Array)
835
+ self.q_and_a = value
836
+ end
837
+ end
838
+
839
+ if attributes.has_key?(:'qandA')
840
+ if (value = attributes[:'qandA']).is_a?(Array)
841
+ self.qand_a = value
842
+ end
843
+ end
844
+
845
+ if attributes.has_key?(:'reviews')
846
+ if (value = attributes[:'reviews']).is_a?(Array)
847
+ self.reviews = value
848
+ end
849
+ end
850
+
851
+ if attributes.has_key?(:'created_at')
852
+ self.created_at = attributes[:'created_at']
853
+ end
854
+
855
+ if attributes.has_key?(:'updated_at')
856
+ self.updated_at = attributes[:'updated_at']
857
+ end
858
+ end
859
+
860
+ # Show invalid properties with the reasons. Usually used together with valid?
861
+ # @return Array for valid properties with the reasons
862
+ def list_invalid_properties
863
+ invalid_properties = Array.new
864
+ invalid_properties
865
+ end
866
+
867
+ # Check to see if the all the properties in the model are valid
868
+ # @return true if the model is valid
869
+ def valid?
870
+ true
871
+ end
872
+
873
+ # Checks equality by comparing each attribute.
874
+ # @param [Object] Object to be compared
875
+ def ==(o)
876
+ return true if self.equal?(o)
877
+ self.class == o.class &&
878
+ id == o.id &&
879
+ item_id == o.item_id &&
880
+ title == o.title &&
881
+ description == o.description &&
882
+ url == o.url &&
883
+ image_url == o.image_url &&
884
+ additional_image_urls == o.additional_image_urls &&
885
+ video_url == o.video_url &&
886
+ model_3d_url == o.model_3d_url &&
887
+ product_category == o.product_category &&
888
+ brand == o.brand &&
889
+ gtin == o.gtin &&
890
+ mpn == o.mpn &&
891
+ condition == o.condition &&
892
+ material == o.material &&
893
+ weight == o.weight &&
894
+ dimensions == o.dimensions &&
895
+ length == o.length &&
896
+ width == o.width &&
897
+ height == o.height &&
898
+ dimensions_unit == o.dimensions_unit &&
899
+ item_weight_unit == o.item_weight_unit &&
900
+ age_group == o.age_group &&
901
+ color == o.color &&
902
+ size == o.size &&
903
+ size_system == o.size_system &&
904
+ gender == o.gender &&
905
+ group_id == o.group_id &&
906
+ listing_has_variations == o.listing_has_variations &&
907
+ item_group_title == o.item_group_title &&
908
+ offer_id == o.offer_id &&
909
+ variant_dict == o.variant_dict &&
910
+ custom_variant1_category == o.custom_variant1_category &&
911
+ custom_variant1_option == o.custom_variant1_option &&
912
+ custom_variant2_category == o.custom_variant2_category &&
913
+ custom_variant2_option == o.custom_variant2_option &&
914
+ custom_variant3_category == o.custom_variant3_category &&
915
+ custom_variant3_option == o.custom_variant3_option &&
916
+ price == o.price &&
917
+ currency == o.currency &&
918
+ sale_price == o.sale_price &&
919
+ sale_price_start_date == o.sale_price_start_date &&
920
+ sale_price_end_date == o.sale_price_end_date &&
921
+ unit_pricing_measure == o.unit_pricing_measure &&
922
+ base_measure == o.base_measure &&
923
+ pricing_trend == o.pricing_trend &&
924
+ geo_price == o.geo_price &&
925
+ geo_availability == o.geo_availability &&
926
+ availability == o.availability &&
927
+ availability_date == o.availability_date &&
928
+ expiration_date == o.expiration_date &&
929
+ seller_name == o.seller_name &&
930
+ seller_url == o.seller_url &&
931
+ marketplace_seller == o.marketplace_seller &&
932
+ seller_privacy_policy == o.seller_privacy_policy &&
933
+ seller_tos == o.seller_tos &&
934
+ shipping_price == o.shipping_price &&
935
+ delivery_estimate == o.delivery_estimate &&
936
+ pickup_method == o.pickup_method &&
937
+ pickup_sla == o.pickup_sla &&
938
+ is_digital == o.is_digital &&
939
+ return_policy == o.return_policy &&
940
+ accepts_returns == o.accepts_returns &&
941
+ return_deadline_in_days == o.return_deadline_in_days &&
942
+ accepts_exchanges == o.accepts_exchanges &&
943
+ is_eligible_search == o.is_eligible_search &&
944
+ is_eligible_checkout == o.is_eligible_checkout &&
945
+ popularity_score == o.popularity_score &&
946
+ return_rate == o.return_rate &&
947
+ warning == o.warning &&
948
+ warning_url == o.warning_url &&
949
+ age_restriction == o.age_restriction &&
950
+ review_count == o.review_count &&
951
+ star_rating == o.star_rating &&
952
+ store_review_count == o.store_review_count &&
953
+ store_star_rating == o.store_star_rating &&
954
+ related_product_id == o.related_product_id &&
955
+ relationship_type == o.relationship_type &&
956
+ target_countries == o.target_countries &&
957
+ store_country == o.store_country &&
958
+ q_and_a == o.q_and_a &&
959
+ qand_a == o.qand_a &&
960
+ reviews == o.reviews &&
961
+ created_at == o.created_at &&
962
+ updated_at == o.updated_at
963
+ end
964
+
965
+ # @see the `==` method
966
+ # @param [Object] Object to be compared
967
+ def eql?(o)
968
+ self == o
969
+ end
970
+
971
+ # Calculates hash code according to all attributes.
972
+ # @return [Fixnum] Hash code
973
+ def hash
974
+ [id, item_id, title, description, url, image_url, additional_image_urls, video_url, model_3d_url, product_category, brand, gtin, mpn, condition, material, weight, dimensions, length, width, height, dimensions_unit, item_weight_unit, age_group, color, size, size_system, gender, group_id, listing_has_variations, item_group_title, offer_id, variant_dict, custom_variant1_category, custom_variant1_option, custom_variant2_category, custom_variant2_option, custom_variant3_category, custom_variant3_option, price, currency, sale_price, sale_price_start_date, sale_price_end_date, unit_pricing_measure, base_measure, pricing_trend, geo_price, geo_availability, availability, availability_date, expiration_date, seller_name, seller_url, marketplace_seller, seller_privacy_policy, seller_tos, shipping_price, delivery_estimate, pickup_method, pickup_sla, is_digital, return_policy, accepts_returns, return_deadline_in_days, accepts_exchanges, is_eligible_search, is_eligible_checkout, popularity_score, return_rate, warning, warning_url, age_restriction, review_count, star_rating, store_review_count, store_star_rating, related_product_id, relationship_type, target_countries, store_country, q_and_a, qand_a, reviews, created_at, updated_at].hash
975
+ end
976
+
977
+ # Builds the object from hash
978
+ # @param [Hash] attributes Model attributes in the form of hash
979
+ # @return [Object] Returns the model itself
980
+ def build_from_hash(attributes)
981
+ return nil unless attributes.is_a?(Hash)
982
+ self.class.swagger_types.each_pair do |key, type|
983
+ if type =~ /\AArray<(.*)>/i
984
+ # check to ensure the input is an array given that the the attribute
985
+ # is documented as an array but the input is not
986
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
987
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
988
+ end
989
+ elsif !attributes[self.class.attribute_map[key]].nil?
990
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
991
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
992
+ end
993
+
994
+ self
995
+ end
996
+
997
+ # Deserializes the data based on type
998
+ # @param string type Data type
999
+ # @param string value Value to be deserialized
1000
+ # @return [Object] Deserialized data
1001
+ def _deserialize(type, value)
1002
+ case type.to_sym
1003
+ when :DateTime
1004
+ DateTime.parse(value)
1005
+ when :Date
1006
+ Date.parse(value)
1007
+ when :String
1008
+ value.to_s
1009
+ when :Integer
1010
+ value.to_i
1011
+ when :Float
1012
+ value.to_f
1013
+ when :BOOLEAN
1014
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
1015
+ true
1016
+ else
1017
+ false
1018
+ end
1019
+ when :Object
1020
+ # generic object (usually a Hash), return directly
1021
+ value
1022
+ when /\AArray<(?<inner_type>.+)>\z/
1023
+ inner_type = Regexp.last_match[:inner_type]
1024
+ value.map { |v| _deserialize(inner_type, v) }
1025
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
1026
+ k_type = Regexp.last_match[:k_type]
1027
+ v_type = Regexp.last_match[:v_type]
1028
+ {}.tap do |hash|
1029
+ value.each do |k, v|
1030
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
1031
+ end
1032
+ end
1033
+ else # model
1034
+ temp_model = CyberSource.const_get(type).new
1035
+ temp_model.build_from_hash(value)
1036
+ end
1037
+ end
1038
+
1039
+ # Returns the string representation of the object
1040
+ # @return [String] String presentation of the object
1041
+ def to_s
1042
+ to_hash.to_s
1043
+ end
1044
+
1045
+ # to_body is an alias to to_hash (backward compatibility)
1046
+ # @return [Hash] Returns the object in the form of hash
1047
+ def to_body
1048
+ to_hash
1049
+ end
1050
+
1051
+ # Returns the object in the form of hash
1052
+ # @return [Hash] Returns the object in the form of hash
1053
+ def to_hash
1054
+ hash = {}
1055
+ self.class.attribute_map.each_pair do |attr, param|
1056
+ value = self.send(attr)
1057
+ next if value.nil?
1058
+ hash[param] = _to_hash(value)
1059
+ end
1060
+ hash
1061
+ end
1062
+
1063
+ # Outputs non-array value in the form of hash
1064
+ # For object, use to_hash. Otherwise, just return the value
1065
+ # @param [Object] value Any valid value
1066
+ # @return [Hash] Returns the value in the form of hash
1067
+ def _to_hash(value)
1068
+ if value.is_a?(Array)
1069
+ value.compact.map { |v| _to_hash(v) }
1070
+ elsif value.is_a?(Hash)
1071
+ {}.tap do |hash|
1072
+ value.each { |k, v| hash[k] = _to_hash(v) }
1073
+ end
1074
+ elsif value.respond_to? :to_hash
1075
+ value.to_hash
1076
+ else
1077
+ value
1078
+ end
1079
+ end
1080
+ end
1081
+ end