cybersource_rest_client 0.0.85 → 0.0.86

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 (268) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/util/Cache.rb +9 -6
  3. data/lib/AuthenticationSDK/util/Utility.rb +16 -5
  4. data/lib/cybersource_rest_client/api/agent_capabilities_api.rb +1868 -122
  5. data/lib/cybersource_rest_client/api/bin_lookup_api.rb +3 -3
  6. data/lib/cybersource_rest_client/api/create_new_webhooks_api.rb +6 -6
  7. data/lib/cybersource_rest_client/api/emv_tag_details_api.rb +1 -1
  8. data/lib/cybersource_rest_client/api/foreign_exchange_rates_api.rb +146 -0
  9. data/lib/cybersource_rest_client/api/manage_webhooks_api.rb +9 -9
  10. data/lib/cybersource_rest_client/api/merchant_boarding_api.rb +94 -4
  11. data/lib/cybersource_rest_client/api/merchant_capabilities_api.rb +1065 -0
  12. data/lib/cybersource_rest_client/api/merchant_defined_fields_api.rb +361 -0
  13. data/lib/cybersource_rest_client/api/network_tokens_api.rb +4 -4
  14. data/lib/cybersource_rest_client/api/offers_api.rb +3 -3
  15. data/lib/cybersource_rest_client/api/orders_api.rb +2 -2
  16. data/lib/cybersource_rest_client/api/payment_tokens_api.rb +1 -1
  17. data/lib/cybersource_rest_client/api/plans_api.rb +1 -1
  18. data/lib/cybersource_rest_client/api/pull_funds_api.rb +3 -3
  19. data/lib/cybersource_rest_client/api/subscriptions_api.rb +2 -2
  20. data/lib/cybersource_rest_client/api/subscriptions_follow_ons_api.rb +2 -2
  21. data/lib/cybersource_rest_client/api/transaction_query_api.rb +158 -0
  22. data/lib/cybersource_rest_client/api/transaction_risk_labeling_api.rb +104 -0
  23. data/lib/cybersource_rest_client/models/acp_checkout_session_response_buyer.rb +254 -0
  24. data/lib/cybersource_rest_client/models/acp_complete_checkout_request.rb +205 -0
  25. data/lib/cybersource_rest_client/models/acp_complete_checkout_response_buyer.rb +254 -0
  26. data/lib/cybersource_rest_client/models/acp_complete_checkout_session_buyer.rb +254 -0
  27. data/lib/cybersource_rest_client/models/acp_create_checkout_session_buyer.rb +254 -0
  28. data/lib/cybersource_rest_client/models/acp_create_checkout_session_request.rb +217 -0
  29. data/lib/cybersource_rest_client/models/acp_update_checkout_session_buyer.rb +254 -0
  30. data/lib/cybersource_rest_client/models/acp_update_checkout_session_request.rb +224 -0
  31. data/lib/cybersource_rest_client/models/activate_merchant_key_response200.rb +356 -0
  32. data/lib/cybersource_rest_client/models/add_agent_key_response201.rb +356 -0
  33. data/lib/cybersource_rest_client/models/agent_registration_conflict_response409.rb +196 -0
  34. data/lib/cybersource_rest_client/models/agent_registration_response201.rb +356 -0
  35. data/lib/cybersource_rest_client/models/agent_registration_response201_keys.rb +308 -0
  36. data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422.rb +214 -0
  37. data/lib/cybersource_rest_client/models/agent_registration_validation_error_response422_errors.rb +212 -0
  38. data/lib/cybersource_rest_client/models/agent_request.rb +286 -0
  39. data/lib/cybersource_rest_client/models/agent_update.rb +237 -0
  40. data/lib/cybersource_rest_client/models/boardingv1registrations_integration_information_tenant_configurations.rb +1 -1
  41. data/lib/cybersource_rest_client/models/body_1.rb +189 -0
  42. data/lib/cybersource_rest_client/models/body_2.rb +224 -0
  43. data/lib/cybersource_rest_client/models/consumer_authentication_response.rb +196 -0
  44. data/lib/cybersource_rest_client/models/create_payment_link_request.rb +17 -5
  45. data/lib/cybersource_rest_client/models/deactivate_merchant_key_response200.rb +196 -0
  46. data/lib/cybersource_rest_client/models/iccv1agents_keys.rb +239 -0
  47. data/lib/cybersource_rest_client/models/iccv1checkout_sessions_fulfillment_address.rb +344 -0
  48. data/lib/cybersource_rest_client/models/iccv1checkout_sessions_items.rb +222 -0
  49. data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_id_fulfillment_address.rb +344 -0
  50. data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data.rb +222 -0
  51. data/lib/cybersource_rest_client/models/iccv1checkout_sessionssession_idcomplete_payment_data_billing_address.rb +344 -0
  52. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts.rb +206 -0
  53. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_allocations.rb +202 -0
  54. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_discounts_applied.rb +237 -0
  55. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment.rb +193 -0
  56. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_destinations.rb +246 -0
  57. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_groups.rb +228 -0
  58. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_methods.rb +252 -0
  59. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_options.rb +215 -0
  60. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_fulfillment_totals.rb +202 -0
  61. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_item.rb +207 -0
  62. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_line_items.rb +211 -0
  63. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment.rb +217 -0
  64. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_billing_address.rb +235 -0
  65. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_credential.rb +202 -0
  66. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_handlers.rb +259 -0
  67. data/lib/cybersource_rest_client/models/iccv1checkoutsessions_payment_instruments.rb +288 -0
  68. data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_discounts.rb +206 -0
  69. data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_fulfillment.rb +193 -0
  70. data/lib/cybersource_rest_client/models/iccv1checkoutsessionssession_id_payment.rb +217 -0
  71. data/lib/cybersource_rest_client/models/iccv1merchants_api_integrations.rb +225 -0
  72. data/lib/cybersource_rest_client/models/iccv1merchants_encryption_key.rb +245 -0
  73. data/lib/cybersource_rest_client/models/iccv1merchants_protocol_interactions.rb +236 -0
  74. data/lib/cybersource_rest_client/models/iccv1merchants_web_integrations.rb +225 -0
  75. data/lib/cybersource_rest_client/models/iccv1productsfeed_products.rb +1368 -0
  76. data/lib/cybersource_rest_client/models/inline_response_200_16.rb +2 -2
  77. data/lib/cybersource_rest_client/models/inline_response_200_17.rb +317 -0
  78. data/lib/cybersource_rest_client/models/inline_response_200_17_fulfillment_address.rb +344 -0
  79. data/lib/cybersource_rest_client/models/inline_response_200_17_order.rb +213 -0
  80. data/lib/cybersource_rest_client/models/inline_response_200_18.rb +308 -0
  81. data/lib/cybersource_rest_client/models/inline_response_200_19.rb +302 -0
  82. data/lib/cybersource_rest_client/models/inline_response_200_19_errors.rb +213 -0
  83. data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant.rb +237 -0
  84. data/lib/cybersource_rest_client/models/inline_response_200_19_google_merchant_products.rb +259 -0
  85. data/lib/cybersource_rest_client/models/inline_response_200_20.rb +259 -0
  86. data/lib/cybersource_rest_client/models/inline_response_200_20_products.rb +1081 -0
  87. data/lib/cybersource_rest_client/models/inline_response_200_21.rb +201 -0
  88. data/lib/cybersource_rest_client/models/inline_response_200_5.rb +1 -1
  89. data/lib/cybersource_rest_client/models/inline_response_200_5_integration_information_tenant_configurations.rb +1 -1
  90. data/lib/cybersource_rest_client/models/inline_response_201_10.rb +277 -0
  91. data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads.rb → inline_response_201_10_payloads.rb} +2 -2
  92. data/lib/cybersource_rest_client/models/{inline_response_201_7_payloads_test_payload.rb → inline_response_201_10_payloads_test_payload.rb} +1 -1
  93. data/lib/cybersource_rest_client/models/inline_response_201_11.rb +202 -0
  94. data/lib/cybersource_rest_client/models/inline_response_201_12.rb +297 -0
  95. data/lib/cybersource_rest_client/models/{inline_response_201_9_client_reference_information.rb → inline_response_201_12_client_reference_information.rb} +1 -1
  96. data/lib/cybersource_rest_client/models/{inline_response_201_9_error_information.rb → inline_response_201_12_error_information.rb} +1 -1
  97. data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information.rb → inline_response_201_12_order_information.rb} +2 -2
  98. data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion.rb → inline_response_201_12_order_information_currency_conversion.rb} +2 -2
  99. data/lib/cybersource_rest_client/models/{inline_response_201_9_order_information_currency_conversion_offer.rb → inline_response_201_12_order_information_currency_conversion_offer.rb} +1 -1
  100. data/lib/cybersource_rest_client/models/{inline_response_201_9_processor_information.rb → inline_response_201_12_processor_information.rb} +1 -1
  101. data/lib/cybersource_rest_client/models/inline_response_201_13.rb +318 -0
  102. data/lib/cybersource_rest_client/models/inline_response_201_13_fulfillment_address.rb +344 -0
  103. data/lib/cybersource_rest_client/models/inline_response_201_13_fulfillment_options.rb +290 -0
  104. data/lib/cybersource_rest_client/models/inline_response_201_13_item.rb +213 -0
  105. data/lib/cybersource_rest_client/models/inline_response_201_13_line_items.rb +256 -0
  106. data/lib/cybersource_rest_client/models/inline_response_201_13_links.rb +212 -0
  107. data/lib/cybersource_rest_client/models/inline_response_201_13_messages.rb +250 -0
  108. data/lib/cybersource_rest_client/models/inline_response_201_13_payment_provider.rb +204 -0
  109. data/lib/cybersource_rest_client/models/inline_response_201_13_totals.rb +213 -0
  110. data/lib/cybersource_rest_client/models/inline_response_201_14.rb +312 -0
  111. data/lib/cybersource_rest_client/models/inline_response_201_14_discounts.rb +206 -0
  112. data/lib/cybersource_rest_client/models/inline_response_201_14_fulfillment.rb +193 -0
  113. data/lib/cybersource_rest_client/models/inline_response_201_14_item.rb +213 -0
  114. data/lib/cybersource_rest_client/models/inline_response_201_14_line_items.rb +225 -0
  115. data/lib/cybersource_rest_client/models/inline_response_201_14_order.rb +202 -0
  116. data/lib/cybersource_rest_client/models/inline_response_201_14_payment.rb +217 -0
  117. data/lib/cybersource_rest_client/models/inline_response_201_14_ucp.rb +204 -0
  118. data/lib/cybersource_rest_client/models/inline_response_201_14_ucp_capabilities.rb +202 -0
  119. data/lib/cybersource_rest_client/models/inline_response_201_3.rb +33 -54
  120. data/lib/cybersource_rest_client/models/inline_response_201_3_results.rb +190 -0
  121. data/lib/cybersource_rest_client/models/inline_response_201_3_results_risk_insights.rb +235 -0
  122. data/lib/cybersource_rest_client/models/inline_response_201_4.rb +51 -62
  123. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information.rb +225 -0
  124. data/lib/cybersource_rest_client/models/inline_response_201_4_error_information_details.rb +213 -0
  125. data/lib/cybersource_rest_client/models/inline_response_201_4_order_information.rb +189 -0
  126. data/lib/cybersource_rest_client/models/inline_response_201_4_order_information_amount_details.rb +315 -0
  127. data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information.rb +189 -0
  128. data/lib/cybersource_rest_client/models/inline_response_201_4_processing_information_routing.rb +196 -0
  129. data/lib/cybersource_rest_client/models/inline_response_201_4_processor_information.rb +213 -0
  130. data/lib/cybersource_rest_client/models/inline_response_201_5.rb +78 -19
  131. data/lib/cybersource_rest_client/models/{inline_response_401_1__links.rb → inline_response_201_5__links.rb} +2 -2
  132. data/lib/cybersource_rest_client/models/inline_response_201_5__links_self.rb +201 -0
  133. data/lib/cybersource_rest_client/models/inline_response_201_5_acquirer_information.rb +196 -0
  134. data/lib/cybersource_rest_client/models/inline_response_201_5_client_reference_information.rb +196 -0
  135. data/lib/cybersource_rest_client/models/inline_response_201_5_error_information.rb +225 -0
  136. data/lib/cybersource_rest_client/models/inline_response_201_5_error_information_details.rb +213 -0
  137. data/lib/cybersource_rest_client/models/inline_response_201_5_merchant_information.rb +196 -0
  138. data/lib/cybersource_rest_client/models/inline_response_201_5_order_information.rb +189 -0
  139. data/lib/cybersource_rest_client/models/inline_response_201_5_order_information_amount_details.rb +264 -0
  140. data/lib/cybersource_rest_client/models/inline_response_201_5_payment_information.rb +223 -0
  141. data/lib/cybersource_rest_client/models/inline_response_201_5_payment_information_card.rb +213 -0
  142. data/lib/cybersource_rest_client/models/inline_response_201_5_processing_information.rb +240 -0
  143. data/lib/cybersource_rest_client/models/inline_response_201_5_processing_information_payouts_options.rb +196 -0
  144. data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information.rb +548 -0
  145. data/lib/cybersource_rest_client/models/inline_response_201_5_processor_information_card_verification.rb +196 -0
  146. data/lib/cybersource_rest_client/models/inline_response_201_5_transactions.rb +239 -0
  147. data/lib/cybersource_rest_client/models/inline_response_201_6.rb +45 -111
  148. data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information.rb → inline_response_201_6_payout_information.rb} +3 -3
  149. data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_pull_funds.rb → inline_response_201_6_payout_information_pull_funds.rb} +1 -1
  150. data/lib/cybersource_rest_client/models/{inline_response_201_3_payout_information_push_funds.rb → inline_response_201_6_payout_information_push_funds.rb} +1 -1
  151. data/lib/cybersource_rest_client/models/inline_response_201_7.rb +76 -72
  152. data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information.rb → inline_response_201_7_integration_information.rb} +2 -2
  153. data/lib/cybersource_rest_client/models/{inline_response_201_4_integration_information_tenant_configurations.rb → inline_response_201_7_integration_information_tenant_configurations.rb} +1 -1
  154. data/lib/cybersource_rest_client/models/{inline_response_201_4_organization_information.rb → inline_response_201_7_organization_information.rb} +1 -1
  155. data/lib/cybersource_rest_client/models/{inline_response_201_4_product_information_setups.rb → inline_response_201_7_product_information_setups.rb} +2 -2
  156. data/lib/cybersource_rest_client/models/{inline_response_201_4_registration_information.rb → inline_response_201_7_registration_information.rb} +1 -1
  157. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups.rb → inline_response_201_7_setups.rb} +4 -4
  158. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_commerce_solutions.rb → inline_response_201_7_setups_commerce_solutions.rb} +1 -1
  159. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_risk.rb → inline_response_201_7_setups_risk.rb} +1 -1
  160. data/lib/cybersource_rest_client/models/{inline_response_201_4_setups_value_added_services.rb → inline_response_201_7_setups_value_added_services.rb} +1 -1
  161. data/lib/cybersource_rest_client/models/inline_response_201_8.rb +26 -6
  162. data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information.rb → inline_response_201_8_key_information.rb} +2 -2
  163. data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information.rb → inline_response_201_8_key_information_error_information.rb} +2 -2
  164. data/lib/cybersource_rest_client/models/{inline_response_201_5_key_information_error_information_details.rb → inline_response_201_8_key_information_error_information_details.rb} +1 -1
  165. data/lib/cybersource_rest_client/models/inline_response_201_9.rb +107 -90
  166. data/lib/cybersource_rest_client/models/inline_response_202__links.rb +1 -1
  167. data/lib/cybersource_rest_client/models/inline_response_400_10.rb +58 -36
  168. data/lib/cybersource_rest_client/models/{inline_response_400_8_fields.rb → inline_response_400_10_fields.rb} +1 -1
  169. data/lib/cybersource_rest_client/models/inline_response_400_11.rb +35 -42
  170. data/lib/cybersource_rest_client/models/{inline_response_400_9_details.rb → inline_response_400_11_details.rb} +1 -1
  171. data/lib/cybersource_rest_client/models/inline_response_400_12.rb +27 -26
  172. data/lib/cybersource_rest_client/models/inline_response_400_12_details.rb +18 -7
  173. data/lib/cybersource_rest_client/models/inline_response_400_13.rb +38 -77
  174. data/lib/cybersource_rest_client/models/inline_response_400_14.rb +235 -0
  175. data/lib/cybersource_rest_client/models/{inline_response_400_10_details.rb → inline_response_400_14_details.rb} +8 -19
  176. data/lib/cybersource_rest_client/models/inline_response_400_15.rb +281 -0
  177. data/lib/cybersource_rest_client/models/inline_response_400_16.rb +235 -0
  178. data/lib/cybersource_rest_client/models/inline_response_400_3.rb +42 -13
  179. data/lib/cybersource_rest_client/models/inline_response_400_4.rb +47 -13
  180. data/lib/cybersource_rest_client/models/inline_response_400_5.rb +1 -1
  181. data/lib/cybersource_rest_client/models/inline_response_400_6.rb +1 -1
  182. data/lib/cybersource_rest_client/models/inline_response_400_7.rb +1 -1
  183. data/lib/cybersource_rest_client/models/inline_response_400_8.rb +37 -60
  184. data/lib/cybersource_rest_client/models/inline_response_400_9.rb +6 -6
  185. data/lib/cybersource_rest_client/models/inline_response_401.rb +51 -33
  186. data/lib/cybersource_rest_client/models/inline_response_401_1.rb +44 -56
  187. data/lib/cybersource_rest_client/models/inline_response_401_2.rb +223 -0
  188. data/lib/cybersource_rest_client/models/inline_response_401_3.rb +253 -0
  189. data/lib/cybersource_rest_client/models/inline_response_401_3__links.rb +189 -0
  190. data/lib/cybersource_rest_client/models/{inline_response_401_1__links_self.rb → inline_response_401_3__links_self.rb} +1 -1
  191. data/lib/cybersource_rest_client/models/{inline_response_401_1_fields.rb → inline_response_401_3_fields.rb} +1 -1
  192. data/lib/cybersource_rest_client/models/inline_response_404_3.rb +1 -1
  193. data/lib/cybersource_rest_client/models/inline_response_422_1.rb +1 -1
  194. data/lib/cybersource_rest_client/models/inline_response_502_2.rb +55 -26
  195. data/lib/cybersource_rest_client/models/inline_response_502_3.rb +21 -15
  196. data/lib/cybersource_rest_client/models/inline_response_502_4.rb +223 -0
  197. data/lib/cybersource_rest_client/models/inline_response_502_5.rb +251 -0
  198. data/lib/cybersource_rest_client/models/invoicing_v2_invoice_settings_get200_response_invoice_settings_information.rb +18 -1
  199. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_all_get200_response_invoice_information.rb +2 -2
  200. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_cancel200_response.rb +17 -5
  201. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_post201_response_invoice_information.rb +20 -3
  202. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_publish200_response.rb +17 -5
  203. data/lib/cybersource_rest_client/models/invoicing_v2_invoices_send200_response.rb +17 -5
  204. data/lib/cybersource_rest_client/models/invoicingv2invoice_settings_invoice_settings_information.rb +18 -1
  205. data/lib/cybersource_rest_client/models/invoicingv2invoices_invoice_information.rb +20 -3
  206. data/lib/cybersource_rest_client/models/invoicingv2invoicesid_invoice_information.rb +20 -3
  207. data/lib/cybersource_rest_client/models/iplv2paymentlinks_order_information_line_items.rb +26 -9
  208. data/lib/cybersource_rest_client/models/iplv2paymentlinks_purchase_information.rb +85 -5
  209. data/lib/cybersource_rest_client/models/iplv2paymentlinksid_purchase_information.rb +85 -5
  210. data/lib/cybersource_rest_client/models/key_request.rb +239 -0
  211. data/lib/cybersource_rest_client/models/key_request_1.rb +245 -0
  212. data/lib/cybersource_rest_client/models/key_update.rb +224 -0
  213. data/lib/cybersource_rest_client/models/key_update_1.rb +235 -0
  214. data/lib/cybersource_rest_client/models/label_request.rb +268 -0
  215. data/lib/cybersource_rest_client/models/list_agent_keys_response200.rb +245 -0
  216. data/lib/cybersource_rest_client/models/list_agent_keys_response200_pagination.rb +276 -0
  217. data/lib/cybersource_rest_client/models/list_merchant_keys_response200.rb +262 -0
  218. data/lib/cybersource_rest_client/models/merchant_defined_field_core_1.rb +315 -0
  219. data/lib/cybersource_rest_client/models/merchant_defined_field_definition_request_1.rb +315 -0
  220. data/lib/cybersource_rest_client/models/merchant_registration_response201.rb +395 -0
  221. data/lib/cybersource_rest_client/models/merchant_registration_response201_keys.rb +324 -0
  222. data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422.rb +193 -0
  223. data/lib/cybersource_rest_client/models/merchant_registration_validation_error_response422_detail.rb +215 -0
  224. data/lib/cybersource_rest_client/models/merchant_request.rb +317 -0
  225. data/lib/cybersource_rest_client/models/merchant_update.rb +270 -0
  226. data/lib/cybersource_rest_client/models/patch_registration_body.rb +234 -0
  227. data/lib/cybersource_rest_client/models/pbl_payment_links_get200_response.rb +17 -5
  228. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response.rb +17 -5
  229. data/lib/cybersource_rest_client/models/pbl_payment_links_post201_response_purchase_information.rb +81 -1
  230. data/lib/cybersource_rest_client/models/{tms_tokenized_card_delete_request.rb → post_tokenized_card_delete_request.rb} +1 -1
  231. data/lib/cybersource_rest_client/models/processing_info_authorization_options.rb +14 -1
  232. data/lib/cybersource_rest_client/models/product_feed_request.rb +230 -0
  233. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_order_information_amount_details.rb +1 -1
  234. data/lib/cybersource_rest_client/models/ptsv1pushfundstransfer_processing_information.rb +37 -3
  235. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +11 -1
  236. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_card_verification.rb +214 -0
  237. data/lib/cybersource_rest_client/models/ptsv2payments_recurring_payment_information.rb +0 -14
  238. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +1 -1
  239. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +1 -1
  240. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_acquirer_information.rb +196 -0
  241. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information.rb +257 -0
  242. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_client_reference_information_partner.rb +213 -0
  243. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information.rb +189 -0
  244. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_order_information_amount_details.rb +299 -0
  245. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information.rb +240 -0
  246. data/lib/cybersource_rest_client/models/ptsv2payoutsfxrates_processing_information_routing.rb +205 -0
  247. data/lib/cybersource_rest_client/models/ptsv2payoutstransactionqueryid_client_reference_information.rb +247 -0
  248. data/lib/cybersource_rest_client/models/{boardingv1registrations_integration_information_tenant_information.rb → tenant_information.rb} +1 -1
  249. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +1 -1
  250. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +12 -1
  251. data/lib/cybersource_rest_client/models/ucp_checkout_session_response_buyer.rb +202 -0
  252. data/lib/cybersource_rest_client/models/ucp_complete_checkout_request.rb +201 -0
  253. data/lib/cybersource_rest_client/models/ucp_create_checkout_session_buyer.rb +202 -0
  254. data/lib/cybersource_rest_client/models/ucp_create_checkout_session_request.rb +249 -0
  255. data/lib/cybersource_rest_client/models/ucp_update_checkout_session_buyer.rb +202 -0
  256. data/lib/cybersource_rest_client/models/ucp_update_checkout_session_request.rb +255 -0
  257. data/lib/cybersource_rest_client/models/unified_risk_labels_post400_response.rb +230 -0
  258. data/lib/cybersource_rest_client/models/unified_risk_labels_post400_response_errors.rb +223 -0
  259. data/lib/cybersource_rest_client/models/unifiedrisk_labels.rb +230 -0
  260. data/lib/cybersource_rest_client/models/unifiedrisk_labels_authentication_outcome.rb +201 -0
  261. data/lib/cybersource_rest_client/models/unifiedrisk_labels_payment_authorization_decision.rb +201 -0
  262. data/lib/cybersource_rest_client/models/unifiedrisk_labels_return.rb +202 -0
  263. data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_decision.rb +201 -0
  264. data/lib/cybersource_rest_client/models/unifiedrisk_labels_transaction_outcome.rb +201 -0
  265. data/lib/cybersource_rest_client/models/unifiedrisk_transaction.rb +196 -0
  266. data/lib/cybersource_rest_client/models/update_payment_link_request.rb +17 -5
  267. data/lib/cybersource_rest_client.rb +2172 -2011
  268. metadata +194 -33
@@ -13,16 +13,19 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse4004
16
- # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
17
- attr_accessor :submit_time_utc
16
+ # A unique identification number to identify the submitted request. It is also appended to the endpoint of the resource.
17
+ attr_accessor :id
18
18
 
19
- # The status of the submitted transaction. Possible values: - INVALID_REQUEST
19
+ # Time of request in UTC. Format: `YYYY-MM-DD'T'HH:mm:ssZ` Example: `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
20
+ attr_accessor :submit_time_stamp_utc
21
+
22
+ # Possible values: - INVALID_REQUEST
20
23
  attr_accessor :status
21
24
 
22
- # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_CARD_TYPE
25
+ # The reason of the status. Possible values: - INVALID_DATA - MISSING_FIELD
23
26
  attr_accessor :reason
24
27
 
25
- # The detail message related to the status and reason listed above.
28
+ # The detail message related to the status and reason listed above.
26
29
  attr_accessor :message
27
30
 
28
31
  attr_accessor :details
@@ -30,7 +33,8 @@ module CyberSource
30
33
  # Attribute mapping from ruby-style variable name to JSON key.
31
34
  def self.attribute_map
32
35
  {
33
- :'submit_time_utc' => :'submitTimeUtc',
36
+ :'id' => :'id',
37
+ :'submit_time_stamp_utc' => :'submitTimeStampUtc',
34
38
  :'status' => :'status',
35
39
  :'reason' => :'reason',
36
40
  :'message' => :'message',
@@ -41,7 +45,8 @@ module CyberSource
41
45
  # Attribute mapping from JSON key to ruby-style variable name.
42
46
  def self.json_map
43
47
  {
44
- :'submit_time_utc' => :'submit_time_utc',
48
+ :'id' => :'id',
49
+ :'submit_time_stamp_utc' => :'submit_time_stamp_utc',
45
50
  :'status' => :'status',
46
51
  :'reason' => :'reason',
47
52
  :'message' => :'message',
@@ -52,11 +57,12 @@ module CyberSource
52
57
  # Attribute type mapping.
53
58
  def self.swagger_types
54
59
  {
55
- :'submit_time_utc' => :'String',
60
+ :'id' => :'String',
61
+ :'submit_time_stamp_utc' => :'String',
56
62
  :'status' => :'String',
57
63
  :'reason' => :'String',
58
64
  :'message' => :'String',
59
- :'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
65
+ :'details' => :'Array<InlineResponse2014ErrorInformationDetails>'
60
66
  }
61
67
  end
62
68
 
@@ -68,8 +74,12 @@ module CyberSource
68
74
  # convert string to symbol for hash key
69
75
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
70
76
 
71
- if attributes.has_key?(:'submitTimeUtc')
72
- self.submit_time_utc = attributes[:'submitTimeUtc']
77
+ if attributes.has_key?(:'id')
78
+ self.id = attributes[:'id']
79
+ end
80
+
81
+ if attributes.has_key?(:'submitTimeStampUtc')
82
+ self.submit_time_stamp_utc = attributes[:'submitTimeStampUtc']
73
83
  end
74
84
 
75
85
  if attributes.has_key?(:'status')
@@ -95,21 +105,45 @@ module CyberSource
95
105
  # @return Array for valid properties with the reasons
96
106
  def list_invalid_properties
97
107
  invalid_properties = Array.new
108
+ if @status.nil?
109
+ invalid_properties.push('invalid value for "status", status cannot be nil.')
110
+ end
111
+
98
112
  invalid_properties
99
113
  end
100
114
 
101
115
  # Check to see if the all the properties in the model are valid
102
116
  # @return true if the model is valid
103
117
  def valid?
118
+ return false if @status.nil?
104
119
  true
105
120
  end
106
121
 
122
+ # Custom attribute writer method with validation
123
+ # @param [Object] id Value to be assigned
124
+ def id=(id)
125
+ @id = id
126
+ end
127
+
128
+ # Custom attribute writer method with validation
129
+ # @param [Object] submit_time_stamp_utc Value to be assigned
130
+ def submit_time_stamp_utc=(submit_time_stamp_utc)
131
+ @submit_time_stamp_utc = submit_time_stamp_utc
132
+ end
133
+
134
+ # Custom attribute writer method with validation
135
+ # @param [Object] message Value to be assigned
136
+ def message=(message)
137
+ @message = message
138
+ end
139
+
107
140
  # Checks equality by comparing each attribute.
108
141
  # @param [Object] Object to be compared
109
142
  def ==(o)
110
143
  return true if self.equal?(o)
111
144
  self.class == o.class &&
112
- submit_time_utc == o.submit_time_utc &&
145
+ id == o.id &&
146
+ submit_time_stamp_utc == o.submit_time_stamp_utc &&
113
147
  status == o.status &&
114
148
  reason == o.reason &&
115
149
  message == o.message &&
@@ -125,7 +159,7 @@ module CyberSource
125
159
  # Calculates hash code according to all attributes.
126
160
  # @return [Fixnum] Hash code
127
161
  def hash
128
- [submit_time_utc, status, reason, message, details].hash
162
+ [id, submit_time_stamp_utc, status, reason, message, details].hash
129
163
  end
130
164
 
131
165
  # Builds the object from hash
@@ -19,7 +19,7 @@ module CyberSource
19
19
  # The status of the submitted transaction. Possible values: - INVALID_REQUEST
20
20
  attr_accessor :status
21
21
 
22
- # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_FOLLOW_ON_TRANSACTION_STATUS
22
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION
23
23
  attr_accessor :reason
24
24
 
25
25
  # The detail message related to the status and reason listed above.
@@ -19,7 +19,7 @@ module CyberSource
19
19
  # The status of the submitted transaction. Possible values: - INVALID_REQUEST
20
20
  attr_accessor :status
21
21
 
22
- # The reason of the status. Possible values: - INVALID_DATA - INVALID_MERCHANT_CONFIGURATION
22
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_CARD - CARD_TYPE_NOT_ACCEPTED - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_CARD_TYPE
23
23
  attr_accessor :reason
24
24
 
25
25
  # The detail message related to the status and reason listed above.
@@ -19,7 +19,7 @@ module CyberSource
19
19
  # The status of the submitted transaction. Possible values: - INVALID_REQUEST
20
20
  attr_accessor :status
21
21
 
22
- # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - INVALID_MERCHANT_CONFIGURATION
22
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - DUPLICATE_REQUEST - INVALID_MERCHANT_CONFIGURATION - PROCESSOR_UNAVAILABLE - INVALID_FOLLOW_ON_TRANSACTION_STATUS
23
23
  attr_accessor :reason
24
24
 
25
25
  # The detail message related to the status and reason listed above.
@@ -12,59 +12,51 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- # Error Bean
16
15
  class InlineResponse4008
17
- # Error code
18
- attr_accessor :code
16
+ # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
17
+ attr_accessor :submit_time_utc
19
18
 
20
- # Error message
21
- attr_accessor :message
22
-
23
- # Localization Key Name
24
- attr_accessor :localization_key
19
+ # The status of the submitted transaction. Possible values: - INVALID_REQUEST
20
+ attr_accessor :status
25
21
 
26
- # Correlation Id
27
- attr_accessor :correlation_id
22
+ # The reason of the status. Possible values: - INVALID_DATA - INVALID_MERCHANT_CONFIGURATION
23
+ attr_accessor :reason
28
24
 
29
- # Error Detail
30
- attr_accessor :detail
25
+ # The detail message related to the status and reason listed above.
26
+ attr_accessor :message
31
27
 
32
- # Error fields List
33
- attr_accessor :fields
28
+ attr_accessor :details
34
29
 
35
30
  # Attribute mapping from ruby-style variable name to JSON key.
36
31
  def self.attribute_map
37
32
  {
38
- :'code' => :'code',
33
+ :'submit_time_utc' => :'submitTimeUtc',
34
+ :'status' => :'status',
35
+ :'reason' => :'reason',
39
36
  :'message' => :'message',
40
- :'localization_key' => :'localizationKey',
41
- :'correlation_id' => :'correlationId',
42
- :'detail' => :'detail',
43
- :'fields' => :'fields'
37
+ :'details' => :'details'
44
38
  }
45
39
  end
46
40
 
47
41
  # Attribute mapping from JSON key to ruby-style variable name.
48
42
  def self.json_map
49
43
  {
50
- :'code' => :'code',
44
+ :'submit_time_utc' => :'submit_time_utc',
45
+ :'status' => :'status',
46
+ :'reason' => :'reason',
51
47
  :'message' => :'message',
52
- :'localization_key' => :'localization_key',
53
- :'correlation_id' => :'correlation_id',
54
- :'detail' => :'detail',
55
- :'fields' => :'fields'
48
+ :'details' => :'details'
56
49
  }
57
50
  end
58
51
 
59
52
  # Attribute type mapping.
60
53
  def self.swagger_types
61
54
  {
62
- :'code' => :'String',
55
+ :'submit_time_utc' => :'String',
56
+ :'status' => :'String',
57
+ :'reason' => :'String',
63
58
  :'message' => :'String',
64
- :'localization_key' => :'String',
65
- :'correlation_id' => :'String',
66
- :'detail' => :'String',
67
- :'fields' => :'Array<InlineResponse4008Fields>'
59
+ :'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
68
60
  }
69
61
  end
70
62
 
@@ -76,29 +68,25 @@ module CyberSource
76
68
  # convert string to symbol for hash key
77
69
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
70
 
79
- if attributes.has_key?(:'code')
80
- self.code = attributes[:'code']
81
- end
82
-
83
- if attributes.has_key?(:'message')
84
- self.message = attributes[:'message']
71
+ if attributes.has_key?(:'submitTimeUtc')
72
+ self.submit_time_utc = attributes[:'submitTimeUtc']
85
73
  end
86
74
 
87
- if attributes.has_key?(:'localizationKey')
88
- self.localization_key = attributes[:'localizationKey']
75
+ if attributes.has_key?(:'status')
76
+ self.status = attributes[:'status']
89
77
  end
90
78
 
91
- if attributes.has_key?(:'correlationId')
92
- self.correlation_id = attributes[:'correlationId']
79
+ if attributes.has_key?(:'reason')
80
+ self.reason = attributes[:'reason']
93
81
  end
94
82
 
95
- if attributes.has_key?(:'detail')
96
- self.detail = attributes[:'detail']
83
+ if attributes.has_key?(:'message')
84
+ self.message = attributes[:'message']
97
85
  end
98
86
 
99
- if attributes.has_key?(:'fields')
100
- if (value = attributes[:'fields']).is_a?(Array)
101
- self.fields = value
87
+ if attributes.has_key?(:'details')
88
+ if (value = attributes[:'details']).is_a?(Array)
89
+ self.details = value
102
90
  end
103
91
  end
104
92
  end
@@ -107,22 +95,12 @@ module CyberSource
107
95
  # @return Array for valid properties with the reasons
108
96
  def list_invalid_properties
109
97
  invalid_properties = Array.new
110
- if @code.nil?
111
- invalid_properties.push('invalid value for "code", code cannot be nil.')
112
- end
113
-
114
- if @message.nil?
115
- invalid_properties.push('invalid value for "message", message cannot be nil.')
116
- end
117
-
118
98
  invalid_properties
119
99
  end
120
100
 
121
101
  # Check to see if the all the properties in the model are valid
122
102
  # @return true if the model is valid
123
103
  def valid?
124
- return false if @code.nil?
125
- return false if @message.nil?
126
104
  true
127
105
  end
128
106
 
@@ -131,12 +109,11 @@ module CyberSource
131
109
  def ==(o)
132
110
  return true if self.equal?(o)
133
111
  self.class == o.class &&
134
- code == o.code &&
112
+ submit_time_utc == o.submit_time_utc &&
113
+ status == o.status &&
114
+ reason == o.reason &&
135
115
  message == o.message &&
136
- localization_key == o.localization_key &&
137
- correlation_id == o.correlation_id &&
138
- detail == o.detail &&
139
- fields == o.fields
116
+ details == o.details
140
117
  end
141
118
 
142
119
  # @see the `==` method
@@ -148,7 +125,7 @@ module CyberSource
148
125
  # Calculates hash code according to all attributes.
149
126
  # @return [Fixnum] Hash code
150
127
  def hash
151
- [code, message, localization_key, correlation_id, detail, fields].hash
128
+ [submit_time_utc, status, reason, message, details].hash
152
129
  end
153
130
 
154
131
  # Builds the object from hash
@@ -13,16 +13,16 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse4009
16
- # Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
16
+ # Time of request in UTC. Format: `YYYY-MM-DDThh:mm:ssZ` **Example** `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The `T` separates the date and the time. The `Z` indicates UTC. Returned by Cybersource for all services.
17
17
  attr_accessor :submit_time_utc
18
18
 
19
- # The http status description of the submitted request.
19
+ # The status of the submitted transaction. Possible values: - INVALID_REQUEST
20
20
  attr_accessor :status
21
21
 
22
- # Documented reason codes. Client should be able to use the key for generating their own error message Possible Values: - 'INVALID_DATA' - 'SYSTEM_ERROR' - 'RESOURCE_NOT_FOUND'
22
+ # The reason of the status. Possible values: - MISSING_FIELD - INVALID_DATA - INVALID_MERCHANT_CONFIGURATION
23
23
  attr_accessor :reason
24
24
 
25
- # Descriptive message for the error.
25
+ # The detail message related to the status and reason listed above.
26
26
  attr_accessor :message
27
27
 
28
28
  attr_accessor :details
@@ -52,11 +52,11 @@ module CyberSource
52
52
  # Attribute type mapping.
53
53
  def self.swagger_types
54
54
  {
55
- :'submit_time_utc' => :'DateTime',
55
+ :'submit_time_utc' => :'String',
56
56
  :'status' => :'String',
57
57
  :'reason' => :'String',
58
58
  :'message' => :'String',
59
- :'details' => :'Array<InlineResponse4009Details>'
59
+ :'details' => :'Array<PtsV2PaymentsPost201ResponseErrorInformationDetails>'
60
60
  }
61
61
  end
62
62
 
@@ -13,45 +13,45 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse401
16
- # The status of the submitted request. Possible values: - UNAUTHORIZED
17
- attr_accessor :status
16
+ # A unique identification number to identify the submitted request. It is also appended to the endpoint of the resource.
17
+ attr_accessor :id
18
18
 
19
- # The detail message related to the status and reason listed above.
20
- attr_accessor :message
19
+ # Time of request in UTC. Format: `YYYY-MM-DD'T'HH:mm:ssZ` Example: `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
20
+ attr_accessor :submit_time_stamp_utc
21
21
 
22
- # An optional short string which identifies the exact error.
23
- attr_accessor :code
22
+ # The reason of the status. Possible values: - UNAUTHORIZED
23
+ attr_accessor :reason
24
24
 
25
- # Time of request in UTC. `Format: YYYY-MM-DDThh:mm:ssZ` Example 2016-08-11T22:47:57Z equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
26
- attr_accessor :submit_time_utc
25
+ # The detail message related to the status and reason listed above.
26
+ attr_accessor :message
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
30
30
  {
31
- :'status' => :'status',
32
- :'message' => :'message',
33
- :'code' => :'code',
34
- :'submit_time_utc' => :'submitTimeUtc'
31
+ :'id' => :'id',
32
+ :'submit_time_stamp_utc' => :'submitTimeStampUtc',
33
+ :'reason' => :'reason',
34
+ :'message' => :'message'
35
35
  }
36
36
  end
37
37
 
38
38
  # Attribute mapping from JSON key to ruby-style variable name.
39
39
  def self.json_map
40
40
  {
41
- :'status' => :'status',
42
- :'message' => :'message',
43
- :'code' => :'code',
44
- :'submit_time_utc' => :'submit_time_utc'
41
+ :'id' => :'id',
42
+ :'submit_time_stamp_utc' => :'submit_time_stamp_utc',
43
+ :'reason' => :'reason',
44
+ :'message' => :'message'
45
45
  }
46
46
  end
47
47
 
48
48
  # Attribute type mapping.
49
49
  def self.swagger_types
50
50
  {
51
- :'status' => :'String',
52
- :'message' => :'String',
53
- :'code' => :'String',
54
- :'submit_time_utc' => :'String'
51
+ :'id' => :'String',
52
+ :'submit_time_stamp_utc' => :'String',
53
+ :'reason' => :'String',
54
+ :'message' => :'String'
55
55
  }
56
56
  end
57
57
 
@@ -63,20 +63,20 @@ module CyberSource
63
63
  # convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
65
 
66
- if attributes.has_key?(:'status')
67
- self.status = attributes[:'status']
66
+ if attributes.has_key?(:'id')
67
+ self.id = attributes[:'id']
68
68
  end
69
69
 
70
- if attributes.has_key?(:'message')
71
- self.message = attributes[:'message']
70
+ if attributes.has_key?(:'submitTimeStampUtc')
71
+ self.submit_time_stamp_utc = attributes[:'submitTimeStampUtc']
72
72
  end
73
73
 
74
- if attributes.has_key?(:'code')
75
- self.code = attributes[:'code']
74
+ if attributes.has_key?(:'reason')
75
+ self.reason = attributes[:'reason']
76
76
  end
77
77
 
78
- if attributes.has_key?(:'submitTimeUtc')
79
- self.submit_time_utc = attributes[:'submitTimeUtc']
78
+ if attributes.has_key?(:'message')
79
+ self.message = attributes[:'message']
80
80
  end
81
81
  end
82
82
 
@@ -93,15 +93,33 @@ module CyberSource
93
93
  true
94
94
  end
95
95
 
96
+ # Custom attribute writer method with validation
97
+ # @param [Object] id Value to be assigned
98
+ def id=(id)
99
+ @id = id
100
+ end
101
+
102
+ # Custom attribute writer method with validation
103
+ # @param [Object] submit_time_stamp_utc Value to be assigned
104
+ def submit_time_stamp_utc=(submit_time_stamp_utc)
105
+ @submit_time_stamp_utc = submit_time_stamp_utc
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] message Value to be assigned
110
+ def message=(message)
111
+ @message = message
112
+ end
113
+
96
114
  # Checks equality by comparing each attribute.
97
115
  # @param [Object] Object to be compared
98
116
  def ==(o)
99
117
  return true if self.equal?(o)
100
118
  self.class == o.class &&
101
- status == o.status &&
102
- message == o.message &&
103
- code == o.code &&
104
- submit_time_utc == o.submit_time_utc
119
+ id == o.id &&
120
+ submit_time_stamp_utc == o.submit_time_stamp_utc &&
121
+ reason == o.reason &&
122
+ message == o.message
105
123
  end
106
124
 
107
125
  # @see the `==` method
@@ -113,7 +131,7 @@ module CyberSource
113
131
  # Calculates hash code according to all attributes.
114
132
  # @return [Fixnum] Hash code
115
133
  def hash
116
- [status, message, code, submit_time_utc].hash
134
+ [id, submit_time_stamp_utc, reason, message].hash
117
135
  end
118
136
 
119
137
  # Builds the object from hash
@@ -13,31 +13,24 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class InlineResponse4011
16
- attr_accessor :_links
16
+ # A unique identification number to identify the submitted request. It is also appended to the endpoint of the resource.
17
+ attr_accessor :id
17
18
 
18
- # Valid Values: * FORBIDDEN_RESPONSE * VALIDATION_ERROR * UNSUPPORTED_MEDIA_TYPE * MALFORMED_PAYLOAD_ERROR * SERVER_ERROR
19
- attr_accessor :code
19
+ # Time of request in UTC. Format: `YYYY-MM-DD'T'HH:mm:ssZ` Example: `2016-08-11T22:47:57Z` equals August 11, 2016, at 22:47:57 (10:47:57 p.m.). The T separates the date and the time. The Z indicates UTC.
20
+ attr_accessor :submit_time_stamp_utc
20
21
 
21
- attr_accessor :correlation_id
22
-
23
- attr_accessor :detail
24
-
25
- attr_accessor :fields
26
-
27
- # Valid Values: * cybsapi.forbidden.response * cybsapi.validation.error * cybsapi.media.notsupported
28
- attr_accessor :localization_key
22
+ # The reason of the status. Possible values: - UNAUTHORIZED
23
+ attr_accessor :reason
29
24
 
25
+ # The detail message related to the status and reason listed above.
30
26
  attr_accessor :message
31
27
 
32
28
  # Attribute mapping from ruby-style variable name to JSON key.
33
29
  def self.attribute_map
34
30
  {
35
- :'_links' => :'_links',
36
- :'code' => :'code',
37
- :'correlation_id' => :'correlationId',
38
- :'detail' => :'detail',
39
- :'fields' => :'fields',
40
- :'localization_key' => :'localizationKey',
31
+ :'id' => :'id',
32
+ :'submit_time_stamp_utc' => :'submitTimeStampUtc',
33
+ :'reason' => :'reason',
41
34
  :'message' => :'message'
42
35
  }
43
36
  end
@@ -45,12 +38,9 @@ module CyberSource
45
38
  # Attribute mapping from JSON key to ruby-style variable name.
46
39
  def self.json_map
47
40
  {
48
- :'_links' => :'_links',
49
- :'code' => :'code',
50
- :'correlation_id' => :'correlation_id',
51
- :'detail' => :'detail',
52
- :'fields' => :'fields',
53
- :'localization_key' => :'localization_key',
41
+ :'id' => :'id',
42
+ :'submit_time_stamp_utc' => :'submit_time_stamp_utc',
43
+ :'reason' => :'reason',
54
44
  :'message' => :'message'
55
45
  }
56
46
  end
@@ -58,12 +48,9 @@ module CyberSource
58
48
  # Attribute type mapping.
59
49
  def self.swagger_types
60
50
  {
61
- :'_links' => :'InlineResponse4011Links',
62
- :'code' => :'String',
63
- :'correlation_id' => :'String',
64
- :'detail' => :'String',
65
- :'fields' => :'Array<InlineResponse4011Fields>',
66
- :'localization_key' => :'String',
51
+ :'id' => :'String',
52
+ :'submit_time_stamp_utc' => :'String',
53
+ :'reason' => :'String',
67
54
  :'message' => :'String'
68
55
  }
69
56
  end
@@ -76,30 +63,16 @@ module CyberSource
76
63
  # convert string to symbol for hash key
77
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
78
65
 
79
- if attributes.has_key?(:'_links')
80
- self._links = attributes[:'_links']
81
- end
82
-
83
- if attributes.has_key?(:'code')
84
- self.code = attributes[:'code']
85
- end
86
-
87
- if attributes.has_key?(:'correlationId')
88
- self.correlation_id = attributes[:'correlationId']
89
- end
90
-
91
- if attributes.has_key?(:'detail')
92
- self.detail = attributes[:'detail']
66
+ if attributes.has_key?(:'id')
67
+ self.id = attributes[:'id']
93
68
  end
94
69
 
95
- if attributes.has_key?(:'fields')
96
- if (value = attributes[:'fields']).is_a?(Array)
97
- self.fields = value
98
- end
70
+ if attributes.has_key?(:'submitTimeStampUtc')
71
+ self.submit_time_stamp_utc = attributes[:'submitTimeStampUtc']
99
72
  end
100
73
 
101
- if attributes.has_key?(:'localizationKey')
102
- self.localization_key = attributes[:'localizationKey']
74
+ if attributes.has_key?(:'reason')
75
+ self.reason = attributes[:'reason']
103
76
  end
104
77
 
105
78
  if attributes.has_key?(:'message')
@@ -120,17 +93,32 @@ module CyberSource
120
93
  true
121
94
  end
122
95
 
96
+ # Custom attribute writer method with validation
97
+ # @param [Object] id Value to be assigned
98
+ def id=(id)
99
+ @id = id
100
+ end
101
+
102
+ # Custom attribute writer method with validation
103
+ # @param [Object] submit_time_stamp_utc Value to be assigned
104
+ def submit_time_stamp_utc=(submit_time_stamp_utc)
105
+ @submit_time_stamp_utc = submit_time_stamp_utc
106
+ end
107
+
108
+ # Custom attribute writer method with validation
109
+ # @param [Object] message Value to be assigned
110
+ def message=(message)
111
+ @message = message
112
+ end
113
+
123
114
  # Checks equality by comparing each attribute.
124
115
  # @param [Object] Object to be compared
125
116
  def ==(o)
126
117
  return true if self.equal?(o)
127
118
  self.class == o.class &&
128
- _links == o._links &&
129
- code == o.code &&
130
- correlation_id == o.correlation_id &&
131
- detail == o.detail &&
132
- fields == o.fields &&
133
- localization_key == o.localization_key &&
119
+ id == o.id &&
120
+ submit_time_stamp_utc == o.submit_time_stamp_utc &&
121
+ reason == o.reason &&
134
122
  message == o.message
135
123
  end
136
124
 
@@ -143,7 +131,7 @@ module CyberSource
143
131
  # Calculates hash code according to all attributes.
144
132
  # @return [Fixnum] Hash code
145
133
  def hash
146
- [_links, code, correlation_id, detail, fields, localization_key, message].hash
134
+ [id, submit_time_stamp_utc, reason, message].hash
147
135
  end
148
136
 
149
137
  # Builds the object from hash