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
@@ -17,6 +17,18 @@ module CyberSource
17
17
  # The purchase number
18
18
  attr_accessor :purchase_number
19
19
 
20
+ # The transaction reference number (TRN) is a identifier assigned to each payment transaction that allows merchants, customers, and payment processors to track and reference specific transactions throughout their lifecycle. When provided, this value is passed to the payment processor as the reconciliation ID for the payment. For invoices this is typically the invoice number, and for purchase or donation links it is typically the link identifier. Only letters and numbers are allowed; spaces and other special characters are not permitted.
21
+ attr_accessor :transaction_reference_number
22
+
23
+ # Define an expiration date for the link. The date must be today or in the future. Format: `YYYY-MM-DD`, where `YYYY` = year, `MM` = month, and `DD` = day. The invoice link automatically expires 12 months after the due date.
24
+ attr_accessor :expiration_date
25
+
26
+ # Define an expiry amount for the link. Must be null or greater than 0. If the total price of all transactions for this link exceeds the expiry amount, the link will expire.
27
+ attr_accessor :expiration_amount
28
+
29
+ # Define an expiration quantity for the link. Must be null or greater than 0. If the total quantity of items sold exceeds the expiration quantity, the link is expired.
30
+ attr_accessor :expiration_quantity
31
+
20
32
  # Date and time (UTC) the invoice was created. 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.
21
33
  attr_accessor :created_date
22
34
 
@@ -27,6 +39,10 @@ module CyberSource
27
39
  def self.attribute_map
28
40
  {
29
41
  :'purchase_number' => :'purchaseNumber',
42
+ :'transaction_reference_number' => :'transactionReferenceNumber',
43
+ :'expiration_date' => :'expirationDate',
44
+ :'expiration_amount' => :'expirationAmount',
45
+ :'expiration_quantity' => :'expirationQuantity',
30
46
  :'created_date' => :'createdDate',
31
47
  :'payment_link' => :'paymentLink'
32
48
  }
@@ -36,6 +52,10 @@ module CyberSource
36
52
  def self.json_map
37
53
  {
38
54
  :'purchase_number' => :'purchase_number',
55
+ :'transaction_reference_number' => :'transaction_reference_number',
56
+ :'expiration_date' => :'expiration_date',
57
+ :'expiration_amount' => :'expiration_amount',
58
+ :'expiration_quantity' => :'expiration_quantity',
39
59
  :'created_date' => :'created_date',
40
60
  :'payment_link' => :'payment_link'
41
61
  }
@@ -45,6 +65,10 @@ module CyberSource
45
65
  def self.swagger_types
46
66
  {
47
67
  :'purchase_number' => :'String',
68
+ :'transaction_reference_number' => :'String',
69
+ :'expiration_date' => :'Date',
70
+ :'expiration_amount' => :'String',
71
+ :'expiration_quantity' => :'String',
48
72
  :'created_date' => :'String',
49
73
  :'payment_link' => :'String'
50
74
  }
@@ -62,6 +86,22 @@ module CyberSource
62
86
  self.purchase_number = attributes[:'purchaseNumber']
63
87
  end
64
88
 
89
+ if attributes.has_key?(:'transactionReferenceNumber')
90
+ self.transaction_reference_number = attributes[:'transactionReferenceNumber']
91
+ end
92
+
93
+ if attributes.has_key?(:'expirationDate')
94
+ self.expiration_date = attributes[:'expirationDate']
95
+ end
96
+
97
+ if attributes.has_key?(:'expirationAmount')
98
+ self.expiration_amount = attributes[:'expirationAmount']
99
+ end
100
+
101
+ if attributes.has_key?(:'expirationQuantity')
102
+ self.expiration_quantity = attributes[:'expirationQuantity']
103
+ end
104
+
65
105
  if attributes.has_key?(:'createdDate')
66
106
  self.created_date = attributes[:'createdDate']
67
107
  end
@@ -75,12 +115,22 @@ module CyberSource
75
115
  # @return Array for valid properties with the reasons
76
116
  def list_invalid_properties
77
117
  invalid_properties = Array.new
118
+ #if !@expiration_amount.nil? && @expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
119
+ #invalid_properties.push('invalid value for "expiration_amount", must conform to the pattern /^[0-9]+(\\.[0-9]+)?$/.')
120
+ #end
121
+
122
+ #if !@expiration_quantity.nil? && @expiration_quantity !~ Regexp.new(/^[0-9]+$/)
123
+ #invalid_properties.push('invalid value for "expiration_quantity", must conform to the pattern /^[0-9]+$/.')
124
+ #end
125
+
78
126
  invalid_properties
79
127
  end
80
128
 
81
129
  # Check to see if the all the properties in the model are valid
82
130
  # @return true if the model is valid
83
131
  def valid?
132
+ #return false if !@expiration_amount.nil? && @expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
133
+ #return false if !@expiration_quantity.nil? && @expiration_quantity !~ Regexp.new(/^[0-9]+$/)
84
134
  true
85
135
  end
86
136
 
@@ -90,12 +140,42 @@ module CyberSource
90
140
  @purchase_number = purchase_number
91
141
  end
92
142
 
143
+ # Custom attribute writer method with validation
144
+ # @param [Object] transaction_reference_number Value to be assigned
145
+ def transaction_reference_number=(transaction_reference_number)
146
+ @transaction_reference_number = transaction_reference_number
147
+ end
148
+
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] expiration_amount Value to be assigned
151
+ def expiration_amount=(expiration_amount)
152
+ #if !expiration_amount.nil? && expiration_amount !~ Regexp.new(/^[0-9]+(\\.[0-9]+)?$/)
153
+ #fail ArgumentError, 'invalid value for "expiration_amount", must conform to the pattern /^[0-9]+(\\.[0-9]+)?$/.'
154
+ #end
155
+
156
+ @expiration_amount = expiration_amount
157
+ end
158
+
159
+ # Custom attribute writer method with validation
160
+ # @param [Object] expiration_quantity Value to be assigned
161
+ def expiration_quantity=(expiration_quantity)
162
+ #if !expiration_quantity.nil? && expiration_quantity !~ Regexp.new(/^[0-9]+$/)
163
+ #fail ArgumentError, 'invalid value for "expiration_quantity", must conform to the pattern /^[0-9]+$/.'
164
+ #end
165
+
166
+ @expiration_quantity = expiration_quantity
167
+ end
168
+
93
169
  # Checks equality by comparing each attribute.
94
170
  # @param [Object] Object to be compared
95
171
  def ==(o)
96
172
  return true if self.equal?(o)
97
173
  self.class == o.class &&
98
174
  purchase_number == o.purchase_number &&
175
+ transaction_reference_number == o.transaction_reference_number &&
176
+ expiration_date == o.expiration_date &&
177
+ expiration_amount == o.expiration_amount &&
178
+ expiration_quantity == o.expiration_quantity &&
99
179
  created_date == o.created_date &&
100
180
  payment_link == o.payment_link
101
181
  end
@@ -109,7 +189,7 @@ module CyberSource
109
189
  # Calculates hash code according to all attributes.
110
190
  # @return [Fixnum] Hash code
111
191
  def hash
112
- [purchase_number, created_date, payment_link].hash
192
+ [purchase_number, transaction_reference_number, expiration_date, expiration_amount, expiration_quantity, created_date, payment_link].hash
113
193
  end
114
194
 
115
195
  # Builds the object from hash
@@ -12,7 +12,7 @@ Swagger Codegen version: 2.4.38
12
12
  require 'date'
13
13
 
14
14
  module CyberSource
15
- class TmsTokenizedCardDeleteRequest
15
+ class PostTokenizedCardDeleteRequest
16
16
  attr_accessor :reason
17
17
 
18
18
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -43,6 +43,9 @@ module CyberSource
43
43
  # Comma-separated list of AVS flags that cause the reply flag `DAVSNO` to be returned. **Important** To receive declines for the AVS code `N`, you must include the value `N` in the comma-separated list. ### AVS Codes for Cielo 3.0 and CyberSource Latin American Processing **Note** CyberSource Latin American Processing is the name of a specific processing connection that CyberSource supports. In the CyberSource API documentation, CyberSource Latin American Processing does not refer to the general topic of processing in Latin America. The information in this section is for the specific processing connection called CyberSource Latin American Processing. It is not for any other Latin American processors that CyberSource supports. |AVS Code|Description| |--- |--- | |D|Partial match: postal code and address match.| |E|Not supported: AVS is not supported for this card type. _or_ Invalid: the acquirer returned an unrecognized value for the AVS response.| |F|Partial match: postal code matches, but CPF and address do not match.*| |G|Not supported: AVS not supported or not verified.| |I|No match: AVS information is not available.| |K|Partial match: CPF matches, but postal code and address do not match.*| |L|Partial match: postal code and CPF match, but address does not match.*| |N|No match: postal code, CPF, and address do not match.*| |O|Partial match: CPF and address match, but postal code does not match.*| |R|Not supported: your implementation does not support AVS _or_ System unavailable.| |T|Partial match: address matches, but postal code and CPF do not match.*| |V|Match: postal code, CPF, and address match.*| |* CPF (Cadastro de Pessoas Fisicas) is required only for Redecard in Brazil.|| ### AVS Codes for All Other Processors **Note** The list of AVS codes for all other processors follows these descriptions of the processor-specific information for these codes. #### American Express Cards For American Express cards only, you can receive Visa and CyberSource AVS codes in addition to the American Express AVS codes. **Note** For CyberSource through VisaNet, the American Express AVS codes are converted to Visa AVS codes before they are returned to you. As a result, you will not receive American Express AVS codes for the American Express card type.<br/><br/> _American Express Card codes_: `F`, `H`, `K`, `L`, `O`, `T`, `V` #### Domestic and International Visa Cards The international and domestic alphabetic AVS codes are the Visa standard AVS codes. CyberSource maps the standard AVS return codes for other types of payment cards, including American Express cards, to the Visa standard AVS codes. AVS is considered either domestic or international, depending on the location of the bank that issued the customer's payment card: - When the bank is in the U.S., the AVS is domestic. - When the bank is outside the U.S., the AVS is international. You should be prepared to handle both domestic and international AVS result codes: - For international cards, you can receive domestic AVS codes in addition to the international AVS codes. - For domestic cards, you can receive international AVS codes in addition to the domestic AVS codes. _International Visa Codes_: `B`, `C`, `D`, `G`, `I`, `M`, `P` _Domestic Visa Codes_: `A`, `E`,`N`, `R`, `S`, `U`, `W`, `X`, `Y`, `Z` #### CyberSource Codes The numeric AVS codes are created by CyberSource and are not standard Visa codes. These AVS codes can be returned for any card type. _CyberSource Codes_: `1`, `2`, `3`, `4` ### Table of AVS Codes for All Other Processors |AVS Code|Description| |--- |--- | |A|Partial match: street address matches, but 5-digit and 9-digit postal codes do not match.| |B|Partial match: street address matches, but postal code is not verified. Returned only for Visa cards not issued in the U.S.| |C|No match: street address and postal code do not match. Returned only for Visa cards not issued in the U.S.| |D & M|Match: street address and postal code match. Returned only for Visa cards not issued in the U.S.| |E|Invalid: AVS data is invalid or AVS is not allowed for this card type.| |F|Partial match: card member's name does not match, but billing postal code matches.| |G|Not supported: issuing bank outside the U.S. does not support AVS.| |H|Partial match: card member's name does not match, but street address and postal code match. Returned only for the American Express card type.| |I|No match: address not verified. Returned only for Visa cards not issued in the U.S.| |K|Partial match: card member's name matches, but billing address and billing postal code do not match. Returned only for the American Express card type.| |L|Partial match: card member's name and billing postal code match, but billing address does not match. Returned only for the American Express card type.| |M|See the entry for D & M.| |N|No match: one of the following: street address and postal code do not match _or_ (American Express card type only) card member's name, street address, and postal code do not match.| |O|Partial match: card member's name and billing address match, but billing postal code does not match. Returned only for the American Express card type.| |P|Partial match: postal code matches, but street address not verified. Returned only for Visa cards not issued in the U.S.| |R|System unavailable.| |S|Not supported: issuing bank in the U.S. does not support AVS.| |T|Partial match: card member's name does not match, but street address matches. Returned only for the American Express card type.| |U|System unavailable: address information unavailable for one of these reasons: The U.S. bank does not support AVS outside the U.S. _or_ The AVS in a U.S. bank is not functioning properly.| |V|Match: card member's name, billing address, and billing postal code match. Returned only for the American Express card type.| |W|Partial match: street address does not match, but 9-digit postal code matches.| |X|Match: street address and 9-digit postal code match.| |Y|Match: street address and 5-digit postal code match.| |Z|Partial match: street address does not match, but 5-digit postal code matches.| |1|Not supported: one of the following: AVS is not supported for this processor or card type _or_ AVS is disabled for your CyberSource account. To enable AVS, contact CyberSource Customer Support.| |2|Unrecognized: the processor returned an unrecognized value for the AVS response.| |3|Match: address is confirmed. Returned only for PayPal Express Checkout.| |4|No match: address is not confirmed. Returned only for PayPal Express Checkout.| |5|No match: no AVS code was returned by the processor.|
44
44
  attr_accessor :decline_avs_flags
45
45
 
46
+ # User-defined list of ANI (Address Name Inquiry) codes that will cause the system to decline a transaction. Address Name Inquiry is a Verification suite product which checks whether the name shared in the transaction matches with the one stored at the issuing bank. This field replicates the same behavior as AVS (which uses DAVSNO flag), but for ANI verification using the DANINO flag. **Important**: - By default, no ANI codes cause declines (empty/null) - Merchant specifies which ANI codes should trigger declines - When triggered, returns reason code 217 with reply flag `DANINO` - Use space to separate values in the list - To receive declines for the ANI code N, include the value N in the list ### ANI Result Codes |ANI Code|Description| |--- |--- | |Y|Match: Full name match with issuing bank records| |O|Partial match: Partial name match with issuing bank records| |N|No match: Name does not match issuing bank records| |U|Unverified: ANI verification not performed or not supported| |R|Retry: System should retry the ANI check| ### Reply Flag When Triggered When a transaction's ANI result matches one of the codes in this list, the system returns: - **Reason Code**: 217 - **Reply Flag**: `DANINO` - **Description**: Decline. The authorization request was approved by the issuing bank but was flagged because it did not pass the Address Name Inquiry (ANI) check. - **Possible Action**: Review the order for the possibility of fraud. #### Used by **Authorization** Optional field for controlling ANI-based declines. #### API Ticket ACCAPI-2138
47
+ attr_accessor :decline_ani_flags
48
+
46
49
  # Flag for a sale request that indicates whether to allow the capture service to run even when the authorization receives a CVN decline, as indicated by an `processorInformation.cardVerification.resultCode` value of `D` or `N`. Possible values: - `true`: Ignore the results of CVN checking and run the capture service. - `false` (default): If the authorization receives a CVN decline, do not run the capture service. #### Used by **Authorization** Optional field.
47
50
  attr_accessor :ignore_cv_result
48
51
 
@@ -106,6 +109,7 @@ module CyberSource
106
109
  :'balance_inquiry' => :'balanceInquiry',
107
110
  :'ignore_avs_result' => :'ignoreAvsResult',
108
111
  :'decline_avs_flags' => :'declineAvsFlags',
112
+ :'decline_ani_flags' => :'declineAniFlags',
109
113
  :'ignore_cv_result' => :'ignoreCvResult',
110
114
  :'initiator' => :'initiator',
111
115
  :'bill_payment' => :'billPayment',
@@ -139,6 +143,7 @@ module CyberSource
139
143
  :'balance_inquiry' => :'balance_inquiry',
140
144
  :'ignore_avs_result' => :'ignore_avs_result',
141
145
  :'decline_avs_flags' => :'decline_avs_flags',
146
+ :'decline_ani_flags' => :'decline_ani_flags',
142
147
  :'ignore_cv_result' => :'ignore_cv_result',
143
148
  :'initiator' => :'initiator',
144
149
  :'bill_payment' => :'bill_payment',
@@ -172,6 +177,7 @@ module CyberSource
172
177
  :'balance_inquiry' => :'BOOLEAN',
173
178
  :'ignore_avs_result' => :'BOOLEAN',
174
179
  :'decline_avs_flags' => :'Array<String>',
180
+ :'decline_ani_flags' => :'Array<String>',
175
181
  :'ignore_cv_result' => :'BOOLEAN',
176
182
  :'initiator' => :'ProcessingInfoAuthorizationOptionsInitiator',
177
183
  :'bill_payment' => :'BOOLEAN',
@@ -244,6 +250,12 @@ module CyberSource
244
250
  end
245
251
  end
246
252
 
253
+ if attributes.has_key?(:'declineAniFlags')
254
+ if (value = attributes[:'declineAniFlags']).is_a?(Array)
255
+ self.decline_ani_flags = value
256
+ end
257
+ end
258
+
247
259
  if attributes.has_key?(:'ignoreCvResult')
248
260
  self.ignore_cv_result = attributes[:'ignoreCvResult']
249
261
  else
@@ -391,6 +403,7 @@ module CyberSource
391
403
  balance_inquiry == o.balance_inquiry &&
392
404
  ignore_avs_result == o.ignore_avs_result &&
393
405
  decline_avs_flags == o.decline_avs_flags &&
406
+ decline_ani_flags == o.decline_ani_flags &&
394
407
  ignore_cv_result == o.ignore_cv_result &&
395
408
  initiator == o.initiator &&
396
409
  bill_payment == o.bill_payment &&
@@ -419,7 +432,7 @@ module CyberSource
419
432
  # Calculates hash code according to all attributes.
420
433
  # @return [Fixnum] Hash code
421
434
  def hash
422
- [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator, transaction_mode, aft_indicator, service_type, balance_update, money_load].hash
435
+ [auth_type, pan_return_indicator, verbal_auth_code, verbal_auth_transaction_id, auth_indicator, partial_auth_indicator, extend_auth_indicator, balance_inquiry, ignore_avs_result, decline_avs_flags, decline_ani_flags, ignore_cv_result, initiator, bill_payment, bill_payment_type, redemption_inquiry, transportation_mode, aggregated_auth_indicator, debt_recovery_indicator, deferred_auth_indicator, cash_advance_indicator, split_payment_transaction, card_verification_indicator, transaction_mode, aft_indicator, service_type, balance_update, money_load].hash
423
436
  end
424
437
 
425
438
  # Builds the object from hash
@@ -0,0 +1,230 @@
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
+ class ProductFeedRequest
16
+ # Array of product records to ingest. Must contain at least one item. Each product must include all required fields: `is_eligible_search`, `is_eligible_checkout`, `item_id`, `title`, `description`, `url`, `brand`, `image_url`, `price`, `currency`, `availability`, `group_id`, `listing_has_variations`, `seller_name`, `seller_url`, `return_policy`, `target_countries`, and `store_country`.
17
+ attr_accessor :products
18
+
19
+ # Optional merchant identifier. When provided, used for syndication callback routing. Typically sourced from the `v-c-merchant-id` request header.
20
+ attr_accessor :merchant_id
21
+
22
+ # Optional feed version label for tracking incremental feed updates.
23
+ attr_accessor :feed_version
24
+
25
+ # Optional ISO 8601 timestamp indicating when the feed was generated by the merchant.
26
+ attr_accessor :timestamp
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'products' => :'products',
32
+ :'merchant_id' => :'merchantId',
33
+ :'feed_version' => :'feedVersion',
34
+ :'timestamp' => :'timestamp'
35
+ }
36
+ end
37
+
38
+ # Attribute mapping from JSON key to ruby-style variable name.
39
+ def self.json_map
40
+ {
41
+ :'products' => :'products',
42
+ :'merchant_id' => :'merchant_id',
43
+ :'feed_version' => :'feed_version',
44
+ :'timestamp' => :'timestamp'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'products' => :'Array<Iccv1productsfeedProducts>',
52
+ :'merchant_id' => :'String',
53
+ :'feed_version' => :'String',
54
+ :'timestamp' => :'String'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ return unless attributes.is_a?(Hash)
62
+
63
+ # convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
+
66
+ if attributes.has_key?(:'products')
67
+ if (value = attributes[:'products']).is_a?(Array)
68
+ self.products = value
69
+ end
70
+ end
71
+
72
+ if attributes.has_key?(:'merchantId')
73
+ self.merchant_id = attributes[:'merchantId']
74
+ end
75
+
76
+ if attributes.has_key?(:'feedVersion')
77
+ self.feed_version = attributes[:'feedVersion']
78
+ end
79
+
80
+ if attributes.has_key?(:'timestamp')
81
+ self.timestamp = attributes[:'timestamp']
82
+ end
83
+ end
84
+
85
+ # Show invalid properties with the reasons. Usually used together with valid?
86
+ # @return Array for valid properties with the reasons
87
+ def list_invalid_properties
88
+ invalid_properties = Array.new
89
+ if @products.nil?
90
+ invalid_properties.push('invalid value for "products", products cannot be nil.')
91
+ end
92
+
93
+ invalid_properties
94
+ end
95
+
96
+ # Check to see if the all the properties in the model are valid
97
+ # @return true if the model is valid
98
+ def valid?
99
+ return false if @products.nil?
100
+ true
101
+ end
102
+
103
+ # Checks equality by comparing each attribute.
104
+ # @param [Object] Object to be compared
105
+ def ==(o)
106
+ return true if self.equal?(o)
107
+ self.class == o.class &&
108
+ products == o.products &&
109
+ merchant_id == o.merchant_id &&
110
+ feed_version == o.feed_version &&
111
+ timestamp == o.timestamp
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Fixnum] Hash code
122
+ def hash
123
+ [products, merchant_id, feed_version, timestamp].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ self.class.swagger_types.each_pair do |key, type|
132
+ if type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the the attribute
134
+ # is documented as an array but the input is not
135
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
136
+ self.send("#{self.class.json_map[key]}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !attributes[self.class.attribute_map[key]].nil?
139
+ self.send("#{self.class.json_map[key]}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
140
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
141
+ end
142
+
143
+ self
144
+ end
145
+
146
+ # Deserializes the data based on type
147
+ # @param string type Data type
148
+ # @param string value Value to be deserialized
149
+ # @return [Object] Deserialized data
150
+ def _deserialize(type, value)
151
+ case type.to_sym
152
+ when :DateTime
153
+ DateTime.parse(value)
154
+ when :Date
155
+ Date.parse(value)
156
+ when :String
157
+ value.to_s
158
+ when :Integer
159
+ value.to_i
160
+ when :Float
161
+ value.to_f
162
+ when :BOOLEAN
163
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
164
+ true
165
+ else
166
+ false
167
+ end
168
+ when :Object
169
+ # generic object (usually a Hash), return directly
170
+ value
171
+ when /\AArray<(?<inner_type>.+)>\z/
172
+ inner_type = Regexp.last_match[:inner_type]
173
+ value.map { |v| _deserialize(inner_type, v) }
174
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
175
+ k_type = Regexp.last_match[:k_type]
176
+ v_type = Regexp.last_match[:v_type]
177
+ {}.tap do |hash|
178
+ value.each do |k, v|
179
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
180
+ end
181
+ end
182
+ else # model
183
+ temp_model = CyberSource.const_get(type).new
184
+ temp_model.build_from_hash(value)
185
+ end
186
+ end
187
+
188
+ # Returns the string representation of the object
189
+ # @return [String] String presentation of the object
190
+ def to_s
191
+ to_hash.to_s
192
+ end
193
+
194
+ # to_body is an alias to to_hash (backward compatibility)
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_body
197
+ to_hash
198
+ end
199
+
200
+ # Returns the object in the form of hash
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_hash
203
+ hash = {}
204
+ self.class.attribute_map.each_pair do |attr, param|
205
+ value = self.send(attr)
206
+ next if value.nil?
207
+ hash[param] = _to_hash(value)
208
+ end
209
+ hash
210
+ end
211
+
212
+ # Outputs non-array value in the form of hash
213
+ # For object, use to_hash. Otherwise, just return the value
214
+ # @param [Object] value Any valid value
215
+ # @return [Hash] Returns the value in the form of hash
216
+ def _to_hash(value)
217
+ if value.is_a?(Array)
218
+ value.compact.map { |v| _to_hash(v) }
219
+ elsif value.is_a?(Hash)
220
+ {}.tap do |hash|
221
+ value.each { |k, v| hash[k] = _to_hash(v) }
222
+ end
223
+ elsif value.respond_to? :to_hash
224
+ value.to_hash
225
+ else
226
+ value
227
+ end
228
+ end
229
+ end
230
+ end
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Ptsv1pushfundstransferOrderInformationAmountDetails
16
- # Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places.
16
+ # Grand total for the order. This value cannot be negative. You can include a decimal point (.), but no other special characters. CyberSource truncates the amount to the correct number of decimal places. Note For VPC, FDCCompass, Paymentech, Visa Direct, and Mastercard Send processors, the maximum supported numeric characters is 12. Important Some processors have specific requirements and limitations, such as maximum amounts and maximum field lengths. For zero dollar authorizations, this field may set to 0.00. Zero dollar authorizations are used for account validation only and do not place a hold or move funds.
17
17
  attr_accessor :total_amount
18
18
 
19
19
  # Use a 3-character alpha currency code for currency of the funds transfer. ISO standard currencies: http://apps.cybersource.com/library/documentation/sbc/quickref/currencies.pdf Currency must be supported by the processor.
@@ -13,7 +13,7 @@ require 'date'
13
13
 
14
14
  module CyberSource
15
15
  class Ptsv1pushfundstransferProcessingInformation
16
- # Money Transfer (MT) - `AA`: Account to Account - `BI`: Bank-Initiated Money Transfer - `CD`: Cash Deposit - `FT`: Funds Transfer - `TU`: Prepaid Card Loan - `WT`: Wallet Transfer-Staged Digital Wallet (SDW) Transfer - `PP`: P2P Money Transfer Funds Disbursement (FD) - `BB`: Business-to-business Supplier Payments - `BP`: Non-Card Bill Pay - `CP`: Credit Card Bill Pay - `FD`: General Funds Disbursements - `GD`: Government Disbursements and Government Initiated Tax Refunds - `GP`: Gambling/Gaming Payouts (other than online gaming) - `LO`: Loyalty Payments - `MD`: Merchant Settlement - `MI`: Faster Refunds - `OG`: Online Gambling Payouts - `PD`: Payroll and Pension Disbursements - `RP`: Request-to-Pay Service
16
+ # Payouts transaction type. Money Transfer (MT) - `AA`: Account to Account - `BI`: Bank-Initiated Money Transfer - `CD`: Cash Deposit - `FT`: Funds Transfer - `LA`: Liquid Assets - `PP`: P2P Money Transfer - `WT`: Wallet Transfer-Staged Digital Wallet (SDW) Transfer Funds Disbursement (FD) - `BB`: Business-to-business Supplier Payments - `BP`: Non-Card Bill Pay - `CP`: Credit Card Bill Pay - `FD`: General Funds Disbursements - `GD`: Government Disbursements and Government Initiated Tax Refunds - `GP`: Gambling/Gaming Payouts (other than online gaming) - `LO`: Loyalty Payments - `MD`: Merchant Settlement - `MI`: Faster Refunds - `OG`: Online Gambling Payouts - `PD`: Payroll and Pension Disbursements - `RP`: Request-to-Pay Service - `TU`: Prepaid Card Load Supported BAIs vary by payment gateway and configuration. Clients are responsible for confirming gateway specific BAI availability. Conditional - If not provided in payload, the value is picked from Merchant Configuration.
17
17
  attr_accessor :business_application_id
18
18
 
19
19
  attr_accessor :payouts_options
@@ -21,9 +21,15 @@ module CyberSource
21
21
  # Fee Program Indicator. This field identifies the interchange fee program applicable to each financial transaction. Fee program indicator (FPI) values correspond to the fee descriptor and rate for each existing fee program.
22
22
  attr_accessor :fee_program_id
23
23
 
24
- # Merchant payment gateway ID that is assigned by Mastercard and is provided by the acquirer when a registered merchant payment gateway service provider is involved in the transaction. This field is supported for Visa Platform Connect, Chase Paymentech Salem.
24
+ # Merchant payment gateway ID that is assigned by Mastercard and is provided by the acquirer when a registered merchant payment gateway service provider is involved in the transaction.
25
25
  attr_accessor :network_partner_id
26
26
 
27
+ # Transaction Type Identifier for Mastercard Send. 3-character code that identifies the transaction type on the Mastercard network. When provided, this value takes priority over businessApplicationId for determining the payment type.
28
+ attr_accessor :transaction_type_indicator
29
+
30
+ # The IRD used for clearing the transaction on the Mastercard network. Details - Alphanumeric, length 2 characters. This field is supported for Visa Platform Connect, Chase Paymentech Salem.
31
+ attr_accessor :interchange_rate_designator
32
+
27
33
  # This field contains coding that identifies (1) the customer transaction type and (2) the customer account types affected by the transaction. Default: 5402 (Original Credit Transaction) Contains codes that combined with some other fields such as the BAI (Business Application Id) identify some unique use cases. For Sales Tax rebates this field should be populated with the value 5120 (Value-added tax/Sales Tax) along with the businessApplicationId field set to the value 'FD' which indicates this push funds transfer is being conducted in order to facilitate a sales tax refund.
28
34
  attr_accessor :processing_code
29
35
 
@@ -46,6 +52,8 @@ module CyberSource
46
52
  :'payouts_options' => :'payoutsOptions',
47
53
  :'fee_program_id' => :'feeProgramId',
48
54
  :'network_partner_id' => :'networkPartnerId',
55
+ :'transaction_type_indicator' => :'transactionTypeIndicator',
56
+ :'interchange_rate_designator' => :'interchangeRateDesignator',
49
57
  :'processing_code' => :'processingCode',
50
58
  :'sharing_group_code' => :'sharingGroupCode',
51
59
  :'purpose_of_payment' => :'purposeOfPayment',
@@ -61,6 +69,8 @@ module CyberSource
61
69
  :'payouts_options' => :'payouts_options',
62
70
  :'fee_program_id' => :'fee_program_id',
63
71
  :'network_partner_id' => :'network_partner_id',
72
+ :'transaction_type_indicator' => :'transaction_type_indicator',
73
+ :'interchange_rate_designator' => :'interchange_rate_designator',
64
74
  :'processing_code' => :'processing_code',
65
75
  :'sharing_group_code' => :'sharing_group_code',
66
76
  :'purpose_of_payment' => :'purpose_of_payment',
@@ -76,6 +86,8 @@ module CyberSource
76
86
  :'payouts_options' => :'Ptsv1pushfundstransferProcessingInformationPayoutsOptions',
77
87
  :'fee_program_id' => :'String',
78
88
  :'network_partner_id' => :'String',
89
+ :'transaction_type_indicator' => :'String',
90
+ :'interchange_rate_designator' => :'String',
79
91
  :'processing_code' => :'String',
80
92
  :'sharing_group_code' => :'String',
81
93
  :'purpose_of_payment' => :'String',
@@ -108,6 +120,14 @@ module CyberSource
108
120
  self.network_partner_id = attributes[:'networkPartnerId']
109
121
  end
110
122
 
123
+ if attributes.has_key?(:'transactionTypeIndicator')
124
+ self.transaction_type_indicator = attributes[:'transactionTypeIndicator']
125
+ end
126
+
127
+ if attributes.has_key?(:'interchangeRateDesignator')
128
+ self.interchange_rate_designator = attributes[:'interchangeRateDesignator']
129
+ end
130
+
111
131
  if attributes.has_key?(:'processingCode')
112
132
  self.processing_code = attributes[:'processingCode']
113
133
  end
@@ -185,6 +205,18 @@ module CyberSource
185
205
  @network_partner_id = network_partner_id
186
206
  end
187
207
 
208
+ # Custom attribute writer method with validation
209
+ # @param [Object] transaction_type_indicator Value to be assigned
210
+ def transaction_type_indicator=(transaction_type_indicator)
211
+ @transaction_type_indicator = transaction_type_indicator
212
+ end
213
+
214
+ # Custom attribute writer method with validation
215
+ # @param [Object] interchange_rate_designator Value to be assigned
216
+ def interchange_rate_designator=(interchange_rate_designator)
217
+ @interchange_rate_designator = interchange_rate_designator
218
+ end
219
+
188
220
  # Custom attribute writer method with validation
189
221
  # @param [Object] processing_code Value to be assigned
190
222
  def processing_code=(processing_code)
@@ -222,6 +254,8 @@ module CyberSource
222
254
  payouts_options == o.payouts_options &&
223
255
  fee_program_id == o.fee_program_id &&
224
256
  network_partner_id == o.network_partner_id &&
257
+ transaction_type_indicator == o.transaction_type_indicator &&
258
+ interchange_rate_designator == o.interchange_rate_designator &&
225
259
  processing_code == o.processing_code &&
226
260
  sharing_group_code == o.sharing_group_code &&
227
261
  purpose_of_payment == o.purpose_of_payment &&
@@ -238,7 +272,7 @@ module CyberSource
238
272
  # Calculates hash code according to all attributes.
239
273
  # @return [Fixnum] Hash code
240
274
  def hash
241
- [business_application_id, payouts_options, fee_program_id, network_partner_id, processing_code, sharing_group_code, purpose_of_payment, reconciliation_id, account_verification_code].hash
275
+ [business_application_id, payouts_options, fee_program_id, network_partner_id, transaction_type_indicator, interchange_rate_designator, processing_code, sharing_group_code, purpose_of_payment, reconciliation_id, account_verification_code].hash
242
276
  end
243
277
 
244
278
  # Builds the object from hash
@@ -69,6 +69,8 @@ module CyberSource
69
69
 
70
70
  attr_accessor :authorization_options
71
71
 
72
+ attr_accessor :card_verification
73
+
72
74
  attr_accessor :capture_options
73
75
 
74
76
  attr_accessor :recurring_options
@@ -170,6 +172,7 @@ module CyberSource
170
172
  :'visa_checkout_id' => :'visaCheckoutId',
171
173
  :'industry_data_type' => :'industryDataType',
172
174
  :'authorization_options' => :'authorizationOptions',
175
+ :'card_verification' => :'cardVerification',
173
176
  :'capture_options' => :'captureOptions',
174
177
  :'recurring_options' => :'recurringOptions',
175
178
  :'bank_transfer_options' => :'bankTransferOptions',
@@ -224,6 +227,7 @@ module CyberSource
224
227
  :'visa_checkout_id' => :'visa_checkout_id',
225
228
  :'industry_data_type' => :'industry_data_type',
226
229
  :'authorization_options' => :'authorization_options',
230
+ :'card_verification' => :'card_verification',
227
231
  :'capture_options' => :'capture_options',
228
232
  :'recurring_options' => :'recurring_options',
229
233
  :'bank_transfer_options' => :'bank_transfer_options',
@@ -278,6 +282,7 @@ module CyberSource
278
282
  :'visa_checkout_id' => :'String',
279
283
  :'industry_data_type' => :'String',
280
284
  :'authorization_options' => :'ProcessingInfoAuthorizationOptions',
285
+ :'card_verification' => :'Ptsv2paymentsProcessingInformationCardVerification',
281
286
  :'capture_options' => :'Ptsv2paymentsProcessingInformationCaptureOptions',
282
287
  :'recurring_options' => :'Ptsv2paymentsProcessingInformationRecurringOptions',
283
288
  :'bank_transfer_options' => :'Ptsv2paymentsProcessingInformationBankTransferOptions',
@@ -400,6 +405,10 @@ module CyberSource
400
405
  self.authorization_options = attributes[:'authorizationOptions']
401
406
  end
402
407
 
408
+ if attributes.has_key?(:'cardVerification')
409
+ self.card_verification = attributes[:'cardVerification']
410
+ end
411
+
403
412
  if attributes.has_key?(:'captureOptions')
404
413
  self.capture_options = attributes[:'captureOptions']
405
414
  end
@@ -722,6 +731,7 @@ module CyberSource
722
731
  visa_checkout_id == o.visa_checkout_id &&
723
732
  industry_data_type == o.industry_data_type &&
724
733
  authorization_options == o.authorization_options &&
734
+ card_verification == o.card_verification &&
725
735
  capture_options == o.capture_options &&
726
736
  recurring_options == o.recurring_options &&
727
737
  bank_transfer_options == o.bank_transfer_options &&
@@ -762,7 +772,7 @@ module CyberSource
762
772
  # Calculates hash code according to all attributes.
763
773
  # @return [Fixnum] Hash code
764
774
  def hash
765
- [action_list, enable_escrow_option, action_token_types, bin_source, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, transaction_timeout, intents_id, report_group, visa_checkout_id, industry_data_type, authorization_options, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, merchant_verification_value, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, timeout, is_return_auth_record_enabled, network_partner_id, payment_type, enabler_id, processing_instruction, transaction_type_indicator, purpose_of_payment, language_code, original_payment_id, amex_indirect_model_type, wallet_transaction_intent, destination_type, program_indicators, inquiry_type].hash
775
+ [action_list, enable_escrow_option, action_token_types, bin_source, capture, processor_id, business_application_id, commerce_indicator, commerce_indicator_label, payment_solution, reconciliation_id, link_id, purchase_level, transaction_timeout, intents_id, report_group, visa_checkout_id, industry_data_type, authorization_options, card_verification, capture_options, recurring_options, bank_transfer_options, purchase_options, electronic_benefits_transfer, loan_options, wallet_type, national_net_domestic_data, merchant_verification_value, japan_payment_options, mobile_remote_payment_type, extended_credit_total_count, network_routing_order, pay_by_points_indicator, timeout, is_return_auth_record_enabled, network_partner_id, payment_type, enabler_id, processing_instruction, transaction_type_indicator, purpose_of_payment, language_code, original_payment_id, amex_indirect_model_type, wallet_transaction_intent, destination_type, program_indicators, inquiry_type].hash
766
776
  end
767
777
 
768
778
  # Builds the object from hash