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,312 @@
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
+ # UCP checkout session state. Total amounts are expressed in cents (not micros).
16
+ class InlineResponse20113
17
+ attr_accessor :ucp
18
+
19
+ # Unique UCP session identifier. Required for all subsequent UCP calls (update, complete, cancel).
20
+ attr_accessor :id
21
+
22
+ # Current lifecycle state of the session. - `active` — open and modifiable - `completed` — order placed, immutable - `cancelled` — abandoned, no charge made Possible values: - active - completed - cancelled
23
+ attr_accessor :status
24
+
25
+ # ISO 4217 currency code for this session (e.g. `USD`, `EUR`).
26
+ attr_accessor :currency
27
+
28
+ attr_accessor :buyer
29
+
30
+ # Cart line items with merchant-confirmed pricing.
31
+ attr_accessor :line_items
32
+
33
+ # Order cost breakdown. Each entry represents one total type (subtotal, tax, shipping, discount, or grand total). Amounts are in **cents** (not micros).
34
+ attr_accessor :totals
35
+
36
+ attr_accessor :fulfillment
37
+
38
+ attr_accessor :payment
39
+
40
+ attr_accessor :discounts
41
+
42
+ attr_accessor :order
43
+
44
+ # Related resource links (e.g. terms of use, privacy policy).
45
+ attr_accessor :links
46
+
47
+ # Attribute mapping from ruby-style variable name to JSON key.
48
+ def self.attribute_map
49
+ {
50
+ :'ucp' => :'ucp',
51
+ :'id' => :'id',
52
+ :'status' => :'status',
53
+ :'currency' => :'currency',
54
+ :'buyer' => :'buyer',
55
+ :'line_items' => :'line_items',
56
+ :'totals' => :'totals',
57
+ :'fulfillment' => :'fulfillment',
58
+ :'payment' => :'payment',
59
+ :'discounts' => :'discounts',
60
+ :'order' => :'order',
61
+ :'links' => :'links'
62
+ }
63
+ end
64
+
65
+ # Attribute mapping from JSON key to ruby-style variable name.
66
+ def self.json_map
67
+ {
68
+ :'ucp' => :'ucp',
69
+ :'id' => :'id',
70
+ :'status' => :'status',
71
+ :'currency' => :'currency',
72
+ :'buyer' => :'buyer',
73
+ :'line_items' => :'line_items',
74
+ :'totals' => :'totals',
75
+ :'fulfillment' => :'fulfillment',
76
+ :'payment' => :'payment',
77
+ :'discounts' => :'discounts',
78
+ :'order' => :'order',
79
+ :'links' => :'links'
80
+ }
81
+ end
82
+
83
+ # Attribute type mapping.
84
+ def self.swagger_types
85
+ {
86
+ :'ucp' => :'InlineResponse20113Ucp',
87
+ :'id' => :'String',
88
+ :'status' => :'String',
89
+ :'currency' => :'String',
90
+ :'buyer' => :'UcpCheckoutSessionResponseBuyer',
91
+ :'line_items' => :'Array<InlineResponse20113LineItems>',
92
+ :'totals' => :'Array<Iccv1checkoutsessionsFulfillmentTotals>',
93
+ :'fulfillment' => :'InlineResponse20113Fulfillment',
94
+ :'payment' => :'InlineResponse20113Payment',
95
+ :'discounts' => :'InlineResponse20113Discounts',
96
+ :'order' => :'InlineResponse20113Order',
97
+ :'links' => :'Array<InlineResponse20112Links>'
98
+ }
99
+ end
100
+
101
+ # Initializes the object
102
+ # @param [Hash] attributes Model attributes in the form of hash
103
+ def initialize(attributes = {})
104
+ return unless attributes.is_a?(Hash)
105
+
106
+ # convert string to symbol for hash key
107
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
108
+
109
+ if attributes.has_key?(:'ucp')
110
+ self.ucp = attributes[:'ucp']
111
+ end
112
+
113
+ if attributes.has_key?(:'id')
114
+ self.id = attributes[:'id']
115
+ end
116
+
117
+ if attributes.has_key?(:'status')
118
+ self.status = attributes[:'status']
119
+ end
120
+
121
+ if attributes.has_key?(:'currency')
122
+ self.currency = attributes[:'currency']
123
+ end
124
+
125
+ if attributes.has_key?(:'buyer')
126
+ self.buyer = attributes[:'buyer']
127
+ end
128
+
129
+ if attributes.has_key?(:'line_items')
130
+ if (value = attributes[:'line_items']).is_a?(Array)
131
+ self.line_items = value
132
+ end
133
+ end
134
+
135
+ if attributes.has_key?(:'totals')
136
+ if (value = attributes[:'totals']).is_a?(Array)
137
+ self.totals = value
138
+ end
139
+ end
140
+
141
+ if attributes.has_key?(:'fulfillment')
142
+ self.fulfillment = attributes[:'fulfillment']
143
+ end
144
+
145
+ if attributes.has_key?(:'payment')
146
+ self.payment = attributes[:'payment']
147
+ end
148
+
149
+ if attributes.has_key?(:'discounts')
150
+ self.discounts = attributes[:'discounts']
151
+ end
152
+
153
+ if attributes.has_key?(:'order')
154
+ self.order = attributes[:'order']
155
+ end
156
+
157
+ if attributes.has_key?(:'links')
158
+ if (value = attributes[:'links']).is_a?(Array)
159
+ self.links = value
160
+ end
161
+ end
162
+ end
163
+
164
+ # Show invalid properties with the reasons. Usually used together with valid?
165
+ # @return Array for valid properties with the reasons
166
+ def list_invalid_properties
167
+ invalid_properties = Array.new
168
+ invalid_properties
169
+ end
170
+
171
+ # Check to see if the all the properties in the model are valid
172
+ # @return true if the model is valid
173
+ def valid?
174
+ true
175
+ end
176
+
177
+ # Checks equality by comparing each attribute.
178
+ # @param [Object] Object to be compared
179
+ def ==(o)
180
+ return true if self.equal?(o)
181
+ self.class == o.class &&
182
+ ucp == o.ucp &&
183
+ id == o.id &&
184
+ status == o.status &&
185
+ currency == o.currency &&
186
+ buyer == o.buyer &&
187
+ line_items == o.line_items &&
188
+ totals == o.totals &&
189
+ fulfillment == o.fulfillment &&
190
+ payment == o.payment &&
191
+ discounts == o.discounts &&
192
+ order == o.order &&
193
+ links == o.links
194
+ end
195
+
196
+ # @see the `==` method
197
+ # @param [Object] Object to be compared
198
+ def eql?(o)
199
+ self == o
200
+ end
201
+
202
+ # Calculates hash code according to all attributes.
203
+ # @return [Fixnum] Hash code
204
+ def hash
205
+ [ucp, id, status, currency, buyer, line_items, totals, fulfillment, payment, discounts, order, links].hash
206
+ end
207
+
208
+ # Builds the object from hash
209
+ # @param [Hash] attributes Model attributes in the form of hash
210
+ # @return [Object] Returns the model itself
211
+ def build_from_hash(attributes)
212
+ return nil unless attributes.is_a?(Hash)
213
+ self.class.swagger_types.each_pair do |key, type|
214
+ if type =~ /\AArray<(.*)>/i
215
+ # check to ensure the input is an array given that the the attribute
216
+ # is documented as an array but the input is not
217
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
218
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
219
+ end
220
+ elsif !attributes[self.class.attribute_map[key]].nil?
221
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
222
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
223
+ end
224
+
225
+ self
226
+ end
227
+
228
+ # Deserializes the data based on type
229
+ # @param string type Data type
230
+ # @param string value Value to be deserialized
231
+ # @return [Object] Deserialized data
232
+ def _deserialize(type, value)
233
+ case type.to_sym
234
+ when :DateTime
235
+ DateTime.parse(value)
236
+ when :Date
237
+ Date.parse(value)
238
+ when :String
239
+ value.to_s
240
+ when :Integer
241
+ value.to_i
242
+ when :Float
243
+ value.to_f
244
+ when :BOOLEAN
245
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
246
+ true
247
+ else
248
+ false
249
+ end
250
+ when :Object
251
+ # generic object (usually a Hash), return directly
252
+ value
253
+ when /\AArray<(?<inner_type>.+)>\z/
254
+ inner_type = Regexp.last_match[:inner_type]
255
+ value.map { |v| _deserialize(inner_type, v) }
256
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
257
+ k_type = Regexp.last_match[:k_type]
258
+ v_type = Regexp.last_match[:v_type]
259
+ {}.tap do |hash|
260
+ value.each do |k, v|
261
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
262
+ end
263
+ end
264
+ else # model
265
+ temp_model = CyberSource.const_get(type).new
266
+ temp_model.build_from_hash(value)
267
+ end
268
+ end
269
+
270
+ # Returns the string representation of the object
271
+ # @return [String] String presentation of the object
272
+ def to_s
273
+ to_hash.to_s
274
+ end
275
+
276
+ # to_body is an alias to to_hash (backward compatibility)
277
+ # @return [Hash] Returns the object in the form of hash
278
+ def to_body
279
+ to_hash
280
+ end
281
+
282
+ # Returns the object in the form of hash
283
+ # @return [Hash] Returns the object in the form of hash
284
+ def to_hash
285
+ hash = {}
286
+ self.class.attribute_map.each_pair do |attr, param|
287
+ value = self.send(attr)
288
+ next if value.nil?
289
+ hash[param] = _to_hash(value)
290
+ end
291
+ hash
292
+ end
293
+
294
+ # Outputs non-array value in the form of hash
295
+ # For object, use to_hash. Otherwise, just return the value
296
+ # @param [Object] value Any valid value
297
+ # @return [Hash] Returns the value in the form of hash
298
+ def _to_hash(value)
299
+ if value.is_a?(Array)
300
+ value.compact.map { |v| _to_hash(v) }
301
+ elsif value.is_a?(Hash)
302
+ {}.tap do |hash|
303
+ value.each { |k, v| hash[k] = _to_hash(v) }
304
+ end
305
+ elsif value.respond_to? :to_hash
306
+ value.to_hash
307
+ else
308
+ value
309
+ end
310
+ end
311
+ end
312
+ end
@@ -0,0 +1,206 @@
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
+ # Discount codes and applied discounts for this session.
16
+ class InlineResponse20113Discounts
17
+ # List of discount or promotional codes to apply to the session.
18
+ attr_accessor :codes
19
+
20
+ # Discounts that have been successfully applied to the session. Populated in responses; may be omitted in requests.
21
+ attr_accessor :applied
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'codes' => :'codes',
27
+ :'applied' => :'applied'
28
+ }
29
+ end
30
+
31
+ # Attribute mapping from JSON key to ruby-style variable name.
32
+ def self.json_map
33
+ {
34
+ :'codes' => :'codes',
35
+ :'applied' => :'applied'
36
+ }
37
+ end
38
+
39
+ # Attribute type mapping.
40
+ def self.swagger_types
41
+ {
42
+ :'codes' => :'Array<String>',
43
+ :'applied' => :'Array<Iccv1checkoutsessionsDiscountsApplied>'
44
+ }
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ return unless attributes.is_a?(Hash)
51
+
52
+ # convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
+
55
+ if attributes.has_key?(:'codes')
56
+ if (value = attributes[:'codes']).is_a?(Array)
57
+ self.codes = value
58
+ end
59
+ end
60
+
61
+ if attributes.has_key?(:'applied')
62
+ if (value = attributes[:'applied']).is_a?(Array)
63
+ self.applied = value
64
+ end
65
+ end
66
+ end
67
+
68
+ # Show invalid properties with the reasons. Usually used together with valid?
69
+ # @return Array for valid properties with the reasons
70
+ def list_invalid_properties
71
+ invalid_properties = Array.new
72
+ invalid_properties
73
+ end
74
+
75
+ # Check to see if the all the properties in the model are valid
76
+ # @return true if the model is valid
77
+ def valid?
78
+ true
79
+ end
80
+
81
+ # Checks equality by comparing each attribute.
82
+ # @param [Object] Object to be compared
83
+ def ==(o)
84
+ return true if self.equal?(o)
85
+ self.class == o.class &&
86
+ codes == o.codes &&
87
+ applied == o.applied
88
+ end
89
+
90
+ # @see the `==` method
91
+ # @param [Object] Object to be compared
92
+ def eql?(o)
93
+ self == o
94
+ end
95
+
96
+ # Calculates hash code according to all attributes.
97
+ # @return [Fixnum] Hash code
98
+ def hash
99
+ [codes, applied].hash
100
+ end
101
+
102
+ # Builds the object from hash
103
+ # @param [Hash] attributes Model attributes in the form of hash
104
+ # @return [Object] Returns the model itself
105
+ def build_from_hash(attributes)
106
+ return nil unless attributes.is_a?(Hash)
107
+ self.class.swagger_types.each_pair do |key, type|
108
+ if type =~ /\AArray<(.*)>/i
109
+ # check to ensure the input is an array given that the the attribute
110
+ # is documented as an array but the input is not
111
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
112
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
113
+ end
114
+ elsif !attributes[self.class.attribute_map[key]].nil?
115
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
116
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
117
+ end
118
+
119
+ self
120
+ end
121
+
122
+ # Deserializes the data based on type
123
+ # @param string type Data type
124
+ # @param string value Value to be deserialized
125
+ # @return [Object] Deserialized data
126
+ def _deserialize(type, value)
127
+ case type.to_sym
128
+ when :DateTime
129
+ DateTime.parse(value)
130
+ when :Date
131
+ Date.parse(value)
132
+ when :String
133
+ value.to_s
134
+ when :Integer
135
+ value.to_i
136
+ when :Float
137
+ value.to_f
138
+ when :BOOLEAN
139
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
140
+ true
141
+ else
142
+ false
143
+ end
144
+ when :Object
145
+ # generic object (usually a Hash), return directly
146
+ value
147
+ when /\AArray<(?<inner_type>.+)>\z/
148
+ inner_type = Regexp.last_match[:inner_type]
149
+ value.map { |v| _deserialize(inner_type, v) }
150
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
151
+ k_type = Regexp.last_match[:k_type]
152
+ v_type = Regexp.last_match[:v_type]
153
+ {}.tap do |hash|
154
+ value.each do |k, v|
155
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
156
+ end
157
+ end
158
+ else # model
159
+ temp_model = CyberSource.const_get(type).new
160
+ temp_model.build_from_hash(value)
161
+ end
162
+ end
163
+
164
+ # Returns the string representation of the object
165
+ # @return [String] String presentation of the object
166
+ def to_s
167
+ to_hash.to_s
168
+ end
169
+
170
+ # to_body is an alias to to_hash (backward compatibility)
171
+ # @return [Hash] Returns the object in the form of hash
172
+ def to_body
173
+ to_hash
174
+ end
175
+
176
+ # Returns the object in the form of hash
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_hash
179
+ hash = {}
180
+ self.class.attribute_map.each_pair do |attr, param|
181
+ value = self.send(attr)
182
+ next if value.nil?
183
+ hash[param] = _to_hash(value)
184
+ end
185
+ hash
186
+ end
187
+
188
+ # Outputs non-array value in the form of hash
189
+ # For object, use to_hash. Otherwise, just return the value
190
+ # @param [Object] value Any valid value
191
+ # @return [Hash] Returns the value in the form of hash
192
+ def _to_hash(value)
193
+ if value.is_a?(Array)
194
+ value.compact.map { |v| _to_hash(v) }
195
+ elsif value.is_a?(Hash)
196
+ {}.tap do |hash|
197
+ value.each { |k, v| hash[k] = _to_hash(v) }
198
+ end
199
+ elsif value.respond_to? :to_hash
200
+ value.to_hash
201
+ else
202
+ value
203
+ end
204
+ end
205
+ end
206
+ end
@@ -0,0 +1,193 @@
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
+ # Fulfillment methods available or confirmed for this session.
16
+ class InlineResponse20113Fulfillment
17
+ # List of available fulfillment methods for this session.
18
+ attr_accessor :methods
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'methods' => :'methods'
24
+ }
25
+ end
26
+
27
+ # Attribute mapping from JSON key to ruby-style variable name.
28
+ def self.json_map
29
+ {
30
+ :'methods' => :'methods'
31
+ }
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.swagger_types
36
+ {
37
+ :'methods' => :'Array<Iccv1checkoutsessionsFulfillmentMethods>'
38
+ }
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ return unless attributes.is_a?(Hash)
45
+
46
+ # convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
48
+
49
+ if attributes.has_key?(:'methods')
50
+ if (value = attributes[:'methods']).is_a?(Array)
51
+ self.methods = value
52
+ end
53
+ end
54
+ end
55
+
56
+ # Show invalid properties with the reasons. Usually used together with valid?
57
+ # @return Array for valid properties with the reasons
58
+ def list_invalid_properties
59
+ invalid_properties = Array.new
60
+ invalid_properties
61
+ end
62
+
63
+ # Check to see if the all the properties in the model are valid
64
+ # @return true if the model is valid
65
+ def valid?
66
+ true
67
+ end
68
+
69
+ # Checks equality by comparing each attribute.
70
+ # @param [Object] Object to be compared
71
+ def ==(o)
72
+ return true if self.equal?(o)
73
+ self.class == o.class &&
74
+ methods == o.methods
75
+ end
76
+
77
+ # @see the `==` method
78
+ # @param [Object] Object to be compared
79
+ def eql?(o)
80
+ self == o
81
+ end
82
+
83
+ # Calculates hash code according to all attributes.
84
+ # @return [Fixnum] Hash code
85
+ def hash
86
+ [methods].hash
87
+ end
88
+
89
+ # Builds the object from hash
90
+ # @param [Hash] attributes Model attributes in the form of hash
91
+ # @return [Object] Returns the model itself
92
+ def build_from_hash(attributes)
93
+ return nil unless attributes.is_a?(Hash)
94
+ self.class.swagger_types.each_pair do |key, type|
95
+ if type =~ /\AArray<(.*)>/i
96
+ # check to ensure the input is an array given that the the attribute
97
+ # is documented as an array but the input is not
98
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
99
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
+ end
101
+ elsif !attributes[self.class.attribute_map[key]].nil?
102
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
103
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
104
+ end
105
+
106
+ self
107
+ end
108
+
109
+ # Deserializes the data based on type
110
+ # @param string type Data type
111
+ # @param string value Value to be deserialized
112
+ # @return [Object] Deserialized data
113
+ def _deserialize(type, value)
114
+ case type.to_sym
115
+ when :DateTime
116
+ DateTime.parse(value)
117
+ when :Date
118
+ Date.parse(value)
119
+ when :String
120
+ value.to_s
121
+ when :Integer
122
+ value.to_i
123
+ when :Float
124
+ value.to_f
125
+ when :BOOLEAN
126
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
127
+ true
128
+ else
129
+ false
130
+ end
131
+ when :Object
132
+ # generic object (usually a Hash), return directly
133
+ value
134
+ when /\AArray<(?<inner_type>.+)>\z/
135
+ inner_type = Regexp.last_match[:inner_type]
136
+ value.map { |v| _deserialize(inner_type, v) }
137
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
138
+ k_type = Regexp.last_match[:k_type]
139
+ v_type = Regexp.last_match[:v_type]
140
+ {}.tap do |hash|
141
+ value.each do |k, v|
142
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
143
+ end
144
+ end
145
+ else # model
146
+ temp_model = CyberSource.const_get(type).new
147
+ temp_model.build_from_hash(value)
148
+ end
149
+ end
150
+
151
+ # Returns the string representation of the object
152
+ # @return [String] String presentation of the object
153
+ def to_s
154
+ to_hash.to_s
155
+ end
156
+
157
+ # to_body is an alias to to_hash (backward compatibility)
158
+ # @return [Hash] Returns the object in the form of hash
159
+ def to_body
160
+ to_hash
161
+ end
162
+
163
+ # Returns the object in the form of hash
164
+ # @return [Hash] Returns the object in the form of hash
165
+ def to_hash
166
+ hash = {}
167
+ self.class.attribute_map.each_pair do |attr, param|
168
+ value = self.send(attr)
169
+ next if value.nil?
170
+ hash[param] = _to_hash(value)
171
+ end
172
+ hash
173
+ end
174
+
175
+ # Outputs non-array value in the form of hash
176
+ # For object, use to_hash. Otherwise, just return the value
177
+ # @param [Object] value Any valid value
178
+ # @return [Hash] Returns the value in the form of hash
179
+ def _to_hash(value)
180
+ if value.is_a?(Array)
181
+ value.compact.map { |v| _to_hash(v) }
182
+ elsif value.is_a?(Hash)
183
+ {}.tap do |hash|
184
+ value.each { |k, v| hash[k] = _to_hash(v) }
185
+ end
186
+ elsif value.respond_to? :to_hash
187
+ value.to_hash
188
+ else
189
+ value
190
+ end
191
+ end
192
+ end
193
+ end