cybersource_rest_client 0.0.19 → 0.0.21

Sign up to get free protection for your applications and to get access to all the features.
Files changed (309) hide show
  1. checksums.yaml +4 -4
  2. data/lib/AuthenticationSDK/core/MerchantConfig.rb +4 -0
  3. data/lib/AuthenticationSDK/util/Constants.rb +8 -0
  4. data/lib/cybersource_rest_client.rb +104 -11
  5. data/lib/cybersource_rest_client/api/authentication_exemptions_api.rb +2 -2
  6. data/lib/cybersource_rest_client/api/conversion_details_api.rb +2 -2
  7. data/lib/cybersource_rest_client/api/decision_manager_api.rb +142 -0
  8. data/lib/cybersource_rest_client/api/download_dtd_api.rb +2 -2
  9. data/lib/cybersource_rest_client/api/download_xsd_api.rb +2 -2
  10. data/lib/cybersource_rest_client/api/net_fundings_api.rb +2 -2
  11. data/lib/cybersource_rest_client/api/notification_of_changes_api.rb +2 -2
  12. data/lib/cybersource_rest_client/api/payer_authentication_api.rb +78 -13
  13. data/lib/cybersource_rest_client/api/payment_batch_summaries_api.rb +2 -2
  14. data/lib/cybersource_rest_client/api/payments_api.rb +71 -0
  15. data/lib/cybersource_rest_client/api/purchase_and_refund_details_api.rb +2 -2
  16. data/lib/cybersource_rest_client/api/report_definitions_api.rb +4 -4
  17. data/lib/cybersource_rest_client/api/report_downloads_api.rb +2 -2
  18. data/lib/cybersource_rest_client/api/report_subscriptions_api.rb +87 -87
  19. data/lib/cybersource_rest_client/api/reports_api.rb +4 -4
  20. data/lib/cybersource_rest_client/api/reversal_api.rb +65 -0
  21. data/lib/cybersource_rest_client/api/search_transactions_api.rb +4 -4
  22. data/lib/cybersource_rest_client/api/secure_file_share_api.rb +4 -4
  23. data/lib/cybersource_rest_client/api/tokenization_api.rb +2 -2
  24. data/lib/cybersource_rest_client/api/transaction_batches_api.rb +15 -9
  25. data/lib/cybersource_rest_client/api/user_management_api.rb +2 -2
  26. data/lib/cybersource_rest_client/api/verification_api.rb +154 -0
  27. data/lib/cybersource_rest_client/api/void_api.rb +65 -0
  28. data/lib/cybersource_rest_client/models/add_negative_list_request.rb +228 -0
  29. data/lib/cybersource_rest_client/models/authentication_exemptions_request.rb +1 -1
  30. data/lib/cybersource_rest_client/models/capture_payment_request.rb +22 -4
  31. data/lib/cybersource_rest_client/models/check_payer_auth_enrollment_request.rb +11 -2
  32. data/lib/cybersource_rest_client/models/create_credit_request.rb +32 -5
  33. data/lib/cybersource_rest_client/models/create_instrument_identifier_request.rb +1 -1
  34. data/lib/cybersource_rest_client/models/create_payment_request.rb +22 -4
  35. data/lib/cybersource_rest_client/models/create_report_subscription_request.rb +1 -1
  36. data/lib/cybersource_rest_client/models/embedded_instrument_identifier_response.rb +10 -1
  37. data/lib/cybersource_rest_client/models/error.rb +13 -23
  38. data/lib/cybersource_rest_client/models/error_bean.rb +1 -1
  39. data/lib/cybersource_rest_client/models/error_links.rb +15 -15
  40. data/lib/cybersource_rest_client/models/error_response.rb +20 -2
  41. data/lib/cybersource_rest_client/models/fraud_marking_action_request.rb +183 -0
  42. data/lib/cybersource_rest_client/models/generate_public_key_request.rb +14 -4
  43. data/lib/cybersource_rest_client/models/increment_auth_request.rb +219 -0
  44. data/lib/cybersource_rest_client/models/inline_response_400.rb +14 -59
  45. data/lib/cybersource_rest_client/models/inline_response_400_1.rb +59 -14
  46. data/lib/cybersource_rest_client/models/{inline_response_400_fields.rb → inline_response_400_1_fields.rb} +1 -1
  47. data/lib/cybersource_rest_client/models/instrument_identifier_enrollable_card.rb +1 -1
  48. data/lib/cybersource_rest_client/models/instrument_identifier_response.rb +10 -1
  49. data/lib/cybersource_rest_client/models/instrument_identifier_tokenized_card.rb +272 -0
  50. data/lib/cybersource_rest_client/models/key_parameters.rb +14 -4
  51. data/lib/cybersource_rest_client/models/link.rb +25 -4
  52. data/lib/cybersource_rest_client/models/links.rb +18 -23
  53. data/lib/cybersource_rest_client/models/mit_reversal_request.rb +219 -0
  54. data/lib/cybersource_rest_client/models/mit_void_request.rb +183 -0
  55. data/lib/cybersource_rest_client/models/oct_create_payment_request.rb +1 -1
  56. data/lib/cybersource_rest_client/models/payer_auth_setup_request.rb +210 -0
  57. data/lib/cybersource_rest_client/models/predefined_subscription_request_bean.rb +1 -1
  58. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response.rb +15 -6
  59. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_credit_amount_details.rb +1 -1
  60. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information.rb +14 -4
  61. data/lib/cybersource_rest_client/models/pts_v2_credits_post201_response_processing_information_bank_transfer_options.rb +1 -1
  62. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response.rb +298 -0
  63. data/lib/cybersource_rest_client/models/{pts_v2_payments_reversals_post201_response__links.rb → pts_v2_incremental_authorization_patch201_response__links.rb} +1 -1
  64. data/lib/cybersource_rest_client/models/{ptsv2payouts_client_reference_information.rb → pts_v2_incremental_authorization_patch201_response_client_reference_information.rb} +2 -2
  65. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_error_information.rb +205 -0
  66. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_order_information.rb +183 -0
  67. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information.rb +183 -0
  68. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_payment_information_account_features.rb +199 -0
  69. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch201_response_processor_information.rb +293 -0
  70. data/lib/cybersource_rest_client/models/pts_v2_incremental_authorization_patch400_response.rb +225 -0
  71. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response.rb +23 -5
  72. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information.rb +1 -1
  73. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_amount_details.rb +1 -1
  74. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_order_information_invoice_details.rb +184 -0
  75. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_point_of_sale_information.rb +199 -0
  76. data/lib/cybersource_rest_client/models/pts_v2_payments_captures_post201_response_processing_information.rb +184 -0
  77. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response.rb +1 -1
  78. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_client_reference_information.rb +2 -2
  79. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_installment_information.rb +264 -19
  80. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_issuer_information.rb +28 -3
  81. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_amount_details.rb +2 -2
  82. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_order_information_invoice_details.rb +29 -4
  83. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_account_features.rb +10 -10
  84. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank.rb +1 -1
  85. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_bank_account.rb +1 -1
  86. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_payment_information_tokenized_card.rb +2 -2
  87. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information.rb +35 -10
  88. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_point_of_sale_information_emv.rb +1 -1
  89. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information.rb +14 -4
  90. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processing_information_bank_transfer_options.rb +2 -2
  91. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information.rb +3 -28
  92. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_ach_verification.rb +2 -2
  93. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_card_verification.rb +1 -1
  94. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_consumer_authentication_response.rb +2 -2
  95. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_electronic_verification_results.rb +5 -5
  96. data/lib/cybersource_rest_client/models/pts_v2_payments_post201_response_processor_information_routing.rb +3 -3
  97. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response.rb +14 -5
  98. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_order_information.rb +1 -1
  99. data/lib/cybersource_rest_client/models/pts_v2_payments_refund_post201_response_refund_amount_details.rb +1 -1
  100. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response.rb +2 -2
  101. data/lib/cybersource_rest_client/models/pts_v2_payments_reversals_post201_response_reversal_amount_details.rb +3 -3
  102. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response.rb +2 -2
  103. data/lib/cybersource_rest_client/models/pts_v2_payments_voids_post201_response_void_amount_details.rb +1 -1
  104. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response.rb +2 -2
  105. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_order_information_amount_details.rb +2 -2
  106. data/lib/cybersource_rest_client/models/pts_v2_payouts_post201_response_processor_information.rb +1 -1
  107. data/lib/cybersource_rest_client/models/ptsv2credits_installment_information.rb +199 -0
  108. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information.rb +108 -15
  109. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_bank_transfer_options.rb +3 -3
  110. data/lib/cybersource_rest_client/models/ptsv2credits_processing_information_japan_payment_options.rb +209 -0
  111. data/lib/cybersource_rest_client/models/ptsv2payments_aggregator_information_sub_merchant.rb +32 -7
  112. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information.rb +2 -2
  113. data/lib/cybersource_rest_client/models/ptsv2payments_buyer_information_personal_identification.rb +1 -1
  114. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information.rb +17 -2
  115. data/lib/cybersource_rest_client/models/ptsv2payments_client_reference_information_partner.rb +29 -4
  116. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information.rb +55 -21
  117. data/lib/cybersource_rest_client/models/ptsv2payments_consumer_authentication_information_strong_authentication.rb +299 -0
  118. data/lib/cybersource_rest_client/models/ptsv2payments_installment_information.rb +74 -14
  119. data/lib/cybersource_rest_client/models/ptsv2payments_issuer_information.rb +1 -1
  120. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_defined_information.rb +2 -2
  121. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information.rb +1 -1
  122. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_information_merchant_descriptor.rb +26 -1
  123. data/lib/cybersource_rest_client/models/ptsv2payments_merchant_initiated_transaction.rb +1 -1
  124. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details.rb +21 -12
  125. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_currency_conversion.rb +249 -0
  126. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_amount_details_tax_details.rb +7 -7
  127. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_invoice_details.rb +30 -5
  128. data/lib/cybersource_rest_client/models/ptsv2payments_order_information_line_items.rb +10 -10
  129. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information.rb +29 -4
  130. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank.rb +1 -1
  131. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_bank_account.rb +1 -1
  132. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_card.rb +27 -2
  133. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_customer.rb +1 -1
  134. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_fluid_data.rb +1 -1
  135. data/lib/cybersource_rest_client/models/ptsv2payments_payment_information_tokenized_card.rb +1 -1
  136. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information.rb +91 -16
  137. data/lib/cybersource_rest_client/models/ptsv2payments_point_of_sale_information_emv.rb +3 -3
  138. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information.rb +158 -15
  139. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options.rb +19 -9
  140. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_authorization_options_initiator.rb +1 -1
  141. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_bank_transfer_options.rb +5 -5
  142. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_japan_payment_options.rb +359 -0
  143. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_loan_options.rb +224 -0
  144. data/lib/cybersource_rest_client/models/ptsv2payments_processing_information_recurring_options.rb +2 -2
  145. data/lib/cybersource_rest_client/models/ptsv2payments_promotion_information.rb +224 -0
  146. data/lib/cybersource_rest_client/models/ptsv2payments_recipient_information.rb +3 -3
  147. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information.rb +226 -0
  148. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_agency.rb +224 -0
  149. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging.rb +1229 -0
  150. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_lodging_room.rb +233 -0
  151. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit.rb +183 -0
  152. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline.rb +988 -0
  153. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information.rb +285 -0
  154. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ancillary_information_service.rb +224 -0
  155. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_legs.rb +614 -0
  156. data/lib/cybersource_rest_client/models/ptsv2payments_travel_information_transit_airline_ticket_issuer.rb +349 -0
  157. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information.rb +208 -0
  158. data/lib/cybersource_rest_client/models/ptsv2paymentsid_client_reference_information_partner.rb +249 -0
  159. data/lib/cybersource_rest_client/models/ptsv2paymentsid_merchant_information.rb +199 -0
  160. data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information.rb +183 -0
  161. data/lib/cybersource_rest_client/models/ptsv2paymentsid_order_information_amount_details.rb +224 -0
  162. data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information.rb +183 -0
  163. data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options.rb +183 -0
  164. data/lib/cybersource_rest_client/models/ptsv2paymentsid_processing_information_authorization_options_initiator.rb +184 -0
  165. data/lib/cybersource_rest_client/models/ptsv2paymentsid_travel_information.rb +199 -0
  166. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_aggregator_information_sub_merchant.rb +34 -9
  167. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_installment_information.rb +194 -19
  168. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_merchant_information.rb +1 -1
  169. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_order_information_amount_details.rb +7 -7
  170. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information.rb +13 -4
  171. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_payment_information_card.rb +224 -0
  172. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information.rb +6 -6
  173. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_point_of_sale_information_emv.rb +1 -1
  174. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information.rb +23 -14
  175. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_processing_information_authorization_options.rb +2 -2
  176. data/lib/cybersource_rest_client/models/ptsv2paymentsidcaptures_travel_information.rb +201 -0
  177. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_merchant_information.rb +1 -1
  178. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_order_information_line_items.rb +5 -5
  179. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information.rb +19 -1
  180. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_payment_information_card.rb +54 -4
  181. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information.rb +33 -8
  182. data/lib/cybersource_rest_client/models/ptsv2paymentsidrefunds_processing_information_recurring_options.rb +1 -1
  183. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information.rb +1 -1
  184. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_client_reference_information_partner.rb +29 -4
  185. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_order_information_line_items.rb +1 -1
  186. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_point_of_sale_information_emv.rb +1 -1
  187. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_processing_information.rb +4 -4
  188. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information.rb +1 -1
  189. data/lib/cybersource_rest_client/models/ptsv2paymentsidreversals_reversal_information_amount_details.rb +2 -2
  190. data/lib/cybersource_rest_client/models/ptsv2payouts_order_information_amount_details.rb +2 -2
  191. data/lib/cybersource_rest_client/models/ptsv2payouts_processing_information.rb +2 -2
  192. data/lib/cybersource_rest_client/models/refund_capture_request.rb +22 -4
  193. data/lib/cybersource_rest_client/models/refund_payment_request.rb +22 -4
  194. data/lib/cybersource_rest_client/models/reporting_v3_report_subscriptions_get200_response_subscriptions.rb +1 -1
  195. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response.rb +285 -0
  196. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address1.rb +224 -0
  197. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information.rb +327 -0
  198. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_bar_code.rb +209 -0
  199. data/lib/cybersource_rest_client/models/risk_v1_address_verifications_post201_response_address_verification_information_standard_address.rb +433 -0
  200. data/lib/cybersource_rest_client/models/risk_v1_authentication_exemptions_post201_response.rb +2 -2
  201. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response.rb +3 -3
  202. data/lib/cybersource_rest_client/models/risk_v1_authentication_results_post201_response_consumer_authentication_information.rb +249 -4
  203. data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response.rb +246 -0
  204. data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_consumer_authentication_information.rb +224 -0
  205. data/lib/cybersource_rest_client/models/risk_v1_authentication_setups_post201_response_error_information.rb +205 -0
  206. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response.rb +3 -3
  207. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_consumer_authentication_information.rb +386 -7
  208. data/lib/cybersource_rest_client/models/{riskv1authentications_consumer_authentication_information_ivr.rb → risk_v1_authentications_post201_response_consumer_authentication_information_ivr.rb} +1 -1
  209. data/lib/cybersource_rest_client/models/risk_v1_authentications_post201_response_order_information_amount_details.rb +1 -1
  210. data/lib/cybersource_rest_client/models/risk_v1_authentications_post400_response.rb +225 -0
  211. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response.rb +1 -1
  212. data/lib/cybersource_rest_client/models/risk_v1_decisions_post201_response_risk_information_ip_address.rb +54 -4
  213. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response.rb +285 -0
  214. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information.rb +229 -0
  215. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_export_compliance_information_watch_list.rb +185 -0
  216. data/lib/cybersource_rest_client/models/risk_v1_export_compliance_inquiries_post201_response_watch_list_matches.rb +235 -0
  217. data/lib/cybersource_rest_client/models/risk_v1_update_post201_response.rb +237 -0
  218. data/lib/cybersource_rest_client/models/riskv1addressverifications_buyer_information.rb +199 -0
  219. data/lib/cybersource_rest_client/models/riskv1addressverifications_client_reference_information.rb +233 -0
  220. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information.rb +203 -0
  221. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_bill_to.rb +410 -0
  222. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_line_items.rb +342 -0
  223. data/lib/cybersource_rest_client/models/riskv1addressverifications_order_information_ship_to.rb +392 -0
  224. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_acquirer_information.rb +1 -1
  225. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_order_information_line_items.rb +2 -2
  226. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information.rb +13 -4
  227. data/lib/cybersource_rest_client/models/riskv1authenticationexemptions_payment_information_fluid_data.rb +268 -0
  228. data/lib/cybersource_rest_client/models/riskv1authenticationresults_consumer_authentication_information.rb +4 -214
  229. data/lib/cybersource_rest_client/models/riskv1authenticationresults_order_information_line_items.rb +2 -2
  230. data/lib/cybersource_rest_client/models/riskv1authenticationresults_payment_information.rb +13 -4
  231. data/lib/cybersource_rest_client/models/riskv1authentications_acquirer_information.rb +1 -1
  232. data/lib/cybersource_rest_client/models/riskv1authentications_consumer_authentication_information.rb +4 -333
  233. data/lib/cybersource_rest_client/models/riskv1authentications_order_information_line_items.rb +2 -2
  234. data/lib/cybersource_rest_client/models/riskv1authentications_travel_information_legs.rb +2 -2
  235. data/lib/cybersource_rest_client/models/{riskv1authentications_client_reference_information.rb → riskv1authenticationsetups_client_reference_information.rb} +2 -2
  236. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information.rb +210 -0
  237. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_card.rb +286 -0
  238. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_payment_information_tokenized_card.rb +325 -0
  239. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_processing_information.rb +224 -0
  240. data/lib/cybersource_rest_client/models/riskv1authenticationsetups_token_information.rb +184 -0
  241. data/lib/cybersource_rest_client/models/riskv1decisions_buyer_information.rb +2 -2
  242. data/lib/cybersource_rest_client/models/riskv1decisions_card_verification.rb +1 -1
  243. data/lib/cybersource_rest_client/models/riskv1decisions_client_reference_information.rb +1 -1
  244. data/lib/cybersource_rest_client/models/riskv1decisions_device_information.rb +1 -26
  245. data/lib/cybersource_rest_client/models/riskv1decisions_order_information.rb +4 -13
  246. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_amount_details.rb +2 -2
  247. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_bill_to.rb +1 -26
  248. data/lib/cybersource_rest_client/models/riskv1decisions_order_information_line_items.rb +2 -2
  249. data/lib/cybersource_rest_client/models/riskv1decisions_payment_information.rb +4 -13
  250. data/lib/cybersource_rest_client/models/riskv1decisions_risk_information.rb +4 -13
  251. data/lib/cybersource_rest_client/models/riskv1decisions_travel_information_legs.rb +2 -2
  252. data/lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information.rb +183 -0
  253. data/lib/cybersource_rest_client/models/riskv1decisionsidmarking_risk_information_marking_details.rb +247 -0
  254. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_device_information.rb +224 -0
  255. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information.rb +205 -0
  256. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_export_compliance_information_weights.rb +249 -0
  257. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information.rb +203 -0
  258. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to.rb +503 -0
  259. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_bill_to_company.rb +199 -0
  260. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_line_items.rb +364 -0
  261. data/lib/cybersource_rest_client/models/riskv1exportcomplianceinquiries_order_information_ship_to.rb +249 -0
  262. data/lib/cybersource_rest_client/models/riskv1liststypeentries_buyer_information.rb +186 -0
  263. data/lib/cybersource_rest_client/models/riskv1liststypeentries_device_information.rb +224 -0
  264. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information.rb +213 -0
  265. data/lib/cybersource_rest_client/models/{riskv1decisions_order_information_address.rb → riskv1liststypeentries_order_information_address.rb} +1 -1
  266. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_bill_to.rb +449 -0
  267. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_line_items.rb +199 -0
  268. data/lib/cybersource_rest_client/models/riskv1liststypeentries_order_information_ship_to.rb +325 -0
  269. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information.rb +193 -0
  270. data/lib/cybersource_rest_client/models/{riskv1decisions_payment_information_bank.rb → riskv1liststypeentries_payment_information_bank.rb} +1 -1
  271. data/lib/cybersource_rest_client/models/riskv1liststypeentries_payment_information_card.rb +234 -0
  272. data/lib/cybersource_rest_client/models/riskv1liststypeentries_risk_information.rb +183 -0
  273. data/lib/cybersource_rest_client/models/{riskv1decisions_risk_information_marking_details.rb → riskv1liststypeentries_risk_information_marking_details.rb} +29 -44
  274. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_payment_instruments_embedded_instrument_identifier.rb +10 -1
  275. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response.rb +10 -1
  276. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_tokenized_card.rb +272 -0
  277. data/lib/cybersource_rest_client/models/tms_v1_instrument_identifiers_post200_response_tokenized_card_card.rb +253 -0
  278. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response.rb +1 -1
  279. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_application_information.rb +2 -2
  280. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_buyer_information.rb +1 -1
  281. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_client_reference_information.rb +1 -1
  282. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_consumer_authentication_information.rb +2 -2
  283. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_fraud_marking_information.rb +1 -1
  284. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_amount_details.rb +2 -2
  285. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_order_information_line_items.rb +1 -1
  286. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_account_features.rb +1 -1
  287. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank.rb +1 -1
  288. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_account.rb +1 -1
  289. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_payment_information_bank_mandate.rb +3 -3
  290. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_point_of_sale_information.rb +2 -2
  291. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information.rb +2 -2
  292. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_authorization_options.rb +1 -1
  293. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processing_information_bank_transfer_options.rb +1 -1
  294. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information.rb +2 -2
  295. data/lib/cybersource_rest_client/models/tss_v2_transactions_get200_response_processor_information_electronic_verification_results.rb +4 -4
  296. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response.rb +1 -1
  297. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_client_reference_information.rb +1 -1
  298. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_consumer_authentication_information.rb +1 -1
  299. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_merchant_information.rb +1 -1
  300. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_point_of_sale_information.rb +3 -3
  301. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_processing_information.rb +1 -1
  302. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_risk_information_providers_fingerprint.rb +2 -2
  303. data/lib/cybersource_rest_client/models/tss_v2_transactions_post201_response__embedded_transaction_summaries.rb +1 -1
  304. data/lib/cybersource_rest_client/models/validate_export_compliance_request.rb +219 -0
  305. data/lib/cybersource_rest_client/models/{request.rb → validate_request.rb} +12 -3
  306. data/lib/cybersource_rest_client/models/verify_customer_address_request.rb +201 -0
  307. metadata +107 -14
  308. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information.rb +0 -365
  309. data/lib/cybersource_rest_client/models/ptsv2credits_point_of_sale_information_emv.rb +0 -221
@@ -14,21 +14,39 @@ require 'date'
14
14
 
15
15
  module CyberSource
16
16
  class RiskV1AuthenticationResultsPost201ResponseConsumerAuthenticationInformation
17
+ # Identifies the UI Type the ACS will use to complete the challenge. **NOTE**: Only available for App transactions using the Cardinal Mobile SDK.
18
+ attr_accessor :acs_rendering_type
19
+
20
+ # Unique transaction identifier assigned by the ACS to identify a single transaction.
21
+ attr_accessor :acs_transaction_id
22
+
17
23
  # Raw authentication data that comes from the cardissuing bank. Primary authentication field that indicates if authentication was successful and if liability shift occurred. You should examine first the result of this field. This field contains one of these values: - `-1`: Invalid PARes. - `0`: Successful validation. - `1`: Cardholder is not participating, but the attempt to authenticate was recorded. - `6`: Issuer unable to perform authentication. - `9`: Cardholder did not complete authentication.
18
24
  attr_accessor :authentication_result
19
25
 
20
26
  # Message that explains the authenticationResult reply field.
21
27
  attr_accessor :authentication_status_msg
22
28
 
29
+ # The Base64 encoded JSON Payload of CB specific Authorization Values returned in the challenge Flow
30
+ attr_accessor :authorization_payload
31
+
23
32
  # Unique identifier generated by the card-issuing bank for Visa, American Express, JCB, Diners Club, and Discover transactions after the customer is authenticated. The value is in base64. When you request the card authorization service, CyberSource automatically converts the value, not the field name, to the format required by your payment processor.
24
33
  attr_accessor :cavv
25
34
 
26
35
  # Field that is returned only when the CAVV is generated, which occurs when paresStatus contains the values Y (successful authentication) or A (attempted authentication). If you use the ATOS processor, send the value of this field in the `cavv_algorithm` request field of the authorization service. This field contains one of these values: - `2`: Visa, American Express, JCB, Diners Club, and Discover - `3`: Mastercard
27
36
  attr_accessor :cavv_algorithm
28
37
 
38
+ # The directory server error code indicating a problem with this transaction.
39
+ attr_accessor :directory_server_error_code
40
+
41
+ # Directory server text and additional detail about the error for this transaction.
42
+ attr_accessor :directory_server_error_description
43
+
29
44
  # Indicator used to differentiate Internet transactions from other types. The authentication failed if this field is not returned. For Visa, if your payment processor is Streamline, Barclays, AIBMS, or FDC Germany, you receive the value vbv_failure instead of internet when eci is 07. The value of this field is passed automatically to the authorization service if you request the services together. This field contains one of these values: - `aesk`: American Express SafeKey authentication verified successfully. - `aesk_attempted`: Card not enrolled in American Express SafeKey, but the attempt to authenticate was recorded. - `dipb`: Discover ProtectBuy authentication verified successfully. - `dipb_attempted`: Card not enrolled in Discover ProtectBuy, but the attempt to authenticate was recorded. - `internet`: Authentication was not verified successfully. - `js`: J/Secure authentication verified successfully. - `js_attempted`: Card not enrolled in J/Secure, but the attempt to authenticate was recorded. - `moto`: Mail or telephone order. - `pb_attempted`: Card not enrolled in Diners Club ProtectBuy, but the attempt to authenticate was recorded. - `recurring`: Recurring transaction. - `spa`: Mastercard Identity Check authentication verified successfully. - `spa_failure`: Mastercard Identity Check failed authentication. - `vbv`: Visa Secure authentication verified successfully. - `vbv_attempted`: Card not enrolled in Visa Secure, but the attempt to authenticate was recorded. - `vbv_failure`: Visa Secure authentication unavailable.
30
45
  attr_accessor :indicator
31
46
 
47
+ # Indicates the number of authentication cycles attempted by the cardholder and is tracked by the Issuing Banks ACS.Example: if customer gets the challenge window and enter in their one time password and hit submit then that interaction counter should just be 1. When customer gets the challenge window and the bank asks if they want to have the one time password sent to their phone or their email and they have to choose before going to the next screen to enter in their one time password then this interaction count would be 2. One for the selection of how they want the one time password delivered and another with them actually entering in the one time password and hitting the submit button.
48
+ attr_accessor :interaction_counter
49
+
32
50
  # Note This field applies only to non-U.S-issued cards. For enroll, Numeric electronic commerce indicator (ECI) returned only for Visa, American Express, JCB, Diners Club, and Discover transactions when the card is not enrolled. For more information, see \"Interpreting the Reply,\" page 22. If you are not using the CyberSource payment services, you must send this value to your payment processor in the subsequent request for card authorization. This field contains one of these values: - `06`: The card can be enrolled. Liability shift. - `07`: The card cannot be enrolled. No liability shift. For validate, Numeric electronic commerce indicator (ECI) returned only for Visa, American Express, JCB, Diners Club, and Discover transactions. The field is absent when authentication fails. You must send this value to your payment processor in the subsequent request for card authorization. This field contains one of these values: - `05`: Successful authentication - `06`: Authentication attempted - `07`: Failed authentication (No response from the merchant because of a problem.)
33
51
  attr_accessor :eci
34
52
 
@@ -38,51 +56,88 @@ module CyberSource
38
56
  # Raw result of the authentication check. If you are configured for Asia, Middle East, and Africa Gateway Processing, you need to send the value of this field in your authorization request. This field can contain one of these values: - `A`: Proof of authentication attempt was generated. - `N`: Customer failed or canceled authentication. Transaction denied. - `U`: Authentication not completed regardless of the reason. - `Y`: Customer was successfully authenticated.
39
57
  attr_accessor :pares_status
40
58
 
59
+ # SDK unique transaction identifier that is generated on each new transaction.
60
+ attr_accessor :sdk_transaction_id
61
+
41
62
  # This field contains the 3D Secure version that was used to process the transaction. For example, 1.0.2 or 2.0.0.
42
63
  attr_accessor :specification_version
43
64
 
65
+ # Unique transaction identifier assigned by the 3DS Server to identify a single transaction.
66
+ attr_accessor :three_ds_server_transaction_id
67
+
44
68
  # AAV is a unique identifier generated by the card-issuing bank for Mastercard Identity Check transactions after the customer is authenticated. The value is in base64. Include the data in the card authorization request.
45
69
  attr_accessor :ucaf_authentication_data
46
70
 
47
71
  # For enroll, Returned only for Mastercard transactions. Indicates that authentication is not required because the customer is not enrolled. Add the value of this field to the authorization field ucaf_collection_indicator. This field can contain these values: 0, 1. For validate, Numeric electronic commerce indicator (ECI) returned only for Mastercard Identity Check transactions. The field is absent when authentication fails. You must send this value to your payment processor in the request for card authorization. This field contain one of these values: - `0`: Authentication data not collected, and customer authentication was not completed. - `1`: Authentication data not collected because customer authentication was not completed. - `2`: Authentication data collected because customer completed authentication.
48
72
  attr_accessor :ucaf_collection_indicator
49
73
 
74
+ # Enables the communication of trusted beneficiary/whitelist status between the ACS, the DS and the 3DS Requestor. Possible Values: Y - 3DS Requestor is whitelisted by cardholder N - 3DS Requestor is not whitelisted by cardholder
75
+ attr_accessor :white_list_status
76
+
77
+ # This data element will be populated by the system setting Whitelist Status. Possible Values: 01 - 3DS/ Server/ 02 – DS/03 - ACS
78
+ attr_accessor :white_list_status_source
79
+
50
80
  # Transaction identifier generated by CyberSource for successful enrollment or validation checks. Use this value, which is in base64, to match an outgoing PAReq with an incoming PARes. CyberSource forwards the XID with the card authorization service to these payment processors in these cases: - Barclays - Streamline (when the **ecommerceIndicator**`=spa`)
51
81
  attr_accessor :xid
52
82
 
83
+ # The Directory Server Transaction ID is generated by the Mastercard Directory Server during the authentication transaction and passed back to the merchant with the authentication results. For Cybersource Through Visanet Gateway: The value for this field corresponds to the following data in the TC 33 capture file3: Record: CP01 TCR7, Position: 114-149, Field: MC AVV Verification—Directory Server Transaction ID
84
+ attr_accessor :directory_server_transaction_id
85
+
53
86
  # Attribute mapping from ruby-style variable name to JSON key.
54
87
  def self.attribute_map
55
88
  {
89
+ :'acs_rendering_type' => :'acsRenderingType',
90
+ :'acs_transaction_id' => :'acsTransactionId',
56
91
  :'authentication_result' => :'authenticationResult',
57
92
  :'authentication_status_msg' => :'authenticationStatusMsg',
93
+ :'authorization_payload' => :'authorizationPayload',
58
94
  :'cavv' => :'cavv',
59
95
  :'cavv_algorithm' => :'cavvAlgorithm',
96
+ :'directory_server_error_code' => :'directoryServerErrorCode',
97
+ :'directory_server_error_description' => :'directoryServerErrorDescription',
60
98
  :'indicator' => :'indicator',
99
+ :'interaction_counter' => :'interactionCounter',
61
100
  :'eci' => :'eci',
62
101
  :'eci_raw' => :'eciRaw',
63
102
  :'pares_status' => :'paresStatus',
103
+ :'sdk_transaction_id' => :'sdkTransactionId',
64
104
  :'specification_version' => :'specificationVersion',
105
+ :'three_ds_server_transaction_id' => :'threeDSServerTransactionId',
65
106
  :'ucaf_authentication_data' => :'ucafAuthenticationData',
66
107
  :'ucaf_collection_indicator' => :'ucafCollectionIndicator',
67
- :'xid' => :'xid'
108
+ :'white_list_status' => :'whiteListStatus',
109
+ :'white_list_status_source' => :'whiteListStatusSource',
110
+ :'xid' => :'xid',
111
+ :'directory_server_transaction_id' => :'directoryServerTransactionId'
68
112
  }
69
113
  end
70
114
 
71
115
  # Attribute type mapping.
72
116
  def self.swagger_types
73
117
  {
118
+ :'acs_rendering_type' => :'String',
119
+ :'acs_transaction_id' => :'String',
74
120
  :'authentication_result' => :'String',
75
121
  :'authentication_status_msg' => :'String',
122
+ :'authorization_payload' => :'String',
76
123
  :'cavv' => :'String',
77
124
  :'cavv_algorithm' => :'String',
125
+ :'directory_server_error_code' => :'String',
126
+ :'directory_server_error_description' => :'String',
78
127
  :'indicator' => :'String',
128
+ :'interaction_counter' => :'String',
79
129
  :'eci' => :'String',
80
130
  :'eci_raw' => :'String',
81
131
  :'pares_status' => :'String',
132
+ :'sdk_transaction_id' => :'String',
82
133
  :'specification_version' => :'String',
134
+ :'three_ds_server_transaction_id' => :'String',
83
135
  :'ucaf_authentication_data' => :'String',
84
136
  :'ucaf_collection_indicator' => :'Float',
85
- :'xid' => :'String'
137
+ :'white_list_status' => :'String',
138
+ :'white_list_status_source' => :'String',
139
+ :'xid' => :'String',
140
+ :'directory_server_transaction_id' => :'String'
86
141
  }
87
142
  end
88
143
 
@@ -94,6 +149,14 @@ module CyberSource
94
149
  # convert string to symbol for hash key
95
150
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
96
151
 
152
+ if attributes.has_key?(:'acsRenderingType')
153
+ self.acs_rendering_type = attributes[:'acsRenderingType']
154
+ end
155
+
156
+ if attributes.has_key?(:'acsTransactionId')
157
+ self.acs_transaction_id = attributes[:'acsTransactionId']
158
+ end
159
+
97
160
  if attributes.has_key?(:'authenticationResult')
98
161
  self.authentication_result = attributes[:'authenticationResult']
99
162
  end
@@ -102,6 +165,10 @@ module CyberSource
102
165
  self.authentication_status_msg = attributes[:'authenticationStatusMsg']
103
166
  end
104
167
 
168
+ if attributes.has_key?(:'authorizationPayload')
169
+ self.authorization_payload = attributes[:'authorizationPayload']
170
+ end
171
+
105
172
  if attributes.has_key?(:'cavv')
106
173
  self.cavv = attributes[:'cavv']
107
174
  end
@@ -110,10 +177,22 @@ module CyberSource
110
177
  self.cavv_algorithm = attributes[:'cavvAlgorithm']
111
178
  end
112
179
 
180
+ if attributes.has_key?(:'directoryServerErrorCode')
181
+ self.directory_server_error_code = attributes[:'directoryServerErrorCode']
182
+ end
183
+
184
+ if attributes.has_key?(:'directoryServerErrorDescription')
185
+ self.directory_server_error_description = attributes[:'directoryServerErrorDescription']
186
+ end
187
+
113
188
  if attributes.has_key?(:'indicator')
114
189
  self.indicator = attributes[:'indicator']
115
190
  end
116
191
 
192
+ if attributes.has_key?(:'interactionCounter')
193
+ self.interaction_counter = attributes[:'interactionCounter']
194
+ end
195
+
117
196
  if attributes.has_key?(:'eci')
118
197
  self.eci = attributes[:'eci']
119
198
  end
@@ -126,10 +205,18 @@ module CyberSource
126
205
  self.pares_status = attributes[:'paresStatus']
127
206
  end
128
207
 
208
+ if attributes.has_key?(:'sdkTransactionId')
209
+ self.sdk_transaction_id = attributes[:'sdkTransactionId']
210
+ end
211
+
129
212
  if attributes.has_key?(:'specificationVersion')
130
213
  self.specification_version = attributes[:'specificationVersion']
131
214
  end
132
215
 
216
+ if attributes.has_key?(:'threeDSServerTransactionId')
217
+ self.three_ds_server_transaction_id = attributes[:'threeDSServerTransactionId']
218
+ end
219
+
133
220
  if attributes.has_key?(:'ucafAuthenticationData')
134
221
  self.ucaf_authentication_data = attributes[:'ucafAuthenticationData']
135
222
  end
@@ -138,15 +225,31 @@ module CyberSource
138
225
  self.ucaf_collection_indicator = attributes[:'ucafCollectionIndicator']
139
226
  end
140
227
 
228
+ if attributes.has_key?(:'whiteListStatus')
229
+ self.white_list_status = attributes[:'whiteListStatus']
230
+ end
231
+
232
+ if attributes.has_key?(:'whiteListStatusSource')
233
+ self.white_list_status_source = attributes[:'whiteListStatusSource']
234
+ end
235
+
141
236
  if attributes.has_key?(:'xid')
142
237
  self.xid = attributes[:'xid']
143
238
  end
239
+
240
+ if attributes.has_key?(:'directoryServerTransactionId')
241
+ self.directory_server_transaction_id = attributes[:'directoryServerTransactionId']
242
+ end
144
243
  end
145
244
 
146
245
  # Show invalid properties with the reasons. Usually used together with valid?
147
246
  # @return Array for valid properties with the reasons
148
247
  def list_invalid_properties
149
248
  invalid_properties = Array.new
249
+ if !@acs_transaction_id.nil? && @acs_transaction_id.to_s.length > 36
250
+ invalid_properties.push('invalid value for "acs_transaction_id", the character length must be smaller than or equal to 36.')
251
+ end
252
+
150
253
  if !@cavv.nil? && @cavv.to_s.length > 255
151
254
  invalid_properties.push('invalid value for "cavv", the character length must be smaller than or equal to 255.')
152
255
  end
@@ -155,17 +258,68 @@ module CyberSource
155
258
  invalid_properties.push('invalid value for "cavv_algorithm", the character length must be smaller than or equal to 1.')
156
259
  end
157
260
 
261
+ if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
262
+ invalid_properties.push('invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.')
263
+ end
264
+
265
+ if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
266
+ invalid_properties.push('invalid value for "directory_server_error_description", the character length must be smaller than or equal to 4096.')
267
+ end
268
+
269
+ if !@interaction_counter.nil? && @interaction_counter.to_s.length > 2
270
+ invalid_properties.push('invalid value for "interaction_counter", the character length must be smaller than or equal to 2.')
271
+ end
272
+
273
+ if !@sdk_transaction_id.nil? && @sdk_transaction_id.to_s.length > 36
274
+ invalid_properties.push('invalid value for "sdk_transaction_id", the character length must be smaller than or equal to 36.')
275
+ end
276
+
277
+ if !@three_ds_server_transaction_id.nil? && @three_ds_server_transaction_id.to_s.length > 36
278
+ invalid_properties.push('invalid value for "three_ds_server_transaction_id", the character length must be smaller than or equal to 36.')
279
+ end
280
+
281
+ if !@white_list_status.nil? && @white_list_status.to_s.length > 1
282
+ invalid_properties.push('invalid value for "white_list_status", the character length must be smaller than or equal to 1.')
283
+ end
284
+
285
+ if !@white_list_status_source.nil? && @white_list_status_source.to_s.length > 2
286
+ invalid_properties.push('invalid value for "white_list_status_source", the character length must be smaller than or equal to 2.')
287
+ end
288
+
289
+ if !@directory_server_transaction_id.nil? && @directory_server_transaction_id.to_s.length > 36
290
+ invalid_properties.push('invalid value for "directory_server_transaction_id", the character length must be smaller than or equal to 36.')
291
+ end
292
+
158
293
  invalid_properties
159
294
  end
160
295
 
161
296
  # Check to see if the all the properties in the model are valid
162
297
  # @return true if the model is valid
163
298
  def valid?
299
+ return false if !@acs_transaction_id.nil? && @acs_transaction_id.to_s.length > 36
164
300
  return false if !@cavv.nil? && @cavv.to_s.length > 255
165
301
  return false if !@cavv_algorithm.nil? && @cavv_algorithm.to_s.length > 1
302
+ return false if !@directory_server_error_code.nil? && @directory_server_error_code.to_s.length > 3
303
+ return false if !@directory_server_error_description.nil? && @directory_server_error_description.to_s.length > 4096
304
+ return false if !@interaction_counter.nil? && @interaction_counter.to_s.length > 2
305
+ return false if !@sdk_transaction_id.nil? && @sdk_transaction_id.to_s.length > 36
306
+ return false if !@three_ds_server_transaction_id.nil? && @three_ds_server_transaction_id.to_s.length > 36
307
+ return false if !@white_list_status.nil? && @white_list_status.to_s.length > 1
308
+ return false if !@white_list_status_source.nil? && @white_list_status_source.to_s.length > 2
309
+ return false if !@directory_server_transaction_id.nil? && @directory_server_transaction_id.to_s.length > 36
166
310
  true
167
311
  end
168
312
 
313
+ # Custom attribute writer method with validation
314
+ # @param [Object] acs_transaction_id Value to be assigned
315
+ def acs_transaction_id=(acs_transaction_id)
316
+ if !acs_transaction_id.nil? && acs_transaction_id.to_s.length > 36
317
+ fail ArgumentError, 'invalid value for "acs_transaction_id", the character length must be smaller than or equal to 36.'
318
+ end
319
+
320
+ @acs_transaction_id = acs_transaction_id
321
+ end
322
+
169
323
  # Custom attribute writer method with validation
170
324
  # @param [Object] cavv Value to be assigned
171
325
  def cavv=(cavv)
@@ -186,23 +340,114 @@ module CyberSource
186
340
  @cavv_algorithm = cavv_algorithm
187
341
  end
188
342
 
343
+ # Custom attribute writer method with validation
344
+ # @param [Object] directory_server_error_code Value to be assigned
345
+ def directory_server_error_code=(directory_server_error_code)
346
+ if !directory_server_error_code.nil? && directory_server_error_code.to_s.length > 3
347
+ fail ArgumentError, 'invalid value for "directory_server_error_code", the character length must be smaller than or equal to 3.'
348
+ end
349
+
350
+ @directory_server_error_code = directory_server_error_code
351
+ end
352
+
353
+ # Custom attribute writer method with validation
354
+ # @param [Object] directory_server_error_description Value to be assigned
355
+ def directory_server_error_description=(directory_server_error_description)
356
+ if !directory_server_error_description.nil? && directory_server_error_description.to_s.length > 4096
357
+ fail ArgumentError, 'invalid value for "directory_server_error_description", the character length must be smaller than or equal to 4096.'
358
+ end
359
+
360
+ @directory_server_error_description = directory_server_error_description
361
+ end
362
+
363
+ # Custom attribute writer method with validation
364
+ # @param [Object] interaction_counter Value to be assigned
365
+ def interaction_counter=(interaction_counter)
366
+ if !interaction_counter.nil? && interaction_counter.to_s.length > 2
367
+ fail ArgumentError, 'invalid value for "interaction_counter", the character length must be smaller than or equal to 2.'
368
+ end
369
+
370
+ @interaction_counter = interaction_counter
371
+ end
372
+
373
+ # Custom attribute writer method with validation
374
+ # @param [Object] sdk_transaction_id Value to be assigned
375
+ def sdk_transaction_id=(sdk_transaction_id)
376
+ if !sdk_transaction_id.nil? && sdk_transaction_id.to_s.length > 36
377
+ fail ArgumentError, 'invalid value for "sdk_transaction_id", the character length must be smaller than or equal to 36.'
378
+ end
379
+
380
+ @sdk_transaction_id = sdk_transaction_id
381
+ end
382
+
383
+ # Custom attribute writer method with validation
384
+ # @param [Object] three_ds_server_transaction_id Value to be assigned
385
+ def three_ds_server_transaction_id=(three_ds_server_transaction_id)
386
+ if !three_ds_server_transaction_id.nil? && three_ds_server_transaction_id.to_s.length > 36
387
+ fail ArgumentError, 'invalid value for "three_ds_server_transaction_id", the character length must be smaller than or equal to 36.'
388
+ end
389
+
390
+ @three_ds_server_transaction_id = three_ds_server_transaction_id
391
+ end
392
+
393
+ # Custom attribute writer method with validation
394
+ # @param [Object] white_list_status Value to be assigned
395
+ def white_list_status=(white_list_status)
396
+ if !white_list_status.nil? && white_list_status.to_s.length > 1
397
+ fail ArgumentError, 'invalid value for "white_list_status", the character length must be smaller than or equal to 1.'
398
+ end
399
+
400
+ @white_list_status = white_list_status
401
+ end
402
+
403
+ # Custom attribute writer method with validation
404
+ # @param [Object] white_list_status_source Value to be assigned
405
+ def white_list_status_source=(white_list_status_source)
406
+ if !white_list_status_source.nil? && white_list_status_source.to_s.length > 2
407
+ fail ArgumentError, 'invalid value for "white_list_status_source", the character length must be smaller than or equal to 2.'
408
+ end
409
+
410
+ @white_list_status_source = white_list_status_source
411
+ end
412
+
413
+ # Custom attribute writer method with validation
414
+ # @param [Object] directory_server_transaction_id Value to be assigned
415
+ def directory_server_transaction_id=(directory_server_transaction_id)
416
+ if !directory_server_transaction_id.nil? && directory_server_transaction_id.to_s.length > 36
417
+ fail ArgumentError, 'invalid value for "directory_server_transaction_id", the character length must be smaller than or equal to 36.'
418
+ end
419
+
420
+ @directory_server_transaction_id = directory_server_transaction_id
421
+ end
422
+
189
423
  # Checks equality by comparing each attribute.
190
424
  # @param [Object] Object to be compared
191
425
  def ==(o)
192
426
  return true if self.equal?(o)
193
427
  self.class == o.class &&
428
+ acs_rendering_type == o.acs_rendering_type &&
429
+ acs_transaction_id == o.acs_transaction_id &&
194
430
  authentication_result == o.authentication_result &&
195
431
  authentication_status_msg == o.authentication_status_msg &&
432
+ authorization_payload == o.authorization_payload &&
196
433
  cavv == o.cavv &&
197
434
  cavv_algorithm == o.cavv_algorithm &&
435
+ directory_server_error_code == o.directory_server_error_code &&
436
+ directory_server_error_description == o.directory_server_error_description &&
198
437
  indicator == o.indicator &&
438
+ interaction_counter == o.interaction_counter &&
199
439
  eci == o.eci &&
200
440
  eci_raw == o.eci_raw &&
201
441
  pares_status == o.pares_status &&
442
+ sdk_transaction_id == o.sdk_transaction_id &&
202
443
  specification_version == o.specification_version &&
444
+ three_ds_server_transaction_id == o.three_ds_server_transaction_id &&
203
445
  ucaf_authentication_data == o.ucaf_authentication_data &&
204
446
  ucaf_collection_indicator == o.ucaf_collection_indicator &&
205
- xid == o.xid
447
+ white_list_status == o.white_list_status &&
448
+ white_list_status_source == o.white_list_status_source &&
449
+ xid == o.xid &&
450
+ directory_server_transaction_id == o.directory_server_transaction_id
206
451
  end
207
452
 
208
453
  # @see the `==` method
@@ -214,7 +459,7 @@ module CyberSource
214
459
  # Calculates hash code according to all attributes.
215
460
  # @return [Fixnum] Hash code
216
461
  def hash
217
- [authentication_result, authentication_status_msg, cavv, cavv_algorithm, indicator, eci, eci_raw, pares_status, specification_version, ucaf_authentication_data, ucaf_collection_indicator, xid].hash
462
+ [acs_rendering_type, acs_transaction_id, authentication_result, authentication_status_msg, authorization_payload, cavv, cavv_algorithm, directory_server_error_code, directory_server_error_description, indicator, interaction_counter, eci, eci_raw, pares_status, sdk_transaction_id, specification_version, three_ds_server_transaction_id, ucaf_authentication_data, ucaf_collection_indicator, white_list_status, white_list_status_source, xid, directory_server_transaction_id].hash
218
463
  end
219
464
 
220
465
  # Builds the object from hash
@@ -0,0 +1,246 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CyberSource
16
+ class RiskV1AuthenticationSetupsPost201Response
17
+ attr_accessor :_links
18
+
19
+ # An unique identification number assigned by CyberSource to identify the submitted request. It is also appended to the endpoint of the resource. On incremental authorizations, this value with be the same as the identification number returned in the original authorization response.
20
+ attr_accessor :id
21
+
22
+ # 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.
23
+ attr_accessor :submit_time_utc
24
+
25
+ # The status for payerAuthentication 201 setup calls. Possible value is: - COMPLETED - FAILED
26
+ attr_accessor :status
27
+
28
+ attr_accessor :consumer_authentication_information
29
+
30
+ attr_accessor :error_information
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'_links' => :'_links',
36
+ :'id' => :'id',
37
+ :'submit_time_utc' => :'submitTimeUtc',
38
+ :'status' => :'status',
39
+ :'consumer_authentication_information' => :'consumerAuthenticationInformation',
40
+ :'error_information' => :'errorInformation'
41
+ }
42
+ end
43
+
44
+ # Attribute type mapping.
45
+ def self.swagger_types
46
+ {
47
+ :'_links' => :'PtsV2IncrementalAuthorizationPatch201ResponseLinks',
48
+ :'id' => :'String',
49
+ :'submit_time_utc' => :'String',
50
+ :'status' => :'String',
51
+ :'consumer_authentication_information' => :'RiskV1AuthenticationSetupsPost201ResponseConsumerAuthenticationInformation',
52
+ :'error_information' => :'RiskV1AuthenticationSetupsPost201ResponseErrorInformation'
53
+ }
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ return unless attributes.is_a?(Hash)
60
+
61
+ # convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
63
+
64
+ if attributes.has_key?(:'_links')
65
+ self._links = attributes[:'_links']
66
+ end
67
+
68
+ if attributes.has_key?(:'id')
69
+ self.id = attributes[:'id']
70
+ end
71
+
72
+ if attributes.has_key?(:'submitTimeUtc')
73
+ self.submit_time_utc = attributes[:'submitTimeUtc']
74
+ end
75
+
76
+ if attributes.has_key?(:'status')
77
+ self.status = attributes[:'status']
78
+ end
79
+
80
+ if attributes.has_key?(:'consumerAuthenticationInformation')
81
+ self.consumer_authentication_information = attributes[:'consumerAuthenticationInformation']
82
+ end
83
+
84
+ if attributes.has_key?(:'errorInformation')
85
+ self.error_information = attributes[:'errorInformation']
86
+ end
87
+ end
88
+
89
+ # Show invalid properties with the reasons. Usually used together with valid?
90
+ # @return Array for valid properties with the reasons
91
+ def list_invalid_properties
92
+ invalid_properties = Array.new
93
+ if !@id.nil? && @id.to_s.length > 26
94
+ invalid_properties.push('invalid value for "id", the character length must be smaller than or equal to 26.')
95
+ end
96
+
97
+ invalid_properties
98
+ end
99
+
100
+ # Check to see if the all the properties in the model are valid
101
+ # @return true if the model is valid
102
+ def valid?
103
+ return false if !@id.nil? && @id.to_s.length > 26
104
+ true
105
+ end
106
+
107
+ # Custom attribute writer method with validation
108
+ # @param [Object] id Value to be assigned
109
+ def id=(id)
110
+ if !id.nil? && id.to_s.length > 26
111
+ fail ArgumentError, 'invalid value for "id", the character length must be smaller than or equal to 26.'
112
+ end
113
+
114
+ @id = id
115
+ end
116
+
117
+ # Checks equality by comparing each attribute.
118
+ # @param [Object] Object to be compared
119
+ def ==(o)
120
+ return true if self.equal?(o)
121
+ self.class == o.class &&
122
+ _links == o._links &&
123
+ id == o.id &&
124
+ submit_time_utc == o.submit_time_utc &&
125
+ status == o.status &&
126
+ consumer_authentication_information == o.consumer_authentication_information &&
127
+ error_information == o.error_information
128
+ end
129
+
130
+ # @see the `==` method
131
+ # @param [Object] Object to be compared
132
+ def eql?(o)
133
+ self == o
134
+ end
135
+
136
+ # Calculates hash code according to all attributes.
137
+ # @return [Fixnum] Hash code
138
+ def hash
139
+ [_links, id, submit_time_utc, status, consumer_authentication_information, error_information].hash
140
+ end
141
+
142
+ # Builds the object from hash
143
+ # @param [Hash] attributes Model attributes in the form of hash
144
+ # @return [Object] Returns the model itself
145
+ def build_from_hash(attributes)
146
+ return nil unless attributes.is_a?(Hash)
147
+ self.class.swagger_types.each_pair do |key, type|
148
+ if type =~ /\AArray<(.*)>/i
149
+ # check to ensure the input is an array given that the the attribute
150
+ # is documented as an array but the input is not
151
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
152
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
153
+ end
154
+ elsif !attributes[self.class.attribute_map[key]].nil?
155
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
156
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
157
+ end
158
+
159
+ self
160
+ end
161
+
162
+ # Deserializes the data based on type
163
+ # @param string type Data type
164
+ # @param string value Value to be deserialized
165
+ # @return [Object] Deserialized data
166
+ def _deserialize(type, value)
167
+ case type.to_sym
168
+ when :DateTime
169
+ DateTime.parse(value)
170
+ when :Date
171
+ Date.parse(value)
172
+ when :String
173
+ value.to_s
174
+ when :Integer
175
+ value.to_i
176
+ when :Float
177
+ value.to_f
178
+ when :BOOLEAN
179
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
180
+ true
181
+ else
182
+ false
183
+ end
184
+ when :Object
185
+ # generic object (usually a Hash), return directly
186
+ value
187
+ when /\AArray<(?<inner_type>.+)>\z/
188
+ inner_type = Regexp.last_match[:inner_type]
189
+ value.map { |v| _deserialize(inner_type, v) }
190
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
191
+ k_type = Regexp.last_match[:k_type]
192
+ v_type = Regexp.last_match[:v_type]
193
+ {}.tap do |hash|
194
+ value.each do |k, v|
195
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
196
+ end
197
+ end
198
+ else # model
199
+ temp_model = CyberSource.const_get(type).new
200
+ temp_model.build_from_hash(value)
201
+ end
202
+ end
203
+
204
+ # Returns the string representation of the object
205
+ # @return [String] String presentation of the object
206
+ def to_s
207
+ to_hash.to_s
208
+ end
209
+
210
+ # to_body is an alias to to_hash (backward compatibility)
211
+ # @return [Hash] Returns the object in the form of hash
212
+ def to_body
213
+ to_hash
214
+ end
215
+
216
+ # Returns the object in the form of hash
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_hash
219
+ hash = {}
220
+ self.class.attribute_map.each_pair do |attr, param|
221
+ value = self.send(attr)
222
+ next if value.nil?
223
+ hash[param] = _to_hash(value)
224
+ end
225
+ hash
226
+ end
227
+
228
+ # Outputs non-array value in the form of hash
229
+ # For object, use to_hash. Otherwise, just return the value
230
+ # @param [Object] value Any valid value
231
+ # @return [Hash] Returns the value in the form of hash
232
+ def _to_hash(value)
233
+ if value.is_a?(Array)
234
+ value.compact.map { |v| _to_hash(v) }
235
+ elsif value.is_a?(Hash)
236
+ {}.tap do |hash|
237
+ value.each { |k, v| hash[k] = _to_hash(v) }
238
+ end
239
+ elsif value.respond_to? :to_hash
240
+ value.to_hash
241
+ else
242
+ value
243
+ end
244
+ end
245
+ end
246
+ end